6235161.js 2.9 MB

12
  1. /*! For license information please see LICENSES */
  2. (window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(e,t,n){"use strict";n.d(t,"p",(function(){return S})),n.d(t,"G",(function(){return k})),n.d(t,"d",(function(){return O})),n.d(t,"I",(function(){return C})),n.d(t,"J",(function(){return T})),n.d(t,"m",(function(){return E})),n.d(t,"i",(function(){return A})),n.d(t,"r",(function(){return M})),n.d(t,"s",(function(){return I})),n.d(t,"K",(function(){return D})),n.d(t,"u",(function(){return P})),n.d(t,"k",(function(){return N})),n.d(t,"H",(function(){return map})),n.d(t,"N",(function(){return L})),n.d(t,"n",(function(){return filter})),n.d(t,"o",(function(){return j})),n.d(t,"F",(function(){return R})),n.d(t,"c",(function(){return F})),n.d(t,"h",(function(){return B})),n.d(t,"t",(function(){return z})),n.d(t,"w",(function(){return $})),n.d(t,"C",(function(){return V})),n.d(t,"D",(function(){return H})),n.d(t,"z",(function(){return W})),n.d(t,"A",(function(){return U})),n.d(t,"E",(function(){return Y})),n.d(t,"v",(function(){return K})),n.d(t,"x",(function(){return X})),n.d(t,"y",(function(){return Z})),n.d(t,"B",(function(){return J})),n.d(t,"l",(function(){return Q})),n.d(t,"O",(function(){return ee})),n.d(t,"P",(function(){return te})),n.d(t,"Q",(function(){return ne})),n.d(t,"S",(function(){return re})),n.d(t,"M",(function(){return ie})),n.d(t,"b",(function(){return oe})),n.d(t,"T",(function(){return ae})),n.d(t,"R",(function(){return le})),n.d(t,"f",(function(){return he})),n.d(t,"e",(function(){return fe})),n.d(t,"g",(function(){return de})),n.d(t,"j",(function(){return pe})),n.d(t,"q",(function(){return ge})),n.d(t,"L",(function(){return ve})),n.d(t,"a",(function(){return me}));var r=n(8),o=L(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),l=L(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),c=Object.prototype.toString,h=Array.prototype,f=h.forEach,d=h.filter,v=h.slice,m=h.map,y=function(){}.constructor,_=y?y.prototype:null,x="__proto__",w=2311;function S(){return w++}function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function O(source){if(null==source||"object"!=typeof source)return source;var e=source,t=c.call(source);if("[object Array]"===t){if(!ue(source)){e=[];for(var i=0,n=source.length;i<n;i++)e[i]=O(source[i])}}else if(l[t]){if(!ue(source)){var r=source.constructor;if(r.from)e=r.from(source);else{e=new r(source.length);for(i=0,n=source.length;i<n;i++)e[i]=source[i]}}}else if(!o[t]&&!ue(source)&&!K(source))for(var h in e={},source)source.hasOwnProperty(h)&&h!==x&&(e[h]=O(source[h]));return e}function C(e,source,t){if(!U(source)||!U(e))return t?O(source):e;for(var n in source)if(source.hasOwnProperty(n)&&n!==x){var r=e[n],o=source[n];!U(o)||!U(r)||z(o)||z(r)||K(o)||K(r)||G(o)||G(r)||ue(o)||ue(r)?!t&&n in e||(e[n]=O(source[n])):C(r,o,t)}return e}function T(e,t){for(var n=e[0],i=1,r=e.length;i<r;i++)n=C(n,e[i],t);return n}function E(e,source){if(Object.assign)Object.assign(e,source);else for(var t in source)source.hasOwnProperty(t)&&t!==x&&(e[t]=source[t]);return e}function A(e,source,t){for(var n=R(source),i=0;i<n.length;i++){var r=n[i];(t?null!=source[r]:null==e[r])&&(e[r]=source[r])}return e}r.d.createCanvas;function M(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i}return-1}function I(e,t){var n=e.prototype;function r(){}for(var o in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(o)&&(e.prototype[o]=n[o]);e.prototype.constructor=e,e.superClass=t}function D(e,source,t){if(e="prototype"in e?e.prototype:e,source="prototype"in source?source.prototype:source,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(source),i=0;i<n.length;i++){var r=n[i];"constructor"!==r&&(t?null!=source[r]:null==e[r])&&(e[r]=source[r])}else A(e,source,t)}function P(data){return!!data&&("string"!=typeof data&&"number"==typeof data.length)}function N(e,t,n){if(e&&t)if(e.forEach&&e.forEach===f)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function map(e,t,n){if(!e)return[];if(!t)return re(e);if(e.map&&e.map===m)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function L(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function filter(e,t,n){if(!e)return[];if(!t)return re(e);if(e.filter&&e.filter===d)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function j(e,t,n){if(e&&t)for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e))return e[i]}function R(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var F=_&&$(_.bind)?_.call.bind(_.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(v.call(arguments)))}};function B(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(v.call(arguments)))}}function z(e){return Array.isArray?Array.isArray(e):"[object Array]"===c.call(e)}function $(e){return"function"==typeof e}function V(e){return"string"==typeof e}function H(e){return"[object String]"===c.call(e)}function W(e){return"number"==typeof e}function U(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function G(e){return!!o[c.call(e)]}function Y(e){return!!l[c.call(e)]}function K(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function X(e){return null!=e.colorStops}function Z(e){return null!=e.image}function J(e){return"[object RegExp]"===c.call(e)}function Q(e){return e!=e}function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i=0,n=e.length;i<n;i++)if(null!=e[i])return e[i]}function te(e,t){return null!=e?e:t}function ne(e,t,n){return null!=e?e:null!=t?t:n}function re(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return v.apply(e,t)}function ie(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function oe(e,t){if(!e)throw new Error(t)}function ae(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var se="__ec_primitive__";function le(e){e[se]=!0}function ue(e){return e[se]}var ce=function(){function e(t){this.data={};var n=z(t);this.data={};var r=this;function o(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(o):t&&N(t,o)}return e.prototype.get=function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},e.prototype.set=function(e,t){return this.data[e]=t},e.prototype.each=function(e,t){for(var n in this.data)this.data.hasOwnProperty(n)&&e.call(t,this.data[n],n)},e.prototype.keys=function(){return R(this.data)},e.prototype.removeKey=function(e){delete this.data[e]},e}();function he(e){return new ce(e)}function fe(a,b){for(var e=new a.constructor(a.length+b.length),i=0;i<a.length;i++)e[i]=a[i];var t=a.length;for(i=0;i<b.length;i++)e[i+t]=b[i];return e}function de(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&E(n,t),n}function pe(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ge(e,t){return e.hasOwnProperty(t)}function ve(){}var me=180/Math.PI},,function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"EffectScope",(function(){return Mt})),n.d(t,"computed",(function(){return yt})),n.d(t,"customRef",(function(){return ct})),n.d(t,"default",(function(){return yi})),n.d(t,"defineAsyncComponent",(function(){return qn})),n.d(t,"defineComponent",(function(){return sr})),n.d(t,"del",(function(){return del})),n.d(t,"effectScope",(function(){return It})),n.d(t,"getCurrentInstance",(function(){return xe})),n.d(t,"getCurrentScope",(function(){return Dt})),n.d(t,"h",(function(){return Tn})),n.d(t,"inject",(function(){return jt})),n.d(t,"isProxy",(function(){return Ze})),n.d(t,"isReactive",(function(){return Ye})),n.d(t,"isReadonly",(function(){return Xe})),n.d(t,"isRef",(function(){return tt})),n.d(t,"isShallow",(function(){return Ke})),n.d(t,"markRaw",(function(){return Qe})),n.d(t,"mergeDefaults",(function(){return xn})),n.d(t,"nextTick",(function(){return $n})),n.d(t,"onActivated",(function(){return Jn})),n.d(t,"onBeforeMount",(function(){return Un})),n.d(t,"onBeforeUnmount",(function(){return Xn})),n.d(t,"onBeforeUpdate",(function(){return Yn})),n.d(t,"onDeactivated",(function(){return Qn})),n.d(t,"onErrorCaptured",(function(){return or})),n.d(t,"onMounted",(function(){return Gn})),n.d(t,"onRenderTracked",(function(){return nr})),n.d(t,"onRenderTriggered",(function(){return rr})),n.d(t,"onScopeDispose",(function(){return Pt})),n.d(t,"onServerPrefetch",(function(){return er})),n.d(t,"onUnmounted",(function(){return Zn})),n.d(t,"onUpdated",(function(){return Kn})),n.d(t,"provide",(function(){return Nt})),n.d(t,"proxyRefs",(function(){return lt})),n.d(t,"reactive",(function(){return We})),n.d(t,"readonly",(function(){return pt})),n.d(t,"ref",(function(){return nt})),n.d(t,"set",(function(){return He})),n.d(t,"shallowReactive",(function(){return Ue})),n.d(t,"shallowReadonly",(function(){return mt})),n.d(t,"shallowRef",(function(){return it})),n.d(t,"toRaw",(function(){return Je})),n.d(t,"toRef",(function(){return ft})),n.d(t,"toRefs",(function(){return ht})),n.d(t,"triggerRef",(function(){return at})),n.d(t,"unref",(function(){return st})),n.d(t,"useAttrs",(function(){return yn})),n.d(t,"useCssModule",(function(){return Vn})),n.d(t,"useCssVars",(function(){return Hn})),n.d(t,"useListeners",(function(){return bn})),n.d(t,"useSlots",(function(){return mn})),n.d(t,"version",(function(){return ar})),n.d(t,"watch",(function(){return Et})),n.d(t,"watchEffect",(function(){return St})),n.d(t,"watchPostEffect",(function(){return kt})),n.d(t,"watchSyncEffect",(function(){return Ot}));var o=Object.freeze({}),l=Array.isArray;function c(e){return null==e}function h(e){return null!=e}function f(e){return!0===e}function d(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function v(e){return"function"==typeof e}function m(e){return null!==e&&"object"==typeof e}var y=Object.prototype.toString;function _(e){return"[object Object]"===y.call(e)}function x(e){return"[object RegExp]"===y.call(e)}function w(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function S(e){return h(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function k(e){return null==e?"":Array.isArray(e)||_(e)&&e.toString===y?JSON.stringify(e,null,2):String(e)}function O(e){var t=parseFloat(e);return isNaN(t)?e:t}function C(e,t){for(var map=Object.create(null),n=e.split(","),i=0;i<n.length;i++)map[n[i]]=!0;return t?function(e){return map[e.toLowerCase()]}:function(e){return map[e]}}C("slot,component",!0);var T=C("key,ref,slot,slot-scope,is");function E(e,t){var n=e.length;if(n){if(t===e[n-1])return void(e.length=n-1);var r=e.indexOf(t);if(r>-1)return e.splice(r,1)}}var A=Object.prototype.hasOwnProperty;function M(e,t){return A.call(e,t)}function I(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var D=/-(\w)/g,P=I((function(e){return e.replace(D,(function(e,t){return t?t.toUpperCase():""}))})),N=I((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),L=/\B([A-Z])/g,j=I((function(e){return e.replace(L,"-$1").toLowerCase()}));var R=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(a){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,a):e.call(t)}return n._length=e.length,n};function F(e,t){t=t||0;for(var i=e.length-t,n=new Array(i);i--;)n[i]=e[i+t];return n}function B(e,t){for(var n in t)e[n]=t[n];return e}function z(e){for(var t={},i=0;i<e.length;i++)e[i]&&B(t,e[i]);return t}function $(a,b,e){}var V=function(a,b,e){return!1},H=function(e){return e};function W(a,b){if(a===b)return!0;var e=m(a),t=m(b);if(!e||!t)return!e&&!t&&String(a)===String(b);try{var n=Array.isArray(a),r=Array.isArray(b);if(n&&r)return a.length===b.length&&a.every((function(e,i){return W(e,b[i])}));if(a instanceof Date&&b instanceof Date)return a.getTime()===b.getTime();if(n||r)return!1;var o=Object.keys(a),l=Object.keys(b);return o.length===l.length&&o.every((function(e){return W(a[e],b[e])}))}catch(e){return!1}}function U(e,t){for(var i=0;i<e.length;i++)if(W(e[i],t))return i;return-1}function G(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function Y(e,t){return e===t?0===e&&1/e!=1/t:e==e||t==t}var K="data-server-rendered",X=["component","directive","filter"],Z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],J={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:V,isReservedAttr:V,isUnknownElement:V,getTagNamespace:$,parsePlatformTagName:H,mustUseProp:V,async:!0,_lifecycleHooks:Z},Q=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function ee(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function te(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var ne=new RegExp("[^".concat(Q.source,".$_\\d]"));var re="__proto__"in{},ie="undefined"!=typeof window,oe=ie&&window.navigator.userAgent.toLowerCase(),ae=oe&&/msie|trident/.test(oe),se=oe&&oe.indexOf("msie 9.0")>0,le=oe&&oe.indexOf("edge/")>0;oe&&oe.indexOf("android");var ue=oe&&/iphone|ipad|ipod|ios/.test(oe);oe&&/chrome\/\d+/.test(oe),oe&&/phantomjs/.test(oe);var ce,he=oe&&oe.match(/firefox\/(\d+)/),fe={}.watch,de=!1;if(ie)try{var pe={};Object.defineProperty(pe,"passive",{get:function(){de=!0}}),window.addEventListener("test-passive",null,pe)}catch(e){}var ge=function(){return void 0===ce&&(ce=!ie&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),ce},ve=ie&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function me(e){return"function"==typeof e&&/native code/.test(e.toString())}var ye,be="undefined"!=typeof Symbol&&me(Symbol)&&"undefined"!=typeof Reflect&&me(Reflect.ownKeys);ye="undefined"!=typeof Set&&me(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var _e=null;function xe(){return _e&&{proxy:_e}}function we(e){void 0===e&&(e=null),e||_e&&_e._scope.off(),_e=e,e&&e._scope.on()}var Se=function(){function e(e,data,t,text,n,r,o,l){this.tag=e,this.data=data,this.children=t,this.text=text,this.elm=n,this.ns=void 0,this.context=r,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=data&&data.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=l,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),ke=function(text){void 0===text&&(text="");var e=new Se;return e.text=text,e.isComment=!0,e};function Oe(e){return new Se(void 0,void 0,void 0,String(e))}function Ce(e){var t=new Se(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Te=0,Ee=[],Ae=function(){function e(){this._pending=!1,this.id=Te++,this.subs=[]}return e.prototype.addSub=function(sub){this.subs.push(sub)},e.prototype.removeSub=function(sub){this.subs[this.subs.indexOf(sub)]=null,this._pending||(this._pending=!0,Ee.push(this))},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){var t=this.subs.filter((function(s){return s}));for(var i=0,n=t.length;i<n;i++){0,t[i].update()}},e}();Ae.target=null;var Me=[];function Ie(e){Me.push(e),Ae.target=e}function De(){Me.pop(),Ae.target=Me[Me.length-1]}var Pe=Array.prototype,Ne=Object.create(Pe);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=Pe[e];te(Ne,e,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o,l=t.apply(this,n),c=this.__ob__;switch(e){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2)}return o&&c.observeArray(o),c.dep.notify(),l}))}));var Le=Object.getOwnPropertyNames(Ne),je={},Re=!0;function Fe(e){Re=e}var Be={notify:$,depend:$,addSub:$,removeSub:$},ze=function(){function e(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.value=e,this.shallow=t,this.mock=n,this.dep=n?Be:new Ae,this.vmCount=0,te(e,"__ob__",this),l(e)){if(!n)if(re)e.__proto__=Ne;else for(var i=0,r=Le.length;i<r;i++){te(e,c=Le[i],Ne[c])}t||this.observeArray(e)}else{var o=Object.keys(e);for(i=0;i<o.length;i++){var c;Ve(e,c=o[i],je,void 0,t,n)}}}return e.prototype.observeArray=function(e){for(var i=0,t=e.length;i<t;i++)$e(e[i],!1,this.mock)},e}();function $e(e,t,n){return e&&M(e,"__ob__")&&e.__ob__ instanceof ze?e.__ob__:!Re||!n&&ge()||!l(e)&&!_(e)||!Object.isExtensible(e)||e.__v_skip||tt(e)||e instanceof Se?void 0:new ze(e,t,n)}function Ve(e,t,n,r,o,c){var h=new Ae,f=Object.getOwnPropertyDescriptor(e,t);if(!f||!1!==f.configurable){var d=f&&f.get,v=f&&f.set;d&&!v||n!==je&&2!==arguments.length||(n=e[t]);var m=!o&&$e(n,!1,c);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=d?d.call(e):n;return Ae.target&&(h.depend(),m&&(m.dep.depend(),l(t)&&qe(t))),tt(t)&&!o?t.value:t},set:function(t){var r=d?d.call(e):n;if(Y(r,t)){if(v)v.call(e,t);else{if(d)return;if(!o&&tt(r)&&!tt(t))return void(r.value=t);n=t}m=!o&&$e(t,!1,c),h.notify()}}}),h}}function He(e,t,n){if(!Xe(e)){var r=e.__ob__;return l(e)&&w(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),r&&!r.shallow&&r.mock&&$e(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||r&&r.vmCount?n:r?(Ve(r.value,t,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(e[t]=n,n)}}function del(e,t){if(l(e)&&w(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||Xe(e)||M(e,t)&&(delete e[t],n&&n.dep.notify())}}function qe(e){for(var t=void 0,i=0,n=e.length;i<n;i++)(t=e[i])&&t.__ob__&&t.__ob__.dep.depend(),l(t)&&qe(t)}function We(e){return Ge(e,!1),e}function Ue(e){return Ge(e,!0),te(e,"__v_isShallow",!0),e}function Ge(e,t){if(!Xe(e)){$e(e,t,ge());0}}function Ye(e){return Xe(e)?Ye(e.__v_raw):!(!e||!e.__ob__)}function Ke(e){return!(!e||!e.__v_isShallow)}function Xe(e){return!(!e||!e.__v_isReadonly)}function Ze(e){return Ye(e)||Xe(e)}function Je(e){var t=e&&e.__v_raw;return t?Je(t):e}function Qe(e){return Object.isExtensible(e)&&te(e,"__v_skip",!0),e}var et="__v_isRef";function tt(e){return!(!e||!0!==e.__v_isRef)}function nt(e){return ot(e,!1)}function it(e){return ot(e,!0)}function ot(e,t){if(tt(e))return e;var n={};return te(n,et,!0),te(n,"__v_isShallow",t),te(n,"dep",Ve(n,"value",e,null,t,ge())),n}function at(e){e.dep&&e.dep.notify()}function st(e){return tt(e)?e.value:e}function lt(e){if(Ye(e))return e;for(var t={},n=Object.keys(e),i=0;i<n.length;i++)ut(t,e,n[i]);return t}function ut(e,source,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var e=source[t];if(tt(e))return e.value;var n=e&&e.__ob__;return n&&n.dep.depend(),e},set:function(e){var n=source[t];tt(n)&&!tt(e)?n.value=e:source[t]=e}})}function ct(e){var t=new Ae,n=e((function(){t.depend()}),(function(){t.notify()})),r=n.get,o=n.set,l={get value(){return r()},set value(e){o(e)}};return te(l,et,!0),l}function ht(object){var e=l(object)?new Array(object.length):{};for(var t in object)e[t]=ft(object,t);return e}function ft(object,e,t){var n=object[e];if(tt(n))return n;var r={get value(){var n=object[e];return void 0===n?t:n},set value(t){object[e]=t}};return te(r,et,!0),r}function pt(e){return gt(e,!1)}function gt(e,t){if(!_(e))return e;if(Xe(e))return e;var n=t?"__v_rawToShallowReadonly":"__v_rawToReadonly",r=e[n];if(r)return r;var o=Object.create(Object.getPrototypeOf(e));te(e,n,o),te(o,"__v_isReadonly",!0),te(o,"__v_raw",e),tt(e)&&te(o,et,!0),(t||Ke(e))&&te(o,"__v_isShallow",!0);for(var l=Object.keys(e),i=0;i<l.length;i++)vt(o,e,l[i],t);return o}function vt(e,t,n,r){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];return r||!_(e)?e:pt(e)},set:function(){}})}function mt(e){return gt(e,!0)}function yt(e,t){var n,r,o=v(e);o?(n=e,r=$):(n=e.get,r=e.set);var l=ge()?null:new pr(_e,n,$,{lazy:!0});var c={effect:l,get value(){return l?(l.dirty&&l.evaluate(),Ae.target&&l.depend(),l.value):n()},set value(e){r(e)}};return te(c,et,!0),te(c,"__v_isReadonly",o),c}var bt="watcher",_t="".concat(bt," callback"),xt="".concat(bt," getter"),wt="".concat(bt," cleanup");function St(e,t){return At(e,null,t)}function kt(e,t){return At(e,null,{flush:"post"})}function Ot(e,t){return At(e,null,{flush:"sync"})}var Ct,Tt={};function Et(source,e,t){return At(source,e,t)}function At(source,e,t){var n=void 0===t?o:t,r=n.immediate,c=n.deep,h=n.flush,f=void 0===h?"pre":h;n.onTrack,n.onTrigger;var d,m,y=_e,_=function(e,t,n){return void 0===n&&(n=null),An(e,null,n,y,t)},x=!1,w=!1;if(tt(source)?(d=function(){return source.value},x=Ke(source)):Ye(source)?(d=function(){return source.__ob__.dep.depend(),source},c=!0):l(source)?(w=!0,x=source.some((function(s){return Ye(s)||Ke(s)})),d=function(){return source.map((function(s){return tt(s)?s.value:Ye(s)?ur(s):v(s)?_(s,xt):void 0}))}):d=v(source)?e?function(){return _(source,xt)}:function(){if(!y||!y._isDestroyed)return m&&m(),_(source,bt,[k])}:$,e&&c){var S=d;d=function(){return ur(S())}}var k=function(e){m=O.onStop=function(){_(e,wt)}};if(ge())return k=$,e?r&&_(e,_t,[d(),w?[]:void 0,k]):d(),$;var O=new pr(_e,d,$,{lazy:!0});O.noRecurse=!e;var C=w?[]:Tt;return O.run=function(){if(O.active)if(e){var t=O.get();(c||x||(w?t.some((function(e,i){return Y(e,C[i])})):Y(t,C)))&&(m&&m(),_(e,_t,[t,C===Tt?void 0:C,k]),C=t)}else O.get()},"sync"===f?O.update=O.run:"post"===f?(O.post=!0,O.update=function(){return Rr(O)}):O.update=function(){if(y&&y===_e&&!y._isMounted){var e=y._preWatchers||(y._preWatchers=[]);e.indexOf(O)<0&&e.push(O)}else Rr(O)},e?r?O.run():C=O.get():"post"===f&&y?y.$once("hook:mounted",(function(){return O.get()})):O.get(),function(){O.teardown()}}var Mt=function(){function e(e){void 0===e&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Ct,!e&&Ct&&(this.index=(Ct.scopes||(Ct.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=Ct;try{return Ct=this,e()}finally{Ct=t}}else 0},e.prototype.on=function(){Ct=this},e.prototype.off=function(){Ct=this.parent},e.prototype.stop=function(e){if(this.active){var i=void 0,t=void 0;for(i=0,t=this.effects.length;i<t;i++)this.effects[i].teardown();for(i=0,t=this.cleanups.length;i<t;i++)this.cleanups[i]();if(this.scopes)for(i=0,t=this.scopes.length;i<t;i++)this.scopes[i].stop(!0);if(!this.detached&&this.parent&&!e){var n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0,this.active=!1}},e}();function It(e){return new Mt(e)}function Dt(){return Ct}function Pt(e){Ct&&Ct.cleanups.push(e)}function Nt(e,t){_e&&(Lt(_e)[e]=t)}function Lt(e){var t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}function jt(e,t,n){void 0===n&&(n=!1);var r=_e;if(r){var o=r.$parent&&r.$parent._provided;if(o&&e in o)return o[e];if(arguments.length>1)return n&&v(t)?t.call(r):t}else 0}var Rt=I((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function Ft(e,t){function n(){var e=n.fns;if(!l(e))return An(e,null,arguments,t,"v-on handler");for(var r=e.slice(),i=0;i<r.length;i++)An(r[i],null,arguments,t,"v-on handler")}return n.fns=e,n}function Bt(e,t,n,r,o,l){var h,d,v,m;for(h in e)d=e[h],v=t[h],m=Rt(h),c(d)||(c(v)?(c(d.fns)&&(d=e[h]=Ft(d,l)),f(m.once)&&(d=e[h]=o(m.name,d,m.capture)),n(m.name,d,m.capture,m.passive,m.params)):d!==v&&(v.fns=d,e[h]=v));for(h in t)c(e[h])&&r((m=Rt(h)).name,t[h],m.capture)}function zt(e,t,n){var r;e instanceof Se&&(e=e.data.hook||(e.data.hook={}));var o=e[t];function l(){n.apply(this,arguments),E(r.fns,l)}c(o)?r=Ft([l]):h(o.fns)&&f(o.merged)?(r=o).fns.push(l):r=Ft([o,l]),r.merged=!0,e[t]=r}function $t(e,t,n,r,o){if(h(t)){if(M(t,n))return e[n]=t[n],o||delete t[n],!0;if(M(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function Vt(e){return d(e)?[Oe(e)]:l(e)?qt(e):void 0}function Ht(e){return h(e)&&h(e.text)&&!1===e.isComment}function qt(e,t){var i,n,r,o,v=[];for(i=0;i<e.length;i++)c(n=e[i])||"boolean"==typeof n||(o=v[r=v.length-1],l(n)?n.length>0&&(Ht((n=qt(n,"".concat(t||"","_").concat(i)))[0])&&Ht(o)&&(v[r]=Oe(o.text+n[0].text),n.shift()),v.push.apply(v,n)):d(n)?Ht(o)?v[r]=Oe(o.text+n):""!==n&&v.push(Oe(n)):Ht(n)&&Ht(o)?v[r]=Oe(o.text+n.text):(f(e._isVList)&&h(n.tag)&&c(n.key)&&h(t)&&(n.key="__vlist".concat(t,"_").concat(i,"__")),v.push(n)));return v}function Wt(e,t){var i,n,r,o,c=null;if(l(e)||"string"==typeof e)for(c=new Array(e.length),i=0,n=e.length;i<n;i++)c[i]=t(e[i],i);else if("number"==typeof e)for(c=new Array(e),i=0;i<e;i++)c[i]=t(i+1,i);else if(m(e))if(be&&e[Symbol.iterator]){c=[];for(var f=e[Symbol.iterator](),d=f.next();!d.done;)c.push(t(d.value,c.length)),d=f.next()}else for(r=Object.keys(e),c=new Array(r.length),i=0,n=r.length;i<n;i++)o=r[i],c[i]=t(e[o],o,i);return h(c)||(c=[]),c._isVList=!0,c}function Ut(e,t,n,r){var o,l=this.$scopedSlots[e];l?(n=n||{},r&&(n=B(B({},r),n)),o=l(n)||(v(t)?t():t)):o=this.$slots[e]||(v(t)?t():t);var c=n&&n.slot;return c?this.$createElement("template",{slot:c},o):o}function Gt(e){return ti(this.$options,"filters",e,!0)||H}function Yt(e,t){return l(e)?-1===e.indexOf(t):e!==t}function Kt(e,t,n,r,o){var l=J.keyCodes[t]||n;return o&&r&&!J.keyCodes[t]?Yt(o,r):l?Yt(l,e):r?j(r)!==t:void 0===e}function Xt(data,e,t,n,r){if(t)if(m(t)){l(t)&&(t=z(t));var o=void 0,c=function(l){if("class"===l||"style"===l||T(l))o=data;else{var c=data.attrs&&data.attrs.type;o=n||J.mustUseProp(e,c,l)?data.domProps||(data.domProps={}):data.attrs||(data.attrs={})}var h=P(l),f=j(l);h in o||f in o||(o[l]=t[l],r&&((data.on||(data.on={}))["update:".concat(l)]=function(e){t[l]=e}))};for(var h in t)c(h)}else;return data}function Zt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||Qt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),"__static__".concat(e),!1),r}function Jt(e,t,n){return Qt(e,"__once__".concat(t).concat(n?"_".concat(n):""),!0),e}function Qt(e,t,n){if(l(e))for(var i=0;i<e.length;i++)e[i]&&"string"!=typeof e[i]&&en(e[i],"".concat(t,"_").concat(i),n);else en(e,t,n)}function en(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function tn(data,e){if(e)if(_(e)){var t=data.on=data.on?B({},data.on):{};for(var n in e){var r=t[n],o=e[n];t[n]=r?[].concat(r,o):o}}else;return data}function nn(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var slot=e[i];l(slot)?nn(slot,t,n):slot&&(slot.proxy&&(slot.fn.proxy=!0),t[slot.key]=slot.fn)}return r&&(t.$key=r),t}function rn(e,t){for(var i=0;i<t.length;i+=2){var n=t[i];"string"==typeof n&&n&&(e[t[i]]=t[i+1])}return e}function on(e,symbol){return"string"==typeof e?symbol+e:e}function an(e){e._o=Jt,e._n=O,e._s=k,e._l=Wt,e._t=Ut,e._q=W,e._i=U,e._m=Zt,e._f=Gt,e._k=Kt,e._b=Xt,e._v=Oe,e._e=ke,e._u=nn,e._g=tn,e._d=rn,e._p=on}function sn(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var o=e[i],data=o.data;if(data&&data.attrs&&data.attrs.slot&&delete data.attrs.slot,o.context!==t&&o.fnContext!==t||!data||null==data.slot)(n.default||(n.default=[])).push(o);else{var l=data.slot,slot=n[l]||(n[l]=[]);"template"===o.tag?slot.push.apply(slot,o.children||[]):slot.push(o)}}for(var c in n)n[c].every(ln)&&delete n[c];return n}function ln(e){return e.isComment&&!e.asyncFactory||" "===e.text}function un(e){return e.isComment&&e.asyncFactory}function cn(e,t,n,r){var l,c=Object.keys(n).length>0,h=t?!!t.$stable:!c,f=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(h&&r&&r!==o&&f===r.$key&&!c&&!r.$hasNormal)return r;for(var d in l={},t)t[d]&&"$"!==d[0]&&(l[d]=hn(e,n,d,t[d]))}else l={};for(var v in n)v in l||(l[v]=fn(n,v));return t&&Object.isExtensible(t)&&(t._normalized=l),te(l,"$stable",h),te(l,"$key",f),te(l,"$hasNormal",c),l}function hn(e,t,n,r){var o=function(){var t=_e;we(e);var n=arguments.length?r.apply(null,arguments):r({}),o=(n=n&&"object"==typeof n&&!l(n)?[n]:Vt(n))&&n[0];return we(t),n&&(!o||1===n.length&&o.isComment&&!un(o))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:o,enumerable:!0,configurable:!0}),o}function fn(e,t){return function(){return e[t]}}function dn(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};te(t,"_v_attr_proxy",!0),pn(t,e.$attrs,o,e,"$attrs")}return e._attrsProxy},get listeners(){e._listenersProxy||pn(e._listenersProxy={},e.$listeners,o,e,"$listeners");return e._listenersProxy},get slots(){return function(e){e._slotsProxy||vn(e._slotsProxy={},e.$scopedSlots);return e._slotsProxy}(e)},emit:R(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return ut(e,t,n)}))}}}function pn(e,t,n,r,o){var l=!1;for(var c in t)c in e?t[c]!==n[c]&&(l=!0):(l=!0,gn(e,c,r,o));for(var c in e)c in t||(l=!0,delete e[c]);return l}function gn(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function vn(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function mn(){return _n().slots}function yn(){return _n().attrs}function bn(){return _n().listeners}function _n(){var e=_e;return e._setupContext||(e._setupContext=dn(e))}function xn(e,t){var n=l(e)?e.reduce((function(e,p){return e[p]={},e}),{}):e;for(var r in t){var o=n[r];o?l(o)||v(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:null===o&&(n[r]={default:t[r]})}return n}var wn=null;function Sn(e,base){return(e.__esModule||be&&"Module"===e[Symbol.toStringTag])&&(e=e.default),m(e)?base.extend(e):e}function kn(e){if(l(e))for(var i=0;i<e.length;i++){var t=e[i];if(h(t)&&(h(t.componentOptions)||un(t)))return t}}function On(e,t,data,n,r,o){return(l(data)||d(data))&&(r=n,n=data,data=void 0),f(o)&&(r=2),function(e,t,data,n,r){if(h(data)&&h(data.__ob__))return ke();h(data)&&h(data.is)&&(t=data.is);if(!t)return ke();0;l(n)&&v(n[0])&&((data=data||{}).scopedSlots={default:n[0]},n.length=0);2===r?n=Vt(n):1===r&&(n=function(e){for(var i=0;i<e.length;i++)if(l(e[i]))return Array.prototype.concat.apply([],e);return e}(n));var o,c;if("string"==typeof t){var f=void 0;c=e.$vnode&&e.$vnode.ns||J.getTagNamespace(t),o=J.isReservedTag(t)?new Se(J.parsePlatformTagName(t),data,n,void 0,void 0,e):data&&data.pre||!h(f=ti(e.$options,"components",t))?new Se(t,data,n,void 0,void 0,e):Wr(f,data,e,n,t)}else o=Wr(t,data,e,n);return l(o)?o:h(o)?(h(c)&&Cn(o,c),h(data)&&function(data){m(data.style)&&ur(data.style);m(data.class)&&ur(data.class)}(data),o):ke()}(e,t,data,n,r)}function Cn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),h(e.children))for(var i=0,r=e.children.length;i<r;i++){var o=e.children[i];h(o.tag)&&(c(o.ns)||f(n)&&"svg"!==o.tag)&&Cn(o,t,n)}}function Tn(e,t,n){return On(_e,e,t,n,2,!0)}function En(e,t,n){Ie();try{if(t)for(var r=t;r=r.$parent;){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{if(!1===o[i].call(r,e,t,n))return}catch(e){Mn(e,r,"errorCaptured hook")}}Mn(e,t,n)}finally{De()}}function An(e,t,n,r,o){var l;try{(l=n?e.apply(t,n):e.call(t))&&!l._isVue&&S(l)&&!l._handled&&(l.catch((function(e){return En(e,r,o+" (Promise/async)")})),l._handled=!0)}catch(e){En(e,r,o)}return l}function Mn(e,t,n){if(J.errorHandler)try{return J.errorHandler.call(null,e,t,n)}catch(t){t!==e&&In(t,null,"config.errorHandler")}In(e,t,n)}function In(e,t,n){if(!ie||"undefined"==typeof console)throw e;console.error(e)}var Dn,Pn=!1,Nn=[],Ln=!1;function jn(){Ln=!1;var e=Nn.slice(0);Nn.length=0;for(var i=0;i<e.length;i++)e[i]()}if("undefined"!=typeof Promise&&me(Promise)){var Rn=Promise.resolve();Dn=function(){Rn.then(jn),ue&&setTimeout($)},Pn=!0}else if(ae||"undefined"==typeof MutationObserver||!me(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Dn=void 0!==r&&me(r)?function(){r(jn)}:function(){setTimeout(jn,0)};else{var Fn=1,Bn=new MutationObserver(jn),zn=document.createTextNode(String(Fn));Bn.observe(zn,{characterData:!0}),Dn=function(){Fn=(Fn+1)%2,zn.data=String(Fn)},Pn=!0}function $n(e,t){var n;if(Nn.push((function(){if(e)try{e.call(t)}catch(e){En(e,t,"nextTick")}else n&&n(t)})),Ln||(Ln=!0,Dn()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}function Vn(e){if(void 0===e&&(e="$style"),!_e)return o;var t=_e[e];return t||o}function Hn(e){if(ie){var t=_e;t&&kt((function(){var n=t.$el,r=e(t,t._setupProxy);if(n&&1===n.nodeType){var style=n.style;for(var o in r)style.setProperty("--".concat(o),r[o])}}))}}function qn(source){v(source)&&(source={loader:source});var e=source.loader,t=source.loadingComponent,n=source.errorComponent,r=source.delay,o=void 0===r?200:r,l=source.timeout,c=(source.suspensible,source.onError);var h=null,f=0,d=function(){var t;return h||(t=h=e().catch((function(e){if(e=e instanceof Error?e:new Error(String(e)),c)return new Promise((function(t,n){c(e,(function(){return t((f++,h=null,d()))}),(function(){return n(e)}),f+1)}));throw e})).then((function(e){return t!==h&&h?h:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),e)})))};return function(){return{component:d(),delay:o,timeout:l,error:n,loading:t}}}function Wn(e){return function(t,n){if(void 0===n&&(n=_e),n)return function(e,t,n){var r=e.$options;r[t]=Zr(r[t],n)}(n,e,t)}}var Un=Wn("beforeMount"),Gn=Wn("mounted"),Yn=Wn("beforeUpdate"),Kn=Wn("updated"),Xn=Wn("beforeDestroy"),Zn=Wn("destroyed"),Jn=Wn("activated"),Qn=Wn("deactivated"),er=Wn("serverPrefetch"),nr=Wn("renderTracked"),rr=Wn("renderTriggered"),ir=Wn("errorCaptured");function or(e,t){void 0===t&&(t=_e),ir(e,t)}var ar="2.7.14";function sr(e){return e}var lr=new ye;function ur(e){return cr(e,lr),lr.clear(),e}function cr(e,t){var i,n,r=l(e);if(!(!r&&!m(e)||e.__v_skip||Object.isFrozen(e)||e instanceof Se)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(r)for(i=e.length;i--;)cr(e[i],t);else if(tt(e))cr(e.value,t);else for(i=(n=Object.keys(e)).length;i--;)cr(e[n[i]],t)}}var fr,dr=0,pr=function(){function e(e,t,n,r,o){var l,c;l=this,void 0===(c=Ct&&!Ct._vm?Ct:e?e._scope:void 0)&&(c=Ct),c&&c.active&&c.effects.push(l),(this.vm=e)&&o&&(e._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++dr,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ye,this.newDepIds=new ye,this.expression="",v(t)?this.getter=t:(this.getter=function(path){if(!ne.test(path)){var e=path.split(".");return function(t){for(var i=0;i<e.length;i++){if(!t)return;t=t[e[i]]}return t}}}(t),this.getter||(this.getter=$)),this.value=this.lazy?void 0:this.get()}return e.prototype.get=function(){var e;Ie(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;En(e,t,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&ur(e),De(),this.cleanupDeps()}return e},e.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},e.prototype.cleanupDeps=function(){for(var i=this.deps.length;i--;){var e=this.deps[i];this.newDepIds.has(e.id)||e.removeSub(this)}var t=this.depIds;this.depIds=this.newDepIds,this.newDepIds=t,this.newDepIds.clear(),t=this.deps,this.deps=this.newDeps,this.newDeps=t,this.newDeps.length=0},e.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Rr(this)},e.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||m(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');An(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},e.prototype.depend=function(){for(var i=this.deps.length;i--;)this.deps[i].depend()},e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&E(this.vm._scope.effects,this),this.active){for(var i=this.deps.length;i--;)this.deps[i].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e}();function gr(e,t){fr.$on(e,t)}function vr(e,t){fr.$off(e,t)}function mr(e,t){var n=fr;return function r(){var o=t.apply(null,arguments);null!==o&&n.$off(e,r)}}function yr(e,t,n){fr=e,Bt(t,n||{},gr,vr,mr,e),fr=void 0}var _r=null;function xr(e){var t=_r;return _r=e,function(){_r=t}}function wr(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Sr(e,t){if(t){if(e._directInactive=!1,wr(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var i=0;i<e.$children.length;i++)Sr(e.$children[i]);Or(e,"activated")}}function kr(e,t){if(!(t&&(e._directInactive=!0,wr(e))||e._inactive)){e._inactive=!0;for(var i=0;i<e.$children.length;i++)kr(e.$children[i]);Or(e,"deactivated")}}function Or(e,t,n,r){void 0===r&&(r=!0),Ie();var o=_e;r&&we(e);var l=e.$options[t],c="".concat(t," hook");if(l)for(var i=0,h=l.length;i<h;i++)An(l[i],e,n||null,e,c);e._hasHookEvent&&e.$emit("hook:"+t),r&&we(o),De()}var Cr=[],Tr=[],Er={},Ar=!1,Mr=!1,Ir=0;var Dr=0,Pr=Date.now;if(ie&&!ae){var Nr=window.performance;Nr&&"function"==typeof Nr.now&&Pr()>document.createEvent("Event").timeStamp&&(Pr=function(){return Nr.now()})}var Lr=function(a,b){if(a.post){if(!b.post)return 1}else if(b.post)return-1;return a.id-b.id};function jr(){var e,t;for(Dr=Pr(),Mr=!0,Cr.sort(Lr),Ir=0;Ir<Cr.length;Ir++)(e=Cr[Ir]).before&&e.before(),t=e.id,Er[t]=null,e.run();var n=Tr.slice(),r=Cr.slice();Ir=Cr.length=Tr.length=0,Er={},Ar=Mr=!1,function(e){for(var i=0;i<e.length;i++)e[i]._inactive=!0,Sr(e[i],!0)}(n),function(e){var i=e.length;for(;i--;){var t=e[i],n=t.vm;n&&n._watcher===t&&n._isMounted&&!n._isDestroyed&&Or(n,"updated")}}(r),function(){for(var i=0;i<Ee.length;i++){var e=Ee[i];e.subs=e.subs.filter((function(s){return s})),e._pending=!1}Ee.length=0}(),ve&&J.devtools&&ve.emit("flush")}function Rr(e){var t=e.id;if(null==Er[t]&&(e!==Ae.target||!e.noRecurse)){if(Er[t]=!0,Mr){for(var i=Cr.length-1;i>Ir&&Cr[i].id>e.id;)i--;Cr.splice(i+1,0,e)}else Cr.push(e);Ar||(Ar=!0,$n(jr))}}function Fr(e,t){if(e){for(var n=Object.create(null),r=be?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var l=e[o].from;if(l in t._provided)n[o]=t._provided[l];else if("default"in e[o]){var c=e[o].default;n[o]=v(c)?c.call(t):c}else 0}}return n}}function Br(data,e,t,n,r){var c,h=this,d=r.options;M(n,"_uid")?(c=Object.create(n))._original=n:(c=n,n=n._original);var v=f(d._compiled),m=!v;this.data=data,this.props=e,this.children=t,this.parent=n,this.listeners=data.on||o,this.injections=Fr(d.inject,n),this.slots=function(){return h.$slots||cn(n,data.scopedSlots,h.$slots=sn(t,n)),h.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return cn(n,data.scopedSlots,this.slots())}}),v&&(this.$options=d,this.$slots=this.slots(),this.$scopedSlots=cn(n,data.scopedSlots,this.$slots)),d._scopeId?this._c=function(a,b,e,t){var r=On(c,a,b,e,t,m);return r&&!l(r)&&(r.fnScopeId=d._scopeId,r.fnContext=n),r}:this._c=function(a,b,e,t){return On(c,a,b,e,t,m)}}function zr(e,data,t,n,r){var o=Ce(e);return o.fnContext=t,o.fnOptions=n,data.slot&&((o.data||(o.data={})).slot=data.slot),o}function $r(e,t){for(var n in t)e[P(n)]=t[n]}function Vr(e){return e.name||e.__name||e._componentTag}an(Br.prototype);var Hr={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Hr.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;h(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,_r)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,l){var c=r.data.scopedSlots,h=e.$scopedSlots,f=!!(c&&!c.$stable||h!==o&&!h.$stable||c&&e.$scopedSlots.$key!==c.$key||!c&&e.$scopedSlots.$key),d=!!(l||e.$options._renderChildren||f),v=e.$vnode;e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=l;var m=r.data.attrs||o;e._attrsProxy&&pn(e._attrsProxy,m,v.data&&v.data.attrs||o,e,"$attrs")&&(d=!0),e.$attrs=m,n=n||o;var y=e.$options._parentListeners;if(e._listenersProxy&&pn(e._listenersProxy,n,y||o,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,yr(e,n,y),t&&e.$options.props){Fe(!1);for(var _=e._props,x=e.$options._propKeys||[],i=0;i<x.length;i++){var w=x[i],S=e.$options.props;_[w]=ni(w,S,t,e)}Fe(!0),e.$options.propsData=t}d&&(e.$slots=sn(l,r.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,Or(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,Tr.push(t)):Sr(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?kr(t,!0):t.$destroy())}},qr=Object.keys(Hr);function Wr(e,data,t,n,r){if(!c(e)){var d=t.$options._base;if(m(e)&&(e=d.extend(e)),"function"==typeof e){var v;if(c(e.cid)&&(e=function(e,t){if(f(e.error)&&h(e.errorComp))return e.errorComp;if(h(e.resolved))return e.resolved;var n=wn;if(n&&h(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),f(e.loading)&&h(e.loadingComp))return e.loadingComp;if(n&&!h(e.owners)){var r=e.owners=[n],o=!0,l=null,d=null;n.$on("hook:destroyed",(function(){return E(r,n)}));var v=function(e){for(var i=0,t=r.length;i<t;i++)r[i].$forceUpdate();e&&(r.length=0,null!==l&&(clearTimeout(l),l=null),null!==d&&(clearTimeout(d),d=null))},y=G((function(n){e.resolved=Sn(n,t),o?r.length=0:v(!0)})),_=G((function(t){h(e.errorComp)&&(e.error=!0,v(!0))})),x=e(y,_);return m(x)&&(S(x)?c(e.resolved)&&x.then(y,_):S(x.component)&&(x.component.then(y,_),h(x.error)&&(e.errorComp=Sn(x.error,t)),h(x.loading)&&(e.loadingComp=Sn(x.loading,t),0===x.delay?e.loading=!0:l=setTimeout((function(){l=null,c(e.resolved)&&c(e.error)&&(e.loading=!0,v(!1))}),x.delay||200)),h(x.timeout)&&(d=setTimeout((function(){d=null,c(e.resolved)&&_(null)}),x.timeout)))),o=!1,e.loading?e.loadingComp:e.resolved}}(v=e,d),void 0===e))return function(e,data,t,n,r){var o=ke();return o.asyncFactory=e,o.asyncMeta={data:data,context:t,children:n,tag:r},o}(v,data,t,n,r);data=data||{},mi(e),h(data.model)&&function(e,data){var t=e.model&&e.model.prop||"value",n=e.model&&e.model.event||"input";(data.attrs||(data.attrs={}))[t]=data.model.value;var r=data.on||(data.on={}),o=r[n],c=data.model.callback;h(o)?(l(o)?-1===o.indexOf(c):o!==c)&&(r[n]=[c].concat(o)):r[n]=c}(e.options,data);var y=function(data,e,t){var n=e.options.props;if(!c(n)){var r={},o=data.attrs,l=data.props;if(h(o)||h(l))for(var f in n){var d=j(f);$t(r,l,f,d,!0)||$t(r,o,f,d,!1)}return r}}(data,e);if(f(e.options.functional))return function(e,t,data,n,r){var c=e.options,f={},d=c.props;if(h(d))for(var v in d)f[v]=ni(v,d,t||o);else h(data.attrs)&&$r(f,data.attrs),h(data.props)&&$r(f,data.props);var m=new Br(data,f,r,n,e),y=c.render.call(null,m._c,m);if(y instanceof Se)return zr(y,data,m.parent,c);if(l(y)){for(var _=Vt(y)||[],x=new Array(_.length),i=0;i<_.length;i++)x[i]=zr(_[i],data,m.parent,c);return x}}(e,y,data,t,n);var _=data.on;if(data.on=data.nativeOn,f(e.options.abstract)){var slot=data.slot;data={},slot&&(data.slot=slot)}!function(data){for(var e=data.hook||(data.hook={}),i=0;i<qr.length;i++){var t=qr[i],n=e[t],r=Hr[t];n===r||n&&n._merged||(e[t]=n?Ur(r,n):r)}}(data);var x=Vr(e.options)||r;return new Se("vue-component-".concat(e.cid).concat(x?"-".concat(x):""),data,void 0,void 0,void 0,t,{Ctor:e,propsData:y,listeners:_,tag:r,children:n},v)}}}function Ur(e,t){var n=function(a,b){e(a,b),t(a,b)};return n._merged=!0,n}var Gr=$,Yr=J.optionMergeStrategies;function Kr(e,t,n){if(void 0===n&&(n=!0),!t)return e;for(var r,o,l,c=be?Reflect.ownKeys(t):Object.keys(t),i=0;i<c.length;i++)"__ob__"!==(r=c[i])&&(o=e[r],l=t[r],n&&M(e,r)?o!==l&&_(o)&&_(l)&&Kr(o,l):He(e,r,l));return e}function Xr(e,t,n){return n?function(){var r=v(t)?t.call(n,n):t,o=v(e)?e.call(n,n):e;return r?Kr(r,o):o}:t?e?function(){return Kr(v(t)?t.call(this,this):t,v(e)?e.call(this,this):e)}:t:e}function Zr(e,t){var n=t?e?e.concat(t):l(t)?t:[t]:e;return n?function(e){for(var t=[],i=0;i<e.length;i++)-1===t.indexOf(e[i])&&t.push(e[i]);return t}(n):n}function Jr(e,t,n,r){var o=Object.create(e||null);return t?B(o,t):o}Yr.data=function(e,t,n){return n?Xr(e,t,n):t&&"function"!=typeof t?e:Xr(e,t)},Z.forEach((function(e){Yr[e]=Zr})),X.forEach((function(e){Yr[e+"s"]=Jr})),Yr.watch=function(e,t,n,r){if(e===fe&&(e=void 0),t===fe&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var o={};for(var c in B(o,e),t){var h=o[c],f=t[c];h&&!l(h)&&(h=[h]),o[c]=h?h.concat(f):l(f)?f:[f]}return o},Yr.props=Yr.methods=Yr.inject=Yr.computed=function(e,t,n,r){if(!e)return t;var o=Object.create(null);return B(o,e),t&&B(o,t),o},Yr.provide=function(e,t){return e?function(){var n=Object.create(null);return Kr(n,v(e)?e.call(this):e),t&&Kr(n,v(t)?t.call(this):t,!1),n}:t};var Qr=function(e,t){return void 0===t?e:t};function ei(e,t,n){if(v(t)&&(t=t.options),function(e,t){var n=e.props;if(n){var i,r,o={};if(l(n))for(i=n.length;i--;)"string"==typeof(r=n[i])&&(o[P(r)]={type:null});else if(_(n))for(var c in n)r=n[c],o[P(c)]=_(r)?r:{type:r};e.props=o}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(l(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(_(n))for(var o in n){var c=n[o];r[o]=_(c)?B({from:o},c):{from:c}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];v(r)&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=ei(e,t.extends,n)),t.mixins))for(var i=0,r=t.mixins.length;i<r;i++)e=ei(e,t.mixins[i],n);var o,c={};for(o in e)h(o);for(o in t)M(e,o)||h(o);function h(r){var o=Yr[r]||Qr;c[r]=o(e[r],t[r],n,r)}return c}function ti(e,t,n,r){if("string"==typeof n){var o=e[t];if(M(o,n))return o[n];var l=P(n);if(M(o,l))return o[l];var c=N(l);return M(o,c)?o[c]:o[n]||o[l]||o[c]}}function ni(e,t,n,r){var o=t[e],l=!M(n,e),c=n[e],h=ai(Boolean,o.type);if(h>-1)if(l&&!M(o,"default"))c=!1;else if(""===c||c===j(e)){var f=ai(String,o.type);(f<0||h<f)&&(c=!0)}if(void 0===c){c=function(e,t,n){if(!M(t,"default"))return;var r=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return v(r)&&"Function"!==ii(t.type)?r.call(e):r}(r,o,e);var d=Re;Fe(!0),$e(c),Fe(d)}return c}var ri=/^\s*function (\w+)/;function ii(e){var t=e&&e.toString().match(ri);return t?t[1]:""}function oi(a,b){return ii(a)===ii(b)}function ai(e,t){if(!l(t))return oi(t,e)?0:-1;for(var i=0,n=t.length;i<n;i++)if(oi(t[i],e))return i;return-1}var si={enumerable:!0,configurable:!0,get:$,set:$};function ui(e,t,n){si.get=function(){return this[t][n]},si.set=function(e){this[t][n]=e},Object.defineProperty(e,n,si)}function ci(e){var t=e.$options;if(t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props=Ue({}),o=e.$options._propKeys=[];e.$parent&&Fe(!1);var l=function(l){o.push(l);var c=ni(l,t,n,e);Ve(r,l,c),l in e||ui(e,"_props",l)};for(var c in t)l(c);Fe(!0)}(e,t.props),function(e){var t=e.$options,n=t.setup;if(n){var r=e._setupContext=dn(e);we(e),Ie();var o=An(n,null,[e._props||Ue({}),r],e,"setup");if(De(),we(),v(o))t.render=o;else if(m(o))if(e._setupState=o,o.__sfc){var l=e._setupProxy={};for(var c in o)"__sfc"!==c&&ut(l,o,c)}else for(var c in o)ee(c)||ut(e,o,c)}}(e),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?$:R(t[n],e)}(e,t.methods),t.data)!function(e){var data=e.$options.data;_(data=e._data=v(data)?function(data,e){Ie();try{return data.call(e,e)}catch(t){return En(t,e,"data()"),{}}finally{De()}}(data,e):data||{})||(data={});var t=Object.keys(data),n=e.$options.props,i=(e.$options.methods,t.length);for(;i--;){var r=t[i];0,n&&M(n,r)||ee(r)||ui(e,"_data",r)}var o=$e(data);o&&o.vmCount++}(e);else{var n=$e(e._data={});n&&n.vmCount++}t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ge();for(var o in t){var l=t[o],c=v(l)?l:l.get;0,r||(n[o]=new pr(e,c||$,$,hi)),o in e||fi(e,o,l)}}(e,t.computed),t.watch&&t.watch!==fe&&function(e,t){for(var n in t){var r=t[n];if(l(r))for(var i=0;i<r.length;i++)gi(e,n,r[i]);else gi(e,n,r)}}(e,t.watch)}var hi={lazy:!0};function fi(e,t,n){var r=!ge();v(n)?(si.get=r?di(t):pi(n),si.set=$):(si.get=n.get?r&&!1!==n.cache?di(t):pi(n.get):$,si.set=n.set||$),Object.defineProperty(e,t,si)}function di(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Ae.target&&t.depend(),t.value}}function pi(e){return function(){return e.call(this,this)}}function gi(e,t,n,r){return _(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var vi=0;function mi(e){var t=e.options;if(e.super){var n=mi(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var o in n)n[o]!==r[o]&&(t||(t={}),t[o]=n[o]);return t}(e);r&&B(e.extendOptions,r),(t=e.options=ei(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function yi(e){this._init(e)}function bi(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var l=Vr(e)||Vr(n.options);var c=function(e){this._init(e)};return(c.prototype=Object.create(n.prototype)).constructor=c,c.cid=t++,c.options=ei(n.options,e),c.super=n,c.options.props&&function(e){var t=e.options.props;for(var n in t)ui(e.prototype,"_props",n)}(c),c.options.computed&&function(e){var t=e.options.computed;for(var n in t)fi(e.prototype,n,t[n])}(c),c.extend=n.extend,c.mixin=n.mixin,c.use=n.use,X.forEach((function(e){c[e]=n[e]})),l&&(c.options.components[l]=c),c.superOptions=n.options,c.extendOptions=e,c.sealedOptions=B({},c.options),o[r]=c,c}}function _i(e){return e&&(Vr(e.Ctor.options)||e.tag)}function xi(pattern,e){return l(pattern)?pattern.indexOf(e)>-1:"string"==typeof pattern?pattern.split(",").indexOf(e)>-1:!!x(pattern)&&pattern.test(e)}function wi(e,filter){var t=e.cache,n=e.keys,r=e._vnode;for(var o in t){var l=t[o];if(l){var c=l.name;c&&!filter(c)&&Si(t,o,n,r)}}}function Si(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,E(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=vi++,t._isVue=!0,t.__v_skip=!0,t._scope=new Mt(!0),t._scope._vm=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=ei(mi(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&yr(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=sn(t._renderChildren,r),e.$scopedSlots=n?cn(e.$parent,n.data.scopedSlots,e.$slots):o,e._c=function(a,b,t,n){return On(e,a,b,t,n,!1)},e.$createElement=function(a,b,t,n){return On(e,a,b,t,n,!0)};var l=n&&n.data;Ve(e,"$attrs",l&&l.attrs||o,null,!0),Ve(e,"$listeners",t._parentListeners||o,null,!0)}(t),Or(t,"beforeCreate",void 0,!1),function(e){var t=Fr(e.$options.inject,e);t&&(Fe(!1),Object.keys(t).forEach((function(n){Ve(e,n,t[n])})),Fe(!0))}(t),ci(t),function(e){var t=e.$options.provide;if(t){var n=v(t)?t.call(e):t;if(!m(n))return;for(var source=Lt(e),r=be?Reflect.ownKeys(n):Object.keys(n),i=0;i<r.length;i++){var o=r[i];Object.defineProperty(source,o,Object.getOwnPropertyDescriptor(n,o))}}}(t),Or(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(yi),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=He,e.prototype.$delete=del,e.prototype.$watch=function(e,t,n){var r=this;if(_(t))return gi(r,e,t,n);(n=n||{}).user=!0;var o=new pr(r,e,t,n);if(n.immediate){var l='callback for immediate watcher "'.concat(o.expression,'"');Ie(),An(t,r,[o.value],r,l),De()}return function(){o.teardown()}}}(yi),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(l(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(l(e)){for(var r=0,o=e.length;r<o;r++)n.$off(e[r],t);return n}var c,h=n._events[e];if(!h)return n;if(!t)return n._events[e]=null,n;for(var i=h.length;i--;)if((c=h[i])===t||c.fn===t){h.splice(i,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?F(n):n;for(var r=F(arguments,1),o='event handler for "'.concat(e,'"'),i=0,l=n.length;i<l;i++)An(n[i],t,r,t,o)}return t}}(yi),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,o=n._vnode,l=xr(n);n._vnode=e,n.$el=o?n.__patch__(o,e):n.__patch__(n.$el,e,t,!1),l(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var c=n;c&&c.$vnode&&c.$parent&&c.$vnode===c.$parent._vnode;)c.$parent.$el=c.$el,c=c.$parent},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Or(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||E(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Or(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(yi),function(e){an(e.prototype),e.prototype.$nextTick=function(e){return $n(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,o=n._parentVnode;o&&t._isMounted&&(t.$scopedSlots=cn(t.$parent,o.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&vn(t._slotsProxy,t.$scopedSlots)),t.$vnode=o;try{we(t),wn=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){En(n,t,"render"),e=t._vnode}finally{wn=null,we()}return l(e)&&1===e.length&&(e=e[0]),e instanceof Se||(e=ke()),e.parent=o,e}}(yi);var ki=[String,RegExp,Array],Oi={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:ki,exclude:ki,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,o=e.keyToCache;if(r){var l=r.tag,c=r.componentInstance,h=r.componentOptions;t[o]={name:_i(h),tag:l,componentInstance:c},n.push(o),this.max&&n.length>parseInt(this.max)&&Si(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Si(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){wi(e,(function(e){return xi(t,e)}))})),this.$watch("exclude",(function(t){wi(e,(function(e){return!xi(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var slot=this.$slots.default,e=kn(slot),t=e&&e.componentOptions;if(t){var n=_i(t),r=this.include,o=this.exclude;if(r&&(!n||!xi(r,n))||o&&n&&xi(o,n))return e;var l=this.cache,c=this.keys,h=null==e.key?t.Ctor.cid+(t.tag?"::".concat(t.tag):""):e.key;l[h]?(e.componentInstance=l[h].componentInstance,E(c,h),c.push(h)):(this.vnodeToCache=e,this.keyToCache=h),e.data.keepAlive=!0}return e||slot&&slot[0]}}};!function(e){var t={get:function(){return J}};Object.defineProperty(e,"config",t),e.util={warn:Gr,extend:B,mergeOptions:ei,defineReactive:Ve},e.set=He,e.delete=del,e.nextTick=$n,e.observable=function(e){return $e(e),e},e.options=Object.create(null),X.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,B(e.options.components,Oi),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=F(arguments,1);return n.unshift(this),v(e.install)?e.install.apply(e,n):v(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=ei(this.options,e),this}}(e),bi(e),function(e){X.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&_(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&v(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(yi),Object.defineProperty(yi.prototype,"$isServer",{get:ge}),Object.defineProperty(yi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(yi,"FunctionalRenderContext",{value:Br}),yi.version=ar;var Ci=C("style,class"),Ti=C("input,textarea,option,select,progress"),Ei=C("contenteditable,draggable,spellcheck"),Ai=C("events,caret,typing,plaintext-only"),Mi=C("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,truespeed,typemustmatch,visible"),Ii="http://www.w3.org/1999/xlink",Di=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Pi=function(e){return Di(e)?e.slice(6,e.length):""},Ni=function(e){return null==e||!1===e};function Li(e){for(var data=e.data,t=e,n=e;h(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(data=ji(n.data,data));for(;h(t=t.parent);)t&&t.data&&(data=ji(data,t.data));return function(e,t){if(h(e)||h(t))return Ri(e,Fi(t));return""}(data.staticClass,data.class)}function ji(e,t){return{staticClass:Ri(e.staticClass,t.staticClass),class:h(e.class)?[e.class,t.class]:t.class}}function Ri(a,b){return a?b?a+" "+b:a:b||""}function Fi(e){return Array.isArray(e)?function(e){for(var t,n="",i=0,r=e.length;i<r;i++)h(t=Fi(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):m(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Bi={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},zi=C("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),$i=C("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Vi=function(e){return zi(e)||$i(e)};var Hi=Object.create(null);var qi=C("text,number,password,search,email,tel,url");var Wi=Object.freeze({__proto__:null,createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Bi[e],t)},createTextNode:function(text){return document.createTextNode(text)},createComment:function(text){return document.createComment(text)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,text){e.textContent=text},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Ui={create:function(e,t){Gi(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Gi(e,!0),Gi(t))},destroy:function(e){Gi(e,!0)}};function Gi(e,t){var n=e.data.ref;if(h(n)){var r=e.context,o=e.componentInstance||e.elm,c=t?null:o,f=t?void 0:o;if(v(n))An(n,r,[c],r,"template ref function");else{var d=e.data.refInFor,m="string"==typeof n||"number"==typeof n,y=tt(n),_=r.$refs;if(m||y)if(d){var x=m?_[n]:n.value;t?l(x)&&E(x,o):l(x)?x.includes(o)||x.push(o):m?(_[n]=[o],Yi(r,n,_[n])):n.value=[o]}else if(m){if(t&&_[n]!==o)return;_[n]=f,Yi(r,n,c)}else if(y){if(t&&n.value!==o)return;n.value=c}else 0}}}function Yi(e,t,n){var r=e._setupState;r&&M(r,t)&&(tt(r[t])?r[t].value=n:r[t]=n)}var Ki=new Se("",{},[]),Xi=["create","activate","update","remove","destroy"];function Zi(a,b){return a.key===b.key&&a.asyncFactory===b.asyncFactory&&(a.tag===b.tag&&a.isComment===b.isComment&&h(a.data)===h(b.data)&&function(a,b){if("input"!==a.tag)return!0;var i,e=h(i=a.data)&&h(i=i.attrs)&&i.type,t=h(i=b.data)&&h(i=i.attrs)&&i.type;return e===t||qi(e)&&qi(t)}(a,b)||f(a.isAsyncPlaceholder)&&c(b.asyncFactory.error))}function Ji(e,t,n){var i,r,map={};for(i=t;i<=n;++i)h(r=e[i].key)&&(map[r]=i);return map}var Qi={create:eo,update:eo,destroy:function(e){eo(e,Ki)}};function eo(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,o,l=e===Ki,c=t===Ki,h=no(e.data.directives,e.context),f=no(t.data.directives,t.context),d=[],v=[];for(n in f)r=h[n],o=f[n],r?(o.oldValue=r.value,o.oldArg=r.arg,io(o,"update",t,e),o.def&&o.def.componentUpdated&&v.push(o)):(io(o,"bind",t,e),o.def&&o.def.inserted&&d.push(o));if(d.length){var m=function(){for(var i=0;i<d.length;i++)io(d[i],"inserted",t,e)};l?zt(t,"insert",m):m()}v.length&&zt(t,"postpatch",(function(){for(var i=0;i<v.length;i++)io(v[i],"componentUpdated",t,e)}));if(!l)for(n in h)f[n]||io(h[n],"unbind",e,e,c)}(e,t)}var to=Object.create(null);function no(e,t){var i,n,r=Object.create(null);if(!e)return r;for(i=0;i<e.length;i++){if((n=e[i]).modifiers||(n.modifiers=to),r[ro(n)]=n,t._setupState&&t._setupState.__sfc){var o=n.def||ti(t,"_setupState","v-"+n.name);n.def="function"==typeof o?{bind:o,update:o}:o}n.def=n.def||ti(t.$options,"directives",n.name)}return r}function ro(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function io(e,t,n,r,o){var l=e.def&&e.def[t];if(l)try{l(n.elm,e,n,r,o)}catch(r){En(r,n.context,"directive ".concat(e.name," ").concat(t," hook"))}}var oo=[Ui,Qi];function ao(e,t){var n=t.componentOptions;if(!(h(n)&&!1===n.Ctor.options.inheritAttrs||c(e.data.attrs)&&c(t.data.attrs))){var r,o,l=t.elm,d=e.data.attrs||{},v=t.data.attrs||{};for(r in(h(v.__ob__)||f(v._v_attr_proxy))&&(v=t.data.attrs=B({},v)),v)o=v[r],d[r]!==o&&so(l,r,o,t.data.pre);for(r in(ae||le)&&v.value!==d.value&&so(l,"value",v.value),d)c(v[r])&&(Di(r)?l.removeAttributeNS(Ii,Pi(r)):Ei(r)||l.removeAttribute(r))}}function so(e,t,n,r){r||e.tagName.indexOf("-")>-1?lo(e,t,n):Mi(t)?Ni(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Ei(t)?e.setAttribute(t,function(e,t){return Ni(t)||"false"===t?"false":"contenteditable"===e&&Ai(t)?t:"true"}(t,n)):Di(t)?Ni(n)?e.removeAttributeNS(Ii,Pi(t)):e.setAttributeNS(Ii,t,n):lo(e,t,n)}function lo(e,t,n){if(Ni(n))e.removeAttribute(t);else{if(ae&&!se&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var uo={create:ao,update:ao};function co(e,t){var n=t.elm,data=t.data,r=e.data;if(!(c(data.staticClass)&&c(data.class)&&(c(r)||c(r.staticClass)&&c(r.class)))){var o=Li(t),l=n._transitionClasses;h(l)&&(o=Ri(o,Fi(l))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var ho,fo={create:co,update:co};function po(e,t,n){var r=ho;return function o(){var l=t.apply(null,arguments);null!==l&&mo(e,o,n,r)}}var go=Pn&&!(he&&Number(he[1])<=53);function vo(e,t,n,r){if(go){var o=Dr,l=t;t=l._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=o||e.timeStamp<=0||e.target.ownerDocument!==document)return l.apply(this,arguments)}}ho.addEventListener(e,t,de?{capture:n,passive:r}:n)}function mo(e,t,n,r){(r||ho).removeEventListener(e,t._wrapper||t,n)}function yo(e,t){if(!c(e.data.on)||!c(t.data.on)){var n=t.data.on||{},r=e.data.on||{};ho=t.elm||e.elm,function(e){if(h(e.__r)){var t=ae?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}h(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),Bt(n,r,vo,mo,po,t.context),ho=void 0}}var bo,_o={create:yo,update:yo,destroy:function(e){return yo(e,Ki)}};function xo(e,t){if(!c(e.data.domProps)||!c(t.data.domProps)){var n,r,o=t.elm,l=e.data.domProps||{},d=t.data.domProps||{};for(n in(h(d.__ob__)||f(d._v_attr_proxy))&&(d=t.data.domProps=B({},d)),l)n in d||(o[n]="");for(n in d){if(r=d[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===l[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var v=c(r)?"":String(r);wo(o,v)&&(o.value=v)}else if("innerHTML"===n&&$i(o.tagName)&&c(o.innerHTML)){(bo=bo||document.createElement("div")).innerHTML="<svg>".concat(r,"</svg>");for(var svg=bo.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;svg.firstChild;)o.appendChild(svg.firstChild)}else if(r!==l[n])try{o[n]=r}catch(e){}}}}function wo(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(h(r)){if(r.number)return O(n)!==O(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var So={create:xo,update:xo},ko=I((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Oo(data){var style=Co(data.style);return data.staticStyle?B(data.staticStyle,style):style}function Co(e){return Array.isArray(e)?z(e):"string"==typeof e?ko(e):e}var To,Eo=/^--/,Ao=/\s*!important$/,Mo=function(e,t,n){if(Eo.test(t))e.style.setProperty(t,n);else if(Ao.test(n))e.style.setProperty(j(t),n.replace(Ao,""),"important");else{var r=Do(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},Io=["Webkit","Moz","ms"],Do=I((function(e){if(To=To||document.createElement("div").style,"filter"!==(e=P(e))&&e in To)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<Io.length;i++){var n=Io[i]+t;if(n in To)return n}}));function Po(e,t){var data=t.data,n=e.data;if(!(c(data.staticStyle)&&c(data.style)&&c(n.staticStyle)&&c(n.style))){var r,o,l=t.elm,f=n.staticStyle,d=n.normalizedStyle||n.style||{},v=f||d,style=Co(t.data.style)||{};t.data.normalizedStyle=h(style.__ob__)?B({},style):style;var m=function(e,t){var n,r={};if(t)for(var o=e;o.componentInstance;)(o=o.componentInstance._vnode)&&o.data&&(n=Oo(o.data))&&B(r,n);(n=Oo(e.data))&&B(r,n);for(var l=e;l=l.parent;)l.data&&(n=Oo(l.data))&&B(r,n);return r}(t,!0);for(o in v)c(m[o])&&Mo(l,o,"");for(o in m)(r=m[o])!==v[o]&&Mo(l,o,null==r?"":r)}}var style={create:Po,update:Po},No=/\s+/;function Lo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(No).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function jo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(No).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Ro(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&B(t,Fo(e.name||"v")),B(t,e),t}return"string"==typeof e?Fo(e):void 0}}var Fo=I((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),Bo=ie&&!se,zo="transition",$o="animation",Vo="transition",Ho="transitionend",qo="animation",Wo="animationend";Bo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Vo="WebkitTransition",Ho="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(qo="WebkitAnimation",Wo="webkitAnimationEnd"));var Uo=ie?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Go(e){Uo((function(){Uo(e)}))}function Yo(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Lo(e,t))}function Ko(e,t){e._transitionClasses&&E(e._transitionClasses,t),jo(e,t)}function Xo(e,t,n){var r=Jo(e,t),o=r.type,l=r.timeout,c=r.propCount;if(!o)return n();var h=o===zo?Ho:Wo,f=0,d=function(){e.removeEventListener(h,v),n()},v=function(t){t.target===e&&++f>=c&&d()};setTimeout((function(){f<c&&d()}),l+1),e.addEventListener(h,v)}var Zo=/\b(transform|all)(,|$)/;function Jo(e,t){var n,r=window.getComputedStyle(e),o=(r[Vo+"Delay"]||"").split(", "),l=(r[Vo+"Duration"]||"").split(", "),c=Qo(o,l),h=(r[qo+"Delay"]||"").split(", "),f=(r[qo+"Duration"]||"").split(", "),d=Qo(h,f),v=0,m=0;return t===zo?c>0&&(n=zo,v=c,m=l.length):t===$o?d>0&&(n=$o,v=d,m=f.length):m=(n=(v=Math.max(c,d))>0?c>d?zo:$o:null)?n===zo?l.length:f.length:0,{type:n,timeout:v,propCount:m,hasTransform:n===zo&&Zo.test(r[Vo+"Property"])}}function Qo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,i){return ea(t)+ea(e[i])})))}function ea(s){return 1e3*Number(s.slice(0,-1).replace(",","."))}function ta(e,t){var n=e.elm;h(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var data=Ro(e.data.transition);if(!c(data)&&!h(n._enterCb)&&1===n.nodeType){for(var r=data.css,o=data.type,l=data.enterClass,f=data.enterToClass,d=data.enterActiveClass,y=data.appearClass,_=data.appearToClass,x=data.appearActiveClass,w=data.beforeEnter,S=data.enter,k=data.afterEnter,C=data.enterCancelled,T=data.beforeAppear,E=data.appear,A=data.afterAppear,M=data.appearCancelled,I=data.duration,D=_r,P=_r.$vnode;P&&P.parent;)D=P.context,P=P.parent;var N=!D._isMounted||!e.isRootInsert;if(!N||E||""===E){var L=N&&y?y:l,j=N&&x?x:d,R=N&&_?_:f,F=N&&T||w,B=N&&v(E)?E:S,z=N&&A||k,$=N&&M||C,V=O(m(I)?I.enter:I);0;var H=!1!==r&&!se,W=ia(B),U=n._enterCb=G((function(){H&&(Ko(n,R),Ko(n,j)),U.cancelled?(H&&Ko(n,L),$&&$(n)):z&&z(n),n._enterCb=null}));e.data.show||zt(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),B&&B(n,U)})),F&&F(n),H&&(Yo(n,L),Yo(n,j),Go((function(){Ko(n,L),U.cancelled||(Yo(n,R),W||(ra(V)?setTimeout(U,V):Xo(n,o,U)))}))),e.data.show&&(t&&t(),B&&B(n,U)),H||W||U()}}}function na(e,t){var n=e.elm;h(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var data=Ro(e.data.transition);if(c(data)||1!==n.nodeType)return t();if(!h(n._leaveCb)){var r=data.css,o=data.type,l=data.leaveClass,f=data.leaveToClass,d=data.leaveActiveClass,v=data.beforeLeave,y=data.leave,_=data.afterLeave,x=data.leaveCancelled,w=data.delayLeave,S=data.duration,k=!1!==r&&!se,C=ia(y),T=O(m(S)?S.leave:S);0;var E=n._leaveCb=G((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),k&&(Ko(n,f),Ko(n,d)),E.cancelled?(k&&Ko(n,l),x&&x(n)):(t(),_&&_(n)),n._leaveCb=null}));w?w(A):A()}function A(){E.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),v&&v(n),k&&(Yo(n,l),Yo(n,d),Go((function(){Ko(n,l),E.cancelled||(Yo(n,f),C||(ra(T)?setTimeout(E,T):Xo(n,o,E)))}))),y&&y(n,E),k||C||E())}}function ra(e){return"number"==typeof e&&!isNaN(e)}function ia(e){if(c(e))return!1;var t=e.fns;return h(t)?ia(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function oa(e,t){!0!==t.data.show&&ta(t)}var aa=function(e){var i,t,n={},r=e.modules,o=e.nodeOps;for(i=0;i<Xi.length;++i)for(n[Xi[i]]=[],t=0;t<r.length;++t)h(r[t][Xi[i]])&&n[Xi[i]].push(r[t][Xi[i]]);function v(e){var t=o.parentNode(e);h(t)&&o.removeChild(t,e)}function m(e,t,r,l,c,d,v){if(h(e.elm)&&h(d)&&(e=d[v]=Ce(e)),e.isRootInsert=!c,!function(e,t,r,o){var i=e.data;if(h(i)){var l=h(e.componentInstance)&&i.keepAlive;if(h(i=i.hook)&&h(i=i.init)&&i(e,!1),h(e.componentInstance))return y(e,t),_(r,e.elm,o),f(l)&&function(e,t,r,o){var i,l=e;for(;l.componentInstance;)if(h(i=(l=l.componentInstance._vnode).data)&&h(i=i.transition)){for(i=0;i<n.activate.length;++i)n.activate[i](Ki,l);t.push(l);break}_(r,e.elm,o)}(e,t,r,o),!0}}(e,t,r,l)){var data=e.data,m=e.children,w=e.tag;h(w)?(e.elm=e.ns?o.createElementNS(e.ns,w):o.createElement(w,e),k(e),x(e,m,t),h(data)&&S(e,t),_(r,e.elm,l)):f(e.isComment)?(e.elm=o.createComment(e.text),_(r,e.elm,l)):(e.elm=o.createTextNode(e.text),_(r,e.elm,l))}}function y(e,t){h(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,w(e)?(S(e,t),k(e)):(Gi(e),t.push(e))}function _(e,t,n){h(e)&&(h(n)?o.parentNode(n)===e&&o.insertBefore(e,t,n):o.appendChild(e,t))}function x(e,t,n){if(l(t)){0;for(var r=0;r<t.length;++r)m(t[r],n,e.elm,null,!0,t,r)}else d(e.text)&&o.appendChild(e.elm,o.createTextNode(String(e.text)))}function w(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return h(e.tag)}function S(e,t){for(var r=0;r<n.create.length;++r)n.create[r](Ki,e);h(i=e.data.hook)&&(h(i.create)&&i.create(Ki,e),h(i.insert)&&t.push(e))}function k(e){var i;if(h(i=e.fnScopeId))o.setStyleScope(e.elm,i);else for(var t=e;t;)h(i=t.context)&&h(i=i.$options._scopeId)&&o.setStyleScope(e.elm,i),t=t.parent;h(i=_r)&&i!==e.context&&i!==e.fnContext&&h(i=i.$options._scopeId)&&o.setStyleScope(e.elm,i)}function O(e,t,n,r,o,l){for(;r<=o;++r)m(n[r],l,e,t,!1,n,r)}function T(e){var i,t,data=e.data;if(h(data))for(h(i=data.hook)&&h(i=i.destroy)&&i(e),i=0;i<n.destroy.length;++i)n.destroy[i](e);if(h(i=e.children))for(t=0;t<e.children.length;++t)T(e.children[t])}function E(e,t,n){for(;t<=n;++t){var r=e[t];h(r)&&(h(r.tag)?(A(r),T(r)):v(r.elm))}}function A(e,t){if(h(t)||h(e.data)){var r,o=n.remove.length+1;for(h(t)?t.listeners+=o:t=function(e,t){function n(){0==--n.listeners&&v(e)}return n.listeners=t,n}(e.elm,o),h(r=e.componentInstance)&&h(r=r._vnode)&&h(r.data)&&A(r,t),r=0;r<n.remove.length;++r)n.remove[r](e,t);h(r=e.data.hook)&&h(r=r.remove)?r(e,t):t()}else v(e.elm)}function M(e,t,n,r){for(var o=n;o<r;o++){var l=t[o];if(h(l)&&Zi(e,l))return o}}function I(e,t,r,l,d,v){if(e!==t){h(t.elm)&&h(l)&&(t=l[d]=Ce(t));var y=t.elm=e.elm;if(f(e.isAsyncPlaceholder))h(t.asyncFactory.resolved)?N(e.elm,t,r):t.isAsyncPlaceholder=!0;else if(f(t.isStatic)&&f(e.isStatic)&&t.key===e.key&&(f(t.isCloned)||f(t.isOnce)))t.componentInstance=e.componentInstance;else{var i,data=t.data;h(data)&&h(i=data.hook)&&h(i=i.prepatch)&&i(e,t);var _=e.children,x=t.children;if(h(data)&&w(t)){for(i=0;i<n.update.length;++i)n.update[i](e,t);h(i=data.hook)&&h(i=i.update)&&i(e,t)}c(t.text)?h(_)&&h(x)?_!==x&&function(e,t,n,r,l){var f,d,v,y=0,_=0,x=t.length-1,w=t[0],S=t[x],k=n.length-1,C=n[0],T=n[k],A=!l;for(;y<=x&&_<=k;)c(w)?w=t[++y]:c(S)?S=t[--x]:Zi(w,C)?(I(w,C,r,n,_),w=t[++y],C=n[++_]):Zi(S,T)?(I(S,T,r,n,k),S=t[--x],T=n[--k]):Zi(w,T)?(I(w,T,r,n,k),A&&o.insertBefore(e,w.elm,o.nextSibling(S.elm)),w=t[++y],T=n[--k]):Zi(S,C)?(I(S,C,r,n,_),A&&o.insertBefore(e,S.elm,w.elm),S=t[--x],C=n[++_]):(c(f)&&(f=Ji(t,y,x)),c(d=h(C.key)?f[C.key]:M(C,t,y,x))?m(C,r,e,w.elm,!1,n,_):Zi(v=t[d],C)?(I(v,C,r,n,_),t[d]=void 0,A&&o.insertBefore(e,v.elm,w.elm)):m(C,r,e,w.elm,!1,n,_),C=n[++_]);y>x?O(e,c(n[k+1])?null:n[k+1].elm,n,_,k,r):_>k&&E(t,y,x)}(y,_,x,r,v):h(x)?(h(e.text)&&o.setTextContent(y,""),O(y,null,x,0,x.length-1,r)):h(_)?E(_,0,_.length-1):h(e.text)&&o.setTextContent(y,""):e.text!==t.text&&o.setTextContent(y,t.text),h(data)&&h(i=data.hook)&&h(i=i.postpatch)&&i(e,t)}}}function D(e,t,n){if(f(n)&&h(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var P=C("attrs,class,staticClass,staticStyle,key");function N(e,t,n,r){var i,o=t.tag,data=t.data,l=t.children;if(r=r||data&&data.pre,t.elm=e,f(t.isComment)&&h(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(h(data)&&(h(i=data.hook)&&h(i=i.init)&&i(t,!0),h(i=t.componentInstance)))return y(t,n),!0;if(h(o)){if(h(l))if(e.hasChildNodes())if(h(i=data)&&h(i=i.domProps)&&h(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var c=!0,d=e.firstChild,v=0;v<l.length;v++){if(!d||!N(d,l[v],n,r)){c=!1;break}d=d.nextSibling}if(!c||d)return!1}else x(t,l,n);if(h(data)){var m=!1;for(var _ in data)if(!P(_)){m=!0,S(t,n);break}!m&&data.class&&ur(data.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,r,l){if(!c(t)){var d,v=!1,y=[];if(c(e))v=!0,m(t,y);else{var _=h(e.nodeType);if(!_&&Zi(e,t))I(e,t,y,null,null,l);else{if(_){if(1===e.nodeType&&e.hasAttribute(K)&&(e.removeAttribute(K),r=!0),f(r)&&N(e,t,y))return D(t,y,!0),e;d=e,e=new Se(o.tagName(d).toLowerCase(),{},[],void 0,d)}var x=e.elm,S=o.parentNode(x);if(m(t,y,x._leaveCb?null:S,o.nextSibling(x)),h(t.parent))for(var k=t.parent,O=w(t);k;){for(var C=0;C<n.destroy.length;++C)n.destroy[C](k);if(k.elm=t.elm,O){for(var A=0;A<n.create.length;++A)n.create[A](Ki,k);var M=k.data.hook.insert;if(M.merged)for(var P=1;P<M.fns.length;P++)M.fns[P]()}else Gi(k);k=k.parent}h(S)?E([e],0,0):h(e.tag)&&T(e)}}return D(t,y,v),t.elm}h(e)&&T(e)}}({nodeOps:Wi,modules:[uo,fo,_o,So,style,ie?{create:oa,activate:oa,remove:function(e,t){!0!==e.data.show?na(e,t):t()}}:{}].concat(oo)});se&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&pa(e,"input")}));var sa={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?zt(n,"postpatch",(function(){sa.componentUpdated(e,t,n)})):la(e,t,n.context),e._vOptions=[].map.call(e.options,ha)):("textarea"===n.tag||qi(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",fa),e.addEventListener("compositionend",da),e.addEventListener("change",da),se&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){la(e,t,n.context);var r=e._vOptions,o=e._vOptions=[].map.call(e.options,ha);if(o.some((function(e,i){return!W(e,r[i])})))(e.multiple?t.value.some((function(e){return ca(e,o)})):t.value!==t.oldValue&&ca(t.value,o))&&pa(e,"change")}}};function la(e,t,n){ua(e,t,n),(ae||le)&&setTimeout((function(){ua(e,t,n)}),0)}function ua(e,t,n){var r=t.value,o=e.multiple;if(!o||Array.isArray(r)){for(var l,option,i=0,c=e.options.length;i<c;i++)if(option=e.options[i],o)l=U(r,ha(option))>-1,option.selected!==l&&(option.selected=l);else if(W(ha(option),r))return void(e.selectedIndex!==i&&(e.selectedIndex=i));o||(e.selectedIndex=-1)}}function ca(e,t){return t.every((function(t){return!W(t,e)}))}function ha(option){return"_value"in option?option._value:option.value}function fa(e){e.target.composing=!0}function da(e){e.target.composing&&(e.target.composing=!1,pa(e.target,"input"))}function pa(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ga(e){return!e.componentInstance||e.data&&e.data.transition?e:ga(e.componentInstance._vnode)}var va={bind:function(e,t,n){var r=t.value,o=(n=ga(n)).data&&n.data.transition,l=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&o?(n.data.show=!0,ta(n,(function(){e.style.display=l}))):e.style.display=r?l:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=ga(n)).data&&n.data.transition?(n.data.show=!0,r?ta(n,(function(){e.style.display=e.__vOriginalDisplay})):na(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},ma={model:sa,show:va},ya={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 ba(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?ba(kn(t.children)):e}function _a(e){var data={},t=e.$options;for(var n in t.propsData)data[n]=e[n];var r=t._parentListeners;for(var n in r)data[P(n)]=r[n];return data}function xa(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var wa=function(e){return e.tag||un(e)},Sa=function(e){return"show"===e.name},ka={name:"transition",props:ya,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(wa)).length){0;var r=this.mode;0;var o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var l=ba(o);if(!l)return o;if(this._leaving)return xa(e,o);var c="__transition-".concat(this._uid,"-");l.key=null==l.key?l.isComment?c+"comment":c+l.tag:d(l.key)?0===String(l.key).indexOf(c)?l.key:c+l.key:l.key;var data=(l.data||(l.data={})).transition=_a(this),h=this._vnode,f=ba(h);if(l.data.directives&&l.data.directives.some(Sa)&&(l.data.show=!0),f&&f.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(l,f)&&!un(f)&&(!f.componentInstance||!f.componentInstance._vnode.isComment)){var v=f.data.transition=B({},data);if("out-in"===r)return this._leaving=!0,zt(v,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),xa(e,o);if("in-out"===r){if(un(l))return h;var m,y=function(){m()};zt(data,"afterEnter",y),zt(data,"enterCancelled",y),zt(v,"delayLeave",(function(e){m=e}))}}return o}}},Oa=B({tag:String,moveClass:String},ya);delete Oa.mode;var Ca={props:Oa,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var o=xr(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,o(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",map=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],l=_a(this),i=0;i<r.length;i++){if((f=r[i]).tag)if(null!=f.key&&0!==String(f.key).indexOf("__vlist"))o.push(f),map[f.key]=f,(f.data||(f.data={})).transition=l;else;}if(n){var c=[],h=[];for(i=0;i<n.length;i++){var f;(f=n[i]).data.transition=l,f.data.pos=f.elm.getBoundingClientRect(),map[f.key]?c.push(f):h.push(f)}this.kept=e(t,null,c),this.removed=h}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Ta),e.forEach(Ea),e.forEach(Aa),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,s=n.style;Yo(n,t),s.transform=s.WebkitTransform=s.transitionDuration="",n.addEventListener(Ho,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ho,e),n._moveCb=null,Ko(n,t))})}})))},methods:{hasMove:function(e,t){if(!Bo)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){jo(n,e)})),Lo(n,t),n.style.display="none",this.$el.appendChild(n);var r=Jo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Ta(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ea(e){e.data.newPos=e.elm.getBoundingClientRect()}function Aa(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var s=e.elm.style;s.transform=s.WebkitTransform="translate(".concat(r,"px,").concat(o,"px)"),s.transitionDuration="0s"}}var Ma={Transition:ka,TransitionGroup:Ca};yi.config.mustUseProp=function(e,t,n){return"value"===n&&Ti(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},yi.config.isReservedTag=Vi,yi.config.isReservedAttr=Ci,yi.config.getTagNamespace=function(e){return $i(e)?"svg":"math"===e?"math":void 0},yi.config.isUnknownElement=function(e){if(!ie)return!0;if(Vi(e))return!1;if(e=e.toLowerCase(),null!=Hi[e])return Hi[e];var t=document.createElement(e);return e.indexOf("-")>-1?Hi[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Hi[e]=/HTMLUnknownElement/.test(t.toString())},B(yi.options.directives,ma),B(yi.options.components,Ma),yi.prototype.__patch__=ie?aa:$,yi.prototype.$mount=function(e,t){return function(e,t,n){var r;e.$el=t,e.$options.render||(e.$options.render=ke),Or(e,"beforeMount"),r=function(){e._update(e._render(),n)},new pr(e,r,$,{before:function(){e._isMounted&&!e._isDestroyed&&Or(e,"beforeUpdate")}},!0),n=!1;var o=e._preWatchers;if(o)for(var i=0;i<o.length;i++)o[i].run();return null==e.$vnode&&(e._isMounted=!0,Or(e,"mounted")),e}(this,e=e&&ie?function(e){if("string"==typeof e){return document.querySelector(e)||document.createElement("div")}return e}(e):void 0,t)},ie&&setTimeout((function(){J.devtools&&ve&&ve.emit("init",yi)}),0)}.call(this,n(52),n(304).setImmediate)},function(e,t,n){"use strict";var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},o=new function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?o.worker=!0:"undefined"==typeof navigator?(o.node=!0,o.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),o=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),l=e.match(/Edge?\/([\d.]+)/),c=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);o&&(n.ie=!0,n.version=o[1]);l&&(n.edge=!0,n.version=l[1],n.newEdge=+l[1].split(".")[0]>18);c&&(n.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var style=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in style||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in style)&&!("OTransition"in style),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,o),t.a=o},function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"g",(function(){return S})),n.d(t,"c",(function(){return O})),n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return T})),n.d(t,"f",(function(){return E})),n.d(t,"e",(function(){return A})),n.d(t,"h",(function(){return M})),n.d(t,"d",(function(){return I}));var r=n(43),o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function l(i){return(i=Math.round(i))<0?0:i>255?255:i}function c(e){return e<0?0:e>1?1:e}function h(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?l(parseFloat(t)/100*255):l(parseInt(t,10))}function f(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?c(parseFloat(t)/100):c(parseFloat(t))}function d(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function v(a,b,p){return a+(b-a)*p}function m(e,t,g,b,a){return e[0]=t,e[1]=g,e[2]=b,e[3]=a,e}function y(e,a){return e[0]=a[0],e[1]=a[1],e[2]=a[2],e[3]=a[3],e}var _=new r.a(20),x=null;function w(e,t){x&&y(x,t),x=_.put(e,x||t.slice())}function S(e,t){if(e){t=t||[];var n=_.get(e);if(n)return y(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in o)return y(t,o[r]),w(e,t),t;var l,c=r.length;if("#"===r.charAt(0))return 4===c||5===c?(l=parseInt(r.slice(1,4),16))>=0&&l<=4095?(m(t,(3840&l)>>4|(3840&l)>>8,240&l|(240&l)>>4,15&l|(15&l)<<4,5===c?parseInt(r.slice(4),16)/15:1),w(e,t),t):void m(t,0,0,0,1):7===c||9===c?(l=parseInt(r.slice(1,7),16))>=0&&l<=16777215?(m(t,(16711680&l)>>16,(65280&l)>>8,255&l,9===c?parseInt(r.slice(7),16)/255:1),w(e,t),t):void m(t,0,0,0,1):void 0;var d=r.indexOf("("),v=r.indexOf(")");if(-1!==d&&v+1===c){var x=r.substr(0,d),S=r.substr(d+1,v-(d+1)).split(","),O=1;switch(x){case"rgba":if(4!==S.length)return 3===S.length?m(t,+S[0],+S[1],+S[2],1):m(t,0,0,0,1);O=f(S.pop());case"rgb":return S.length>=3?(m(t,h(S[0]),h(S[1]),h(S[2]),3===S.length?O:f(S[3])),w(e,t),t):void m(t,0,0,0,1);case"hsla":return 4!==S.length?void m(t,0,0,0,1):(S[3]=f(S[3]),k(S,t),w(e,t),t);case"hsl":return 3!==S.length?void m(t,0,0,0,1):(k(S,t),w(e,t),t);default:return}}m(t,0,0,0,1)}}function k(e,t){var n=(parseFloat(e[0])%360+360)%360/360,s=f(e[1]),r=f(e[2]),o=r<=.5?r*(s+1):r+s-r*s,c=2*r-o;return m(t=t||[],l(255*d(c,o,n+1/3)),l(255*d(c,o,n)),l(255*d(c,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function O(e,t){var n=S(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return M(n,4===n.length?"rgba":"rgb")}}function C(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),o=Math.floor(r),h=Math.ceil(r),f=t[o],d=t[h],m=r-o;return n[0]=l(v(f[0],d[0],m)),n[1]=l(v(f[1],d[1],m)),n[2]=l(v(f[2],d[2],m)),n[3]=c(v(f[3],d[3],m)),n}}function T(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),o=Math.floor(r),h=Math.ceil(r),f=S(t[o]),d=S(t[h]),m=r-o,y=M([l(v(f[0],d[0],m)),l(v(f[1],d[1],m)),l(v(f[2],d[2],m)),c(v(f[3],d[3],m))],"rgba");return n?{color:y,leftIndex:o,rightIndex:h,value:r}:y}}function E(e,t,s,n){var i,r=S(e);if(e)return r=function(e){if(e){var t,n,r=e[0]/255,o=e[1]/255,l=e[2]/255,c=Math.min(r,o,l),h=Math.max(r,o,l),f=h-c,d=(h+c)/2;if(0===f)t=0,n=0;else{n=d<.5?f/(h+c):f/(2-h-c);var v=((h-r)/6+f/2)/f,m=((h-o)/6+f/2)/f,y=((h-l)/6+f/2)/f;r===h?t=y-m:o===h?t=1/3+v-y:l===h&&(t=2/3+m-v),t<0&&(t+=1),t>1&&(t-=1)}var _=[360*t,n,d];return null!=e[3]&&_.push(e[3]),_}}(r),null!=t&&(r[0]=(i=t,(i=Math.round(i))<0?0:i>360?360:i)),null!=s&&(r[1]=f(s)),null!=n&&(r[2]=f(n)),M(k(r),"rgba")}function A(e,t){var n=S(e);if(n&&null!=t)return n[3]=c(t),M(n,"rgba")}function M(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function I(e,t){var n=S(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}},function(e,t,n){"use strict";function r(e,t,n,r,o,l,c){try{var h=e[l](c),f=h.value}catch(e){return void n(e)}h.done?t(f):Promise.resolve(f).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,l){var c=e.apply(t,n);function h(e){r(c,o,l,h,f,"next",e)}function f(e){r(c,o,l,h,f,"throw",e)}h(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";(function(e){n.d(t,"p",(function(){return h})),n.d(t,"j",(function(){return d})),n.d(t,"q",(function(){return m})),n.d(t,"e",(function(){return y})),n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return x})),n.d(t,"i",(function(){return w})),n.d(t,"h",(function(){return S})),n.d(t,"l",(function(){return k})),n.d(t,"n",(function(){return O})),n.d(t,"m",(function(){return C})),n.d(t,"o",(function(){return T})),n.d(t,"k",(function(){return E})),n.d(t,"d",(function(){return A})),n.d(t,"f",(function(){return M})),n.d(t,"g",(function(){return I})),n.d(t,"c",(function(){return D}));var r=n(0),o=n(5),l=n(3),c=Math.round;function h(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var n=Object(o.g)(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var f=1e-4;function d(e){return e<f&&e>-1e-4}function v(e){return c(1e3*e)/1e3}function m(e){return c(1e4*e)/1e4}function y(e){return"matrix("+v(e[0])+","+v(e[1])+","+v(e[2])+","+v(e[3])+","+m(e[4])+","+m(e[5])+")"}var _={left:"start",right:"end",center:"middle",middle:"middle"};function x(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function w(style){return style&&(style.shadowBlur||style.shadowOffsetX||style.shadowOffsetY)}function S(e){var style=e.style,t=e.getGlobalScale();return[style.shadowColor,(style.shadowBlur||0).toFixed(2),(style.shadowOffsetX||0).toFixed(2),(style.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function k(e){return e&&!!e.image}function O(e){return k(e)||function(e){return e&&!!e.svgElement}(e)}function C(e){return"linear"===e.type}function T(e){return"radial"===e.type}function E(e){return e&&("linear"===e.type||"radial"===e.type)}function A(e){return"url(#"+e+")"}function M(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function I(e){var t=e.x||0,n=e.y||0,o=(e.rotation||0)*r.a,l=Object(r.P)(e.scaleX,1),h=Object(r.P)(e.scaleY,1),f=e.skewX||0,d=e.skewY||0,v=[];return(t||n)&&v.push("translate("+t+"px,"+n+"px)"),o&&v.push("rotate("+o+")"),1===l&&1===h||v.push("scale("+l+","+h+")"),(f||d)&&v.push("skew("+c(f*r.a)+"deg, "+c(d*r.a)+"deg)"),v.join(" ")}var D=l.a.hasGlobalWindow&&Object(r.w)(window.btoa)?function(e){return window.btoa(unescape(e))}:void 0!==e?function(t){return e.from(t).toString("base64")}:function(e){return null}}).call(this,n(261).Buffer)},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return v}));var r=12,o="sans-serif",l=r+"px "+o;var c,h,f=function(e){var map={};if("undefined"==typeof JSON)return map;for(var i=0;i<e.length;i++){var t=String.fromCharCode(i+32),n=(e.charCodeAt(i)-20)/100;map[t]=n}return map}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),d={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(text,e){if(!c){var canvas=d.createCanvas();c=canvas&&canvas.getContext("2d")}if(c)return h!==e&&(h=c.font=e||l),c.measureText(text);text=text||"";var t=/^([0-9]*?)px$/.exec(e=e||l),n=+(t&&t[1])||r,o=0;if(e.indexOf("mono")>=0)o=n*text.length;else for(var i=0;i<text.length;i++){var v=f[text[i]];o+=null==v?n:v*n}return{width:o}},loadImage:function(e,t,n){var image=new Image;return image.onload=t,image.onerror=n,image.src=e,image}};function v(e){for(var t in d)e[t]&&(d[t]=e[t])}},function(e,t,n){var r=n(11),o=n(53),l=n(39),c=n(34),h=n(45),f=function(e,t,source){var n,d,v,m,y=e&f.F,_=e&f.G,x=e&f.S,w=e&f.P,S=e&f.B,k=_?r:x?r[t]||(r[t]={}):(r[t]||{}).prototype,O=_?o:o[t]||(o[t]={}),C=O.prototype||(O.prototype={});for(n in _&&(source=t),source)v=((d=!y&&k&&void 0!==k[n])?k:source)[n],m=S&&d?h(v,r):w&&"function"==typeof v?h(Function.call,v):v,k&&c(k,n,v,e&f.U),O[n]!=v&&l(O,n,m),w&&C[n]!=v&&(C[n]=v)};r.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";var r=n(92),o={};o[n(13)("toStringTag")]="z",o+""!="[object z]"&&n(34)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(e,t,n){var r=n(104)("wks"),o=n(62),l=n(11).Symbol,c="function"==typeof l;(e.exports=function(e){return r[e]||(r[e]=c&&l[e]||(c?l:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(101);var o=n(132),l=n(81);function c(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(l.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";var r=n(11),o=n(44),l=n(17),c=n(9),h=n(34),f=n(144).KEY,d=n(16),v=n(104),m=n(74),y=n(62),_=n(13),x=n(194),w=n(279),S=n(280),k=n(196),O=n(20),C=n(25),T=n(42),E=n(46),A=n(88),M=n(73),I=n(91),D=n(282),P=n(75),N=n(106),L=n(23),j=n(64),R=P.f,F=L.f,B=D.f,z=r.Symbol,$=r.JSON,V=$&&$.stringify,H=_("_hidden"),W=_("toPrimitive"),U={}.propertyIsEnumerable,G=v("symbol-registry"),Y=v("symbols"),K=v("op-symbols"),X=Object.prototype,Z="function"==typeof z&&!!N.f,J=r.QObject,Q=!J||!J.prototype||!J.prototype.findChild,ee=l&&d((function(){return 7!=I(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=R(X,t);r&&delete X[t],F(e,t,n),r&&e!==X&&F(X,t,r)}:F,te=function(e){var t=Y[e]=I(z.prototype);return t._k=e,t},ne=Z&&"symbol"==typeof z.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof z},re=function(e,t,n){return e===X&&re(K,t,n),O(e),t=A(t,!0),O(n),o(Y,t)?(n.enumerable?(o(e,H)&&e[H][t]&&(e[H][t]=!1),n=I(n,{enumerable:M(0,!1)})):(o(e,H)||F(e,H,M(1,{})),e[H][t]=!0),ee(e,t,n)):F(e,t,n)},ie=function(e,t){O(e);for(var n,r=S(t=E(t)),i=0,o=r.length;o>i;)re(e,n=r[i++],t[n]);return e},oe=function(e){var t=U.call(this,e=A(e,!0));return!(this===X&&o(Y,e)&&!o(K,e))&&(!(t||!o(this,e)||!o(Y,e)||o(this,H)&&this[H][e])||t)},ae=function(e,t){if(e=E(e),t=A(t,!0),e!==X||!o(Y,t)||o(K,t)){var n=R(e,t);return!n||!o(Y,t)||o(e,H)&&e[H][t]||(n.enumerable=!0),n}},se=function(e){for(var t,n=B(E(e)),r=[],i=0;n.length>i;)o(Y,t=n[i++])||t==H||t==f||r.push(t);return r},le=function(e){for(var t,n=e===X,r=B(n?K:E(e)),l=[],i=0;r.length>i;)!o(Y,t=r[i++])||n&&!o(X,t)||l.push(Y[t]);return l};Z||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor!");var e=y(arguments.length>0?arguments[0]:void 0),t=function(n){this===X&&t.call(K,n),o(this,H)&&o(this[H],e)&&(this[H][e]=!1),ee(this,e,M(1,n))};return l&&Q&&ee(X,e,{configurable:!0,set:t}),te(e)},h(z.prototype,"toString",(function(){return this._k})),P.f=ae,L.f=re,n(65).f=D.f=se,n(90).f=oe,N.f=le,l&&!n(63)&&h(X,"propertyIsEnumerable",oe,!0),x.f=function(e){return te(_(e))}),c(c.G+c.W+c.F*!Z,{Symbol:z});for(var ue="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ce=0;ue.length>ce;)_(ue[ce++]);for(var he=j(_.store),fe=0;he.length>fe;)w(he[fe++]);c(c.S+c.F*!Z,"Symbol",{for:function(e){return o(G,e+="")?G[e]:G[e]=z(e)},keyFor:function(e){if(!ne(e))throw TypeError(e+" is not a symbol!");for(var t in G)if(G[t]===e)return t},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),c(c.S+c.F*!Z,"Object",{create:function(e,t){return void 0===t?I(e):ie(I(e),t)},defineProperty:re,defineProperties:ie,getOwnPropertyDescriptor:ae,getOwnPropertyNames:se,getOwnPropertySymbols:le});var de=d((function(){N.f(1)}));c(c.S+c.F*de,"Object",{getOwnPropertySymbols:function(e){return N.f(T(e))}}),$&&c(c.S+c.F*(!Z||d((function(){var e=z();return"[null]"!=V([e])||"{}"!=V({a:e})||"{}"!=V(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(C(t)||void 0!==e)&&!ne(e))return k(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!ne(t))return t}),r[1]=t,V.apply($,r)}}),z.prototype[W]||n(39)(z.prototype,W,z.prototype.valueOf),m(z,"Symbol"),m(Math,"Math",!0),m(r.JSON,"JSON",!0)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){e.exports=!n(16)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(23).f,o=Function.prototype,l=/^\s*function ([^ (]*)/,c="name";c in o||n(17)&&r(o,c,{configurable:!0,get:function(){try{return(""+this).match(l)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(9),o=n(96)(2);r(r.P+r.F*!n(204)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(25);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(42),o=n(64);n(205)("keys",(function(){return function(e){return o(r(e))}}))},function(e,t,n){var r=n(20),o=n(193),l=n(88),c=Object.defineProperty;t.f=n(17)?Object.defineProperty:function(e,t,n){if(r(e),t=l(t,!0),r(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(55),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return E}));var r=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,r=(n=function(t){return t.original===e},t.filter(n)[0]);if(r)return r.copy;var l=Array.isArray(e)?[]:{};return t.push({original:e,copy:l}),Object.keys(e).forEach((function(n){l[n]=o(e[n],t)})),l}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"==typeof e}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){l(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,f);var d=function(e){this.register([],e,!1)};function v(path,e,t){if(e.update(t),t.modules)for(var n in t.modules){if(!e.getChild(n))return void 0;v(path.concat(n),e.getChild(n),t.modules[n])}}d.prototype.get=function(path){return path.reduce((function(e,t){return e.getChild(t)}),this.root)},d.prototype.getNamespace=function(path){var e=this.root;return path.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},d.prototype.update=function(e){v([],this.root,e)},d.prototype.register=function(path,e,t){var n=this;void 0===t&&(t=!0);var r=new h(e,t);0===path.length?this.root=r:this.get(path.slice(0,-1)).addChild(path[path.length-1],r);e.modules&&l(e.modules,(function(e,r){n.register(path.concat(r),e,t)}))},d.prototype.unregister=function(path){var e=this.get(path.slice(0,-1)),t=path[path.length-1],n=e.getChild(t);n&&n.runtime&&e.removeChild(t)},d.prototype.isRegistered=function(path){var e=this.get(path.slice(0,-1)),t=path[path.length-1];return!!e&&e.hasChild(t)};var m;var y=function(e){var t=this;void 0===e&&(e={}),!m&&"undefined"!=typeof window&&window.Vue&&T(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var o=e.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var l=this,c=this.dispatch,h=this.commit;this.dispatch=function(e,t){return c.call(l,e,t)},this.commit=function(e,t,n){return h.call(l,e,t,n)},this.strict=o;var f=this._modules.root.state;k(this,f,[],this._modules.root),S(this,f),n.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:m.config.devtools)&&function(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},_={state:{configurable:!0}};function x(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;k(e,n,[],e._modules.root,!0),S(e,n,t)}function S(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,c={};l(o,(function(t,n){c[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var h=m.config.silent;m.config.silent=!0,e._vm=new m({data:{$$state:t},computed:c}),m.config.silent=h,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),m.nextTick((function(){return r.$destroy()})))}function k(e,t,path,n,r){var o=!path.length,l=e._modules.getNamespace(path);if(n.namespaced&&(e._modulesNamespaceMap[l],e._modulesNamespaceMap[l]=n),!o&&!r){var c=O(t,path.slice(0,-1)),h=path[path.length-1];e._withCommit((function(){m.set(c,h,n.state)}))}var f=n.context=function(e,t,path){var n=""===t,r={dispatch:n?e.dispatch:function(n,r,o){var l=C(n,r,o),c=l.payload,h=l.options,f=l.type;return h&&h.root||(f=t+f),e.dispatch(f,c)},commit:n?e.commit:function(n,r,o){var l=C(n,r,o),c=l.payload,h=l.options,f=l.type;h&&h.root||(f=t+f),e.commit(f,c,h)}};return Object.defineProperties(r,{getters:{get:n?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,r)===t){var l=o.slice(r);Object.defineProperty(n,l,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return O(e.state,path)}}}),r}(e,l,path);n.forEachMutation((function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,r.state,t)}))}(e,l+n,t,f)})),n.forEachAction((function(t,n){var r=t.root?n:l+n,o=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push((function(t){var o,l=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(o=l)&&"function"==typeof o.then||(l=Promise.resolve(l)),e._devtoolHook?l.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):l}))}(e,r,o,f)})),n.forEachGetter((function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,l+n,t,f)})),n.forEachChild((function(n,o){k(e,t,path.concat(o),n,r)}))}function O(e,path){return path.reduce((function(e,t){return e[t]}),e)}function C(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function T(e){m&&e===m||function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(m=e)}_.state.get=function(){return this._vm._data.$$state},_.state.set=function(e){0},y.prototype.commit=function(e,t,n){var r=this,o=C(e,t,n),l=o.type,c=o.payload,h=(o.options,{type:l,payload:c}),f=this._mutations[l];f&&(this._withCommit((function(){f.forEach((function(e){e(c)}))})),this._subscribers.slice().forEach((function(sub){return sub(h,r.state)})))},y.prototype.dispatch=function(e,t){var n=this,r=C(e,t),o=r.type,l=r.payload,c={type:o,payload:l},h=this._actions[o];if(h){try{this._actionSubscribers.slice().filter((function(sub){return sub.before})).forEach((function(sub){return sub.before(c,n.state)}))}catch(e){0}var f=h.length>1?Promise.all(h.map((function(e){return e(l)}))):h[0](l);return new Promise((function(e,t){f.then((function(t){try{n._actionSubscribers.filter((function(sub){return sub.after})).forEach((function(sub){return sub.after(c,n.state)}))}catch(e){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(sub){return sub.error})).forEach((function(sub){return sub.error(c,n.state,e)}))}catch(e){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return x(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){return x("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},y.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(path,e,t){void 0===t&&(t={}),"string"==typeof path&&(path=[path]),this._modules.register(path,e),k(this,this.state,path,this._modules.get(path),t.preserveState),S(this,this.state)},y.prototype.unregisterModule=function(path){var e=this;"string"==typeof path&&(path=[path]),this._modules.unregister(path),this._withCommit((function(){var t=O(e.state,path.slice(0,-1));m.delete(t,path[path.length-1])})),w(this)},y.prototype.hasModule=function(path){return"string"==typeof path&&(path=[path]),this._modules.isRegistered(path)},y.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,_);var E=P((function(e,t){var n={};return D(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=N(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0})),n})),A=P((function(e,t){var n={};return D(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var l=N(this.$store,"mapMutations",e);if(!l)return;r=l.context.commit}return"function"==typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),M=P((function(e,t){var n={};return D(t).forEach((function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||N(this.$store,"mapGetters",e))return this.$store.getters[o]},n[r].vuex=!0})),n})),I=P((function(e,t){var n={};return D(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var l=N(this.$store,"mapActions",e);if(!l)return;r=l.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n}));function D(map){return function(map){return Array.isArray(map)||c(map)}(map)?Array.isArray(map)?map.map((function(e){return{key:e,val:e}})):Object.keys(map).map((function(e){return{key:e,val:map[e]}})):[]}function P(e){return function(t,map){return"string"!=typeof t?(map=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,map)}}function N(e,t,n){return e._modulesNamespaceMap[n]}function L(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(n){e.log(t)}}function j(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function R(){var time=new Date;return" @ "+F(time.getHours(),2)+":"+F(time.getMinutes(),2)+":"+F(time.getSeconds(),2)+"."+F(time.getMilliseconds(),3)}function F(e,t){return n="0",r=t-e.toString().length,new Array(r+1).join(n)+e;var n,r}var B={Store:y,install:T,version:"3.6.2",mapState:E,mapMutations:A,mapGetters:M,mapActions:I,createNamespacedHelpers:function(e){return{mapState:E.bind(null,e),mapGetters:M.bind(null,e),mapMutations:A.bind(null,e),mapActions:I.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var filter=e.filter;void 0===filter&&(filter=function(e,t,n){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var l=e.actionFilter;void 0===l&&(l=function(e,t){return!0});var c=e.actionTransformer;void 0===c&&(c=function(e){return e});var h=e.logMutations;void 0===h&&(h=!0);var f=e.logActions;void 0===f&&(f=!0);var d=e.logger;return void 0===d&&(d=console),function(e){var v=o(e.state);void 0!==d&&(h&&e.subscribe((function(e,l){var c=o(l);if(filter(e,v,c)){var h=R(),f=r(e),m="mutation "+e.type+h;L(d,m,t),d.log("%c prev state","color: #9E9E9E; font-weight: bold",n(v)),d.log("%c mutation","color: #03A9F4; font-weight: bold",f),d.log("%c next state","color: #4CAF50; font-weight: bold",n(c)),j(d)}v=c})),f&&e.subscribeAction((function(e,n){if(l(e,n)){var r=R(),o=c(e),h="action "+e.type+r;L(d,h,t),d.log("%c action","color: #03A9F4; font-weight: bold",o),j(d)}})))}}};t.a=B}).call(this,n(52))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(130);var o=n(81),l=n(131);function c(e,i){return Object(r.a)(e)||function(e,i){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],l=!0,c=!1;try{for(t=t.call(e);!(l=(n=t.next()).done)&&(o.push(n.value),!i||o.length!==i);l=!0);}catch(e){c=!0,r=e}finally{try{l||null==t.return||t.return()}finally{if(c)throw r}}return o}}(e,i)||Object(o.a)(e,i)||Object(l.a)()}},function(e,t,n){"use strict";var r=n(9),html=n(143),o=n(54),l=n(89),c=n(24),h=[].slice;r(r.P+r.F*n(16)((function(){html&&h.call(html)})),"Array",{slice:function(e,t){var n=c(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return h.call(this,e,t);for(var f=l(e,n),d=l(t,n),v=c(d-f),m=new Array(v),i=0;i<v;i++)m[i]="String"==r?this.charAt(f+i):this[f+i];return m}})},function(e,t,n){"use strict";var r=n(235),o=Object.prototype.toString;function l(e){return"[object Array]"===o.call(e)}function c(e){return void 0===e}function h(e){return null!==e&&"object"==typeof e}function f(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){return"[object Function]"===o.call(e)}function v(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:l,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:h,isPlainObject:f,isUndefined:c,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:d,isStream:function(e){return h(e)&&d(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:v,merge:function e(){var t={};function n(n,r){f(t[r])&&f(n)?t[r]=e(t[r],n):f(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var i=0,r=arguments.length;i<r;i++)v(arguments[i],n);return t},extend:function(a,b,e){return v(b,(function(t,n){a[n]=e&&"function"==typeof t?r(t,e):t})),a},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(content){return 65279===content.charCodeAt(0)&&(content=content.slice(1)),content}}},function(e,t){!function(t){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag",d="object"==typeof e,v=t.regeneratorRuntime;if(v)d&&(e.exports=v);else{(v=t.regeneratorRuntime=d?e.exports:{}).wrap=T;var m="suspendedStart",y="suspendedYield",_="executing",x="completed",w={},S={};S[c]=function(){return this};var k=Object.getPrototypeOf,O=k&&k(k(F([])));O&&O!==r&&o.call(O,c)&&(S=O);var C=I.prototype=A.prototype=Object.create(S);M.prototype=C.constructor=I,I.constructor=M,I[f]=M.displayName="GeneratorFunction",v.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===M||"GeneratorFunction"===(t.displayName||t.name))},v.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,I):(e.__proto__=I,f in e||(e[f]="GeneratorFunction")),e.prototype=Object.create(C),e},v.awrap=function(e){return{__await:e}},D(P.prototype),P.prototype[h]=function(){return this},v.AsyncIterator=P,v.async=function(e,t,n,r){var o=new P(T(e,t,n,r));return v.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},D(C),C[f]="Generator",C[c]=function(){return this},C.toString=function(){return"[object Generator]"},v.keys=function(object){var e=[];for(var t in object)e.push(t);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in object)return t.value=n,t.done=!1,t}return t.done=!0,t}},v.values=F,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return c.type="throw",c.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var l=this.tryEntries[i],c=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),f=o.call(l,"finallyLoc");if(h&&f){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var l=r?r.completion:{};return l.type=e,l.arg=t,r?(this.method="next",this.next=r.finallyLoc,w):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),w},finish:function(e){for(var i=this.tryEntries.length-1;i>=0;--i){var t=this.tryEntries[i];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),j(t),w}},catch:function(e){for(var i=this.tryEntries.length-1;i>=0;--i){var t=this.tryEntries[i];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var r=n.arg;j(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:F(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),w}}}function T(e,t,n,r){var o=t&&t.prototype instanceof A?t:A,l=Object.create(o.prototype),c=new R(r||[]);return l._invoke=function(e,t,n){var r=m;return function(o,l){if(r===_)throw new Error("Generator is already running");if(r===x){if("throw"===o)throw l;return B()}for(n.method=o,n.arg=l;;){var c=n.delegate;if(c){var h=N(c,n);if(h){if(h===w)continue;return h}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===m)throw r=x,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=_;var f=E(e,t,n);if("normal"===f.type){if(r=n.done?x:y,f.arg===w)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(r=x,n.method="throw",n.arg=f.arg)}}}(e,n,c),l}function E(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function A(){}function M(){}function I(){}function D(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function P(e){function t(n,r,l,c){var h=E(e[n],e,r);if("throw"!==h.type){var f=h.arg,d=f.value;return d&&"object"==typeof d&&o.call(d,"__await")?Promise.resolve(d.__await).then((function(e){t("next",e,l,c)}),(function(e){t("throw",e,l,c)})):Promise.resolve(d).then((function(e){f.value=e,l(f)}),c)}c(h.arg)}var n;this._invoke=function(e,r){function o(){return new Promise((function(n,o){t(e,r,n,o)}))}return n=n?n.then(o,o):o()}}function N(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,N(e,t),"throw"===t.method))return w;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return w}var o=E(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,w;var l=o.arg;return l?l.done?(t[e.resultName]=l.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,w):l:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,w)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function F(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(o.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=n,t.done=!0,t};return r.next=r}}return{next:B}}function B(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},function(e,t,n){var r=n(46),o=n(75).f;n(205)("getOwnPropertyDescriptor",(function(){return function(e,t){return o(r(e),t)}}))},function(e,t,n){var r=n(9),o=n(296),l=n(46),c=n(75),h=n(198);r(r.S,"Object",{getOwnPropertyDescriptors:function(object){for(var e,desc,t=l(object),n=c.f,r=o(t),f={},i=0;r.length>i;)void 0!==(desc=n(t,e=r[i++]))&&h(f,e,desc);return f}})},function(e,t,n){for(var r=n(151),o=n(64),l=n(34),c=n(11),h=n(39),f=n(76),d=n(13),v=d("iterator"),m=d("toStringTag"),y=f.Array,_={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},x=o(_),i=0;i<x.length;i++){var w,S=x[i],k=_[S],O=c[S],C=O&&O.prototype;if(C&&(C[v]||h(C,v,y),C[m]||h(C,m,S),f[S]=y,k))for(w in r)C[w]||l(C,w,r[w],!0)}},function(e,t,n){var r=n(11),o=n(39),l=n(44),c=n(62)("src"),h=n(278),f="toString",d=(""+h).split(f);n(53).inspectSource=function(e){return h.call(e)},(e.exports=function(e,t,n,h){var f="function"==typeof n;f&&(l(n,"name")||o(n,"name",t)),e[t]!==n&&(f&&(l(n,c)||o(n,c,e[t]?""+e[t]:d.join(String(t)))),e===r?e[t]=n:h?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,f,(function(){return"function"==typeof this&&this[c]||h.call(this)}))},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(389)),o=c(n(401)),l="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function c(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===l(r.default)?function(e){return void 0===e?"undefined":l(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":l(e)}},function(e,t,n){var r,o;!function(l){if(void 0===(o="function"==typeof(r=l)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=l(),!!0){var c=window.Cookies,h=window.Cookies=l();h.noConflict=function(){return window.Cookies=c,h}}}((function(){function e(){for(var i=0,e={};i<arguments.length;i++){var t=arguments[i];for(var n in t)e[n]=t[n]}return e}function t(s){return s.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function l(t,n,l){if("undefined"!=typeof document){"number"==typeof(l=e({path:"/"},o.defaults,l)).expires&&(l.expires=new Date(1*new Date+864e5*l.expires)),l.expires=l.expires?l.expires.toUTCString():"";try{var c=JSON.stringify(n);/^[\{\[]/.test(c)&&(n=c)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var h="";for(var f in l)l[f]&&(h+="; "+f,!0!==l[f]&&(h+="="+l[f].split(";")[0]));return document.cookie=t+"="+n+h}}function c(e,n){if("undefined"!=typeof document){for(var o={},l=document.cookie?document.cookie.split("; "):[],i=0;i<l.length;i++){var c=l[i].split("="),h=c.slice(1).join("=");n||'"'!==h.charAt(0)||(h=h.slice(1,-1));try{var f=t(c[0]);if(h=(r.read||r)(h,f)||t(h),n)try{h=JSON.parse(h)}catch(e){}if(o[f]=h,e===f)break}catch(e){}}return e?o[e]:o}}return o.set=l,o.get=function(e){return c(e,!1)},o.getJSON=function(e){return c(e,!0)},o.remove=function(t,n){l(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t,n){"use strict";var r=n(206)(!0);n(152)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(45),o=n(9),l=n(42),c=n(197),h=n(149),f=n(24),d=n(198),v=n(150);o(o.S+o.F*!n(107)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,m,y=l(e),_="function"==typeof this?this:Array,x=arguments.length,w=x>1?arguments[1]:void 0,S=void 0!==w,k=0,O=v(y);if(S&&(w=r(w,x>2?arguments[2]:void 0,2)),null==O||_==Array&&h(O))for(n=new _(t=f(y.length));t>k;k++)d(n,k,S?w(y[k],k):y[k]);else for(m=O.call(y),n=new _;!(o=m.next()).done;k++)d(n,k,S?c(m,w,[o.value,k],!0):o.value);return n.length=k,n}})},function(e,t,n){var r=n(23),o=n(73);e.exports=n(17)?function(object,e,t){return r.f(object,e,o(1,t))}:function(object,e,t){return object[e]=t,object}},function(e,t,n){"use strict";function r(a,b){for(var e in b)a[e]=b[e];return a}n.d(t,"c",(function(){return tt}));var o=/[!'()*]/g,l=function(e){return"%"+e.charCodeAt(0).toString(16)},c=/%2C/g,h=function(e){return encodeURIComponent(e).replace(o,l).replace(c,",")};function f(e){try{return decodeURIComponent(e)}catch(e){0}return e}var d=function(e){return null==e||"object"==typeof e?e:String(e)};function v(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(param){var e=param.replace(/\+/g," ").split("="),n=f(e.shift()),r=e.length>0?f(e.join("=")):null;void 0===t[n]?t[n]=r:Array.isArray(t[n])?t[n].push(r):t[n]=[t[n],r]})),t):t}function m(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return h(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(h(t)):r.push(h(t)+"="+h(e)))})),r.join("&")}return h(t)+"="+h(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var y=/\/?$/;function _(e,t,n,r){var o=r&&r.options.stringifyQuery,l=t.query||{};try{l=x(l)}catch(e){}var c={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:l,params:t.params||{},fullPath:k(t,o),matched:e?S(e):[]};return n&&(c.redirectedFrom=k(n,o)),Object.freeze(c)}function x(e){if(Array.isArray(e))return e.map(x);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=x(e[n]);return t}return e}var w=_(null,{path:"/"});function S(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function k(e,t){var path=e.path,n=e.query;void 0===n&&(n={});var r=e.hash;return void 0===r&&(r=""),(path||"/")+(t||m)(n)+r}function O(a,b,e){return b===w?a===b:!!b&&(a.path&&b.path?a.path.replace(y,"")===b.path.replace(y,"")&&(e||a.hash===b.hash&&C(a.query,b.query)):!(!a.name||!b.name)&&(a.name===b.name&&(e||a.hash===b.hash&&C(a.query,b.query)&&C(a.params,b.params))))}function C(a,b){if(void 0===a&&(a={}),void 0===b&&(b={}),!a||!b)return a===b;var e=Object.keys(a).sort(),t=Object.keys(b).sort();return e.length===t.length&&e.every((function(e,i){var n=a[e];if(t[i]!==e)return!1;var r=b[e];return null==n||null==r?n===r:"object"==typeof n&&"object"==typeof r?C(n,r):String(n)===String(r)}))}function T(e){for(var i=0;i<e.matched.length;i++){var t=e.matched[i];for(var n in t.instances){var r=t.instances[n],o=t.enteredCbs[n];if(r&&o){delete t.enteredCbs[n];for(var l=0;l<o.length;l++)r._isBeingDestroyed||o[l](r)}}}}var E={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,o=t.children,l=t.parent,data=t.data;data.routerView=!0;for(var c=l.$createElement,h=n.name,f=l.$route,d=l._routerViewCache||(l._routerViewCache={}),v=0,m=!1;l&&l._routerRoot!==l;){var y=l.$vnode?l.$vnode.data:{};y.routerView&&v++,y.keepAlive&&l._directInactive&&l._inactive&&(m=!0),l=l.$parent}if(data.routerViewDepth=v,m){var _=d[h],x=_&&_.component;return x?(_.configProps&&A(x,data,_.route,_.configProps),c(x,data,o)):c()}var w=f.matched[v],component=w&&w.components[h];if(!w||!component)return d[h]=null,c();d[h]={component:component},data.registerRouteInstance=function(e,t){var n=w.instances[h];(t&&n!==e||!t&&n===e)&&(w.instances[h]=t)},(data.hook||(data.hook={})).prepatch=function(e,t){w.instances[h]=t.componentInstance},data.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==w.instances[h]&&(w.instances[h]=e.componentInstance),T(f)};var S=w.props&&w.props[h];return S&&(r(d[h],{route:f,configProps:S}),A(component,data,f,S)),c(component,data,o)}};function A(component,data,e,t){var n=data.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0}}(e,t);if(n){n=data.props=r({},n);var o=data.attrs=data.attrs||{};for(var l in n)component.props&&l in component.props||(o[l]=n[l],delete n[l])}}function M(e,base,t){var n=e.charAt(0);if("/"===n)return e;if("?"===n||"#"===n)return base+e;var r=base.split("/");t&&r[r.length-1]||r.pop();for(var o=e.replace(/^\//,"").split("/"),i=0;i<o.length;i++){var l=o[i];".."===l?r.pop():"."!==l&&r.push(l)}return""!==r[0]&&r.unshift(""),r.join("/")}function I(path){return path.replace(/\/(?:\s*\/)+/g,"/")}var D=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},P=Y,N=B,L=function(e,t){return $(B(e,t),t)},j=$,R=G,F=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function B(e,t){for(var n,r=[],o=0,l=0,path="",c=t&&t.delimiter||"/";null!=(n=F.exec(e));){var h=n[0],f=n[1],d=n.index;if(path+=e.slice(l,d),l=d+h.length,f)path+=f[1];else{var v=e[l],m=n[2],y=n[3],_=n[4],x=n[5],w=n[6],S=n[7];path&&(r.push(path),path="");var k=null!=m&&null!=v&&v!==m,O="+"===w||"*"===w,C="?"===w||"*"===w,T=n[2]||c,pattern=_||x;r.push({name:y||o++,prefix:m||"",delimiter:T,optional:C,repeat:O,partial:k,asterisk:!!S,pattern:pattern?H(pattern):S?".*":"[^"+V(T)+"]+?"})}}return l<e.length&&(path+=e.substr(l)),path&&r.push(path),r}function z(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function $(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",U(t)));return function(t,r){for(var path="",data=t||{},o=(r||{}).pretty?z:encodeURIComponent,i=0;i<e.length;i++){var l=e[i];if("string"!=typeof l){var c,h=data[l.name];if(null==h){if(l.optional){l.partial&&(path+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(D(h)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var f=0;f<h.length;f++){if(c=o(h[f]),!n[i].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(c)+"`");path+=(0===f?l.prefix:l.delimiter)+c}}else{if(c=l.asterisk?encodeURI(h).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):o(h),!n[i].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+c+'"');path+=l.prefix+c}}else path+=l}return path}}function V(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function H(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function W(e,t){return e.keys=t,e}function U(e){return e&&e.sensitive?"":"i"}function G(e,t,n){D(t)||(n=t||n,t=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,l="",i=0;i<e.length;i++){var c=e[i];if("string"==typeof c)l+=V(c);else{var h=V(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+h+f+")*"),l+=f=c.optional?c.partial?h+"("+f+")?":"(?:"+h+"("+f+"))?":h+"("+f+")"}}var d=V(n.delimiter||"/"),v=l.slice(-d.length)===d;return r||(l=(v?l.slice(0,-d.length):l)+"(?:"+d+"(?=$))?"),l+=o?"$":r&&v?"":"(?="+d+"|$)",W(new RegExp("^"+l,U(n)),t)}function Y(path,e,t){return D(e)||(t=e||t,e=[]),t=t||{},path instanceof RegExp?function(path,e){var t=path.source.match(/\((?!\?)/g);if(t)for(var i=0;i<t.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return W(path,e)}(path,e):D(path)?function(path,e,t){for(var n=[],i=0;i<path.length;i++)n.push(Y(path[i],e,t).source);return W(new RegExp("(?:"+n.join("|")+")",U(t)),e)}(path,e,t):function(path,e,t){return G(B(path,t),e,t)}(path,e,t)}P.parse=N,P.compile=L,P.tokensToFunction=j,P.tokensToRegExp=R;var K=Object.create(null);function X(path,e,t){e=e||{};try{var n=K[path]||(K[path]=P.compile(path));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),n(e,{pretty:!0})}catch(e){return""}finally{delete e[0]}}function Z(e,t,n,o){var l="string"==typeof e?{path:e}:e;if(l._normalized)return l;if(l.name){var c=(l=r({},e)).params;return c&&"object"==typeof c&&(l.params=r({},c)),l}if(!l.path&&l.params&&t){(l=r({},l))._normalized=!0;var h=r(r({},t.params),l.params);if(t.name)l.name=t.name,l.params=h;else if(t.matched.length){var f=t.matched[t.matched.length-1].path;l.path=X(f,h,t.path)}else 0;return l}var m=function(path){var e="",t="",n=path.indexOf("#");n>=0&&(e=path.slice(n),path=path.slice(0,n));var r=path.indexOf("?");return r>=0&&(t=path.slice(r+1),path=path.slice(0,r)),{path:path,query:t,hash:e}}(l.path||""),y=t&&t.path||"/",path=m.path?M(m.path,y,n||l.append):y,_=function(e,t,n){void 0===t&&(t={});var r,o=n||v;try{r=o(e||"")}catch(e){r={}}for(var l in t){var c=t[l];r[l]=Array.isArray(c)?c.map(d):d(c)}return r}(m.query,l.query,o&&o.options.parseQuery),x=l.hash||m.hash;return x&&"#"!==x.charAt(0)&&(x="#"+x),{_normalized:!0,path:path,query:_,hash:x}}var J,Q=function(){},ee={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(e){var t=this,n=this.$router,o=this.$route,l=n.resolve(this.to,o,this.append),c=l.location,h=l.route,f=l.href,d={},v=n.options.linkActiveClass,m=n.options.linkExactActiveClass,x=null==v?"router-link-active":v,w=null==m?"router-link-exact-active":m,S=null==this.activeClass?x:this.activeClass,k=null==this.exactActiveClass?w:this.exactActiveClass,C=h.redirectedFrom?_(null,Z(h.redirectedFrom),null,n):h;d[k]=O(o,C,this.exactPath),d[S]=this.exact||this.exactPath?d[k]:function(e,t){return 0===e.path.replace(y,"/").indexOf(t.path.replace(y,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(o,C);var T=d[k]?this.ariaCurrentValue:null,E=function(e){te(e)&&(t.replace?n.replace(c,Q):n.push(c,Q))},A={click:te};Array.isArray(this.event)?this.event.forEach((function(e){A[e]=E})):A[this.event]=E;var data={class:d},M=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:f,route:h,navigate:E,isActive:d[S],isExactActive:d[k]});if(M){if(1===M.length)return M[0];if(M.length>1||!M.length)return 0===M.length?e():e("span",{},M)}if("a"===this.tag)data.on=A,data.attrs={href:f,"aria-current":T};else{var a=ne(this.$slots.default);if(a){a.isStatic=!1;var I=a.data=r({},a.data);for(var D in I.on=I.on||{},I.on){var P=I.on[D];D in A&&(I.on[D]=Array.isArray(P)?P:[P])}for(var N in A)N in I.on?I.on[N].push(A[N]):I.on[N]=E;var L=a.data.attrs=r({},a.data.attrs);L.href=f,L["aria-current"]=T}else data.on=A}return e(this.tag,data,this.$slots.default)}};function te(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ne(e){if(e)for(var t,i=0;i<e.length;i++){if("a"===(t=e[i]).tag)return t;if(t.children&&(t=ne(t.children)))return t}}var re="undefined"!=typeof window;function ie(e,t,n,r,o){var l=t||[],c=n||Object.create(null),h=r||Object.create(null);e.forEach((function(e){oe(l,c,h,e,o)}));for(var i=0,f=l.length;i<f;i++)"*"===l[i]&&(l.push(l.splice(i,1)[0]),f--,i--);return{pathList:l,pathMap:c,nameMap:h}}function oe(e,t,n,r,o,l){var path=r.path,c=r.name;var h=r.pathToRegexpOptions||{},f=function(path,e,t){t||(path=path.replace(/\/$/,""));if("/"===path[0])return path;if(null==e)return path;return I(e.path+"/"+path)}(path,o,h.strict);"boolean"==typeof r.caseSensitive&&(h.sensitive=r.caseSensitive);var d={path:f,regex:ae(f,h),components:r.components||{default:r.component},alias:r.alias?"string"==typeof r.alias?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:c,parent:o,matchAs:l,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var o=l?I(l+"/"+r.path):void 0;oe(e,t,n,r,d,o)})),t[d.path]||(e.push(d.path),t[d.path]=d),void 0!==r.alias)for(var v=Array.isArray(r.alias)?r.alias:[r.alias],i=0;i<v.length;++i){0;var m={path:v[i],children:r.children};oe(e,t,n,m,o,d.path||"/")}c&&(n[c]||(n[c]=d))}function ae(path,e){return P(path,[],e)}function se(e,t){var n=ie(e),r=n.pathList,o=n.pathMap,l=n.nameMap;function c(e,n,c){var h=Z(e,n,!1,t),d=h.name;if(d){var v=l[d];if(!v)return f(null,h);var m=v.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!=typeof h.params&&(h.params={}),n&&"object"==typeof n.params)for(var y in n.params)!(y in h.params)&&m.indexOf(y)>-1&&(h.params[y]=n.params[y]);return h.path=X(v.path,h.params),f(v,h,c)}if(h.path){h.params={};for(var i=0;i<r.length;i++){var path=r[i],_=o[path];if(le(_.regex,h.path,h.params))return f(_,h,c)}}return f(null,h)}function h(e,n){var r=e.redirect,o="function"==typeof r?r(_(e,n,null,t)):r;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return f(null,n);var h=o,d=h.name,path=h.path,v=n.query,m=n.hash,y=n.params;if(v=h.hasOwnProperty("query")?h.query:v,m=h.hasOwnProperty("hash")?h.hash:m,y=h.hasOwnProperty("params")?h.params:y,d){l[d];return c({_normalized:!0,name:d,query:v,hash:m,params:y},void 0,n)}if(path){var x=function(path,e){return M(path,e.parent?e.parent.path:"/",!0)}(path,e);return c({_normalized:!0,path:X(x,y),query:v,hash:m},void 0,n)}return f(null,n)}function f(e,n,r){return e&&e.redirect?h(e,r||n):e&&e.matchAs?function(e,t,n){var r=c({_normalized:!0,path:X(n,t.params)});if(r){var o=r.matched,l=o[o.length-1];return t.params=r.params,f(l,t)}return f(null,t)}(0,n,e.matchAs):_(e,n,r,t)}return{match:c,addRoute:function(e,t){var n="object"!=typeof e?l[e]:void 0;ie([t||e],r,o,l,n),n&&n.alias.length&&ie(n.alias.map((function(e){return{path:e,children:[t]}})),r,o,l,n)},getRoutes:function(){return r.map((function(path){return o[path]}))},addRoutes:function(e){ie(e,r,o,l)}}}function le(e,path,t){var n=path.match(e);if(!n)return!1;if(!t)return!0;for(var i=1,r=n.length;i<r;++i){var o=e.keys[i-1];o&&(t[o.name||"pathMatch"]="string"==typeof n[i]?f(n[i]):n[i])}return!0}var ue=re&&window.performance&&window.performance.now?window.performance:Date;function ce(){return ue.now().toFixed(3)}var he=ce();function fe(){return he}function de(e){return he=e}var pe=Object.create(null);function ge(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=r({},window.history.state);return n.key=fe(),window.history.replaceState(n,"",t),window.addEventListener("popstate",ye),function(){window.removeEventListener("popstate",ye)}}function ve(e,t,n,r){if(e.app){var o=e.options.scrollBehavior;o&&e.app.$nextTick((function(){var l=function(){var e=fe();if(e)return pe[e]}(),c=o.call(e,t,n,r?l:null);c&&("function"==typeof c.then?c.then((function(e){Se(e,l)})).catch((function(e){0})):Se(c,l))}))}}function me(){var e=fe();e&&(pe[e]={x:window.pageXOffset,y:window.pageYOffset})}function ye(e){me(),e.state&&e.state.key&&de(e.state.key)}function be(e){return xe(e.x)||xe(e.y)}function _e(e){return{x:xe(e.x)?e.x:window.pageXOffset,y:xe(e.y)?e.y:window.pageYOffset}}function xe(e){return"number"==typeof e}var we=/^#\d/;function Se(e,t){var n,r="object"==typeof e;if(r&&"string"==typeof e.selector){var o=we.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(o){var l=e.offset&&"object"==typeof e.offset?e.offset:{};t=function(e,t){var n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-n.left-t.x,y:r.top-n.top-t.y}}(o,l={x:xe((n=l).x)?n.x:0,y:xe(n.y)?n.y:0})}else be(e)&&(t=_e(e))}else r&&be(e)&&(t=_e(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var ke,Oe=re&&((-1===(ke=window.navigator.userAgent).indexOf("Android 2.")&&-1===ke.indexOf("Android 4.0")||-1===ke.indexOf("Mobile Safari")||-1!==ke.indexOf("Chrome")||-1!==ke.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function Ce(e,t){me();var n=window.history;try{if(t){var o=r({},n.state);o.key=fe(),n.replaceState(o,"",e)}else n.pushState({key:de(ce())},"",e)}catch(n){window.location[t?"replace":"assign"](e)}}function Te(e){Ce(e,!0)}var Ee={redirected:2,aborted:4,cancelled:8,duplicated:16};function Ae(e,t){return Ie(e,t,Ee.redirected,'Redirected when going from "'+e.fullPath+'" to "'+function(e){if("string"==typeof e)return e;if("path"in e)return e.path;var t={};return De.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}(t)+'" via a navigation guard.')}function Me(e,t){return Ie(e,t,Ee.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Ie(e,t,n,r){var o=new Error(r);return o._isRouter=!0,o.from=e,o.to=t,o.type=n,o}var De=["params","query","hash"];function Pe(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Ne(e,t){return Pe(e)&&e._isRouter&&(null==t||e.type===t)}function Le(e,t,n){var r=function(o){o>=e.length?n():e[o]?t(e[o],(function(){r(o+1)})):r(o+1)};r(0)}function je(e){return function(t,n,r){var o=!1,l=0,c=null;Re(e,(function(e,t,n,h){if("function"==typeof e&&void 0===e.cid){o=!0,l++;var f,d=ze((function(t){var o;((o=t).__esModule||Be&&"Module"===o[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:J.extend(t),n.components[h]=t,--l<=0&&r()})),v=ze((function(e){var t="Failed to resolve async component "+h+": "+e;c||(c=Pe(e)?e:new Error(t),r(c))}));try{f=e(d,v)}catch(e){v(e)}if(f)if("function"==typeof f.then)f.then(d,v);else{var m=f.component;m&&"function"==typeof m.then&&m.then(d,v)}}})),o||r()}}function Re(e,t){return Fe(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Fe(e){return Array.prototype.concat.apply([],e)}var Be="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function ze(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var $e=function(e,base){this.router=e,this.base=function(base){if(!base)if(re){var e=document.querySelector("base");base=(base=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else base="/";"/"!==base.charAt(0)&&(base="/"+base);return base.replace(/\/$/,"")}(base),this.current=w,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Ve(e,t,n,r){var o=Re(e,(function(e,r,o,l){var c=function(e,t){"function"!=typeof e&&(e=J.extend(e));return e.options[t]}(e,t);if(c)return Array.isArray(c)?c.map((function(e){return n(e,r,o,l)})):n(c,r,o,l)}));return Fe(r?o.reverse():o)}function He(e,t){if(t)return function(){return e.apply(t,arguments)}}$e.prototype.listen=function(e){this.cb=e},$e.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},$e.prototype.onError=function(e){this.errorCbs.push(e)},$e.prototype.transitionTo=function(e,t,n){var r,o=this;try{r=this.router.match(e,this.current)}catch(e){throw this.errorCbs.forEach((function(t){t(e)})),e}var l=this.current;this.confirmTransition(r,(function(){o.updateRoute(r),t&&t(r),o.ensureURL(),o.router.afterHooks.forEach((function(e){e&&e(r,l)})),o.ready||(o.ready=!0,o.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!o.ready&&(Ne(e,Ee.redirected)&&l===w||(o.ready=!0,o.readyErrorCbs.forEach((function(t){t(e)}))))}))},$e.prototype.confirmTransition=function(e,t,n){var r=this,o=this.current;this.pending=e;var l,c,h=function(e){!Ne(e)&&Pe(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)},f=e.matched.length-1,d=o.matched.length-1;if(O(e,o)&&f===d&&e.matched[f]===o.matched[d])return this.ensureURL(),e.hash&&ve(this.router,o,e,!1),h(((c=Ie(l=o,e,Ee.duplicated,'Avoided redundant navigation to current location: "'+l.fullPath+'".')).name="NavigationDuplicated",c));var v=function(e,t){var i,n=Math.max(e.length,t.length);for(i=0;i<n&&e[i]===t[i];i++);return{updated:t.slice(0,i),activated:t.slice(i),deactivated:e.slice(i)}}(this.current.matched,e.matched),m=v.updated,y=v.deactivated,_=v.activated,x=[].concat(function(e){return Ve(e,"beforeRouteLeave",He,!0)}(y),this.router.beforeHooks,function(e){return Ve(e,"beforeRouteUpdate",He)}(m),_.map((function(e){return e.beforeEnter})),je(_)),w=function(t,n){if(r.pending!==e)return h(Me(o,e));try{t(e,o,(function(t){!1===t?(r.ensureURL(!0),h(function(e,t){return Ie(e,t,Ee.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}(o,e))):Pe(t)?(r.ensureURL(!0),h(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(h(Ae(o,e)),"object"==typeof t&&t.replace?r.replace(t):r.push(t)):n(t)}))}catch(e){h(e)}};Le(x,w,(function(){var n=function(e){return Ve(e,"beforeRouteEnter",(function(e,t,n,r){return function(e,t,n){return function(r,o,l){return e(r,o,(function(e){"function"==typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),l(e)}))}}(e,n,r)}))}(_);Le(n.concat(r.router.resolveHooks),w,(function(){if(r.pending!==e)return h(Me(o,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick((function(){T(e)}))}))}))},$e.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},$e.prototype.setupListeners=function(){},$e.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=w,this.pending=null};var qe=function(e){function t(t,base){e.call(this,t,base),this._startLocation=We(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Oe&&n;r&&this.listeners.push(ge());var o=function(){var n=e.current,o=We(e.base);e.current===w&&o===e._startLocation||e.transitionTo(o,(function(e){r&&ve(t,e,n,!0)}))};window.addEventListener("popstate",o),this.listeners.push((function(){window.removeEventListener("popstate",o)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){Ce(I(r.base+e.fullPath)),ve(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){Te(I(r.base+e.fullPath)),ve(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(We(this.base)!==this.current.fullPath){var t=I(this.base+this.current.fullPath);e?Ce(t):Te(t)}},t.prototype.getCurrentLocation=function(){return We(this.base)},t}($e);function We(base){var path=window.location.pathname,e=path.toLowerCase(),t=base.toLowerCase();return!base||e!==t&&0!==e.indexOf(I(t+"/"))||(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash}var Ue=function(e){function t(t,base,n){e.call(this,t,base),n&&function(base){var e=We(base);if(!/^\/#/.test(e))return window.location.replace(I(base+"/#"+e)),!0}(this.base)||Ge()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,n=Oe&&t;n&&this.listeners.push(ge());var r=function(){var t=e.current;Ge()&&e.transitionTo(Ye(),(function(r){n&&ve(e.router,r,t,!0),Oe||Ze(r.fullPath)}))},o=Oe?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},t.prototype.push=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){Xe(e.fullPath),ve(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){Ze(e.fullPath),ve(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;Ye()!==t&&(e?Xe(t):Ze(t))},t.prototype.getCurrentLocation=function(){return Ye()},t}($e);function Ge(){var path=Ye();return"/"===path.charAt(0)||(Ze("/"+path),!1)}function Ye(){var e=window.location.href,t=e.indexOf("#");return t<0?"":e=e.slice(t+1)}function Ke(path){var e=window.location.href,i=e.indexOf("#");return(i>=0?e.slice(0,i):e)+"#"+path}function Xe(path){Oe?Ce(Ke(path)):window.location.hash=path}function Ze(path){Oe?Te(Ke(path)):window.location.replace(Ke(path))}var Je=function(e){function t(t,base){e.call(this,t,base),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){Ne(e,Ee.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}($e),Qe=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=se(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Oe&&!1!==e.fallback,this.fallback&&(t="hash"),re||(t="abstract"),this.mode=t,t){case"history":this.history=new qe(this,e.base);break;case"hash":this.history=new Ue(this,e.base,this.fallback);break;case"abstract":this.history=new Je(this,e.base)}},et={currentRoute:{configurable:!0}};Qe.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},et.currentRoute.get=function(){return this.history&&this.history.current},Qe.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof qe||n instanceof Ue){var r=function(e){n.setupListeners(),function(e){var r=n.current,o=t.options.scrollBehavior;Oe&&o&&"fullPath"in e&&ve(t,e,r,!1)}(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},Qe.prototype.beforeEach=function(e){return nt(this.beforeHooks,e)},Qe.prototype.beforeResolve=function(e){return nt(this.resolveHooks,e)},Qe.prototype.afterEach=function(e){return nt(this.afterHooks,e)},Qe.prototype.onReady=function(e,t){this.history.onReady(e,t)},Qe.prototype.onError=function(e){this.history.onError(e)},Qe.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},Qe.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},Qe.prototype.go=function(e){this.history.go(e)},Qe.prototype.back=function(){this.go(-1)},Qe.prototype.forward=function(){this.go(1)},Qe.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},Qe.prototype.resolve=function(e,t,n){var r=Z(e,t=t||this.history.current,n,this),o=this.match(r,t),l=o.redirectedFrom||o.fullPath,c=function(base,e,t){var path="hash"===t?"#"+e:e;return base?I(base+"/"+path):path}(this.history.base,l,this.mode);return{location:r,route:o,href:c,normalizedTo:r,resolved:o}},Qe.prototype.getRoutes=function(){return this.matcher.getRoutes()},Qe.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==w&&this.history.transitionTo(this.history.getCurrentLocation())},Qe.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==w&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Qe.prototype,et);var tt=Qe;function nt(e,t){return e.push(t),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}Qe.install=function e(t){if(!e.installed||J!==t){e.installed=!0,J=t;var n=function(e){return void 0!==e},r=function(e,t){var i=e.$options._parentVnode;n(i)&&n(i=i.data)&&n(i=i.registerRouteInstance)&&i(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.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(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",E),t.component("RouterLink",ee);var o=t.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Qe.version="3.6.5",Qe.isNavigationFailure=Ne,Qe.NavigationFailureType=Ee,Qe.START_LOCATION=w,re&&window.Vue&&window.Vue.use(Qe)},function(e,t,n){"use strict";var r=n(20),o=n(42),l=n(24),c=n(55),h=n(158),f=n(111),d=Math.max,v=Math.min,m=Math.floor,y=/\$([$&`']|\d\d?|<[^>]*>)/g,_=/\$([$&`']|\d\d?)/g;n(112)("replace",2,(function(e,t,n,x){return[function(r,o){var l=e(this),c=null==r?void 0:r[t];return void 0!==c?c.call(r,l,o):n.call(String(l),r,o)},function(e,t){var o=x(n,e,this,t);if(o.done)return o.value;var m=r(e),y=String(this),_="function"==typeof t;_||(t=String(t));var S=m.global;if(S){var k=m.unicode;m.lastIndex=0}for(var O=[];;){var C=f(m,y);if(null===C)break;if(O.push(C),!S)break;""===String(C[0])&&(m.lastIndex=h(y,l(m.lastIndex),k))}for(var T,E="",A=0,i=0;i<O.length;i++){C=O[i];for(var M=String(C[0]),I=d(v(c(C.index),y.length),0),D=[],P=1;P<C.length;P++)D.push(void 0===(T=C[P])?T:String(T));var N=C.groups;if(_){var L=[M].concat(D,I,y);void 0!==N&&L.push(N);var j=String(t.apply(void 0,L))}else j=w(M,y,I,D,N,t);I>=A&&(E+=y.slice(A,I)+j,A=I+M.length)}return E+y.slice(A)}];function w(e,t,r,l,c,h){var f=r+e.length,d=l.length,v=_;return void 0!==c&&(c=o(c),v=y),n.call(h,v,(function(n,o){var h;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(f);case"<":h=c[o.slice(1,-1)];break;default:var v=+o;if(0===v)return n;if(v>d){var y=m(v/10);return 0===y?n:y<=d?void 0===l[y-1]?o.charAt(1):l[y-1]+o.charAt(1):n}h=l[v-1]}return void 0===h?"":h}))}}))},function(e,t,n){var r=n(56);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";var r=function(e){this.value=e},o=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new r(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),l=function(){function e(e){this._list=new o,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,map=this._map,o=null;if(null==map[e]){var l=n.len(),c=this._lastRemovedEntry;if(l>=this._maxSize&&l>0){var h=n.head;n.remove(h),delete map[h.key],o=h.value,this._lastRemovedEntry=h}c?c.value=t:c=new r(t),c.key=e,n.insertEntry(c),map[e]=c}return o},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();t.a=l},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(105);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(a){return e.call(t,a)};case 2:return function(a,b){return e.call(t,a,b)};case 3:return function(a,b,n){return e.call(t,a,b,n)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(145),o=n(56);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";t.__esModule=!0,t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.noop=function(){},t.hasOwn=function(e,t){return f.call(e,t)},t.toObject=function(e){for(var t={},i=0;i<e.length;i++)e[i]&&d(t,e[i]);return t},t.getPropByPath=function(e,path,t){for(var n=e,r=(path=(path=path.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),i=0,o=r.length;i<o-1&&(n||t);++i){var l=r[i];if(!(l in n)){if(t)throw new Error("please transfer a valid prop path to form item!");break}n=n[l]}return{o:n,k:r[i],v:n?n[r[i]]:null}},t.rafThrottle=function(e){var t=!1;return function(){for(var n=this,r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];t||(t=!0,window.requestAnimationFrame((function(r){e.apply(n,o),t=!1})))}},t.objToArray=function(e){if(Array.isArray(e))return e;return _(e)?[]:[e]};var o,l=n(2),c=(o=l)&&o.__esModule?o:{default:o},h=n(244);var f=Object.prototype.hasOwnProperty;function d(e,t){for(var n in t)e[n]=t[n];return e}t.getValueByPath=function(object,e){for(var t=(e=e||"").split("."),n=object,r=null,i=0,o=t.length;i<o;i++){var path=t[i];if(!n)break;if(i===o-1){r=n[path];break}n=n[path]}return r};t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(a,b){if(a===b)return!0;if(!(a instanceof Array))return!1;if(!(b instanceof Array))return!1;if(a.length!==b.length)return!1;for(var i=0;i!==a.length;++i)if(a[i]!==b[i])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var v=t.arrayFindIndex=function(e,t){for(var i=0;i!==e.length;++i)if(t(e[i]))return i;return-1},m=(t.arrayFind=function(e,t){var n=v(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!c.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!c.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!c.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(style){if("object"!==(void 0===style?"undefined":r(style)))return style;var e=["ms-","webkit-"];return["transform","transition","animation"].forEach((function(t){var n=style[t];t&&n&&e.forEach((function(e){style[e+t]=n}))})),style},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,h.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(a,b){var e=(0,h.isObject)(a),t=(0,h.isObject)(b);return e&&t?JSON.stringify(a)===JSON.stringify(b):!e&&!t&&String(a)===String(b)}),y=t.arrayEquals=function(e,t){if(t=t||[],(e=e||[]).length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!m(e[i],t[i]))return!1;return!0},_=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?y(e,t):m(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1})},function(e,t,n){e.exports=n(340)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return me})),n.d(t,"b",(function(){return pe})),n.d(t,"c",(function(){return ve})),n.d(t,"d",(function(){return fe})),n.d(t,"e",(function(){return le}));n(18),n(15),n(38),n(37),n(33),n(31),n(32);var r=n(27),o=n(10),l=n(130),c=n(132),h=n(81),f=n(131);function d(e){return Object(l.a)(e)||Object(c.a)(e)||Object(h.a)(e)||Object(f.a)()}var v=n(21);function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}n(141),n(41),n(192),n(61),n(22),n(71),n(160),n(306),n(28),n(19),n(12),n(85),n(86);function _(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function x(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?_(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):_(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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 o,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw o}}}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var k=/[^\0-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,C={overflow:"Overflow Error","not-basic":"Illegal Input","invalid-input":"Invalid Input"},T=Math.floor,E=String.fromCharCode;function A(e){throw new RangeError(C[e])}var M=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},u=function(e,t,n){var r=0;for(e=n?T(e/700):e>>1,e+=T(e/t);e>455;r+=36)e=T(e/35);return T(r+36*e/(e+38))};function I(e){return function(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var o=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(O,".")).split("."),(function(e){return k.test(e)?"xn--"+function(e){var t,n=[],r=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var l=e.charCodeAt(n++);56320==(64512&l)?t.push(((1023&o)<<10)+(1023&l)+65536):(t.push(o),n--)}else t.push(o)}return t}(e)).length,o=128,i=0,l=72,c=w(e);try{for(c.s();!(t=c.n()).done;){var h=t.value;h<128&&n.push(E(h))}}catch(e){c.e(e)}finally{c.f()}var f=n.length,p=f;for(f&&n.push("-");p<r;){var d,v=2147483647,m=w(e);try{for(m.s();!(d=m.n()).done;){var y=d.value;y>=o&&y<v&&(v=y)}}catch(e){m.e(e)}finally{m.f()}var a=p+1;v-o>T((2147483647-i)/a)&&A("overflow"),i+=(v-o)*a,o=v;var _,x=w(e);try{for(x.s();!(_=x.n()).done;){var S=_.value;if(S<o&&++i>2147483647&&A("overflow"),S==o){for(var k=i,O=36;;O+=36){var C=O<=l?1:O>=l+26?26:O-l;if(k<C)break;var I=k-C,D=36-C;n.push(E(M(C+I%D,0))),k=T(I/D)}n.push(E(M(k,0))),l=u(i,a,p==f),i=0,++p}}}catch(e){x.e(e)}finally{x.f()}++i,++o}return n.join("")}(e):e})).join(".");return r+o}(e)}var D=/#/g,P=/&/g,N=/=/g,L=/\?/g,j=/\+/g,R=/%5B/gi,F=/%5D/gi,B=/%5E/gi,z=/%60/gi,$=/%7B/gi,V=/%7C/gi,H=/%7D/gi,W=/%20/gi,U=/%2F/gi,G=/%252F/gi;function Y(text){return encodeURI(""+text).replace(V,"|").replace(R,"[").replace(F,"]")}function K(text){return Y(text).replace(j,"%2B").replace(W,"+").replace(D,"%23").replace(P,"%26").replace(z,"`").replace($,"{").replace(H,"}").replace(B,"^")}function X(text){return K(text).replace(N,"%3D")}function Z(text){return Y(text).replace(D,"%23").replace(L,"%3F").replace(G,"%2F").replace(P,"%26").replace(j,"%2B")}function J(){var text=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{return decodeURIComponent(""+text)}catch(e){return""+text}}function Q(text){return J(text.replace(U,"%252F"))}function ee(text){return J(text.replace(j," "))}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return I(e)}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={};"?"===e[0]&&(e=e.substr(1));var n,r=w(e.split("&"));try{for(r.s();!(n=r.n()).done;){var param=n.value,o=param.match(/([^=]+)=?(.*)/)||[];if(!(o.length<2)){var l=J(o[1]);if("__proto__"!==l&&"constructor"!==l){var c=ee(o[2]||"");t[l]?Array.isArray(t[l])?t[l].push(c):t[l]=[t[l],c]:t[l]=c}}}}catch(e){r.e(e)}finally{r.f()}return t}function re(e){return Object.keys(e).map((function(t){return n=t,(r=e[t])?Array.isArray(r)?r.map((function(e){return"".concat(X(n),"=").concat(K(e))})).join("&"):"".concat(X(n),"=").concat(K(r)):X(n);var n,r})).join("&")}var ie=function(){function e(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(m(this,e),this.query={},"string"!=typeof input)throw new TypeError("URL input should be string received ".concat(Object(v.a)(input)," (").concat(input,")"));var t=ye(input);this.protocol=J(t.protocol),this.host=J(t.host),this.auth=J(t.auth),this.pathname=Q(t.pathname),this.query=ne(t.search),this.hash=J(t.hash)}var t,n,r;return t=e,(n=[{key:"hostname",get:function(){return xe(this.host).hostname}},{key:"port",get:function(){return xe(this.host).port||""}},{key:"username",get:function(){return _e(this.auth).username}},{key:"password",get:function(){return _e(this.auth).password||""}},{key:"hasProtocol",get:function(){return this.protocol.length}},{key:"isAbsolute",get:function(){return this.hasProtocol||"/"===this.pathname[0]}},{key:"search",get:function(){var q=re(this.query);return q.length?"?"+q:""}},{key:"searchParams",get:function(){var e=this,p=new URLSearchParams,t=function(t){var n=e.query[t];Array.isArray(n)?n.forEach((function(e){return p.append(t,e)})):p.append(t,n||"")};for(var n in this.query)t(n);return p}},{key:"origin",get:function(){return(this.protocol?this.protocol+"//":"")+te(this.host)}},{key:"fullpath",get:function(){return Z(this.pathname)+this.search+Y(this.hash).replace($,"{").replace(H,"}").replace(B,"^")}},{key:"encodedAuth",get:function(){if(!this.auth)return"";var e=_e(this.auth),t=e.username,n=e.password;return encodeURIComponent(t)+(n?":"+encodeURIComponent(n):"")}},{key:"href",get:function(){var e=this.encodedAuth,t=(this.protocol?this.protocol+"//":"")+(e?e+"@":"")+te(this.host);return this.hasProtocol&&this.isAbsolute?t+this.fullpath:this.fullpath}},{key:"append",value:function(e){if(e.hasProtocol)throw new Error("Cannot append a URL with protocol");Object.assign(this.query,e.query),e.pathname&&(this.pathname=ue(this.pathname)+he(e.pathname)),e.hash&&(this.hash=e.hash)}},{key:"toJSON",value:function(){return this.href}},{key:"toString",value:function(){return this.href}}])&&y(t.prototype,n),r&&y(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function oe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return/^\w+:\/\/.+/.test(e)||t&&/^\/\/[^/]+/.test(e)}var ae=/\/$|\/\?/;function se(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?ae.test(input):input.endsWith("/")}function le(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return(se(input)?input.slice(0,-1):input)||"/";if(!se(input,!0))return input||"/";var t=input.split("?"),n=d(t),r=n[0],s=n.slice(1);return(r.slice(0,-1)||"/")+(s.length?"?".concat(s.join("?")):"")}function ue(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return input.endsWith("/")?input:input+"/";if(se(input,!0))return input||"/";var t=input.split("?"),n=d(t),r=n[0],s=n.slice(1);return r+"/"+(s.length?"?".concat(s.join("?")):"")}function ce(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return input.startsWith("/")}function he(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(ce(input)?input.substr(1):input)||"/"}function fe(input,e){var t=ye(input),n=x(x({},ne(t.search)),e);return t.search=re(n),function(e){var t=e.pathname+(e.search?(e.search.startsWith("?")?"":"?")+e.search:"")+e.hash;if(!e.protocol)return t;return e.protocol+"//"+(e.auth?e.auth+"@":"")+e.host+t}(t)}function de(e){return e&&"/"!==e}function pe(base){for(var e=base||"",t=arguments.length,input=new Array(t>1?t-1:0),n=1;n<t;n++)input[n-1]=arguments[n];var r,o=w(input.filter(de));try{for(o.s();!(r=o.n()).done;){var i=r.value;e=e?ue(e)+he(i):i}}catch(e){o.e(e)}finally{o.f()}return e}function ge(input){return new ie(input)}function ve(input){return ge(input).toString()}function me(e,t){return J(le(e))===J(le(t))}function ye(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;if(!oe(input,!0))return e?ye(e+input):be(input);var t=(input.replace(/\\/g,"/").match(/([^:/]+:)?\/\/([^/@]+@)?(.*)/)||[]).splice(1),n=Object(r.a)(t,3),o=n[0],l=void 0===o?"":o,c=n[1],h=n[2],f=(h.match(/([^/?#]*)(.*)?/)||[]).splice(1),d=Object(r.a)(f,2),v=d[0],m=void 0===v?"":v,y=d[1],path=void 0===y?"":y,_=be(path),x=_.pathname,w=_.search,S=_.hash;return{protocol:l,auth:c?c.substr(0,c.length-1):"",host:m,pathname:x,search:w,hash:S}}function be(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=(input.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1),t=Object(r.a)(e,3),n=t[0],o=void 0===n?"":n,l=t[1],c=void 0===l?"":l,h=t[2],f=void 0===h?"":h;return{pathname:o,search:c,hash:f}}function _e(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=input.split(":"),t=Object(r.a)(e,2),n=t[0],o=t[1];return{username:J(n),password:J(o)}}function xe(){var input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=(input.match(/([^/]*)(:0-9+)?/)||[]).splice(1),t=Object(r.a)(e,2),n=t[0],o=t[1];return{hostname:J(n),port:o}}},,function(e,t){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}e.exports=g},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.hasClass=_,t.addClass=function(e,t){if(!e)return;for(var n=e.className,r=(t||"").split(" "),i=0,o=r.length;i<o;i++){var l=r[i];l&&(e.classList?e.classList.add(l):_(e,l)||(n+=" "+l))}e.classList||(e.className=n)},t.removeClass=function(e,t){if(!e||!t)return;for(var n=t.split(" "),r=" "+e.className+" ",i=0,o=n.length;i<o;i++){var l=n[i];l&&(e.classList?e.classList.remove(l):_(e,l)&&(r=r.replace(" "+l+" "," ")))}e.classList||(e.className=(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,""))},t.setStyle=function e(element,t,n){if(!element||!t)return;if("object"===(void 0===t?"undefined":r(t)))for(var o in t)t.hasOwnProperty(o)&&e(element,o,t[o]);else"opacity"===(t=v(t))&&d<9?element.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":element.style[t]=n};var o,l=n(2);var c=((o=l)&&o.__esModule?o:{default:o}).default.prototype.$isServer,h=/([\:\-\_]+(.))/g,f=/^moz([A-Z])/,d=c?0:Number(document.documentMode),v=function(e){return e.replace(h,(function(e,t,n,r){return r?n.toUpperCase():n})).replace(f,"Moz$1")},m=t.on=!c&&document.addEventListener?function(element,e,t){element&&e&&t&&element.addEventListener(e,t,!1)}:function(element,e,t){element&&e&&t&&element.attachEvent("on"+e,t)},y=t.off=!c&&document.removeEventListener?function(element,e,t){element&&e&&element.removeEventListener(e,t,!1)}:function(element,e,t){element&&e&&element.detachEvent("on"+e,t)};t.once=function(e,t,n){m(e,t,(function r(){n&&n.apply(this,arguments),y(e,t,r)}))};function _(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}var x=t.getStyle=d<9?function(element,e){if(!c){if(!element||!e)return null;"float"===(e=v(e))&&(e="styleFloat");try{if("opacity"===e)try{return element.filters.item("alpha").opacity/100}catch(e){return 1}return element.style[e]||element.currentStyle?element.currentStyle[e]:null}catch(t){return element.style[e]}}}:function(element,e){if(!c){if(!element||!e)return null;"float"===(e=v(e))&&(e="cssFloat");try{var t=document.defaultView.getComputedStyle(element,"");return element.style[e]||t?t[e]:null}catch(t){return element.style[e]}}};var w=t.isScroll=function(e,t){if(!c)return x(e,null!==t||void 0!==t?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto)/)};t.getScrollContainer=function(e,t){if(!c){for(var n=e;n;){if([window,document,document.documentElement].includes(n))return window;if(w(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(c||!e||!t)return!1;var n=e.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},,function(e,t,n){!function(){"use strict";var t="undefined"!=typeof window&&void 0!==window.document?window.document:{},n=e.exports,r="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,o=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,r=n.length,o={};i<r;i++)if((e=n[i])&&e[1]in t){for(i=0;i<e.length;i++)o[n[0][i]]=e[i];return o}return!1}(),l={change:o.fullscreenchange,error:o.fullscreenerror},c={request:function(e){return new Promise(function(n,l){var c,h=o.requestFullscreen,f=function(){this.off("change",f),n()}.bind(this);this.on("change",f),e=e||t.documentElement,c=/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)?e[h]():e[h](r?Element.ALLOW_KEYBOARD_INPUT:{}),Promise.resolve(c).catch(l)}.bind(this))},exit:function(){return new Promise(function(e){if(this.isFullscreen){var n=function(){this.off("change",n),e()}.bind(this);t[o.exitFullscreen](),this.on("change",n)}else e()}.bind(this))},toggle:function(e){return this.isFullscreen?this.exit():this.request(e)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var r=l[e];r&&t.addEventListener(r,n,!1)},off:function(e,n){var r=l[e];r&&t.removeEventListener(r,n,!1)},raw:o};o?(Object.defineProperties(c,{isFullscreen:{get:function(){return Boolean(t[o.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[o.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return Boolean(t[o.fullscreenEnabled])}}}),n?(e.exports=c,e.exports.default=c):window.screenfull=c):n?e.exports=!1:window.screenfull=!1}()},function(e,t,n){"use strict";var r=n(9),o=n(96)(1);r(r.P+r.F*!n(204)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(195),o=n(148);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(195),o=n(148).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";function r(e,t,n){this.$children.forEach((function(o){o.$options.componentName===e?o.$emit.apply(o,[t].concat(n)):r.apply(o,[e,t].concat([n]))}))}t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){for(var r=this.$parent||this.$root,o=r.$options.componentName;r&&(!o||o!==e);)(r=r.$parent)&&(o=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,n){r.call(this,e,t,n)}}}},function(e,t,n){e.exports=!n(99)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(380),l=(r=o)&&r.__esModule?r:{default:r};t.default=l.default||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e}},,function(e,t,n){"use strict";var r=n(20),o=n(300),l=n(111);n(112)("search",1,(function(e,t,n,c){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=c(n,e,this);if(t.done)return t.value;var h=r(e),f=String(this),d=h.lastIndex;o(d,0)||(h.lastIndex=0);var v=l(h,f);return o(h.lastIndex,d)||(h.lastIndex=d),null===v?-1:v.index}]}))},function(e,t,n){"use strict";var r=n(9),o=n(146)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(93)("includes")},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(23).f,o=n(44),l=n(13)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,l)&&r(e,l,{configurable:!0,value:t})}},function(e,t,n){var r=n(90),o=n(73),l=n(46),c=n(88),h=n(44),f=n(193),d=Object.getOwnPropertyDescriptor;t.f=n(17)?d:function(e,t){if(e=l(e),t=c(t,!0),f)try{return d(e,t)}catch(e){}if(h(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t){e.exports={}},function(e,t,n){var r=n(78),o=n(118);e.exports=n(67)?function(object,e,t){return r.f(object,e,o(1,t))}:function(object,e,t){return object[e]=t,object}},function(e,t,n){var r=n(117),o=n(251),l=n(173),c=Object.defineProperty;t.f=n(67)?Object.defineProperty:function(e,t,n){if(r(e),t=l(t,!0),r(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(254),o=n(174);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(177)("wks"),o=n(121),l=n(58).Symbol,c="function"==typeof l;(e.exports=function(e){return r[e]||(r[e]=c&&l[e]||(c?l:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(101);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function filter(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var path=i>=0?arguments[i]:e.cwd();if("string"!=typeof path)throw new TypeError("Arguments to path.resolve must be strings");path&&(t=path+"/"+t,r="/"===path.charAt(0))}return(r?"/":"")+(t=n(filter(t.split("/"),(function(p){return!!p})),!r).join("/"))||"."},t.normalize=function(path){var e=t.isAbsolute(path),o="/"===r(path,-1);return(path=n(filter(path.split("/"),(function(p){return!!p})),!e).join("/"))||e||(path="."),path&&o&&(path+="/"),(e?"/":"")+path},t.isAbsolute=function(path){return"/"===path.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(filter(e,(function(p,e){if("string"!=typeof p)throw new TypeError("Arguments to path.join must be strings");return p})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),l=r(n.split("/")),c=Math.min(o.length,l.length),h=c,i=0;i<c;i++)if(o[i]!==l[i]){h=i;break}var f=[];for(i=h;i<o.length;i++)f.push("..");return(f=f.concat(l.slice(h))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(path){if("string"!=typeof path&&(path+=""),0===path.length)return".";for(var code=path.charCodeAt(0),e=47===code,t=-1,n=!0,i=path.length-1;i>=1;--i)if(47===(code=path.charCodeAt(i))){if(!n){t=i;break}}else n=!1;return-1===t?e?"/":".":e&&1===t?"/":path.slice(0,t)},t.basename=function(path,e){var t=function(path){"string"!=typeof path&&(path+="");var i,e=0,t=-1,n=!0;for(i=path.length-1;i>=0;--i)if(47===path.charCodeAt(i)){if(!n){e=i+1;break}}else-1===t&&(n=!1,t=i+1);return-1===t?"":path.slice(e,t)}(path);return e&&t.substr(-1*e.length)===e&&(t=t.substr(0,t.length-e.length)),t},t.extname=function(path){"string"!=typeof path&&(path+="");for(var e=-1,t=0,n=-1,r=!0,o=0,i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(47!==code)-1===n&&(r=!1,n=i+1),46===code?-1===e?e=i:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){t=i+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===t+1?"":path.slice(e,n)};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(113))},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=44)}([function(e,t){e.exports=n(357)},function(e,t){e.exports=n(57)},function(e,t){e.exports=n(47)},function(e,t){e.exports=n(66)},function(e,t){e.exports=n(161)},function(e,t){e.exports=n(162)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(246)},function(e,t){e.exports=n(115)},function(e,t){e.exports=n(164)},function(e,t){e.exports=n(247)},function(e,t){e.exports=n(165)},function(e,t){e.exports=n(245)},function(e,t){e.exports=n(116)},function(e,t){e.exports=n(248)},function(e,t){e.exports=n(114)},function(e,t){e.exports=n(167)},function(e,t){e.exports=n(363)},function(e,t){e.exports=n(244)},function(e,t){e.exports=n(243)},function(e,t){e.exports=n(364)},function(e,t){e.exports=n(168)},function(e,t){e.exports=n(169)},function(e,t){e.exports=n(365)},function(e,t){e.exports=n(249)},function(e,t){e.exports=n(166)},function(e,t){e.exports=n(366)},function(e,t){e.exports=n(170)},function(e,t){e.exports=n(250)},function(e,t){e.exports=n(163)},function(e,t){e.exports=n(367)},function(e,t){e.exports=n(368)},function(e,t){e.exports=n(369)},function(e,t){e.exports=n(171)},function(e,t){e.exports=n(370)},function(e,t){e.exports=n(371)},function(e,t){e.exports=n(372)},function(e,t){e.exports=n(373)},function(e,t){e.exports=n(374)},function(e,t){e.exports=n(379)},function(e,t){e.exports=n(425)},function(e,t){e.exports=n(412)},function(e,t){e.exports=n(413)},function(e,t){e.exports=n(260)},function(e,t,n){e.exports=n(45)},function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"el-pager",on:{click:e.onPagerClick}},[e.pageCount>0?n("li",{staticClass:"number",class:{active:1===e.currentPage,disabled:e.disabled}},[e._v("1")]):e._e(),e.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[e.quickprevIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("left")},mouseleave:function(t){e.quickprevIconClass="el-icon-more"}}}):e._e(),e._l(e.pagers,(function(t){return n("li",{key:t,staticClass:"number",class:{active:e.currentPage===t,disabled:e.disabled}},[e._v(e._s(t))])})),e.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[e.quicknextIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("right")},mouseleave:function(t){e.quicknextIconClass="el-icon-more"}}}):e._e(),e.pageCount>1?n("li",{staticClass:"number",class:{active:e.currentPage===e.pageCount,disabled:e.disabled}},[e._v(e._s(e.pageCount))]):e._e()],2)};function o(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}r._withStripped=!0;var component=o({name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(e){e||(this.quickprevIconClass="el-icon-more")},showNextMore:function(e){e||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(e){var t=e.target;if("UL"!==t.tagName&&!this.disabled){var n=Number(e.target.textContent),r=this.pageCount,o=this.currentPage,l=this.pagerCount-2;-1!==t.className.indexOf("more")&&(-1!==t.className.indexOf("quickprev")?n=o-l:-1!==t.className.indexOf("quicknext")&&(n=o+l)),isNaN(n)||(n<1&&(n=1),n>r&&(n=r)),n!==o&&this.$emit("change",n)}},onMouseenter:function(e){this.disabled||("left"===e?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var e=this.pagerCount,t=(e-1)/2,n=Number(this.currentPage),r=Number(this.pageCount),o=!1,l=!1;r>e&&(n>e-t&&(o=!0),n<r-t&&(l=!0));var c=[];if(o&&!l)for(var i=r-(e-2);i<r;i++)c.push(i);else if(!o&&l)for(var h=2;h<e;h++)c.push(h);else if(o&&l)for(var f=Math.floor(e/2)-1,d=n-f;d<=n+f;d++)c.push(d);else for(var v=2;v<r;v++)c.push(v);return this.showPrevMore=o,this.showNextMore=l,c}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},r,[],!1,null,null,null);component.options.__file="packages/pagination/src/pager.vue";var l=component.exports,c=n(35),h=n.n(c),f=n(36),d=n.n(f),v=n(9),m=n.n(v),y=n(4),_=n.n(y),x=n(2),w={name:"ElPagination",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(e){return(0|e)===e&&e>4&&e<22&&e%2==1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(e){var t=this.layout;if(!t)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var template=e("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),n={prev:e("prev"),jumper:e("jumper"),pager:e("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:e("next"),sizes:e("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:e("slot",[this.$slots.default?this.$slots.default:""]),total:e("total")},r=t.split(",").map((function(e){return e.trim()})),o=e("div",{class:"el-pagination__rightwrapper"}),l=!1;return template.children=template.children||[],o.children=o.children||[],r.forEach((function(e){"->"!==e?l?o.children.push(n[e]):template.children.push(n[e]):l=!0})),l&&template.children.unshift(o),template},components:{Prev:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?e("span",[this.$parent.prevText]):e("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?e("span",[this.$parent.nextText]):e("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[_.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(e,t){Object(x.valueEquals)(e,t)||Array.isArray(e)&&(this.$parent.internalPageSize=e.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(e){var t=this;return e("span",{class:"el-pagination__sizes"},[e("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map((function(n){return e("el-option",{attrs:{value:n,label:n+t.t("el.pagination.pagesize")}})}))])])},components:{ElSelect:h.a,ElOption:d.a},methods:{handleChange:function(e){e!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=e=parseInt(e,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",e),this.$parent.$emit("size-change",e))}}},Jumper:{mixins:[_.a],components:{ElInput:m.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(e){var t=e.keyCode,n=e.target;13===t&&this.handleChange(n.value)},handleInput:function(e){this.userInput=e},handleChange:function(e){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(e),this.$parent.emitChange(),this.userInput=null}},render:function(e){return e("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),e("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[_.a],render:function(e){return"number"==typeof this.$parent.total?e("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:l},methods:{handleCurrentChange:function(e){this.internalCurrentPage=this.getValidCurrentPage(e),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var e=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var e=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(e){e=parseInt(e,10);var t=void 0;return"number"==typeof this.internalPageCount?e<1?t=1:e>this.internalPageCount&&(t=this.internalPageCount):(isNaN(e)||e<1)&&(t=1),(void 0===t&&isNaN(e)||0===t)&&(t=1),void 0===t?e:t},emitChange:function(){var e=this;this.$nextTick((function(){(e.internalCurrentPage!==e.lastEmittedPage||e.userChangePageSize)&&(e.$emit("current-change",e.internalCurrentPage),e.lastEmittedPage=e.internalCurrentPage,e.userChangePageSize=!1)}))}},computed:{internalPageCount:function(){return"number"==typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"==typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(e){this.internalCurrentPage=this.getValidCurrentPage(e)}},pageSize:{immediate:!0,handler:function(e){this.internalPageSize=isNaN(e)?10:e}},internalCurrentPage:{immediate:!0,handler:function(e){this.$emit("update:currentPage",e),this.lastEmittedPage=-1}},internalPageCount:function(e){var t=this.internalCurrentPage;e>0&&0===t?this.internalCurrentPage=1:t>e&&(this.internalCurrentPage=0===e?1:e,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(e){e.component(w.name,w)}},S=w,k=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{key:e.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":e.fullscreen,"el-dialog--center":e.center},e.customClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[e._t("title",[n("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:e.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?n("div",{staticClass:"el-dialog__body"},[e._t("default")],2):e._e(),e.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[e._t("footer")],2):e._e()])])])};k._withStripped=!0;var O=n(12),C=n.n(O),T=n(7),E=n.n(T),A=n(3),M=n.n(A),I=o({name:"ElDialog",mixins:[C.a,M.a,E.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick((function(){t.$refs.dialog.scrollTop=0})),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick((function(){t.key++})))}},computed:{style:function(){var style={};return this.fullscreen||(style.marginTop=this.top,this.width&&(style.width=this.width)),style}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},k,[],!1,null,null,null);I.options.__file="packages/dialog/src/component.vue";var D=I.exports;D.install=function(e){e.component(D.name,D)};var dialog=D,P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":e.suggestionVisible,"aria-owns":e.id}},[n("el-input",e._b({ref:"input",on:{input:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex-1)},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex+1)},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleKeyEnter(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.close(t)}]}},"el-input",[e.$props,e.$attrs],!1),[e.$slots.prepend?n("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.append?n("template",{slot:"append"},[e._t("append")],2):e._e(),e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?n("template",{slot:"suffix"},[e._t("suffix")],2):e._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[e.popperClass?e.popperClass:""],attrs:{"visible-arrow":"","popper-options":e.popperOptions,"append-to-body":e.popperAppendToBody,placement:e.placement,id:e.id}},e._l(e.suggestions,(function(t,r){return n("li",{key:r,class:{highlighted:e.highlightedIndex===r},attrs:{id:e.id+"-item-"+r,role:"option","aria-selected":e.highlightedIndex===r},on:{click:function(n){e.select(t)}}},[e._t("default",[e._v("\n "+e._s(t[e.valueKey])+"\n ")],{item:t})],2)})),0)],1)};P._withStripped=!0;var N=n(13),L=n.n(N),j=n(10),R=n.n(j),F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!e.parent.hideLoading&&e.parent.loading},style:{width:e.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!e.parent.hideLoading&&e.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):e._t("default")],2)],1)])};F._withStripped=!0;var B=n(5),z=n.n(B),$=n(16),V=n.n($),H=o({components:{ElScrollbar:V.a},mixins:[z.a,M.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(e){this.dispatch("ElAutocomplete","item-click",e)}},updated:function(){var e=this;this.$nextTick((function(t){e.popperJS&&e.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var e=this;this.$on("visible",(function(t,n){e.dropdownWidth=n+"px",e.showPopper=t}))}},F,[],!1,null,null,null);H.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var W=H.exports,U=n(21),G=n.n(U),Y=o({name:"ElAutocomplete",mixins:[M.a,G()("input"),E.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:m.a,ElAutocompleteSuggestions:W},directives:{Clickoutside:R.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var e=this.suggestions;return(Array.isArray(e)&&e.length>0||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(x.generateId)()}},watch:{suggestionVisible:function(e){var t=this.getInput();t&&this.broadcast("ElAutocompleteSuggestions","visible",[e,t.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(e){var t=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(e,(function(e){t.loading=!1,t.suggestionDisabled||(Array.isArray(e)?(t.suggestions=e,t.highlightedIndex=t.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))})))},handleChange:function(e){if(this.$emit("input",e),this.suggestionDisabled=!1,!this.triggerOnFocus&&!e)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(e)},handleFocus:function(e){this.activated=!0,this.$emit("focus",e),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(e){this.$emit("blur",e)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(e){this.activated=!1},handleKeyEnter:function(e){var t=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(e.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1})))},select:function(e){var t=this;this.$emit("input",e[this.valueKey]),this.$emit("select",e),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1}))},highlight:function(e){if(this.suggestionVisible&&!this.loading)if(e<0)this.highlightedIndex=-1;else{e>=this.suggestions.length&&(e=this.suggestions.length-1);var t=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=t.querySelectorAll(".el-autocomplete-suggestion__list li")[e],r=t.scrollTop,o=n.offsetTop;o+n.scrollHeight>r+t.clientHeight&&(t.scrollTop+=n.scrollHeight),o<r&&(t.scrollTop-=n.scrollHeight),this.highlightedIndex=e,this.getInput().setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var e=this;this.debouncedGetData=L()(this.debounce,this.getData),this.$on("item-click",(function(t){e.select(t)}));var t=this.getInput();t.setAttribute("role","textbox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-controls","id"),t.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},P,[],!1,null,null,null);Y.options.__file="packages/autocomplete/src/autocomplete.vue";var K=Y.exports;K.install=function(e){e.component(K.name,K)};var X=K,Z=n(17),J=n.n(Z),Q=n(37),ee=n.n(Q),te={name:"ElDropdown",componentName:"ElDropdown",mixins:[M.a,E.a],directives:{Clickoutside:R.a},components:{ElButton:J.a,ElButtonGroup:ee.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(x.generateId)()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(e){this.broadcast("ElDropdownMenu","visible",e),this.$emit("visible-change",e)},focusing:function(e){var t=this.$el.querySelector(".el-dropdown-selfdefine");t&&(e?t.className+=" focusing":t.className=t.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var e=this;this.triggerElm.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!0}),"click"===this.trigger?0:this.showTimeout))},hide:function(){var e=this;this.triggerElm.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!1}),"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.triggerElm.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(e){var t=e.keyCode;[38,40].indexOf(t)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),e.preventDefault(),e.stopPropagation()):13===t?this.handleClick():[9,27].indexOf(t)>-1&&this.hide()},handleItemKeyDown:function(e){var t=e.keyCode,n=e.target,r=this.menuItemsArray.indexOf(n),o=this.menuItemsArray.length-1,l=void 0;[38,40].indexOf(t)>-1?(l=38===t?0!==r?r-1:0:r<o?r+1:o,this.removeTabindex(),this.resetTabindex(this.menuItems[l]),this.menuItems[l].focus(),e.preventDefault(),e.stopPropagation()):13===t?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(t)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(e){this.removeTabindex(),e.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach((function(e){e.setAttribute("tabindex","-1")}))},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var e=this,t=this.trigger,n=this.show,r=this.hide,o=this.handleClick,l=this.splitButton,c=this.handleTriggerKeyDown,h=this.handleItemKeyDown;this.triggerElm=l?this.$refs.trigger.$el:this.$slots.default[0].elm;var f=this.dropdownElm;this.triggerElm.addEventListener("keydown",c),f.addEventListener("keydown",h,!0),l||(this.triggerElm.addEventListener("focus",(function(){e.focusing=!0})),this.triggerElm.addEventListener("blur",(function(){e.focusing=!1})),this.triggerElm.addEventListener("click",(function(){e.focusing=!1}))),"hover"===t?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",r),f.addEventListener("mouseenter",n),f.addEventListener("mouseleave",r)):"click"===t&&this.triggerElm.addEventListener("click",o)},handleMenuItemClick:function(e,t){this.hideOnClick&&(this.visible=!1),this.$emit("command",e,t)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(e){var t=this,n=this.hide,r=this.splitButton,o=this.type,l=this.dropdownSize,c=r?e("el-button-group",[e("el-button",{attrs:{type:o,size:l},nativeOn:{click:function(e){t.$emit("click",e),n()}}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:o,size:l},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]):this.$slots.default;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}]},[c,this.$slots.dropdown])}},ne=o(te,undefined,undefined,!1,null,null,null);ne.options.__file="packages/dropdown/src/dropdown.vue";var re=ne.exports;re.install=function(e){e.component(re.name,re)};var ie=re,oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[e.size&&"el-dropdown-menu--"+e.size]},[e._t("default")],2)])};oe._withStripped=!0;var ae=o({name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[z.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var e=this;this.$on("updatePopper",(function(){e.showPopper&&e.updatePopper()})),this.$on("visible",(function(t){e.showPopper=t}))},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(e){this.currentPlacement=e}}}},oe,[],!1,null,null,null);ae.options.__file="packages/dropdown/src/dropdown-menu.vue";var se=ae.exports;se.install=function(e){e.component(se.name,se)};var le=se,ue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.disabled,"el-dropdown-menu__item--divided":e.divided},attrs:{"aria-disabled":e.disabled,tabindex:e.disabled?null:-1},on:{click:e.handleClick}},[e.icon?n("i",{class:e.icon}):e._e(),e._t("default")],2)};ue._withStripped=!0;var ce=o({name:"ElDropdownItem",mixins:[M.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},ue,[],!1,null,null,null);ce.options.__file="packages/dropdown/src/dropdown-item.vue";var he=ce.exports;he.install=function(e){e.component(he.name,he)};var fe=he,de=de||{};de.Utils=de.Utils||{},de.Utils.focusFirstDescendant=function(element){for(var i=0;i<element.childNodes.length;i++){var e=element.childNodes[i];if(de.Utils.attemptFocus(e)||de.Utils.focusFirstDescendant(e))return!0}return!1},de.Utils.focusLastDescendant=function(element){for(var i=element.childNodes.length-1;i>=0;i--){var e=element.childNodes[i];if(de.Utils.attemptFocus(e)||de.Utils.focusLastDescendant(e))return!0}return!1},de.Utils.attemptFocus=function(element){if(!de.Utils.isFocusable(element))return!1;de.Utils.IgnoreUtilFocusChanges=!0;try{element.focus()}catch(e){}return de.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===element},de.Utils.isFocusable=function(element){if(element.tabIndex>0||0===element.tabIndex&&null!==element.getAttribute("tabIndex"))return!0;if(element.disabled)return!1;switch(element.nodeName){case"A":return!!element.href&&"ignore"!==element.rel;case"INPUT":return"hidden"!==element.type&&"file"!==element.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},de.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),o=arguments.length,l=Array(o>2?o-2:0),c=2;c<o;c++)l[c-2]=arguments[c];return r.initEvent.apply(r,[t].concat(l)),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r),e},de.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var pe=de.Utils,ge=function(e,t){this.domNode=t,this.parent=e,this.subMenuItems=[],this.subIndex=0,this.init()};ge.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},ge.prototype.gotoSubIndex=function(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e},ge.prototype.addListeners=function(){var e=this,t=pe.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(function(r){r.addEventListener("keydown",(function(r){var o=!1;switch(r.keyCode){case t.down:e.gotoSubIndex(e.subIndex+1),o=!0;break;case t.up:e.gotoSubIndex(e.subIndex-1),o=!0;break;case t.tab:pe.triggerEvent(n,"mouseleave");break;case t.enter:case t.space:o=!0,r.currentTarget.click()}return o&&(r.preventDefault(),r.stopPropagation()),!1}))}))};var ve=ge,me=function(e){this.domNode=e,this.submenu=null,this.init()};me.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var e=this.domNode.querySelector(".el-menu");e&&(this.submenu=new ve(this,e)),this.addListeners()},me.prototype.addListeners=function(){var e=this,t=pe.keys;this.domNode.addEventListener("keydown",(function(n){var r=!1;switch(n.keyCode){case t.down:pe.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(0),r=!0;break;case t.up:pe.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(e.submenu.subMenuItems.length-1),r=!0;break;case t.tab:pe.triggerEvent(n.currentTarget,"mouseleave");break;case t.enter:case t.space:r=!0,n.currentTarget.click()}r&&n.preventDefault()}))};var ye=me,be=function(e){this.domNode=e,this.init()};be.prototype.init=function(){var e=this.domNode.childNodes;[].filter.call(e,(function(e){return 1===e.nodeType})).forEach((function(e){new ye(e)}))};var _e=be,xe=n(1),we={name:"ElMenu",render:function(e){var component=e("ul",{attrs:{role:"menubar"},key:+this.collapse,style:{backgroundColor:this.backgroundColor||""},class:{"el-menu--horizontal":"horizontal"===this.mode,"el-menu--collapse":this.collapse,"el-menu":!0}},[this.$slots.default]);return this.collapseTransition?e("el-menu-collapse-transition",[component]):component},componentName:"ElMenu",mixins:[M.a,E.a],provide:function(){return{rootMenu:this}},components:{"el-menu-collapse-transition":{functional:!0,render:function(e,t){return e("transition",{props:{mode:"out-in"},on:{beforeEnter:function(e){e.style.opacity=.2},enter:function(e){Object(xe.addClass)(e,"el-opacity-transition"),e.style.opacity=1},afterEnter:function(e){Object(xe.removeClass)(e,"el-opacity-transition"),e.style.opacity=""},beforeLeave:function(e){e.dataset||(e.dataset={}),Object(xe.hasClass)(e,"el-menu--collapse")?(Object(xe.removeClass)(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(xe.addClass)(e,"el-menu--collapse")):(Object(xe.addClass)(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(xe.removeClass)(e,"el-menu--collapse")),e.style.width=e.scrollWidth+"px",e.style.overflow="hidden"},leave:function(e){Object(xe.addClass)(e,"horizontal-collapse-transition"),e.style.width=e.dataset.scrollWidth+"px"}}},t.children)}}},props:{mode:{type:String,default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0}},data:function(){return{activeIndex:this.defaultActive,openedMenus:this.defaultOpeneds&&!this.collapse?this.defaultOpeneds.slice(0):[],items:{},submenus:{}}},computed:{hoverBackground:function(){return this.backgroundColor?this.mixColor(this.backgroundColor,.2):""},isMenuPopup:function(){return"horizontal"===this.mode||"vertical"===this.mode&&this.collapse}},watch:{defaultActive:function(e){this.items[e]||(this.activeIndex=null),this.updateActiveIndex(e)},defaultOpeneds:function(e){this.collapse||(this.openedMenus=e)},collapse:function(e){e&&(this.openedMenus=[]),this.broadcast("ElSubmenu","toggle-collapse",e)}},methods:{updateActiveIndex:function(e){var t=this.items[e]||this.items[this.activeIndex]||this.items[this.defaultActive];t?(this.activeIndex=t.index,this.initOpenedMenu()):this.activeIndex=null},getMigratingConfig:function(){return{props:{theme:"theme is removed."}}},getColorChannels:function(e){if(e=e.replace("#",""),/^[0-9a-fA-F]{3}$/.test(e)){e=e.split("");for(var i=2;i>=0;i--)e.splice(i,0,e[i]);e=e.join("")}return/^[0-9a-fA-F]{6}$/.test(e)?{red:parseInt(e.slice(0,2),16),green:parseInt(e.slice(2,4),16),blue:parseInt(e.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(e,t){var n=this.getColorChannels(e),r=n.red,o=n.green,l=n.blue;return t>0?(r*=1-t,o*=1-t,l*=1-t):(r+=(255-r)*t,o+=(255-o)*t,l+=(255-l)*t),"rgb("+Math.round(r)+", "+Math.round(o)+", "+Math.round(l)+")"},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},openMenu:function(e,t){var n=this.openedMenus;-1===n.indexOf(e)&&(this.uniqueOpened&&(this.openedMenus=n.filter((function(e){return-1!==t.indexOf(e)}))),this.openedMenus.push(e))},closeMenu:function(e){var i=this.openedMenus.indexOf(e);-1!==i&&this.openedMenus.splice(i,1)},handleSubmenuClick:function(e){var t=e.index,n=e.indexPath;-1!==this.openedMenus.indexOf(t)?(this.closeMenu(t),this.$emit("close",t,n)):(this.openMenu(t,n),this.$emit("open",t,n))},handleItemClick:function(e){var t=this,n=e.index,r=e.indexPath,o=this.activeIndex,l=null!==e.index;l&&(this.activeIndex=e.index),this.$emit("select",n,r,e),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&l&&this.routeToItem(e,(function(e){t.activeIndex=o,e&&console.error(e)}))},initOpenedMenu:function(){var e=this,t=this.activeIndex,n=this.items[t];n&&"horizontal"!==this.mode&&!this.collapse&&n.indexPath.forEach((function(t){var n=e.submenus[t];n&&e.openMenu(t,n.indexPath)}))},routeToItem:function(e,t){var n=e.route||e.index;try{this.$router.push(n,(function(){}),t)}catch(e){console.error(e)}},open:function(e){var t=this,n=this.submenus[e.toString()].indexPath;n.forEach((function(i){return t.openMenu(i,n)}))},close:function(e){this.closeMenu(e)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new _e(this.$el),this.$watch("items",this.updateActiveIndex)}},Se=o(we,undefined,undefined,!1,null,null,null);Se.options.__file="packages/menu/src/menu.vue";var ke=Se.exports;ke.install=function(e){e.component(ke.name,ke)};var Oe=ke,Ce=n(20),Te=n.n(Ce),Ee={inject:["rootMenu"],computed:{indexPath:function(){for(var path=[this.index],e=this.$parent;"ElMenu"!==e.$options.componentName;)e.index&&path.unshift(e.index),e=e.$parent;return path},parentMenu:function(){for(var e=this.$parent;e&&-1===["ElMenu","ElSubmenu"].indexOf(e.$options.componentName);)e=e.$parent;return e},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var e=20,t=this.$parent;if(this.rootMenu.collapse)e=20;else for(;t&&"ElMenu"!==t.$options.componentName;)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return{paddingLeft:e+"px"}}}},Ae={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:z.a.props.offset,boundariesPadding:z.a.props.boundariesPadding,popperOptions:z.a.props.popperOptions},data:z.a.data,methods:z.a.methods,beforeDestroy:z.a.beforeDestroy,deactivated:z.a.deactivated},Me={name:"ElSubmenu",componentName:"ElSubmenu",mixins:[Ee,M.a,Ae],components:{ElCollapseTransition:Te.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(e){var t=this;this.isMenuPopup&&this.$nextTick((function(e){t.updatePopper()}))}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var e=!1,t=this.submenus,n=this.items;return Object.keys(n).forEach((function(t){n[t].active&&(e=!0)})),Object.keys(t).forEach((function(n){t[n].active&&(e=!0)})),e},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){for(var e=!0,t=this.$parent;t&&t!==this.rootMenu;){if(["ElSubmenu","ElMenuItemGroup"].indexOf(t.$options.componentName)>-1){e=!1;break}t=t.$parent}return e}},methods:{handleCollapseToggle:function(e){e?this.initPopper():this.doDestroy()},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},handleClick:function(){var e=this.rootMenu,t=this.disabled;"hover"===e.menuTrigger&&"horizontal"===e.mode||e.collapse&&"vertical"===e.mode||t||this.dispatch("ElMenu","submenu-click",this)},handleMouseenter:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if("ActiveXObject"in window||"focus"!==e.type||e.relatedTarget){var r=this.rootMenu,o=this.disabled;"click"===r.menuTrigger&&"horizontal"===r.mode||!r.collapse&&"vertical"===r.mode||o||(this.dispatch("ElSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.rootMenu.openMenu(t.index,t.indexPath)}),n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter")))}},handleMouseleave:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("ElSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){!e.mouseInChild&&e.rootMenu.closeMenu(e.index)}),this.hideTimeout),this.appendToBody&&t&&"ElSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var title=this.$refs["submenu-title"];title&&(title.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var title=this.$refs["submenu-title"];title&&(title.style.backgroundColor=this.rootMenu.backgroundColor||"")}},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var e=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",(function(){e.mouseInChild=!0,clearTimeout(e.timeout)})),this.$on("mouse-leave-child",(function(){e.mouseInChild=!1,clearTimeout(e.timeout)}))},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(e){var t=this,n=this.active,r=this.opened,o=this.paddingStyle,l=this.titleStyle,c=this.backgroundColor,h=this.rootMenu,f=this.currentPlacement,d=this.menuTransitionName,v=this.mode,m=this.disabled,y=this.popperClass,_=this.$slots,x=this.isFirstLevel,w=e("transition",{attrs:{name:d}},[e("div",{ref:"menu",directives:[{name:"show",value:r}],class:["el-menu--"+v,y],on:{mouseenter:function(e){return t.handleMouseenter(e,100)},mouseleave:function(){return t.handleMouseleave(!0)},focus:function(e){return t.handleMouseenter(e,100)}}},[e("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+f],style:{backgroundColor:h.backgroundColor||""}},[_.default])])]),S=e("el-collapse-transition",[e("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:r}],style:{backgroundColor:h.backgroundColor||""}},[_.default])]),k="horizontal"===h.mode&&x||"vertical"===h.mode&&!h.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return e("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":r,"is-disabled":m},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":r},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return t.handleMouseleave(!1)},focus:this.handleMouseenter}},[e("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[o,l,{backgroundColor:c}]},[_.title,e("i",{class:["el-submenu__icon-arrow",k]})]),this.isMenuPopup?w:S])}},Ie=o(Me,undefined,undefined,!1,null,null,null);Ie.options.__file="packages/menu/src/submenu.vue";var De=Ie.exports;De.install=function(e){e.component(De.name,De)};var Pe=De,Ne=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item",class:{"is-active":e.active,"is-disabled":e.disabled},style:[e.paddingStyle,e.itemStyle,{backgroundColor:e.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:e.handleClick,mouseenter:e.onMouseEnter,focus:e.onMouseEnter,blur:e.onMouseLeave,mouseleave:e.onMouseLeave}},["ElMenu"===e.parentMenu.$options.componentName&&e.rootMenu.collapse&&e.$slots.title?n("el-tooltip",{attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[e._t("title")],2),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[e._t("default")],2)]):[e._t("default"),e._t("title")]],2)};Ne._withStripped=!0;var Le=n(26),je=n.n(Le),Re=o({name:"ElMenuItem",componentName:"ElMenuItem",mixins:[Ee,M.a],components:{ElTooltip:je.a},props:{index:{default:null,validator:function(e){return"string"==typeof e||null===e}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var style={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(style.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),style},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("ElMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},Ne,[],!1,null,null,null);Re.options.__file="packages/menu/src/menu-item.vue";var Fe=Re.exports;Fe.install=function(e){e.component(Fe.name,Fe)};var Be=Fe,ze=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item-group"},[n("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:e.levelPadding+"px"}},[e.$slots.title?e._t("title"):[e._v(e._s(e.title))]],2),n("ul",[e._t("default")],2)])};ze._withStripped=!0;var $e=o({name:"ElMenuItemGroup",componentName:"ElMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var e=20,t=this.$parent;if(this.rootMenu.collapse)return 20;for(;t&&"ElMenu"!==t.$options.componentName;)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return e}}},ze,[],!1,null,null,null);$e.options.__file="packages/menu/src/menu-item-group.vue";var Ve=$e.exports;Ve.install=function(e){e.component(Ve.name,Ve)};var He=Ve,qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)};qe._withStripped=!0;var We=void 0,Ue="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",Ge=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Ye(e){var style=window.getComputedStyle(e),t=style.getPropertyValue("box-sizing"),n=parseFloat(style.getPropertyValue("padding-bottom"))+parseFloat(style.getPropertyValue("padding-top")),r=parseFloat(style.getPropertyValue("border-bottom-width"))+parseFloat(style.getPropertyValue("border-top-width"));return{contextStyle:Ge.map((function(e){return e+":"+style.getPropertyValue(e)})).join(";"),paddingSize:n,borderSize:r,boxSizing:t}}function Ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;We||(We=document.createElement("textarea"),document.body.appendChild(We));var r=Ye(e),o=r.paddingSize,l=r.borderSize,c=r.boxSizing,h=r.contextStyle;We.setAttribute("style",h+";"+Ue),We.value=e.value||e.placeholder||"";var f=We.scrollHeight,d={};"border-box"===c?f+=l:"content-box"===c&&(f-=o),We.value="";var v=We.scrollHeight-o;if(null!==t){var m=v*t;"border-box"===c&&(m=m+o+l),f=Math.max(m,f),d.minHeight=m+"px"}if(null!==n){var y=v*n;"border-box"===c&&(y=y+o+l),f=Math.min(y,f)}return d.height=f+"px",We.parentNode&&We.parentNode.removeChild(We),We=null,d}var Xe=n(8),Ze=n.n(Xe),Je=o({name:"ElInput",componentName:"ElInput",mixins:[M.a,E.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return Ze()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize;if("textarea"===this.type)if(e){var t=e.minRows,n=e.maxRows;this.textareaCalcStyle=Ke(this.$refs.textarea,t,n)}else this.textareaCalcStyle={minHeight:Ke(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var input=this.getInput();input&&input.value!==this.nativeInputValue&&(input.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionEnd:function(e){this.isComposing=!1,this.handleInput(e)},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,i=0;i<t.length;i++)if(t[i].parentNode===this.$el){n=t[i];break}if(n){var r={suffix:"append",prefix:"prepend"}[e];this.$slots[r]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+r).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){this.passwordVisible=!this.passwordVisible,this.focus()},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},qe,[],!1,null,null,null);Je.options.__file="packages/input/src/input.vue";var Qe=Je.exports;Qe.install=function(e){e.component(Qe.name,Qe)};var et=Qe,tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.decrease(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.increase(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increase(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrease(t))}]}})],1)};tt._withStripped=!0;var nt={bind:function(e,t,n){var r=null,o=void 0,l=function(){return n.context[t.expression].apply()},c=function(){Date.now()-o<100&&l(),clearInterval(r),r=null};Object(xe.on)(e,"mousedown",(function(e){0===e.button&&(o=Date.now(),Object(xe.once)(document,"mouseup",c),clearInterval(r),r=setInterval(l,100))}))}},it={name:"ElInputNumber",mixins:[G()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:nt},components:{ElInput:m.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);t=Math.round(t/this.step)*r*this.step/r}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,r=this.precision,o=n(t);return void 0!==r?(o>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(e),o)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"==typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),r=0;return-1!==n&&(r=t.length-n-1),r},_increase:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"==typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)}},ot=o(it,tt,[],!1,null,null,null);ot.options.__file="packages/input-number/src/input-number.vue";var at=ot.exports;at.install=function(e){e.component(at.name,at)};var st=at,lt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])};lt._withStripped=!0;var ut=o({name:"ElRadio",mixins:[M.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){for(var e=this.$parent;e;){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},lt,[],!1,null,null,null);ut.options.__file="packages/radio/src/radio.vue";var ct=ut.exports;ct.install=function(e){e.component(ct.name,ct)};var ht=ct,ft=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:e.handleKeydown}},[e._t("default")],2)};ft._withStripped=!0;var pt=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),gt=o({name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[M.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var e=this;this.$on("handleChange",(function(t){e.$emit("change",t)}))},mounted:function(){var e=this.$el.querySelectorAll("[type=radio]"),t=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(e,(function(e){return e.checked}))&&t&&(t.tabIndex=0)},methods:{handleKeydown:function(e){var t=e.target,n="INPUT"===t.nodeName?"[type=radio]":"[role=radio]",r=this.$el.querySelectorAll(n),o=r.length,l=[].indexOf.call(r,t),c=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case pt.LEFT:case pt.UP:e.stopPropagation(),e.preventDefault(),0===l?(c[o-1].click(),c[o-1].focus()):(c[l-1].click(),c[l-1].focus());break;case pt.RIGHT:case pt.DOWN:l===o-1?(e.stopPropagation(),e.preventDefault(),c[0].click(),c[0].focus()):(c[l+1].click(),c[l+1].focus())}}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[this.value])}}},ft,[],!1,null,null,null);gt.options.__file="packages/radio/src/radio-group.vue";var vt=gt.exports;vt.install=function(e){e.component(vt.name,vt)};var mt=vt,yt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio-button",class:[e.size?"el-radio-button--"+e.size:"",{"is-active":e.value===e.label},{"is-disabled":e.isDisabled},{"is-focus":e.focus}],attrs:{role:"radio","aria-checked":e.value===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.value=e.isDisabled?e.value:e.label}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:e.name,disabled:e.isDisabled,tabindex:"-1"},domProps:{value:e.label,checked:e._q(e.value,e.label)},on:{change:[function(t){e.value=e.label},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:e.value===e.label?e.activeStyle:null,on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])};yt._withStripped=!0;var bt=o({name:"ElRadioButton",mixins:[M.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(e){this._radioGroup.$emit("input",e)}},_radioGroup:function(){for(var e=this.$parent;e;){if("ElRadioGroup"===e.$options.componentName)return e;e=e.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.dispatch("ElRadioGroup","handleChange",e.value)}))}}},yt,[],!1,null,null,null);bt.options.__file="packages/radio/src/radio-button.vue";var _t=bt.exports;_t.install=function(e){e.component(_t.name,_t)};var xt=_t,wt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{role:"checkbox","aria-checked":e.indeterminate?"mixed":e.isChecked,"aria-disabled":e.isDisabled,id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{"aria-checked":"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":"true",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,o=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var l=e._i(n,null);r.checked?l<0&&(e.model=n.concat([null])):l>-1&&(e.model=n.slice(0,l).concat(n.slice(l+1)))}else e.model=o},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":"true",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,o=!!r.checked;if(Array.isArray(n)){var l=e.label,c=e._i(n,l);r.checked?c<0&&(e.model=n.concat([l])):c>-1&&(e.model=n.slice(0,c).concat(n.slice(c+1)))}else e.model=o},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])};wt._withStripped=!0;var St=o({name:"ElCheckbox",mixins:[M.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var e=this.$parent;e;){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},wt,[],!1,null,null,null);St.options.__file="packages/checkbox/src/checkbox.vue";var kt=St.exports;kt.install=function(e){e.component(kt.name,kt)};var Ot=kt,Ct=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox-button",class:[e.size?"el-checkbox-button--"+e.size:"",{"is-disabled":e.isDisabled},{"is-checked":e.isChecked},{"is-focus":e.focus}],attrs:{role:"checkbox","aria-checked":e.isChecked,"aria-disabled":e.isDisabled}},[e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,o=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var l=e._i(n,null);r.checked?l<0&&(e.model=n.concat([null])):l>-1&&(e.model=n.slice(0,l).concat(n.slice(l+1)))}else e.model=o},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,o=!!r.checked;if(Array.isArray(n)){var l=e.label,c=e._i(n,l);r.checked?c<0&&(e.model=n.concat([l])):c>-1&&(e.model=n.slice(0,c).concat(n.slice(c+1)))}else e.model=o},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox-button__inner",style:e.isChecked?e.activeStyle:null},[e._t("default",[e._v(e._s(e.label))])],2):e._e()])};Ct._withStripped=!0;var Tt=o({name:"ElCheckboxButton",mixins:[M.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):void 0!==this.value?this.$emit("input",e):this.selfModel=e}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){for(var e=this.$parent;e;){if("ElCheckboxGroup"===e.$options.componentName)return e;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t._checkboxGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()}},Ct,[],!1,null,null,null);Tt.options.__file="packages/checkbox/src/checkbox-button.vue";var Et=Tt.exports;Et.install=function(e){e.component(Et.name,Et)};var At=Et,Mt=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)};Mt._withStripped=!0;var It=o({name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[M.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},Mt,[],!1,null,null,null);It.options.__file="packages/checkbox/src/checkbox-group.vue";var Dt=It.exports;Dt.install=function(e){e.component(Dt.name,Dt)};var Pt=Dt,Nt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-switch",class:{"is-disabled":e.switchDisabled,"is-checked":e.checked},attrs:{role:"switch","aria-checked":e.checked,"aria-disabled":e.switchDisabled},on:{click:function(t){return t.preventDefault(),e.switchValue(t)}}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:e.id,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:e.switchDisabled},on:{change:e.handleChange,keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.switchValue(t)}}}),e.inactiveIconClass||e.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",e.checked?"":"is-active"]},[e.inactiveIconClass?n("i",{class:[e.inactiveIconClass]}):e._e(),!e.inactiveIconClass&&e.inactiveText?n("span",{attrs:{"aria-hidden":e.checked}},[e._v(e._s(e.inactiveText))]):e._e()]):e._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:e.coreWidth+"px"}}),e.activeIconClass||e.activeText?n("span",{class:["el-switch__label","el-switch__label--right",e.checked?"is-active":""]},[e.activeIconClass?n("i",{class:[e.activeIconClass]}):e._e(),!e.activeIconClass&&e.activeText?n("span",{attrs:{"aria-hidden":!e.checked}},[e._v(e._s(e.activeText))]):e._e()]):e._e()])};Nt._withStripped=!0;var Lt=o({name:"ElSwitch",mixins:[G()("input"),E.a,M.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(e){var t=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick((function(){t.$refs.input.checked=t.checked}))},setBackgroundColor:function(){var e=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=e,this.$refs.core.style.backgroundColor=e},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},Nt,[],!1,null,null,null);Lt.options.__file="packages/switch/src/component.vue";var jt=Lt.exports;jt.install=function(e){e.component(jt.name,jt)};var Rt=jt,Ft=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},click:function(e){e.stopPropagation()},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.navigateOptions("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{keyup:function(t){return e.debouncedOnInputChange(t)},keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],paste:function(t){return e.debouncedOnInputChange(t)},mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)};Ft._withStripped=!0;var Bt=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)};Bt._withStripped=!0;var zt=o({name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[z.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},Bt,[],!1,null,null,null);zt.options.__file="packages/select/src/select-dropdown.vue";var $t=zt.exports,Vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)};Vt._withStripped=!0;var Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qt={mixins:[M.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,o=n.valueKey;if(!this.created&&!r){if(o&&"object"===(void 0===e?"undefined":Ht(e))&&"object"===(void 0===t?"undefined":Ht(t))&&e[o]===t[o])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(a,b){if(this.isObject){var e=this.select.valueKey;return Object(x.getValueByPath)(a,e)===Object(x.getValueByPath)(b,e)}return a===b},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(x.getValueByPath)(e,n)===Object(x.getValueByPath)(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(x.escapeRegexpString)(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select.cachedOptions.indexOf(this);e>-1&&this.select.cachedOptions.splice(e,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},Wt=o(qt,Vt,[],!1,null,null,null);Wt.options.__file="packages/select/src/option.vue";var Ut=Wt.exports,Gt=n(28),Yt=n.n(Gt),Kt=n(11),Xt=n(15),Zt=n.n(Xt),Jt=n(27),Qt=n.n(Jt),en=n(22),tn={mixins:[M.a,_.a,G()("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(option){return option.visible})).every((function(option){return option.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"==typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(option){option.hover=t.hoverOption===option}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var option=this.options[this.hoverIndex];!0!==option.disabled&&!0!==option.groupDisabled&&option.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}}],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(x.isIE)()&&!Object(x.isEdge)()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&e},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(option){return!option.created})).some((function(option){return option.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"}},components:{ElInput:m.a,ElSelectMenu:$t,ElOption:Ut,ElTag:Yt.a,ElScrollbar:V.a},directives:{Clickoutside:R.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,default:function(){return Object(Xt.t)("el.select.placeholder")}},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},placeholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(x.valueEquals)(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(e){var t=this,text=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(text)}));else{var n=text[text.length-1]||"";this.isOnComposition=!Object(en.isKorean)(n)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!=typeof this.filterMethod&&"function"!=typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"==typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(option){var e=Array.isArray(option)&&option[0]?option[0].$el:option.$el;if(this.$refs.popper&&e){var menu=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");Qt()(menu,e)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(x.valueEquals)(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var option=void 0,t="[object object]"===Object.prototype.toString.call(e).toLowerCase(),n="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),i=this.cachedOptions.length-1;i>=0;i--){var o=this.cachedOptions[i];if(t?Object(x.getValueByPath)(o.value,this.valueKey)===Object(x.getValueByPath)(e,this.valueKey):o.value===e){option=o;break}}if(option)return option;var l={value:e,currentLabel:t||n||r?"":e};return this.multiple&&(l.hitState=!1),l},setSelected:function(){var e=this;if(!this.multiple){var option=this.getOption(this.value);return option.created?(this.createdLabel=option.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=option.currentLabel,this.selected=option,void(this.filterable&&(this.query=this.selectedLabel))}var t=[];Array.isArray(this.value)&&this.value.forEach((function(n){t.push(e.getOption(n))})),this.selected=t,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.menuVisibleOnFocus=!0),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var option=this.selected[this.selected.length-1];if(option)return!0===e||!1===e?(option.hitState=e,e):(option.hitState=!option.hitState,option.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,input=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],n=e.$refs.tags,r=e.initialInputHeight||40;input.style.height=0===e.selected.length?r+"px":Math.max(n?n.clientHeight+(n.clientHeight>r?6:0):0,r)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(option,e){var t=this;if(this.multiple){var n=(this.value||[]).slice(),r=this.getValueIndex(n,option.value);r>-1?n.splice(r,1):(this.multipleLimit<=0||n.length<this.multipleLimit)&&n.push(option.value),this.$emit("input",n),this.emitChange(n),option.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",option.value),this.emitChange(option.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick((function(){t.scrollToOption(option)}))},setSoftFocus:function(){this.softFocus=!0;var input=this.$refs.input||this.$refs.reference;input&&input.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var r=this.valueKey,o=-1;return e.some((function(e,i){return Object(x.getValueByPath)(e,r)===Object(x.getValueByPath)(t,r)&&(o=i,!0)})),o}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,i=this.options.length-1;i>=0;i--)if(this.options[i].created){e=!0,this.hoverIndex=i;break}if(!e)for(var t=0;t!==this.options.length;++t){var option=this.options[t];if(this.query){if(!option.disabled&&!option.groupDisabled&&option.visible){this.hoverIndex=t;break}}else if(option.itemSelected){this.hoverIndex=t;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(x.getValueByPath)(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.placeholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=L()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=L()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(Kt.addResizeListener)(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var input=t.$el.querySelector("input");this.initialInputHeight=input.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(Kt.removeResizeListener)(this.$el,this.handleResize)}},nn=o(tn,Ft,[],!1,null,null,null);nn.options.__file="packages/select/src/select.vue";var rn=nn.exports;rn.install=function(e){e.component(rn.name,rn)};var on=rn;Ut.install=function(e){e.component(Ut.name,Ut)};var an=Ut,sn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[n("li",{staticClass:"el-select-group__title"},[e._v(e._s(e.label))]),n("li",[n("ul",{staticClass:"el-select-group"},[e._t("default")],2)])])};sn._withStripped=!0;var ln=o({mixins:[M.a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(e){this.broadcast("ElOption","handleGroupDisabled",e)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some((function(option){return!0===option.visible}))}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},sn,[],!1,null,null,null);ln.options.__file="packages/select/src/option-group.vue";var un=ln.exports;un.install=function(e){e.component(un.name,un)};var cn=un,hn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])};hn._withStripped=!0;var fn=o({name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},hn,[],!1,null,null,null);fn.options.__file="packages/button/src/button.vue";var dn=fn.exports;dn.install=function(e){e.component(dn.name,dn)};var pn=dn,gn=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-button-group"},[e._t("default")],2)};gn._withStripped=!0;var vn=o({name:"ElButtonGroup"},gn,[],!1,null,null,null);vn.options.__file="packages/button/src/button-group.vue";var mn=vn.exports;mn.install=function(e){e.component(mn.name,mn)};var yn=mn,bn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-table",class:[{"el-table--fit":e.fit,"el-table--striped":e.stripe,"el-table--border":e.border||e.isGroup,"el-table--hidden":e.isHidden,"el-table--group":e.isGroup,"el-table--fluid-height":e.maxHeight,"el-table--scrollable-x":e.layout.scrollX,"el-table--scrollable-y":e.layout.scrollY,"el-table--enable-row-hover":!e.store.states.isComplex,"el-table--enable-row-transition":0!==(e.store.states.data||[]).length&&(e.store.states.data||[]).length<100},e.tableSize?"el-table--"+e.tableSize:""],on:{mouseleave:function(t){e.handleMouseLeave(t)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[e._t("default")],2),e.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"default-sort":e.defaultSort}})],1):e._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[e.layout.scrollX?"is-scrolling-"+e.scrollPosition:"is-scrolling-none"],style:[e.bodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{context:e.context,store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.data&&0!==e.data.length?e._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:{width:e.bodyWidth}},[n("span",{staticClass:"el-table__empty-text"},[e._t("empty",[e._v(e._s(e.emptyText||e.t("el.table.emptyText")))])],2)]),e.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[e._t("append")],2):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,"default-sort":e.defaultSort}})],1):e._e(),e.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:e.layout.fixedWidth?e.layout.fixedWidth+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"left",store:e.store,stripe:e.stripe,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"row-style":e.rowStyle}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:e.layout.rightFixedWidth?e.layout.rightFixedWidth+"px":"",right:e.layout.scrollY?(e.border?e.layout.gutterWidth:e.layout.gutterWidth||0)+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"right",store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:e.layout.scrollY?e.layout.gutterWidth+"px":"0",height:e.layout.headerHeight+"px"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])};bn._withStripped=!0;var _n=n(14),xn=n.n(_n),wn=n(34),Sn=n(38),kn=n.n(Sn),On="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,Cn={bind:function(e,t){var element,n;element=e,n=t.value,element&&element.addEventListener&&element.addEventListener(On?"DOMMouseScroll":"mousewheel",(function(e){var t=kn()(e);n&&n.apply(this,[e,t])}))}},Tn=n(6),En=n.n(Tn),An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mn=function(e){for(var t=e.target;t&&"HTML"!==t.tagName.toUpperCase();){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},In=function(e){return null!==e&&"object"===(void 0===e?"undefined":An(e))},Dn=function(e,t,n,r,o){if(!t&&!r&&(!o||Array.isArray(o)&&!o.length))return e;n="string"==typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var l=r?null:function(n,r){return o?(Array.isArray(o)||(o=[o]),o.map((function(t){return"string"==typeof t?Object(x.getValueByPath)(n,t):t(n,r,e)}))):("$key"!==t&&In(n)&&"$value"in n&&(n=n.$value),[In(n)?Object(x.getValueByPath)(n,t):n])};return e.map((function(e,t){return{value:e,index:t,key:l?l(e,t):null}})).sort((function(a,b){var e=function(a,b){if(r)return r(a.value,b.value);for(var i=0,e=a.key.length;i<e;i++){if(a.key[i]<b.key[i])return-1;if(a.key[i]>b.key[i])return 1}return 0}(a,b);return e||(e=a.index-b.index),e*n})).map((function(e){return e.value}))},Pn=function(table,e){var t=null;return table.columns.forEach((function(n){n.id===e&&(t=n)})),t},Nn=function(table,e){var t=(e.className||"").match(/el-table_[^\s]+/gm);return t?Pn(table,t[0]):null},Ln=function(e,t){if(!e)throw new Error("row is required when get row identity");if("string"==typeof t){if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),r=e,i=0;i<n.length;i++)r=r[n[i]];return r}if("function"==typeof t)return t.call(null,e)},jn=function(e,t){var n={};return(e||[]).forEach((function(e,r){n[Ln(e,t)]={row:e,index:r}})),n};function Rn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Fn(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}function Bn(e){return"number"==typeof e?e:"string"==typeof e?/^\d+(?:px)?$/.test(e)?parseInt(e,10):e:null}function zn(e,t,n){var r=!1,o=e.indexOf(t),l=-1!==o,c=function(){e.push(t),r=!0},h=function(){e.splice(o,1),r=!0};return"boolean"==typeof n?n&&!l?c():!n&&l&&h():l?h():c(),r}var $n={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var e=this.states,t=e.data,data=void 0===t?[]:t,n=e.rowKey,r=e.defaultExpandAll,o=e.expandRows;if(r)this.states.expandRows=data.slice();else if(n){var l=jn(o,n);this.states.expandRows=data.reduce((function(e,t){var r=Ln(t,n);return l[r]&&e.push(t),e}),[])}else this.states.expandRows=[]},toggleRowExpansion:function(e,t){zn(this.states.expandRows,e,t)&&(this.table.$emit("expand-change",e,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(e){this.assertRowKey();var t=this.states,data=t.data,n=t.rowKey,r=jn(data,n);this.states.expandRows=e.reduce((function(e,t){var n=r[t];return n&&e.push(n.row),e}),[])},isRowExpanded:function(e){var t=this.states,n=t.expandRows,r=void 0===n?[]:n,o=t.rowKey;return o?!!jn(r,o)[Ln(e,o)]:-1!==r.indexOf(e)}}},Vn={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(e){this.assertRowKey(),this.states._currentRowKey=e,this.setCurrentRowByKey(e)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(e){var t=this.states,n=t.data,data=void 0===n?[]:n,r=t.rowKey,o=null;r&&(o=Object(x.arrayFind)(data,(function(t){return Ln(t,r)===e}))),t.currentRow=o},updateCurrentRow:function(e){var t=this.states,table=this.table,n=t.rowKey,r=t._currentRowKey,data=t.data||[],o=t.currentRow;if(e)this.restoreCurrentRowKey(),t.currentRow=e,o!==e&&this.table.$emit("current-change",e,o);else if(-1===data.indexOf(o)&&o){if(this.restoreCurrentRowKey(),n){var l=Ln(o,n);this.setCurrentRowByKey(l)}else t.currentRow=null;t.currentRow!==o&&table.$emit("current-change",null,o)}else r&&this.setCurrentRowByKey(r)}}},Hn=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e},qn={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var data=this.states.data||[];return this.normalize(data)},normalizedLazyNode:function(){var e=this.states,t=e.rowKey,n=e.lazyTreeNodeMap,r=e.lazyColumnIdentifier,o=Object.keys(n),l={};return o.length?(o.forEach((function(e){if(n[e].length){var o={children:[]};n[e].forEach((function(e){var n=Ln(e,t);o.children.push(n),e[r]&&!l[n]&&(l[n]={children:[]})})),l[e]=o}})),l):l}},watch:{normalizedData:"updateTreeData",expandRowKeys:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(data){var e=this.states,t=e.childrenColumnName,n=e.lazyColumnIdentifier,r=e.rowKey,o=e.lazy,l={};return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",o=function(e){return!(Array.isArray(e)&&e.length)};function l(e,c,h){t(e,c,h),c.forEach((function(e){if(e[r])t(e,null,h+1);else{var c=e[n];o(c)||l(e,c,h+1)}}))}e.forEach((function(e){if(e[r])t(e,null,0);else{var c=e[n];o(c)||l(e,c,0)}}))}(data,(function(e,t,n){var c=Ln(e,r);Array.isArray(t)?l[c]={children:t.map((function(e){return Ln(e,r)})),level:n}:o&&(l[c]={children:[],lazy:!0,level:n})}),t,n),l},updateTreeData:function(){var e=this.normalizedData,t=this.normalizedLazyNode,n=Object.keys(e),r={};if(n.length){var o=this.states,l=o.treeData,c=o.defaultExpandAll,h=o.expandRowKeys,f=o.lazy,d=[],v=function(e,t){var n=c||h&&-1!==h.indexOf(t);return!!(e&&e.expanded||n)};n.forEach((function(t){var n=l[t],o=Hn({},e[t]);if(o.expanded=v(n,t),o.lazy){var c=n||{},h=c.loaded,f=void 0!==h&&h,m=c.loading,y=void 0!==m&&m;o.loaded=!!f,o.loading=!!y,d.push(t)}r[t]=o}));var m=Object.keys(t);f&&m.length&&d.length&&m.forEach((function(e){var n=l[e],o=t[e].children;if(-1!==d.indexOf(e)){if(0!==r[e].children.length)throw new Error("[ElTable]children must be an empty array.");r[e].children=o}else{var c=n||{},h=c.loaded,f=void 0!==h&&h,m=c.loading,y=void 0!==m&&m;r[e]={lazy:!0,loaded:!!f,loading:!!y,expanded:v(n,e),children:o,level:""}}}))}this.states.treeData=r,this.updateTableScrollY()},updateTreeExpandKeys:function(e){Object.keys(this.normalizedData).length&&(this.states.expandRowKeys=e,this.updateTreeData())},toggleTreeExpansion:function(e,t){this.assertRowKey();var n=this.states,r=n.rowKey,o=n.treeData,l=Ln(e,r),data=l&&o[l],c=o[l].expanded;l&&data&&"expanded"in data&&(t=void 0===t?!data.expanded:t,o[l].expanded=t,c!==t&&this.table.$emit("expand-change",e,t),this.updateTableScrollY())},loadOrToggle:function(e){this.assertRowKey();var t=this.states,n=t.lazy,r=t.treeData,o=t.rowKey,l=Ln(e,o),data=r[l];n&&data&&"loaded"in data&&!data.loaded?this.loadData(e,l,data):this.toggleTreeExpansion(e)},loadData:function(e,t,n){var r=this,o=this.table.load,l=this.states,c=l.lazyTreeNodeMap,h=l.treeData;o&&!h[t].loaded&&(h[t].loading=!0,o(e,n,(function(data){if(!Array.isArray(data))throw new Error("[ElTable] data must be an array");h[t].loading=!1,h[t].loaded=!0,h[t].expanded=!0,data.length&&r.$set(c,t,data),r.table.$emit("expand-change",e,!0)})))}}},Wn=function e(t){var n=[];return t.forEach((function(t){t.children?n.push.apply(n,e(t.children)):n.push(t)})),n},Un=En.a.extend({data:function(){return{states:{rowKey:null,data:[],isComplex:!1,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isAllSelected:!1,selection:[],reserveSelection:!1,selectOnIndeterminate:!1,selectable:null,filters:{},filteredData:null,sortingColumn:null,sortProp:null,sortOrder:null,hoverRow:null}}},mixins:[$n,Vn,qn],methods:{assertRowKey:function(){if(!this.states.rowKey)throw new Error("[ElTable] prop row-key is required")},updateColumns:function(){var e=this.states,t=e._columns||[];e.fixedColumns=t.filter((function(e){return!0===e.fixed||"left"===e.fixed})),e.rightFixedColumns=t.filter((function(e){return"right"===e.fixed})),e.fixedColumns.length>0&&t[0]&&"selection"===t[0].type&&!t[0].fixed&&(t[0].fixed=!0,e.fixedColumns.unshift(t[0]));var n=t.filter((function(e){return!e.fixed}));e.originColumns=[].concat(e.fixedColumns).concat(n).concat(e.rightFixedColumns);var r=Wn(n),o=Wn(e.fixedColumns),l=Wn(e.rightFixedColumns);e.leafColumnsLength=r.length,e.fixedLeafColumnsLength=o.length,e.rightFixedLeafColumnsLength=l.length,e.columns=[].concat(o).concat(r).concat(l),e.isComplex=e.fixedColumns.length>0||e.rightFixedColumns.length>0},scheduleLayout:function(e){e&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(e){var t=this.states.selection;return(void 0===t?[]:t).indexOf(e)>-1},clearSelection:function(){var e=this.states;e.isAllSelected=!1,e.selection.length&&(e.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var e=this.states,data=e.data,t=e.rowKey,n=e.selection,r=void 0;if(t){r=[];var o=jn(n,t),l=jn(data,t);for(var c in o)o.hasOwnProperty(c)&&!l[c]&&r.push(o[c].row)}else r=n.filter((function(e){return-1===data.indexOf(e)}));if(r.length){var h=n.filter((function(e){return-1===r.indexOf(e)}));e.selection=h,this.table.$emit("selection-change",h.slice())}},toggleRowSelection:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=zn(this.states.selection,e,t);if(r){var o=(this.states.selection||[]).slice();n&&this.table.$emit("select",o,e),this.table.$emit("selection-change",o)}},toggleAllSelection:L()(10,(function(){var e=this.states,t=e.data,data=void 0===t?[]:t,n=e.selection,r=e.selectOnIndeterminate?!e.isAllSelected:!(e.isAllSelected||n.length);e.isAllSelected=r;var o=!1;data.forEach((function(t,l){e.selectable?e.selectable.call(null,t,l)&&zn(n,t,r)&&(o=!0):zn(n,t,r)&&(o=!0)})),o&&this.table.$emit("selection-change",n?n.slice():[]),this.table.$emit("select-all",n)})),updateSelectionByRowKey:function(){var e=this.states,t=e.selection,n=e.rowKey,data=e.data,r=jn(t,n);data.forEach((function(e){var o=Ln(e,n),l=r[o];l&&(t[l.index]=e)}))},updateAllSelected:function(){var e=this.states,t=e.selection,n=e.rowKey,r=e.selectable,data=e.data||[];if(0!==data.length){var o=void 0;n&&(o=jn(t,n));for(var l,c=!0,h=0,i=0,f=data.length;i<f;i++){var d=data[i],v=r&&r.call(null,d,i);if(l=d,o?o[Ln(l,n)]:-1!==t.indexOf(l))h++;else if(!r||v){c=!1;break}}0===h&&(c=!1),e.isAllSelected=c}else e.isAllSelected=!1},updateFilters:function(e,t){Array.isArray(e)||(e=[e]);var n=this.states,r={};return e.forEach((function(col){n.filters[col.id]=t,r[col.columnKey||col.id]=t})),r},updateSort:function(e,t,n){this.states.sortingColumn&&this.states.sortingColumn!==e&&(this.states.sortingColumn.order=null),this.states.sortingColumn=e,this.states.sortProp=t,this.states.sortOrder=n},execFilter:function(){var e=this,t=this.states,n=t._data,r=t.filters,data=n;Object.keys(r).forEach((function(n){var r=t.filters[n];if(r&&0!==r.length){var o=Pn(e.states,n);o&&o.filterMethod&&(data=data.filter((function(e){return r.some((function(t){return o.filterMethod.call(null,t,e,o)}))})))}})),t.filteredData=data},execSort:function(){var e=this.states;e.data=function(data,e){var t=e.sortingColumn;return t&&"string"!=typeof t.sortable?Dn(data,e.sortProp,e.sortOrder,t.sortMethod,t.sortBy):data}(e.filteredData,e)},execQuery:function(e){e&&e.filter||this.execFilter(),this.execSort()},clearFilter:function(e){var t=this.states,n=this.table.$refs,r=n.tableHeader,o=n.fixedTableHeader,l=n.rightFixedTableHeader,c={};r&&(c=Ze()(c,r.filterPanels)),o&&(c=Ze()(c,o.filterPanels)),l&&(c=Ze()(c,l.filterPanels));var h=Object.keys(c);if(h.length)if("string"==typeof e&&(e=[e]),Array.isArray(e)){var f=e.map((function(e){return function(table,e){for(var t=null,i=0;i<table.columns.length;i++){var n=table.columns[i];if(n.columnKey===e){t=n;break}}return t}(t,e)}));h.forEach((function(e){var t=f.find((function(col){return col.id===e}));t&&(c[e].filteredValue=[])})),this.commit("filterChange",{column:f,values:[],silent:!0,multi:!0})}else h.forEach((function(e){c[e].filteredValue=[]})),t.filters={},this.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:function(){this.states.sortingColumn&&(this.updateSort(null,null,null),this.commit("changeSortCondition",{silent:!0}))},setExpandRowKeysAdapter:function(e){this.setExpandRowKeys(e),this.updateTreeExpandKeys(e)},toggleRowExpansionAdapter:function(e,t){this.states.columns.some((function(e){return"expand"===e.type}))?this.toggleRowExpansion(e,t):this.toggleTreeExpansion(e,t)}}});Un.prototype.mutations={setData:function(e,data){var t=e._data!==data;e._data=data,this.execQuery(),this.updateCurrentRow(),this.updateExpandRows(),e.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):t?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(e,t,n,r){var o=e._columns;r&&((o=r.children)||(o=r.children=[])),void 0!==n?o.splice(n,0,t):o.push(t),"selection"===t.type&&(e.selectable=t.selectable,e.reserveSelection=t.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(e,t,n){var r=e._columns;n&&((r=n.children)||(r=n.children=[])),r&&r.splice(r.indexOf(t),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(e,t){var n=t.prop,r=t.order;if(n){var o=Object(x.arrayFind)(e.columns,(function(e){return e.property===n}));o&&(o.order=r,this.updateSort(o,n,r),this.commit("changeSortCondition"))}},changeSortCondition:function(e,t){var n=e.sortingColumn,r=e.sortProp,o=e.sortOrder;null===o&&(e.sortingColumn=null,e.sortProp=null);this.execQuery({filter:!0}),t&&t.silent||this.table.$emit("sort-change",{column:n,prop:r,order:o}),this.updateTableScrollY()},filterChange:function(e,t){var n=t.column,r=t.values,o=t.silent,l=this.updateFilters(n,r);this.execQuery(),o||this.table.$emit("filter-change",l),this.updateTableScrollY()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(e,t){this.toggleRowSelection(t),this.updateAllSelected()},setHoverRow:function(e,t){e.hoverRow=t},setCurrentRow:function(e,t){this.updateCurrentRow(t)}},Un.prototype.commit=function(e){var t=this.mutations;if(!t[e])throw new Error("Action not found: "+e);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t[e].apply(this,[this.states].concat(r))},Un.prototype.updateTableScrollY=function(){En.a.nextTick(this.table.updateScrollY)};var Gn=Un;function Yn(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n],o=void 0;"string"==typeof r?o=function(){return this.store.states[r]}:"function"==typeof r?o=function(){return r.call(this,this.store.states)}:console.error("invalid value type"),o&&(t[n]=o)})),t}var Kn=n(29),Xn=n.n(Kn);var Zn=function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=Xn()(),t)t.hasOwnProperty(n)&&(this[n]=t[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return e.prototype.updateScrollY=function(){if(null===this.height)return!1;var e=this.table.bodyWrapper;if(this.table.$el&&e){var body=e.querySelector(".el-table__body"),t=this.scrollY,n=body.offsetHeight>this.bodyHeight;return this.scrollY=n,t!==n}return!1},e.prototype.setHeight=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!En.a.prototype.$isServer){var r=this.table.$el;if(e=Bn(e),this.height=e,!r&&(e||0===e))return En.a.nextTick((function(){return t.setHeight(e,n)}));"number"==typeof e?(r.style[n]=e+"px",this.updateElsHeight()):"string"==typeof e&&(r.style[n]=e,this.updateElsHeight())}},e.prototype.setMaxHeight=function(e){this.setHeight(e,"max-height")},e.prototype.getFlattenColumns=function(){var e=[];return this.table.columns.forEach((function(t){t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e},e.prototype.updateElsHeight=function(){var e=this;if(!this.table.$ready)return En.a.nextTick((function(){return e.updateElsHeight()}));var t=this.table.$refs,n=t.headerWrapper,r=t.appendWrapper,o=t.footerWrapper;if(this.appendHeight=r?r.offsetHeight:0,!this.showHeader||n){var l=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&l<2)return En.a.nextTick((function(){return e.updateElsHeight()}));var c=this.tableHeight=this.table.$el.clientHeight,h=this.footerHeight=o?o.offsetHeight:0;null!==this.height&&(this.bodyHeight=c-l-h+(o?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var f=!this.table.data||0===this.table.data.length;this.viewportHeight=this.scrollX?c-(f?0:this.gutterWidth):c,this.updateScrollY(),this.notifyObservers("scrollable")}},e.prototype.updateColumnsWidth=function(){if(!En.a.prototype.$isServer){var e=this.fit,t=this.table.$el.clientWidth,n=0,r=this.getFlattenColumns(),o=r.filter((function(e){return"number"!=typeof e.width}));if(r.forEach((function(e){"number"==typeof e.width&&e.realWidth&&(e.realWidth=null)})),o.length>0&&e){r.forEach((function(e){n+=e.width||e.minWidth||80}));var l=this.scrollY?this.gutterWidth:0;if(n<=t-l){this.scrollX=!1;var c=t-l-n;if(1===o.length)o[0].realWidth=(o[0].minWidth||80)+c;else{var h=c/o.reduce((function(e,t){return e+(t.minWidth||80)}),0),f=0;o.forEach((function(e,t){if(0!==t){var n=Math.floor((e.minWidth||80)*h);f+=n,e.realWidth=(e.minWidth||80)+n}})),o[0].realWidth=(o[0].minWidth||80)+c-f}}else this.scrollX=!0,o.forEach((function(e){e.realWidth=e.minWidth}));this.bodyWidth=Math.max(n,t),this.table.resizeState.width=this.bodyWidth}else r.forEach((function(e){e.width||e.minWidth?e.realWidth=e.width||e.minWidth:e.realWidth=80,n+=e.realWidth})),this.scrollX=n>t,this.bodyWidth=n;var d=this.store.states.fixedColumns;if(d.length>0){var v=0;d.forEach((function(e){v+=e.realWidth||e.width})),this.fixedWidth=v}var m=this.store.states.rightFixedColumns;if(m.length>0){var y=0;m.forEach((function(e){y+=e.realWidth||e.width})),this.rightFixedWidth=y}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)},e.prototype.notifyObservers=function(e){var t=this;this.observers.forEach((function(n){switch(e){case"columns":n.onColumnsChange(t);break;case"scrollable":n.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event "+e+".")}}))},e}(),Jn=Zn,Qn={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var e=this.layout;if(!e&&this.table&&(e=this.table.layout),!e)throw new Error("Can not find table layout.");return e}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(){var e=this.$el.querySelectorAll("colgroup > col");if(e.length){var t=this.tableLayout.getFlattenColumns(),n={};t.forEach((function(e){n[e.id]=e}));for(var i=0,r=e.length;i<r;i++){var col=e[i],o=col.getAttribute("name"),l=n[o];l&&col.setAttribute("width",l.realWidth||l.width)}}},onScrollableChange:function(e){for(var t=this.$el.querySelectorAll("colgroup > col[name=gutter]"),i=0,n=t.length;i<n;i++){t[i].setAttribute("width",e.scrollY?e.gutterWidth:"0")}for(var r=this.$el.querySelectorAll("th.gutter"),o=0,l=r.length;o<l;o++){var th=r[o];th.style.width=e.scrollY?e.gutterWidth+"px":"0",th.style.display=e.scrollY?"":"none"}}}},er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nr=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e},rr={name:"ElTableBody",mixins:[Qn],components:{ElCheckbox:xn.a,ElTooltip:je.a},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(e){var t=this,data=this.data||[];return e("table",{class:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})}))]),e("tbody",[data.reduce((function(e,n){return e.concat(t.wrappedRowRender(n,e.length))}),[]),e("el-tooltip",{attrs:{effect:this.table.tooltipEffect,placement:"top",content:this.tooltipContent},ref:"tooltip"})])])},computed:nr({table:function(){return this.$parent}},Yn({data:"data",columns:"columns",treeIndent:"indent",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length},hasExpandColumn:function(e){return e.columns.some((function(e){return"expand"===e.type}))}}),{firstDefaultColumnIndex:function(){return Object(x.arrayFindIndex)(this.columns,(function(e){return"default"===e.type}))}}),watch:{"store.states.hoverRow":function(e,t){var n=this;if(this.store.states.isComplex&&!this.$isServer){var r=window.requestAnimationFrame;r||(r=function(e){return setTimeout(e,16)}),r((function(){var r=n.$el.querySelectorAll(".el-table__row"),o=r[t],l=r[e];o&&Object(xe.removeClass)(o,"hover-row"),l&&Object(xe.addClass)(l,"hover-row")}))}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=L()(50,(function(e){return e.handleShowPopper()}))},methods:{getKeyOfRow:function(e,t){var n=this.table.rowKey;return n?Ln(e,n):t},isColumnHidden:function(e){return!0===this.fixed||"left"===this.fixed?e>=this.leftFixedLeafCount:"right"===this.fixed?e<this.columnsCount-this.rightFixedLeafCount:e<this.leftFixedLeafCount||e>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(e,t,n,r){var o=1,l=1,c=this.table.spanMethod;if("function"==typeof c){var h=c({row:e,column:t,rowIndex:n,columnIndex:r});Array.isArray(h)?(o=h[0],l=h[1]):"object"===(void 0===h?"undefined":er(h))&&(o=h.rowspan,l=h.colspan)}return{rowspan:o,colspan:l}},getRowStyle:function(e,t){var n=this.table.rowStyle;return"function"==typeof n?n.call(null,{row:e,rowIndex:t}):n||null},getRowClass:function(e,t){var n=["el-table__row"];this.table.highlightCurrentRow&&e===this.store.states.currentRow&&n.push("current-row"),this.stripe&&t%2==1&&n.push("el-table__row--striped");var r=this.table.rowClassName;return"string"==typeof r?n.push(r):"function"==typeof r&&n.push(r.call(null,{row:e,rowIndex:t})),this.store.states.expandRows.indexOf(e)>-1&&n.push("expanded"),n},getCellStyle:function(e,t,n,r){var o=this.table.cellStyle;return"function"==typeof o?o.call(null,{rowIndex:e,columnIndex:t,row:n,column:r}):o},getCellClass:function(e,t,n,r){var o=[r.id,r.align,r.className];this.isColumnHidden(t)&&o.push("is-hidden");var l=this.table.cellClassName;return"string"==typeof l?o.push(l):"function"==typeof l&&o.push(l.call(null,{rowIndex:e,columnIndex:t,row:n,column:r})),o.join(" ")},getColspanRealWidth:function(e,t,n){return t<1?e[n].realWidth:e.map((function(e){return e.realWidth})).slice(n,n+t).reduce((function(e,t){return e+t}),-1)},handleCellMouseEnter:function(e,t){var table=this.table,n=Mn(e);if(n){var r=Nn(table,n),o=table.hoverState={cell:n,column:r,row:t};table.$emit("cell-mouse-enter",o.row,o.column,o.cell,e)}var l=e.target.querySelector(".cell");if(Object(xe.hasClass)(l,"el-tooltip")&&l.childNodes.length){var c=document.createRange();if(c.setStart(l,0),c.setEnd(l,l.childNodes.length),(c.getBoundingClientRect().width+((parseInt(Object(xe.getStyle)(l,"paddingLeft"),10)||0)+(parseInt(Object(xe.getStyle)(l,"paddingRight"),10)||0))>l.offsetWidth||l.scrollWidth>l.offsetWidth)&&this.$refs.tooltip){var h=this.$refs.tooltip;this.tooltipContent=n.innerText||n.textContent,h.referenceElm=n,h.$refs.popper&&(h.$refs.popper.style.display="none"),h.doDestroy(),h.setExpectedState(!0),this.activateTooltip(h)}}},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;if(t&&(t.setExpectedState(!1),t.handleClosePopper()),Mn(e)){var n=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",n.row,n.column,n.cell,e)}},handleMouseEnter:L()(30,(function(e){this.store.commit("setHoverRow",e)})),handleMouseLeave:L()(30,(function(){this.store.commit("setHoverRow",null)})),handleContextMenu:function(e,t){this.handleEvent(e,t,"contextmenu")},handleDoubleClick:function(e,t){this.handleEvent(e,t,"dblclick")},handleClick:function(e,t){this.store.commit("setCurrentRow",t),this.handleEvent(e,t,"click")},handleEvent:function(e,t,n){var table=this.table,r=Mn(e),o=void 0;r&&(o=Nn(table,r))&&table.$emit("cell-"+n,t,o,r,e),table.$emit("row-"+n,t,o,e)},rowRender:function(e,t,n){var r=this,o=this.$createElement,l=this.treeIndent,c=this.columns,h=this.firstDefaultColumnIndex,f=c.map((function(e,t){return r.isColumnHidden(t)})),d=this.getRowClass(e,t),v=!0;return n&&(d.push("el-table__row--level-"+n.level),v=n.display),o("tr",{directives:[{name:"show",value:v}],style:this.getRowStyle(e,t),class:d,key:this.getKeyOfRow(e,t),on:{dblclick:function(t){return r.handleDoubleClick(t,e)},click:function(t){return r.handleClick(t,e)},contextmenu:function(t){return r.handleContextMenu(t,e)},mouseenter:function(e){return r.handleMouseEnter(t)},mouseleave:this.handleMouseLeave}},[c.map((function(d,v){var m=r.getSpan(e,d,t,v),y=m.rowspan,_=m.colspan;if(!y||!_)return null;var x=nr({},d);x.realWidth=r.getColspanRealWidth(c,_,v);var data={store:r.store,_self:r.context||r.table.$vnode.context,column:x,row:e,$index:t};return v===h&&n&&(data.treeNode={indent:n.level*l,level:n.level},"boolean"==typeof n.expanded&&(data.treeNode.expanded=n.expanded,"loading"in n&&(data.treeNode.loading=n.loading),"noLazyChildren"in n&&(data.treeNode.noLazyChildren=n.noLazyChildren))),o("td",{style:r.getCellStyle(t,v,e,d),class:r.getCellClass(t,v,e,d),attrs:{rowspan:y,colspan:_},on:{mouseenter:function(t){return r.handleCellMouseEnter(t,e)},mouseleave:r.handleCellMouseLeave}},[d.renderCell.call(r._renderProxy,r.$createElement,data,f[v])])}))])},wrappedRowRender:function(e,t){var n=this,r=this.$createElement,o=this.store,l=o.isRowExpanded,c=o.assertRowKey,h=o.states,f=h.treeData,d=h.lazyTreeNodeMap,v=h.childrenColumnName,m=h.rowKey;if(this.hasExpandColumn&&l(e)){var y=this.table.renderExpanded,tr=this.rowRender(e,t);return y?[[tr,r("tr",{key:"expanded-row__"+tr.key},[r("td",{attrs:{colspan:this.columnsCount},class:"el-table__expanded-cell"},[y(this.$createElement,{row:e,$index:t,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),tr)}if(Object.keys(f).length){c();var _=Ln(e,m),x=f[_],w=null;x&&(w={expanded:x.expanded,level:x.level,display:!0},"boolean"==typeof x.lazy&&("boolean"==typeof x.loaded&&x.loaded&&(w.noLazyChildren=!(x.children&&x.children.length)),w.loading=x.loading));var S=[this.rowRender(e,t,w)];if(x){var i=0;x.display=!0,function e(r,o){r&&r.length&&o&&r.forEach((function(r){var l={display:o.display&&o.expanded,level:o.level+1},c=Ln(r,m);if(null==c)throw new Error("for nested data item, row-key is required.");if((x=nr({},f[c]))&&(l.expanded=x.expanded,x.level=x.level||l.level,x.display=!(!x.expanded||!l.display),"boolean"==typeof x.lazy&&("boolean"==typeof x.loaded&&x.loaded&&(l.noLazyChildren=!(x.children&&x.children.length)),l.loading=x.loading)),i++,S.push(n.rowRender(r,t+i,l)),x){var h=d[c]||r[v];e(h,x)}}))}(d[_]||e[v],x)}return S}return this.rowRender(e,t)}}},ir=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"}},[e.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:e.filteredValue,callback:function(t){e.filteredValue=t},expression:"filteredValue"}},e._l(e.filters,(function(filter){return n("el-checkbox",{key:filter.value,attrs:{label:filter.value}},[e._v(e._s(filter.text))])})),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===e.filteredValue.length},attrs:{disabled:0===e.filteredValue.length},on:{click:e.handleConfirm}},[e._v(e._s(e.t("el.table.confirmFilter")))]),n("button",{on:{click:e.handleReset}},[e._v(e._s(e.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===e.filterValue||null===e.filterValue},on:{click:function(t){e.handleSelect(null)}}},[e._v(e._s(e.t("el.table.clearFilter")))]),e._l(e.filters,(function(filter){return n("li",{key:filter.value,staticClass:"el-table-filter__list-item",class:{"is-active":e.isActive(filter)},attrs:{label:filter.value},on:{click:function(t){e.handleSelect(filter.value)}}},[e._v(e._s(filter.text))])}))],2)])])};ir._withStripped=!0;var or=[];!En.a.prototype.$isServer&&document.addEventListener("click",(function(e){or.forEach((function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))}))}));var ar=function(e){e&&or.push(e)},sr=function(e){-1!==or.indexOf(e)&&or.splice(e,1)},lr=n(30),ur=n.n(lr),cr=o({name:"ElTableFilterPanel",mixins:[z.a,_.a],directives:{Clickoutside:R.a},components:{ElCheckbox:xn.a,ElCheckboxGroup:ur.a,ElScrollbar:V.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(filter){return filter.value===this.filterValue},handleOutsideClick:function(){var e=this;setTimeout((function(){e.showPopper=!1}),16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(e){this.filterValue=e,null!=e?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(e){this.table.store.commit("filterChange",{column:this.column,values:e}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(e){this.filteredValue&&(null!=e?this.filteredValue.splice(0,1,e):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(e){this.column&&(this.column.filteredValue=e)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var e=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",(function(){e.updatePopper()})),this.$watch("showPopper",(function(t){e.column&&(e.column.filterOpened=t),t?ar(e):sr(e)}))},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)<O.PopupManager.zIndex&&(this.popperJS._popper.style.zIndex=O.PopupManager.nextZIndex())}}},ir,[],!1,null,null,null);cr.options.__file="packages/table/src/filter-panel.vue";var fr=cr.exports,dr=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e},pr=function e(t){var n=[];return t.forEach((function(t){t.children?(n.push(t),n.push.apply(n,e(t.children))):n.push(t)})),n},gr=function(e){var t=1,n=function e(n,r){if(r&&(n.level=r.level+1,t<n.level&&(t=n.level)),n.children){var o=0;n.children.forEach((function(t){e(t,n),o+=t.colSpan})),n.colSpan=o}else n.colSpan=1};e.forEach((function(e){e.level=1,n(e)}));for(var r=[],i=0;i<t;i++)r.push([]);return pr(e).forEach((function(e){e.children?e.rowSpan=1:e.rowSpan=t-e.level+1,r[e.level-1].push(e)})),r},vr={name:"ElTableHeader",mixins:[Qn],render:function(e){var t=this,n=this.store.states.originColumns,r=gr(n,this.columns),o=r.length>1;return o&&(this.$parent.isGroup=!0),e("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("thead",{class:[{"is-group":o,"has-gutter":this.hasGutter}]},[this._l(r,(function(n,r){return e("tr",{style:t.getHeaderRowStyle(r),class:t.getHeaderRowClass(r)},[n.map((function(o,l){return e("th",{attrs:{colspan:o.colSpan,rowspan:o.rowSpan},on:{mousemove:function(e){return t.handleMouseMove(e,o)},mouseout:t.handleMouseOut,mousedown:function(e){return t.handleMouseDown(e,o)},click:function(e){return t.handleHeaderClick(e,o)},contextmenu:function(e){return t.handleHeaderContextMenu(e,o)}},style:t.getHeaderCellStyle(r,l,n,o),class:t.getHeaderCellClass(r,l,n,o),key:o.id},[e("div",{class:["cell",o.filteredValue&&o.filteredValue.length>0?"highlight":"",o.labelClassName]},[o.renderHeader?o.renderHeader.call(t._renderProxy,e,{column:o,$index:l,store:t.store,_self:t.$parent.$vnode.context}):o.label,o.sortable?e("span",{class:"caret-wrapper",on:{click:function(e){return t.handleSortClick(e,o)}}},[e("i",{class:"sort-caret ascending",on:{click:function(e){return t.handleSortClick(e,o,"ascending")}}}),e("i",{class:"sort-caret descending",on:{click:function(e){return t.handleSortClick(e,o,"descending")}}})]):"",o.filterable?e("span",{class:"el-table__column-filter-trigger",on:{click:function(e){return t.handleFilterClick(e,o)}}},[e("i",{class:["el-icon-arrow-down",o.filterOpened?"el-icon-arrow-up":""]})]):""])])})),t.hasGutter?e("th",{class:"gutter"}):""])}))])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:xn.a},computed:dr({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},Yn({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var e=this;this.$nextTick((function(){var t=e.defaultSort,n=t.prop,r=t.order;e.store.commit("sort",{prop:n,order:r,init:!0})}))},beforeDestroy:function(){var e=this.filterPanels;for(var t in e)e.hasOwnProperty(t)&&e[t]&&e[t].$destroy(!0)},methods:{isCellHidden:function(e,t){for(var n=0,i=0;i<e;i++)n+=t[i].colSpan;var r=n+t[e].colSpan-1;return!0===this.fixed||"left"===this.fixed?r>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:r<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(e){var t=this.table.headerRowStyle;return"function"==typeof t?t.call(null,{rowIndex:e}):t},getHeaderRowClass:function(e){var t=[],n=this.table.headerRowClassName;return"string"==typeof n?t.push(n):"function"==typeof n&&t.push(n.call(null,{rowIndex:e})),t.join(" ")},getHeaderCellStyle:function(e,t,n,r){var o=this.table.headerCellStyle;return"function"==typeof o?o.call(null,{rowIndex:e,columnIndex:t,row:n,column:r}):o},getHeaderCellClass:function(e,t,n,r){var o=[r.id,r.order,r.headerAlign,r.className,r.labelClassName];0===e&&this.isCellHidden(t,n)&&o.push("is-hidden"),r.children||o.push("is-leaf"),r.sortable&&o.push("is-sortable");var l=this.table.headerCellClassName;return"string"==typeof l?o.push(l):"function"==typeof l&&o.push(l.call(null,{rowIndex:e,columnIndex:t,row:n,column:r})),o.join(" ")},toggleAllSelection:function(e){e.stopPropagation(),this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n=e.target,r="TH"===n.tagName?n:n.parentNode;r=r.querySelector(".el-table__column-filter-trigger")||r;var table=this.$parent,o=this.filterPanels[t.id];o&&t.filterOpened?o.showPopper=!1:(o||(o=new En.a(fr),this.filterPanels[t.id]=o,t.filterPlacement&&(o.placement=t.filterPlacement),o.table=table,o.cell=r,o.column=t,!this.$isServer&&o.$mount(document.createElement("div"))),setTimeout((function(){o.showPopper=!0}),16))},handleHeaderClick:function(e,t){!t.filters&&t.sortable?this.handleSortClick(e,t):t.filterable&&!t.sortable&&this.handleFilterClick(e,t),this.$parent.$emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){this.$parent.$emit("header-contextmenu",t,e)},handleMouseDown:function(e,t){var n=this;if(!this.$isServer&&!(t.children&&t.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var table=this.$parent,r=table.$el.getBoundingClientRect().left,o=this.$el.querySelector("th."+t.id),l=o.getBoundingClientRect(),c=l.left-r+30;Object(xe.addClass)(o,"noclick"),this.dragState={startMouseLeft:e.clientX,startLeft:l.right-r,startColumnLeft:l.left-r,tableLeft:r};var h=table.$refs.resizeProxy;h.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var f=function(e){var t=e.clientX-n.dragState.startMouseLeft,r=n.dragState.startLeft+t;h.style.left=Math.max(c,r)+"px"};document.addEventListener("mousemove",f),document.addEventListener("mouseup",(function r(){if(n.dragging){var l=n.dragState,c=l.startColumnLeft,d=l.startLeft,v=parseInt(h.style.left,10)-c;t.width=t.realWidth=v,table.$emit("header-dragend",t.width,d-c,t,e),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},table.resizeProxyVisible=!1}document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",r),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){Object(xe.removeClass)(o,"noclick")}),0)}))}},handleMouseMove:function(e,t){if(!(t.children&&t.children.length>0)){for(var n=e.target;n&&"TH"!==n.tagName;)n=n.parentNode;if(t&&t.resizable&&!this.dragging&&this.border){var rect=n.getBoundingClientRect(),r=document.body.style;rect.width>12&&rect.right-e.pageX<8?(r.cursor="col-resize",Object(xe.hasClass)(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=t):this.dragging||(r.cursor="",Object(xe.hasClass)(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(e){var t=e.order,n=e.sortOrders;if(""===t)return n[0];var r=n.indexOf(t||null);return n[r>n.length-2?0:r+1]},handleSortClick:function(e,t,n){e.stopPropagation();for(var r=t.order===n?null:n||this.toggleOrder(t),o=e.target;o&&"TH"!==o.tagName;)o=o.parentNode;if(o&&"TH"===o.tagName&&Object(xe.hasClass)(o,"noclick"))Object(xe.removeClass)(o,"noclick");else if(t.sortable){var l=this.store.states,c=l.sortProp,h=void 0,f=l.sortingColumn;(f!==t||f===t&&null===f.order)&&(f&&(f.order=null),l.sortingColumn=t,c=t.property),h=t.order=r||null,l.sortProp=c,l.sortOrder=h,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},mr=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e},yr={name:"ElTableFooter",mixins:[Qn],render:function(e){var t=this,n=[];return this.summaryMethod?n=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach((function(e,r){if(0!==r){var o=t.store.states.data.map((function(t){return Number(t[e.property])})),l=[],c=!0;o.forEach((function(e){if(!isNaN(e)){c=!1;var t=(""+e).split(".")[1];l.push(t?t.length:0)}}));var h=Math.max.apply(null,l);n[r]=c?"":o.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:parseFloat((e+t).toFixed(Math.min(h,20)))}),0)}else n[r]=t.sumText})),e("table",{class:"el-table__footer",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("tbody",{class:[{"has-gutter":this.hasGutter}]},[e("tr",[this.columns.map((function(r,o){return e("td",{key:o,attrs:{colspan:r.colSpan,rowspan:r.rowSpan},class:t.getRowClasses(r,o)},[e("div",{class:["cell",r.labelClassName]},[n[o]])])})),this.hasGutter?e("th",{class:"gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:mr({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},Yn({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),methods:{isCellHidden:function(e,t,n){if(!0===this.fixed||"left"===this.fixed)return e>=this.leftFixedLeafCount;if("right"===this.fixed){for(var r=0,i=0;i<e;i++)r+=t[i].colSpan;return r<this.columnsCount-this.rightFixedLeafCount}return!(this.fixed||!n.fixed)||(e<this.leftFixedCount||e>=this.columnsCount-this.rightFixedCount)},getRowClasses:function(e,t){var n=[e.id,e.align,e.labelClassName];return e.className&&n.push(e.className),this.isCellHidden(t,this.columns,e)&&n.push("is-hidden"),e.children||n.push("is-leaf"),n}}},_r=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e},xr=1,wr={name:"ElTable",mixins:[_.a,E.a],directives:{Mousewheel:Cn},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function},components:{TableHeader:vr,TableFooter:yr,TableBody:rr,ElCheckbox:xn.a},methods:{getMigratingConfig:function(){return{events:{expand:"expand is renamed to expand-change"}}},setCurrentRow:function(e){this.store.commit("setCurrentRow",e)},toggleRowSelection:function(e,t){this.store.toggleRowSelection(e,t,!1),this.store.updateAllSelected()},toggleRowExpansion:function(e,t){this.store.toggleRowExpansionAdapter(e,t)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(e){this.store.clearFilter(e)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit("setHoverRow",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){this.layout.updateScrollY()&&this.layout.updateColumnsWidth()},handleFixedMousewheel:function(e,data){var t=this.bodyWrapper;if(Math.abs(data.spinY)>0){var n=t.scrollTop;data.pixelY<0&&0!==n&&e.preventDefault(),data.pixelY>0&&t.scrollHeight-t.clientHeight>n&&e.preventDefault(),t.scrollTop+=Math.ceil(data.pixelY/5)}else t.scrollLeft+=Math.ceil(data.pixelX/5)},handleHeaderFooterMousewheel:function(e,data){var t=data.pixelX,n=data.pixelY;Math.abs(t)>=Math.abs(n)&&(this.bodyWrapper.scrollLeft+=data.pixelX/5)},syncPostion:Object(wn.throttle)(20,(function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,r=e.offsetWidth,o=e.scrollWidth,l=this.$refs,c=l.headerWrapper,h=l.footerWrapper,f=l.fixedBodyWrapper,d=l.rightFixedBodyWrapper;c&&(c.scrollLeft=t),h&&(h.scrollLeft=t),f&&(f.scrollTop=n),d&&(d.scrollTop=n);var v=o-r-1;this.scrollPosition=t>=v?"right":0===t?"left":"middle"})),bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(Kt.addResizeListener)(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(Kt.removeResizeListener)(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var e=!1,t=this.$el,n=this.resizeState,r=n.width,o=n.height,l=t.offsetWidth;r!==l&&(e=!0);var c=t.offsetHeight;(this.height||this.shouldUpdateHeight)&&o!==c&&(e=!0),e&&(this.resizeState.width=l,this.resizeState.height=c,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(e,t){this.store.commit("sort",{prop:e,order:t})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:_r({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var e=this.layout,t=e.bodyWidth,n=e.scrollY,r=e.gutterWidth;return t?t-(n?r:0)+"px":""},bodyHeight:function(){var e=this.layout,t=e.headerHeight,n=void 0===t?0:t,r=e.bodyHeight,o=e.footerHeight,l=void 0===o?0:o;if(this.height)return{height:r?r+"px":""};if(this.maxHeight){var c=Bn(this.maxHeight);if("number"==typeof c)return{"max-height":c-l-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var e=Bn(this.maxHeight);if("number"==typeof e)return e=this.layout.scrollX?e-this.layout.gutterWidth:e,this.showHeader&&(e-=this.layout.headerHeight),{"max-height":(e-=this.layout.footerHeight)+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}}},Yn({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(e){this.layout.setHeight(e)}},maxHeight:{immediate:!0,handler:function(e){this.layout.setMaxHeight(e)}},currentRowKey:{immediate:!0,handler:function(e){this.rowKey&&this.store.setCurrentRowKey(e)}},data:{immediate:!0,handler:function(e){this.store.commit("setData",e)}},expandRowKeys:{immediate:!0,handler:function(e){e&&this.store.setExpandRowKeysAdapter(e)}}},created:function(){var e=this;this.tableId="el-table_"+xr++,this.debouncedUpdateLayout=Object(wn.debounce)(50,(function(){return e.doLayout()}))},mounted:function(){var e=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach((function(t){t.filteredValue&&t.filteredValue.length&&e.store.commit("filterChange",{column:t,values:t.filteredValue,silent:!0})})),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var e=this.treeProps,t=e.hasChildren,n=void 0===t?"hasChildren":t,r=e.children,o=void 0===r?"children":r;return this.store=function(table){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!table)throw new Error("Table is required.");var t=new Gn;return t.table=table,Object.keys(e).forEach((function(n){t.states[n]=e[n]})),t}(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:o}),{layout:new Jn({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader}),isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},Sr=o(wr,bn,[],!1,null,null,null);Sr.options.__file="packages/table/src/table.vue";var kr=Sr.exports;kr.install=function(e){e.component(kr.name,kr)};var Or=kr,Cr={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Tr={selection:{renderHeader:function(e,t){var n=t.store;return e("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},nativeOn:{click:this.toggleAllSelection}})},renderCell:function(e,t){var n=t.row,r=t.column,o=t.store,l=t.$index;return e("el-checkbox",{nativeOn:{click:function(e){return e.stopPropagation()}},attrs:{value:o.isSelected(n),disabled:!!r.selectable&&!r.selectable.call(null,n,l)},on:{input:function(){o.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(e,t){return t.column.label||"#"},renderCell:function(e,t){var n=t.$index,i=n+1,r=t.column.index;return"number"==typeof r?i=n+r:"function"==typeof r&&(i=r(n)),e("div",[i])},sortable:!1},expand:{renderHeader:function(e,t){return t.column.label||""},renderCell:function(e,t){var n=t.row,r=t.store,o=["el-table__expand-icon"];r.states.expandRows.indexOf(n)>-1&&o.push("el-table__expand-icon--expanded");return e("div",{class:o,on:{click:function(e){e.stopPropagation(),r.toggleRowExpansion(n)}}},[e("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function Er(e,t){var n=t.row,r=t.column,o=t.$index,l=r.property,c=l&&Object(x.getPropByPath)(n,l).v;return r&&r.formatter?r.formatter(n,r,c,o):c}var Ar=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e},Mr=1,Ir={name:"ElTableColumn",props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(e){return e.every((function(e){return["ascending","descending",null].indexOf(e)>-1}))}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){for(var e=this.$parent;e&&!e.tableId;)e=e.$parent;return e},columnOrTableParent:function(){for(var e=this.$parent;e&&!e.tableId&&!e.columnId;)e=e.$parent;return e},realWidth:function(){return Fn(this.width)},realMinWidth:function(){return void 0!==(e=this.minWidth)&&(e=Fn(e),isNaN(e)&&(e=80)),e;var e},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(t,n){return Array.isArray(n)&&n.forEach((function(n){t[n]=e[n]})),t}),{})},getColumnElIndex:function(e,t){return[].indexOf.call(e,t)},setColumnWidth:function(e){return this.realWidth&&(e.width=this.realWidth),this.realMinWidth&&(e.minWidth=this.realMinWidth),e.minWidth||(e.minWidth=80),e.realWidth=void 0===e.width?e.minWidth:e.width,e},setColumnForcedProps:function(e){var t=e.type,source=Tr[t]||{};return Object.keys(source).forEach((function(t){var n=source[t];void 0!==n&&(e[t]="className"===t?e[t]+" "+n:n)})),e},setColumnRenders:function(e){var t=this,n=(this.$createElement,Object.keys(Tr));this.renderHeader?console.warn("[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):-1===n.indexOf(e.type)&&(e.renderHeader=function(n,r){var o=t.$scopedSlots.header;return o?o(r):e.label});var r=e.renderCell;return"expand"===e.type?(e.renderCell=function(e,data){return e("div",{class:"cell"},[r(e,data)])},this.owner.renderExpanded=function(e,data){return t.$scopedSlots.default?t.$scopedSlots.default(data):t.$slots.default}):(r=r||Er,e.renderCell=function(n,data){var o=null;o=t.$scopedSlots.default?t.$scopedSlots.default(data):r(n,data);var l=function(e,t){var n=t.row,r=t.treeNode,o=t.store;if(!r)return null;var l=[];if(r.indent&&l.push(e("span",{class:"el-table__indent",style:{"padding-left":r.indent+"px"}})),"boolean"!=typeof r.expanded||r.noLazyChildren)l.push(e("span",{class:"el-table__placeholder"}));else{var c=["el-table__expand-icon",r.expanded?"el-table__expand-icon--expanded":""],h=["el-icon-arrow-right"];r.loading&&(h=["el-icon-loading"]),l.push(e("div",{class:c,on:{click:function(e){e.stopPropagation(),o.loadOrToggle(n)}}},[e("i",{class:h})]))}return l}(n,data),c={class:"cell",style:{}};return e.showOverflowTooltip&&(c.class+=" el-tooltip",c.style={width:(data.column.realWidth||data.column.width)-1+"px"}),n("div",c,[l,o])}),e},registerNormalWatchers:function(){var e=this,t={prop:"property",realAlign:"align",realHeaderAlign:"headerAlign",realWidth:"width"},n=["label","property","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"].reduce((function(e,t){return e[t]=t,e}),t);Object.keys(n).forEach((function(n){var r=t[n];e.$watch(n,(function(t){e.columnConfig[r]=t}))}))},registerComplexWatchers:function(){var e=this,t={realWidth:"width",realMinWidth:"minWidth"},n=["fixed"].reduce((function(e,t){return e[t]=t,e}),t);Object.keys(n).forEach((function(n){var r=t[n];e.$watch(n,(function(t){e.columnConfig[r]=t;var n="fixed"===r;e.owner.store.scheduleLayout(n)}))}))}},components:{ElCheckbox:xn.a},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=""},created:function(){var e=this.columnOrTableParent;this.isSubColumn=this.owner!==e,this.columnId=(e.tableId||e.columnId)+"_column_"+Mr++;var t=this.type||"default",n=""===this.sortable||this.sortable,r=Ar({},Cr[t],{id:this.columnId,type:t,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,filterOpened:!1,sortable:n,index:this.index}),o=this.getPropsData(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);o=function(e,t){var n={},r=void 0;for(r in e)n[r]=e[r];for(r in t)if(Rn(t,r)){var o=t[r];void 0!==o&&(n[r]=o)}return n}(r,o);var l=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(a,b){return function(){return a(b.apply(void 0,arguments))}}))}(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps);o=l(o),this.columnConfig=o,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var e=this.owner,t=this.columnOrTableParent,n=this.isSubColumn?t.$el.children:t.$refs.hiddenColumns.children,r=this.getColumnElIndex(n,this.$el);e.store.commit("insertColumn",this.columnConfig,r,this.isSubColumn?t.columnConfig:null)},destroyed:function(){if(this.$parent){var e=this.$parent;this.owner.store.commit("removeColumn",this.columnConfig,this.isSubColumn?e.columnConfig:null)}},render:function(e){return e("div",this.$slots.default)},install:function(e){e.component(Ir.name,Ir)}},Dr=Ir,Pr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.ranged?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+e.type,e.pickerSize?"el-range-editor--"+e.pickerSize:"",e.pickerDisabled?"is-disabled":"",e.pickerVisible?"is-active":""],on:{click:e.handleRangeClick,mouseenter:e.handleMouseEnter,mouseleave:function(t){e.showClose=!1},keydown:e.handleKeydown}},[n("i",{class:["el-input__icon","el-range__icon",e.triggerClass]}),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.startPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[0]},domProps:{value:e.displayValue&&e.displayValue[0]},on:{input:e.handleStartInput,change:e.handleStartChange,focus:e.handleFocus}},"input",e.firstInputId,!1)),e._t("range-separator",[n("span",{staticClass:"el-range-separator"},[e._v(e._s(e.rangeSeparator))])]),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.endPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[1]},domProps:{value:e.displayValue&&e.displayValue[1]},on:{input:e.handleEndInput,change:e.handleEndChange,focus:e.handleFocus}},"input",e.secondInputId,!1)),e.haveTrigger?n("i",{staticClass:"el-input__icon el-range__close-icon",class:[e.showClose?""+e.clearIcon:""],on:{click:e.handleClickIcon}}):e._e()],2):n("el-input",e._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+e.type,attrs:{readonly:!e.editable||e.readonly||"dates"===e.type||"week"===e.type,disabled:e.pickerDisabled,size:e.pickerSize,name:e.name,placeholder:e.placeholder,value:e.displayValue,validateEvent:!1},on:{focus:e.handleFocus,input:function(t){return e.userInput=t},change:e.handleChange},nativeOn:{keydown:function(t){return e.handleKeydown(t)},mouseenter:function(t){return e.handleMouseEnter(t)},mouseleave:function(t){e.showClose=!1}}},"el-input",e.firstInputId,!1),[n("i",{staticClass:"el-input__icon",class:e.triggerClass,attrs:{slot:"prefix"},on:{click:e.handleFocus},slot:"prefix"}),e.haveTrigger?n("i",{staticClass:"el-input__icon",class:[e.showClose?""+e.clearIcon:""],attrs:{slot:"suffix"},on:{click:e.handleClickIcon},slot:"suffix"}):e._e()])};Pr._withStripped=!0;var Nr=n(0),Lr={props:{appendToBody:z.a.props.appendToBody,offset:z.a.props.offset,boundariesPadding:z.a.props.boundariesPadding,arrowOffset:z.a.props.arrowOffset},methods:z.a.methods,data:function(){return Ze()({visibleArrow:!0},z.a.data)},beforeDestroy:z.a.beforeDestroy},jr={date:"yyyy-MM-dd",month:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",week:"yyyywWW",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy"},Rr=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates"],Fr=function(e,t){return"timestamp"===t?e.getTime():Object(Nr.formatDate)(e,t)},Br=function(text,e){return"timestamp"===e?new Date(Number(text)):Object(Nr.parseDate)(text,e)},zr=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],r=e[1];if(n&&r)return[Fr(n,t),Fr(r,t)]}return""},$r=function(e,t,n){if(Array.isArray(e)||(e=e.split(n)),2===e.length){var r=e[0],o=e[1];return[Br(r,t),Br(o,t)]}return[]},Vr={default:{formatter:function(e){return e?""+e:""},parser:function(text){return void 0===text||""===text?null:text}},week:{formatter:function(e,t){var n=Object(Nr.getWeekNumber)(e),r=e.getMonth(),o=new Date(e);1===n&&11===r&&(o.setHours(0,0,0,0),o.setDate(o.getDate()+3-(o.getDay()+6)%7));var l=Object(Nr.formatDate)(o,t);return l=/WW/.test(l)?l.replace(/WW/,n<10?"0"+n:n):l.replace(/W/,n)},parser:function(text,e){return Vr.date.parser(text,e)}},date:{formatter:Fr,parser:Br},datetime:{formatter:Fr,parser:Br},daterange:{formatter:zr,parser:$r},monthrange:{formatter:zr,parser:$r},datetimerange:{formatter:zr,parser:$r},timerange:{formatter:zr,parser:$r},time:{formatter:Fr,parser:Br},month:{formatter:Fr,parser:Br},year:{formatter:Fr,parser:Br},number:{formatter:function(e){return e?""+e:""},parser:function(text){var e=Number(text);return isNaN(text)?null:e}},dates:{formatter:function(e,t){return e.map((function(e){return Fr(e,t)}))},parser:function(e,t){return("string"==typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:Br(e,t)}))}}},Hr={left:"bottom-start",center:"bottom",right:"bottom-end"},qr=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";if(!e)return null;var o=(Vr[n]||Vr.default).parser,l=t||jr[n];return o(e,l,r)},Wr=function(e,t,n){return e?(0,(Vr[n]||Vr.default).formatter)(e,t||jr[n]):null},Ur=function(a,b){var e=function(a,b){var e=a instanceof Date,t=b instanceof Date;return e&&t?a.getTime()===b.getTime():!e&&!t&&a===b},t=a instanceof Array,n=b instanceof Array;return t&&n?a.length===b.length&&a.every((function(t,n){return e(t,b[n])})):!t&&!n&&e(a,b)},Gr=function(e){return"string"==typeof e||e instanceof String},Yr=function(e){return null==e||Gr(e)||Array.isArray(e)&&2===e.length&&e.every(Gr)},Kr={mixins:[M.a,Lr],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:Yr},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:Yr},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:m.a},directives:{Clickoutside:R.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(e){this.readonly||this.pickerDisabled||(e?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(e){this.picker&&(this.picker.value=e)}},defaultValue:function(e){this.picker&&(this.picker.defaultValue=e)},value:function(e,t){Ur(e,t)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",e)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var e=this.$refs.reference;return e.$el||e},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var e=this.value;if(Array.isArray(e)){for(var i=0,t=e.length;i<t;i++)if(e[i])return!1}else if(e)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf("time")?"el-icon-time":"el-icon-date")},selectionMode:function(){return"week"===this.type?"week":"month"===this.type?"month":"year"===this.type?"year":"dates"===this.type?"dates":"day"},haveTrigger:function(){return void 0!==this.showTrigger?this.showTrigger:-1!==Rr.indexOf(this.type)},displayValue:function(){var e=Wr(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||e&&e[0]||"",this.userInput[1]||e&&e[1]||""]:null!==this.userInput?this.userInput:e?"dates"===this.type?e.join(", "):e:""},parsedValue:function(){return this.value?"time-select"===this.type||Object(Nr.isDateObject)(this.value)||Array.isArray(this.value)&&this.value.every(Nr.isDateObject)?this.value:this.valueFormat?qr(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map((function(e){return new Date(e)})):new Date(this.value):this.value},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var e={},t=void 0;return(t=this.ranged?this.id&&this.id[0]:this.id)&&(e.id=t),e},secondInputId:function(){var e={},t=void 0;return this.ranged&&(t=this.id&&this.id[1]),t&&(e.id=t),e}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=Hr[this.align]||Hr.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach((function(input){return input.blur()}))},parseValue:function(e){var t=Object(Nr.isDateObject)(e)||Array.isArray(e)&&e.every(Nr.isDateObject);return this.valueFormat&&!t&&qr(e,this.valueFormat,this.type,this.rangeSeparator)||e},formatToValue:function(e){var t=Object(Nr.isDateObject)(e)||Array.isArray(e)&&e.every(Nr.isDateObject);return this.valueFormat&&t?Wr(e,this.valueFormat,this.type,this.rangeSeparator):e},parseString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return qr(e,this.format,t)},formatToString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return Wr(e,this.format,t)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){if(this.userInput){var e=this.parseString(this.displayValue);e&&(this.picker.value=e,this.isValidValue(e)&&(this.emitInput(e),this.userInput=null))}""===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(e){this.userInput?this.userInput=[e.target.value,this.userInput[1]]:this.userInput=[e.target.value,null]},handleEndInput:function(e){this.userInput?this.userInput=[this.userInput[0],e.target.value]:this.userInput=[null,e.target.value]},handleStartChange:function(e){var t=this.parseString(this.userInput&&this.userInput[0]);if(t){this.userInput=[this.formatToString(t),this.displayValue[1]];var n=[t,this.picker.value&&this.picker.value[1]];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleEndChange:function(e){var t=this.parseString(this.userInput&&this.userInput[1]);if(t){this.userInput=[this.displayValue[0],this.formatToString(t)];var n=[this.picker.value&&this.picker.value[0],t];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleClickIcon:function(e){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,e.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&"function"==typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){if(this.pickerVisible&&(this.pickerVisible=!1,"dates"===this.type)){var e=qr(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen;this.emitInput(e)}},handleFieldReset:function(e){this.userInput=""===e?null:e},handleFocus:function(){var e=this.type;-1===Rr.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},handleKeydown:function(e){var t=this,n=e.keyCode;return 27===n?(this.pickerVisible=!1,void e.stopPropagation()):9!==n?13===n?((""===this.userInput||this.isValidValue(this.parseString(this.displayValue)))&&(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void e.stopPropagation()):void(this.userInput?e.stopPropagation():this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(e)):void(this.ranged?setTimeout((function(){-1===t.refInput.indexOf(document.activeElement)&&(t.pickerVisible=!1,t.blur(),e.stopPropagation())}),0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),e.stopPropagation()))},handleRangeClick:function(){var e=this.type;-1===Rr.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var e=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick((function(){e.picker.adjustSpinners&&e.picker.adjustSpinners()})))},mountPicker:function(){var e=this;this.picker=new En.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime="datetime"===this.type||"datetimerange"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch("format",(function(t){e.picker.format=t}));var t=function(){var t=e.pickerOptions;if(t&&t.selectableRange){var n=t.selectableRange,r=Vr.datetimerange.parser,o=jr.timerange;n=Array.isArray(n)?n:[n],e.picker.selectableRange=n.map((function(t){return r(t,o,e.rangeSeparator)}))}for(var option in t)t.hasOwnProperty(option)&&"selectableRange"!==option&&(e.picker[option]=t[option]);e.format&&(e.picker.format=e.format)};t(),this.unwatchPickerOptions=this.$watch("pickerOptions",(function(){return t()}),{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on("dodestroy",this.doDestroy),this.picker.$on("pick",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.userInput=null,e.pickerVisible=e.picker.visible=n,e.emitInput(t),e.picker.resetView&&e.picker.resetView()})),this.picker.$on("select-range",(function(t,n,r){0!==e.refInput.length&&(r&&"min"!==r?"max"===r&&(e.refInput[1].setSelectionRange(t,n),e.refInput[1].focus()):(e.refInput[0].setSelectionRange(t,n),e.refInput[0].focus()))}))},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"==typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(e){Ur(e,this.valueOnOpen)||(this.$emit("change",e),this.valueOnOpen=e,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",e))},emitInput:function(e){var t=this.formatToValue(e);Ur(this.value,t)||this.$emit("input",t)},isValidValue:function(e){return this.picker||this.mountPicker(),!this.picker.isValidValue||e&&this.picker.isValidValue(e)}}},Xr=o(Kr,Pr,[],!1,null,null,null);Xr.options.__file="packages/date-picker/src/picker.vue";var Zr=Xr.exports,Jr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":e.handleEnter,"after-leave":e.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:e.t("el.datepicker.selectDate"),value:e.visibleDate,size:"small"},on:{input:function(t){return e.userInputDate=t},change:e.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:e.t("el.datepicker.selectTime"),value:e.visibleTime,size:"small"},on:{focus:function(t){e.timePickerVisible=!0},input:function(t){return e.userInputTime=t},change:e.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.timePickerVisible},on:{pick:e.handleTimePick,mounted:e.proxyTimePickerDataProperties}})],1)]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==e.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===e.currentView||"month"===e.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevYear")},on:{click:e.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevMonth")},on:{click:e.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:e.showYearPicker}},[e._v(e._s(e.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===e.currentView},attrs:{role:"button"},on:{click:e.showMonthPicker}},[e._v(e._s(e.t("el.datepicker.month"+(e.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextYear")},on:{click:e.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextMonth")},on:{click:e.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":e.selectionMode,"first-day-of-week":e.firstDayOfWeek,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===e.currentView,expression:"currentView === 'year'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===e.currentView,expression:"currentView === 'month'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.footerVisible&&"date"===e.currentView,expression:"footerVisible && currentView === 'date'"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==e.selectionMode,expression:"selectionMode !== 'dates'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.changeToNow}},[e._v("\n "+e._s(e.t("el.datepicker.now"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:e.confirm}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1)])])};Jr._withStripped=!0;var Qr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":e.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":e.useArrow,"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,date:e.date},on:{change:e.handleChange,"select-range":e.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:e.handleCancel}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!e.disabled},attrs:{type:"button"},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])};Qr._withStripped=!0;var ei=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":e.showSeconds}},[e.arrowControl?e._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("hours")},mousemove:function(t){e.adjustCurrentSpinner("hours")}}},e._l(e.hoursList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.hours,disabled:t},on:{click:function(n){e.handleClick("hours",{value:r,disabled:t})}}},[e._v(e._s(("0"+(e.amPmMode?r%12||12:r)).slice(-2))+e._s(e.amPm(r)))])})),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("minutes")},mousemove:function(t){e.adjustCurrentSpinner("minutes")}}},e._l(e.minutesList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.minutes,disabled:!t},on:{click:function(t){e.handleClick("minutes",{value:r,disabled:!1})}}},[e._v(e._s(("0"+r).slice(-2)))])})),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("seconds")},mousemove:function(t){e.adjustCurrentSpinner("seconds")}}},e._l(60,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.seconds},on:{click:function(t){e.handleClick("seconds",{value:r,disabled:!1})}}},[e._v(e._s(("0"+r).slice(-2)))])})),0)],e.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},e._l(e.arrowHourList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.hours,disabled:e.hoursList[t]}},[e._v(e._s(void 0===t?"":("0"+(e.amPmMode?t%12||12:t)).slice(-2)+e.amPm(t)))])})),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},e._l(e.arrowMinuteList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.minutes}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]),e.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},e._l(e.arrowSecondList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.seconds}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]):e._e()]:e._e()],2)};ei._withStripped=!0;var ti={components:{ElScrollbar:V.a},directives:{repeatClick:nt},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(Nr.getRangeHours)(this.selectableRange)},minutesList:function(){return Object(Nr.getRangeMinutes)(this.selectableRange,this.hours)},arrowHourList:function(){var e=this.hours;return[e>0?e-1:void 0,e,e<23?e+1:void 0]},arrowMinuteList:function(){var e=this.minutes;return[e>0?e-1:void 0,e,e<59?e+1:void 0]},arrowSecondList:function(){var e=this.seconds;return[e>0?e-1:void 0,e,e<59?e+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var e=this;this.$nextTick((function(){!e.arrowControl&&e.bindScrollEvent()}))},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(e,t){switch(e){case"hours":this.$emit("change",Object(Nr.modifyTime)(this.date,t,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(Nr.modifyTime)(this.date,this.hours,t,this.seconds));break;case"seconds":this.$emit("change",Object(Nr.modifyTime)(this.date,this.hours,this.minutes,t))}},handleClick:function(e,t){var n=t.value;t.disabled||(this.modifyDateField(e,n),this.emitSelectRange(e),this.adjustSpinner(e,n))},emitSelectRange:function(e){"hours"===e?this.$emit("select-range",0,2):"minutes"===e?this.$emit("select-range",3,5):"seconds"===e&&this.$emit("select-range",6,8),this.currentScrollbar=e},bindScrollEvent:function(){var e=this,t=function(t){e.$refs[t].wrap.onscroll=function(n){e.handleScroll(t,n)}};t("hours"),t("minutes"),t("seconds")},handleScroll:function(e){var t=Math.min(Math.floor((this.$refs[e].wrap.scrollTop-(.5*this.scrollBarHeight(e)-10)/this.typeItemHeight(e)+3)/this.typeItemHeight(e)),"hours"===e?23:59);this.modifyDateField(e,t)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(e){this.adjustSpinner(e,this[e])},adjustSpinner:function(e,t){if(!this.arrowControl){var n=this.$refs[e].wrap;n&&(n.scrollTop=Math.max(0,t*this.typeItemHeight(e)))}},scrollDown:function(e){this.currentScrollbar||this.emitSelectRange("hours");var label=this.currentScrollbar,t=this.hoursList,n=this[label];if("hours"===this.currentScrollbar){var r=Math.abs(e);e=e>0?1:-1;for(var o=t.length;o--&&r;)t[n=(n+e+t.length)%t.length]||r--;if(t[n])return}else n=(n+e+60)%60;this.modifyDateField(label,n),this.adjustSpinner(label,n)},amPm:function(e){if(!("a"===this.amPmMode.toLowerCase()))return"";var content=e<12?" am":" pm";return"A"===this.amPmMode&&(content=content.toUpperCase()),content},typeItemHeight:function(e){return this.$refs[e].$el.querySelector("li").offsetHeight},scrollBarHeight:function(e){return this.$refs[e].$el.offsetHeight}}},ni=o(ti,ei,[],!1,null,null,null);ni.options.__file="packages/date-picker/src/basic/time-spinner.vue";var ri=ni.exports,ii={mixins:[_.a],components:{TimeSpinner:ri},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(e){var t=this;e?(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.spinner.emitSelectRange("hours")}))):this.needInitAdjust=!0},value:function(e){var t=this,n=void 0;e instanceof Date?n=Object(Nr.limitTimeRange)(e,this.selectableRange,this.format):e||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick((function(e){return t.adjustSpinners()})),this.needInitAdjust=!1)},selectableRange:function(e){this.$refs.spinner.selectableRange=e},defaultValue:function(e){Object(Nr.isDate)(this.value)||(this.date=e?new Date(e):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(e){this.visible&&(this.date=Object(Nr.clearMilliseconds)(e),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(e,t){this.$emit("select-range",e,t),this.selectionRange=[e,t]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(!t){var n=Object(Nr.clearMilliseconds)(Object(Nr.limitTimeRange)(this.date,this.selectableRange,this.format));this.$emit("pick",n,e,t)}},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var r=n[t];return this.changeSelectionRange(r),void e.preventDefault()}if(38===t||40===t){var o=n[t];return this.$refs.spinner.scrollDown(o),void e.preventDefault()}},isValidValue:function(e){return Object(Nr.timeWithinRange)(e,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(e){var t=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=(t.indexOf(this.selectionRange[0])+e+t.length)%t.length;this.$refs.spinner.emitSelectRange(n[r])}},mounted:function(){var e=this;this.$nextTick((function(){return e.handleConfirm(!0,!0)})),this.$emit("mounted")}},oi=o(ii,Qr,[],!1,null,null,null);oi.options.__file="packages/date-picker/src/panel/time.vue";var ai=oi.exports,si=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-year-table",on:{click:e.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+0)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+1)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+1))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+2)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+2))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+3)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+4)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+4))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+5)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+5))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+6)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+6))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+7)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+8)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+8))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+9)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+9))])]),n("td"),n("td")])])])};si._withStripped=!0;var ui=o({props:{disabledDate:{},value:{},defaultValue:{validator:function(e){return null===e||e instanceof Date&&Object(Nr.isDate)(e)}},date:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(e){var style={},t=new Date;return style.disabled="function"==typeof this.disabledDate&&function(e){var t=Object(Nr.getDayCountOfYear)(e),n=new Date(e,0,1);return Object(Nr.range)(t).map((function(e){return Object(Nr.nextDate)(n,e)}))}(e).every(this.disabledDate),style.current=Object(x.arrayFindIndex)(Object(x.coerceTruthyValueToArray)(this.value),(function(t){return t.getFullYear()===e}))>=0,style.today=t.getFullYear()===e,style.default=this.defaultValue&&this.defaultValue.getFullYear()===e,style},handleYearTableClick:function(e){var t=e.target;if("A"===t.tagName){if(Object(xe.hasClass)(t.parentNode,"disabled"))return;var n=t.textContent||t.innerText;this.$emit("pick",Number(n))}}}},si,[],!1,null,null,null);ui.options.__file="packages/date-picker/src/basic/year-table.vue";var ci=ui.exports,hi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-month-table",on:{click:e.handleMonthTableClick,mousemove:e.handleMouseMove}},[n("tbody",e._l(e.rows,(function(t,r){return n("tr",{key:r},e._l(t,(function(t,r){return n("td",{key:r,class:e.getCellStyle(t)},[n("div",[n("a",{staticClass:"cell"},[e._v(e._s(e.t("el.datepicker.months."+e.months[t.text])))])])])})),0)})),0)])};hi._withStripped=!0;var fi=function(e){return new Date(e.getFullYear(),e.getMonth())},di=function(time){return"number"==typeof time||"string"==typeof time?fi(new Date(time)).getTime():time instanceof Date?fi(time).getTime():NaN},pi=o({props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(e){return null===e||Object(Nr.isDate)(e)||Array.isArray(e)&&e.every(Nr.isDate)}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[_.a],watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){di(e)!==di(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){di(e)!==di(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.date.getFullYear()===n.getFullYear()&&Number(e.text)===n.getMonth()},getCellStyle:function(e){var t=this,style={},n=this.date.getFullYear(),r=new Date,o=e.text,l=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return style.disabled="function"==typeof this.disabledDate&&function(e,t){var n=Object(Nr.getDayCountOfMonth)(e,t),r=new Date(e,t,1);return Object(Nr.range)(n).map((function(e){return Object(Nr.nextDate)(r,e)}))}(n,o).every(this.disabledDate),style.current=Object(x.arrayFindIndex)(Object(x.coerceTruthyValueToArray)(this.value),(function(e){return e.getFullYear()===n&&e.getMonth()===o}))>=0,style.today=r.getFullYear()===n&&r.getMonth()===o,style.default=l.some((function(n){return t.cellMatchesDate(e,n)})),e.inRange&&(style["in-range"]=!0,e.start&&(style["start-date"]=!0),e.end&&(style["end-date"]=!0)),style},getMonthOfCell:function(e){var t=this.date.getFullYear();return new Date(t,e,1)},markRange:function(e,t){e=di(e),t=di(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var r=this.rows,i=0,o=r.length;i<o;i++)for(var l=r[i],c=0,h=l.length;c<h;c++){var f=l[c],d=4*i+c,time=new Date(this.date.getFullYear(),d).getTime();f.inRange=e&&time>=e&&time<=t,f.start=e&&time===e,f.end=t&&time===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex,r=t.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+r)}}))}}},handleMonthTableClick:function(e){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName&&!Object(xe.hasClass)(t,"disabled")){var n=t.cellIndex,r=4*t.parentNode.rowIndex+n,o=this.getMonthOfCell(r);"range"===this.selectionMode?this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0):this.$emit("pick",r)}}},computed:{rows:function(){for(var e=this,t=this.tableRows,n=this.disabledDate,r=[],o=di(new Date),i=0;i<3;i++)for(var l=t[i],c=function(t){var c=l[t];c||(c={row:i,column:t,type:"normal",inRange:!1,start:!1,end:!1}),c.type="normal";var h=4*i+t,time=new Date(e.date.getFullYear(),h).getTime();c.inRange=time>=di(e.minDate)&&time<=di(e.maxDate),c.start=e.minDate&&time===di(e.minDate),c.end=e.maxDate&&time===di(e.maxDate),time===o&&(c.type="today"),c.text=h;var f=new Date(time);c.disabled="function"==typeof n&&n(f),c.selected=Object(x.arrayFind)(r,(function(e){return e.getTime()===f.getTime()})),e.$set(l,t,c)},h=0;h<4;h++)c(h);return t}}},hi,[],!1,null,null,null);pi.options.__file="packages/date-picker/src/basic/month-table.vue";var gi=pi.exports,vi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===e.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:e.handleClick,mousemove:e.handleMouseMove}},[n("tbody",[n("tr",[e.showWeekNumber?n("th",[e._v(e._s(e.t("el.datepicker.week")))]):e._e(),e._l(e.WEEKS,(function(t,r){return n("th",{key:r},[e._v(e._s(e.t("el.datepicker.weeks."+t)))])}))],2),e._l(e.rows,(function(t,r){return n("tr",{key:r,staticClass:"el-date-table__row",class:{current:e.isWeekActive(t[1])}},e._l(t,(function(t,r){return n("td",{key:r,class:e.getCellClasses(t)},[n("div",[n("span",[e._v("\n "+e._s(t.text)+"\n ")])])])})),0)}))],2)])};vi._withStripped=!0;var mi=["sun","mon","tue","wed","thu","fri","sat"],yi=function(time){return"number"==typeof time||"string"==typeof time?Object(Nr.clearTime)(new Date(time)).getTime():time instanceof Date?Object(Nr.clearTime)(time).getTime():NaN},bi=o({mixins:[_.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},value:{},defaultValue:{validator:function(e){return null===e||Object(Nr.isDate)(e)||Array.isArray(e)&&e.every(Nr.isDate)}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var e=this.firstDayOfWeek;return e>3?7-e:-e},WEEKS:function(){var e=this.firstDayOfWeek;return mi.concat(mi).slice(e,e+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(Nr.getStartDateOfMonth)(this.year,this.month)},rows:function(){var e=this,t=new Date(this.year,this.month,1),n=Object(Nr.getFirstDayOfMonth)(t),r=Object(Nr.getDayCountOfMonth)(t.getFullYear(),t.getMonth()),o=Object(Nr.getDayCountOfMonth)(t.getFullYear(),0===t.getMonth()?11:t.getMonth()-1);n=0===n?7:n;for(var l=this.offsetDay,c=this.tableRows,h=1,f=this.startDate,d=this.disabledDate,v="dates"===this.selectionMode?Object(x.coerceTruthyValueToArray)(this.value):[],m=yi(new Date),i=0;i<6;i++){var y=c[i];this.showWeekNumber&&(y[0]||(y[0]={type:"week",text:Object(Nr.getWeekNumber)(Object(Nr.nextDate)(f,7*i+1))}));for(var _=function(t){var c=y[e.showWeekNumber?t+1:t];c||(c={row:i,column:t,type:"normal",inRange:!1,start:!1,end:!1}),c.type="normal";var _=7*i+t,time=Object(Nr.nextDate)(f,_-l).getTime();if(c.inRange=time>=yi(e.minDate)&&time<=yi(e.maxDate),c.start=e.minDate&&time===yi(e.minDate),c.end=e.maxDate&&time===yi(e.maxDate),time===m&&(c.type="today"),i>=0&&i<=1){var w=n+l<0?7+n+l:n+l;t+7*i>=w?c.text=h++:(c.text=o-(w-t%7)+1+7*i,c.type="prev-month")}else h<=r?c.text=h++:(c.text=h++-r,c.type="next-month");var S=new Date(time);c.disabled="function"==typeof d&&d(S),c.selected=Object(x.arrayFind)(v,(function(e){return e.getTime()===S.getTime()})),e.$set(y,e.showWeekNumber?t+1:t,c)},w=0;w<7;w++)_(w);if("week"===this.selectionMode){var S=this.showWeekNumber?1:0,k=this.showWeekNumber?7:6,O=this.isWeekActive(y[S+1]);y[S].inRange=O,y[S].start=O,y[k].inRange=O,y[k].end=O}}return c}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){yi(e)!==yi(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){yi(e)!==yi(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(e.text)===n.getDate()},getCellClasses:function(e){var t=this,n=this.selectionMode,r=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],o=[];return"normal"!==e.type&&"today"!==e.type||e.disabled?o.push(e.type):(o.push("available"),"today"===e.type&&o.push("today")),"normal"===e.type&&r.some((function(n){return t.cellMatchesDate(e,n)}))&&o.push("default"),"day"!==n||"normal"!==e.type&&"today"!==e.type||!this.cellMatchesDate(e,this.value)||o.push("current"),!e.inRange||"normal"!==e.type&&"today"!==e.type&&"week"!==this.selectionMode||(o.push("in-range"),e.start&&o.push("start-date"),e.end&&o.push("end-date")),e.disabled&&o.push("disabled"),e.selected&&o.push("selected"),o.join(" ")},getDateOfCell:function(e,t){var n=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay;return Object(Nr.nextDate)(this.startDate,n)},isWeekActive:function(e){if("week"!==this.selectionMode)return!1;var t=new Date(this.year,this.month,1),n=t.getFullYear(),r=t.getMonth();if("prev-month"===e.type&&(t.setMonth(0===r?11:r-1),t.setFullYear(0===r?n-1:n)),"next-month"===e.type&&(t.setMonth(11===r?0:r+1),t.setFullYear(11===r?n+1:n)),t.setDate(parseInt(e.text,10)),Object(Nr.isDate)(this.value)){var o=(this.value.getDay()-this.firstDayOfWeek+7)%7-1;return Object(Nr.prevDate)(this.value,o).getTime()===t.getTime()}return!1},markRange:function(e,t){e=yi(e),t=yi(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var r=this.startDate,o=this.rows,i=0,l=o.length;i<l;i++)for(var c=o[i],h=0,f=c.length;h<f;h++)if(!this.showWeekNumber||0!==h){var d=c[h],v=7*i+h+(this.showWeekNumber?-1:0),time=Object(Nr.nextDate)(r,v-this.offsetDay).getTime();d.inRange=e&&time>=e&&time<=t,d.start=e&&time===e,d.end=t&&time===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,r=t.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,r)}}))}}},handleClick:function(e){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,r="week"===this.selectionMode?1:t.cellIndex,o=this.rows[n][r];if(!o.disabled&&"week"!==o.type){var l,c,h,f=this.getDateOfCell(n,r);if("range"===this.selectionMode)this.rangeState.selecting?(f>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:f}):this.$emit("pick",{minDate:f,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:f,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",f);else if("week"===this.selectionMode){var d=Object(Nr.getWeekNumber)(f),v=f.getFullYear()+"w"+d;this.$emit("pick",{year:f.getFullYear(),week:d,value:v,date:f})}else if("dates"===this.selectionMode){var m=this.value||[],y=o.selected?(l=m,(h="function"==typeof(c=function(e){return e.getTime()===f.getTime()})?Object(x.arrayFindIndex)(l,c):l.indexOf(c))>=0?[].concat(l.slice(0,h),l.slice(h+1)):l):[].concat(m,[f]);this.$emit("pick",y)}}}}}},vi,[],!1,null,null,null);bi.options.__file="packages/date-picker/src/basic/date-table.vue";var _i=bi.exports,xi={mixins:[_.a],directives:{Clickoutside:R.a},watch:{showTime:function(e){var t=this;e&&this.$nextTick((function(e){var n=t.$refs.input.$el;n&&(t.pickerWidth=n.getBoundingClientRect().width+10)}))},value:function(e){"dates"===this.selectionMode&&this.value||(Object(Nr.isDate)(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){Object(Nr.isDate)(this.value)||(this.date=e?new Date(e):new Date)},timePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){return t.$refs.timepicker.adjustSpinners()}))},selectionMode:function(e){"month"===e?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===e&&(this.currentView="date")}},methods:{proxyTimePickerDataProperties:function(){var e,t=this,n=function(e){t.$refs.timepicker.value=e},r=function(e){t.$refs.timepicker.date=e},o=function(e){t.$refs.timepicker.selectableRange=e};this.$watch("value",n),this.$watch("date",r),this.$watch("selectableRange",o),e=this.timeFormat,t.$refs.timepicker.format=e,n(this.value),r(this.date),o(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(e)if(Array.isArray(e)){var l=e.map((function(e){return t.showTime?Object(Nr.clearMilliseconds)(e):Object(Nr.clearTime)(e)}));this.$emit.apply(this,["pick",l].concat(r))}else this.$emit.apply(this,["pick",this.showTime?Object(Nr.clearMilliseconds)(e):Object(Nr.clearTime)(e)].concat(r));else this.$emit.apply(this,["pick",e].concat(r));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(Nr.prevMonth)(this.date)},nextMonth:function(){this.date=Object(Nr.nextMonth)(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(Nr.prevYear)(this.date,10):this.date=Object(Nr.prevYear)(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(Nr.nextYear)(this.date,10):this.date=Object(Nr.nextYear)(this.date)},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleTimePick:function(e,t,n){if(Object(Nr.isDate)(e)){var r=this.value?Object(Nr.modifyTime)(this.value,e.getHours(),e.getMinutes(),e.getSeconds()):Object(Nr.modifyWithTimeString)(this.getDefaultValue(),this.defaultTime);this.date=r,this.emit(this.date,!0)}else this.emit(e,!0);n||(this.timePickerVisible=t)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(e){"month"===this.selectionMode?(this.date=Object(Nr.modifyDate)(this.date,this.year,e,1),this.emit(this.date)):(this.date=Object(Nr.changeYearMonthAndClampDate)(this.date,this.year,e),this.currentView="date")},handleDatePick:function(e){if("day"===this.selectionMode){var t=this.value?Object(Nr.modifyDate)(this.value,e.getFullYear(),e.getMonth(),e.getDate()):Object(Nr.modifyWithTimeString)(e,this.defaultTime);this.checkDateWithinRange(t)||(t=Object(Nr.modifyDate)(this.selectableRange[0][0],e.getFullYear(),e.getMonth(),e.getDate())),this.date=t,this.emit(this.date,this.showTime)}else"week"===this.selectionMode?this.emit(e.date):"dates"===this.selectionMode&&this.emit(e,!0)},handleYearPick:function(e){"year"===this.selectionMode?(this.date=Object(Nr.modifyDate)(this.date,e,0,1),this.emit(this.date)):(this.date=Object(Nr.changeYearMonthAndClampDate)(this.date,e,this.month),this.currentView="month")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){if("dates"===this.selectionMode)this.emit(this.value);else{var e=this.value?this.value:Object(Nr.modifyWithTimeString)(this.getDefaultValue(),this.defaultTime);this.date=new Date(e),this.emit(e)}},resetView:function(){"month"===this.selectionMode?this.currentView="month":"year"===this.selectionMode?this.currentView="year":this.currentView="date"},handleEnter:function(){document.body.addEventListener("keydown",this.handleKeydown)},handleLeave:function(){this.$emit("dodestroy"),document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(e){var t=e.keyCode;this.visible&&!this.timePickerVisible&&(-1!==[38,40,37,39].indexOf(t)&&(this.handleKeyControl(t),e.stopPropagation(),e.preventDefault()),13===t&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(e){for(var t={year:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setFullYear(e.getFullYear()+t)}},month:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setMonth(e.getMonth()+t)}},week:{38:-1,40:1,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+7*t)}},day:{38:-7,40:7,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+t)}}},n=this.selectionMode,r=this.date.getTime(),o=new Date(this.date.getTime());Math.abs(r-o.getTime())<=31536e6;){var map=t[n];if(map.offset(o,map[e]),"function"!=typeof this.disabledDate||!this.disabledDate(o)){this.date=o,this.$emit("pick",o,!0);break}}},handleVisibleTimeChange:function(e){var time=Object(Nr.parseDate)(e,this.timeFormat);time&&this.checkDateWithinRange(time)&&(this.date=Object(Nr.modifyDate)(time,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(e){var t=Object(Nr.parseDate)(e,this.dateFormat);if(t){if("function"==typeof this.disabledDate&&this.disabledDate(t))return;this.date=Object(Nr.modifyTime)(t,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)}},isValidValue:function(e){return e&&!isNaN(e)&&("function"!=typeof this.disabledDate||!this.disabledDate(e))&&this.checkDateWithinRange(e)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(e){return!(this.selectableRange.length>0)||Object(Nr.timeWithinRange)(e,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:ai,YearTable:ci,MonthTable:gi,DateTable:_i,ElInput:m.a,ElButton:J.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(Nr.getWeekNumber)(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(Nr.formatDate)(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(Nr.formatDate)(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var e=this.t("el.datepicker.year");if("year"===this.currentView){var t=10*Math.floor(this.year/10);return e?t+" "+e+" - "+(t+9)+" "+e:t+" - "+(t+9)}return this.year+" "+e},timeFormat:function(){return this.format?Object(Nr.extractTimeFormat)(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(Nr.extractDateFormat)(this.format):"yyyy-MM-dd"}}},wi=o(xi,Jr,[],!1,null,null,null);wi.options.__file="packages/date-picker/src/panel/date.vue";var Si=wi.exports,ki=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startDate"),value:e.minVisibleDate},on:{input:function(t){return e.handleDateInput(t,"min")},change:function(t){return e.handleDateChange(t,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startTime"),value:e.minVisibleTime},on:{focus:function(t){e.minTimePickerVisible=!0},input:function(t){return e.handleTimeInput(t,"min")},change:function(t){return e.handleTimeChange(t,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.minTimePickerVisible},on:{pick:e.handleMinTimePick,mounted:function(t){e.$refs.minTimePicker.format=e.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endDate"),value:e.maxVisibleDate,readonly:!e.minDate},on:{input:function(t){return e.handleDateInput(t,"max")},change:function(t){return e.handleDateChange(t,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endTime"),value:e.maxVisibleTime,readonly:!e.minDate},on:{focus:function(t){e.minDate&&(e.maxTimePickerVisible=!0)},input:function(t){return e.handleTimeInput(t,"max")},change:function(t){return e.handleTimeChange(t,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.maxTimePickerVisible},on:{pick:e.handleMaxTimePick,mounted:function(t){e.$refs.maxTimePicker.format=e.timeFormat}}})],1)])]):e._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevMonth}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.leftNextMonth}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.rightPrevMonth}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:e.rightNextMonth}}),n("div",[e._v(e._s(e.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2),e.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.handleClear}},[e._v("\n "+e._s(e.t("el.datepicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm(!1)}}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1):e._e()])])};ki._withStripped=!0;var Oi=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(Nr.nextDate)(new Date(e),1)]:[new Date,Object(Nr.nextDate)(new Date,1)]},Ci={mixins:[_.a],directives:{Clickoutside:R.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(Nr.formatDate)(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(Nr.formatDate)(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(Nr.formatDate)(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(Nr.formatDate)(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(Nr.extractTimeFormat)(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(Nr.extractDateFormat)(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var e=(this.leftMonth+1)%12,t=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+t,e)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)>=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(Nr.nextMonth)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(e){var t=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick((function(){if(t.$refs.maxTimePicker&&t.maxDate&&t.maxDate<t.minDate){var e="HH:mm:ss";t.$refs.maxTimePicker.selectableRange=[[Object(Nr.parseDate)(Object(Nr.formatDate)(t.minDate,e),e),Object(Nr.parseDate)("23:59:59",e)]]}})),e&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=e,this.$refs.minTimePicker.value=e)},maxDate:function(e){this.dateUserInput.max=null,this.timeUserInput.max=null,e&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=e,this.$refs.maxTimePicker.value=e)},minTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.minTimePicker.date=t.minDate,t.$refs.minTimePicker.value=t.minDate,t.$refs.minTimePicker.adjustSpinners()}))},maxTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.maxTimePicker.date=t.maxDate,t.$refs.maxTimePicker.value=t.maxDate,t.$refs.maxTimePicker.adjustSpinners()}))},value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(Nr.isDate)(e[0])?new Date(e[0]):null,this.maxDate=Object(Nr.isDate)(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.minDate.getMonth(),r=this.maxDate.getFullYear(),o=this.maxDate.getMonth();this.rightDate=t===r&&n===o?Object(Nr.nextMonth)(this.maxDate):this.maxDate}else this.rightDate=Object(Nr.nextMonth)(this.leftDate);else this.leftDate=Oi(this.defaultValue)[0],this.rightDate=Object(Nr.nextMonth)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=Oi(e),n=t[0],r=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&this.unlinkPanels?r:Object(Nr.nextMonth)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=Oi(this.defaultValue)[0],this.rightDate=Object(Nr.nextMonth)(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleDateInput:function(e,t){if(this.dateUserInput[t]=e,e.length===this.dateFormat.length){var n=Object(Nr.parseDate)(e,this.dateFormat);if(n){if("function"==typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===t?(this.minDate=Object(Nr.modifyDate)(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(Nr.nextMonth)(this.leftDate))):(this.maxDate=Object(Nr.modifyDate)(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(Nr.prevMonth)(n)))}}},handleDateChange:function(e,t){var n=Object(Nr.parseDate)(e,this.dateFormat);n&&("min"===t?(this.minDate=Object(Nr.modifyDate)(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(Nr.modifyDate)(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(e,t){var n=this;if(this.timeUserInput[t]=e,e.length===this.timeFormat.length){var r=Object(Nr.parseDate)(e,this.timeFormat);r&&("min"===t?(this.minDate=Object(Nr.modifyTime)(this.minDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(e){return n.$refs.minTimePicker.adjustSpinners()}))):(this.maxDate=Object(Nr.modifyTime)(this.maxDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(e){return n.$refs.maxTimePicker.adjustSpinners()}))))}},handleTimeChange:function(e,t){var n=Object(Nr.parseDate)(e,this.timeFormat);n&&("min"===t?(this.minDate=Object(Nr.modifyTime)(this.minDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.minDate>this.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(Nr.modifyTime)(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],o=Object(Nr.modifyWithTimeString)(e.minDate,r[0]),l=Object(Nr.modifyWithTimeString)(e.maxDate,r[1]);this.maxDate===l&&this.minDate===o||(this.onPick&&this.onPick(e),this.maxDate=l,this.minDate=o,setTimeout((function(){t.maxDate=l,t.minDate=o}),10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleMinTimePick:function(e,t,n){this.minDate=this.minDate||new Date,e&&(this.minDate=Object(Nr.modifyTime)(this.minDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.minTimePickerVisible=t),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(e,t,n){this.maxDate&&e&&(this.maxDate=Object(Nr.modifyTime)(this.maxDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.maxTimePickerVisible=t),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(Nr.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(Nr.nextMonth)(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(Nr.prevMonth)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(Nr.nextMonth)(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(Nr.nextYear)(this.rightDate):(this.leftDate=Object(Nr.nextYear)(this.leftDate),this.rightDate=Object(Nr.nextMonth)(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(Nr.nextMonth)(this.rightDate):(this.leftDate=Object(Nr.nextMonth)(this.leftDate),this.rightDate=Object(Nr.nextMonth)(this.leftDate))},leftNextYear:function(){this.leftDate=Object(Nr.nextYear)(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(Nr.nextMonth)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(Nr.prevYear)(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(Nr.prevMonth)(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(Nr.isDate)(e[0])&&Object(Nr.isDate)(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!=typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate=this.value&&Object(Nr.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(Nr.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:ai,DateTable:_i,ElInput:m.a,ElButton:J.a}},Ti=o(Ci,ki,[],!1,null,null,null);Ti.options.__file="packages/date-picker/src/panel/date-range.vue";var Ei=Ti.exports,Ai=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("div",[e._v(e._s(e.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2)])])};Ai._withStripped=!0;var Mi=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(Nr.nextMonth)(new Date(e))]:[new Date,Object(Nr.nextMonth)(new Date)]},Ii={mixins:[_.a],directives:{Clickoutside:R.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(Nr.nextYear)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(Nr.isDate)(e[0])?new Date(e[0]):null,this.maxDate=Object(Nr.isDate)(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=t===n?Object(Nr.nextYear)(this.maxDate):this.maxDate}else this.rightDate=Object(Nr.nextYear)(this.leftDate);else this.leftDate=Mi(this.defaultValue)[0],this.rightDate=Object(Nr.nextYear)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=Mi(e),n=t[0],r=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&n.getFullYear()!==r.getFullYear()&&this.unlinkPanels?r:Object(Nr.nextYear)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=Mi(this.defaultValue)[0],this.rightDate=Object(Nr.nextYear)(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],o=Object(Nr.modifyWithTimeString)(e.minDate,r[0]),l=Object(Nr.modifyWithTimeString)(e.maxDate,r[1]);this.maxDate===l&&this.minDate===o||(this.onPick&&this.onPick(e),this.maxDate=l,this.minDate=o,setTimeout((function(){t.maxDate=l,t.minDate=o}),10),n&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},leftPrevYear:function(){this.leftDate=Object(Nr.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(Nr.prevYear)(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(Nr.nextYear)(this.leftDate)),this.rightDate=Object(Nr.nextYear)(this.rightDate)},leftNextYear:function(){this.leftDate=Object(Nr.nextYear)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(Nr.prevYear)(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(Nr.isDate)(e[0])&&Object(Nr.isDate)(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!=typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate=this.value&&Object(Nr.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(Nr.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:gi,ElInput:m.a,ElButton:J.a}},Di=o(Ii,Ai,[],!1,null,null,null);Di.options.__file="packages/date-picker/src/panel/month-range.vue";var Pi=Di.exports,Ni=function(e){return"daterange"===e||"datetimerange"===e?Ei:"monthrange"===e?Pi:Si},Li={mixins:[Zr],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(e){this.picker?(this.unmountPicker(),this.panel=Ni(e),this.mountPicker()):this.panel=Ni(e)}},created:function(){this.panel=Ni(this.type)},install:function(e){e.component(Li.name,Li)}},ji=Li,Ri=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:e.popperClass,style:{width:e.width+"px"}},[n("el-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},e._l(e.items,(function(t){return n("div",{key:t.value,staticClass:"time-select-item",class:{selected:e.value===t.value,disabled:t.disabled,default:t.value===e.defaultValue},attrs:{disabled:t.disabled},on:{click:function(n){e.handleClick(t)}}},[e._v(e._s(t.value))])})),0)],1)])};Ri._withStripped=!0;var Fi=function(time){var e=(time||"").split(":");return e.length>=2?{hours:parseInt(e[0],10),minutes:parseInt(e[1],10)}:null},Bi=function(e,t){var n=Fi(e),r=Fi(t),o=n.minutes+60*n.hours,l=r.minutes+60*r.hours;return o===l?0:o>l?1:-1},zi=function(time,e){var t=Fi(time),n=Fi(e),r={hours:t.hours,minutes:t.minutes};return r.minutes+=n.minutes,r.hours+=n.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,function(time){return(time.hours<10?"0"+time.hours:time.hours)+":"+(time.minutes<10?"0"+time.minutes:time.minutes)}(r)},$i={components:{ElScrollbar:V.a},watch:{value:function(e){var t=this;e&&this.$nextTick((function(){return t.scrollToOption()}))}},methods:{handleClick:function(e){e.disabled||this.$emit("pick",e.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".selected",menu=this.$refs.popper.querySelector(".el-picker-panel__content");Qt()(menu,menu.querySelector(e))},handleMenuEnter:function(){var e=this,t=-1!==this.items.map((function(e){return e.value})).indexOf(this.value),n=-1!==this.items.map((function(e){return e.value})).indexOf(this.defaultValue),option=(t?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick((function(){return e.scrollToOption(option)}))},scrollDown:function(e){for(var t=this.items,n=t.length,r=t.length,o=t.map((function(e){return e.value})).indexOf(this.value);r--;)if(!t[o=(o+e+n)%n].disabled)return void this.$emit("pick",t[o].value,!0)},isValidValue:function(e){return-1!==this.items.filter((function(e){return!e.disabled})).map((function(e){return e.value})).indexOf(e)},handleKeydown:function(e){var t=e.keyCode;if(38===t||40===t){var n={40:1,38:-1}[t.toString()];return this.scrollDown(n),void e.stopPropagation()}}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var e=this.start,t=this.end,n=this.step,r=[];if(e&&t&&n)for(var o=e;Bi(o,t)<=0;)r.push({value:o,disabled:Bi(o,this.minTime||"-1:-1")<=0||Bi(o,this.maxTime||"100:100")>=0}),o=zi(o,n);return r}}},Vi=o($i,Ri,[],!1,null,null,null);Vi.options.__file="packages/date-picker/src/panel/time-select.vue";var Hi=Vi.exports,qi={mixins:[Zr],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=Hi},install:function(e){e.component(qi.name,qi)}},Wi=qi,Ui=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-range-picker__content"},[n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.startTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.minDate},on:{change:e.handleMinChange,"select-range":e.setMinSelectionRange}})],1)]),n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.endTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.maxDate},on:{change:e.handleMaxChange,"select-range":e.setMaxSelectionRange}})],1)])]),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(t){e.handleCancel()}}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])};Ui._withStripped=!0;var Gi=Object(Nr.parseDate)("00:00:00","HH:mm:ss"),Yi=Object(Nr.parseDate)("23:59:59","HH:mm:ss"),Ki=function(e){return Object(Nr.modifyDate)(Yi,e.getFullYear(),e.getMonth(),e.getDate())},Xi=function(e,t){return new Date(Math.min(e.getTime()+t,Ki(e).getTime()))},Zi={mixins:[_.a],components:{TimeSpinner:ri},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]<this.offset?this.$refs.minSpinner:this.$refs.maxSpinner},btnDisabled:function(){return this.minDate.getTime()>this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(e){Array.isArray(e)?(this.minDate=new Date(e[0]),this.maxDate=new Date(e[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=Xi(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=Xi(new Date,36e5))},visible:function(e){var t=this;e&&(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.minSpinner.emitSelectRange("hours")})))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(e){this.minDate=Object(Nr.clearMilliseconds)(e),this.handleChange()},handleMaxChange:function(e){this.maxDate=Object(Nr.clearMilliseconds)(e),this.handleChange()},handleChange:function(){var e;this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[(e=this.minDate,Object(Nr.modifyDate)(Gi,e.getFullYear(),e.getMonth(),e.getDate())),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,Ki(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(e,t){this.$emit("select-range",e,t,"min"),this.selectionRange=[e,t]},setMaxSelectionRange:function(e,t){this.$emit("select-range",e,t,"max"),this.selectionRange=[e+this.offset,t+this.offset]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(Nr.limitTimeRange)(this.minDate,t,this.format),this.maxDate=Object(Nr.limitTimeRange)(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],e)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(e){var t=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=(t.indexOf(this.selectionRange[0])+e+t.length)%t.length,o=t.length/2;r<o?this.$refs.minSpinner.emitSelectRange(n[r]):this.$refs.maxSpinner.emitSelectRange(n[r-o])},isValidValue:function(e){return Array.isArray(e)&&Object(Nr.timeWithinRange)(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(Nr.timeWithinRange)(this.maxDate,this.$refs.maxSpinner.selectableRange)},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var r=n[t];return this.changeSelectionRange(r),void e.preventDefault()}if(38===t||40===t){var o=n[t];return this.spinner.scrollDown(o),void e.preventDefault()}}}},Ji=o(Zi,Ui,[],!1,null,null,null);Ji.options.__file="packages/date-picker/src/panel/time-range.vue";var Qi=Ji.exports,eo={mixins:[Zr],name:"ElTimePicker",props:{isRange:Boolean,arrowControl:Boolean},data:function(){return{type:""}},watch:{isRange:function(e){this.picker?(this.unmountPicker(),this.type=e?"timerange":"time",this.panel=e?Qi:ai,this.mountPicker()):(this.type=e?"timerange":"time",this.panel=e?Qi:ai)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?Qi:ai},install:function(e){e.component(eo.name,eo)}},to=eo,no=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),e._t("reference")],2)};no._withStripped=!0;var ro=o({name:"ElPopover",mixins:[z.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(x.generateId)()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$slots.reference&&this.$slots.reference[0]&&(t=this.referenceElm=this.$slots.reference[0].elm),t&&(Object(xe.addClass)(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(xe.on)(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"==typeof n.focus&&n.focus()})),Object(xe.on)(n,"focusin",this.handleFocus),Object(xe.on)(t,"focusout",this.handleBlur),Object(xe.on)(n,"focusout",this.handleBlur)),Object(xe.on)(t,"keydown",this.handleKeydown),Object(xe.on)(t,"click",this.handleClick)),"click"===this.trigger?(Object(xe.on)(t,"click",this.doToggle),Object(xe.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(xe.on)(t,"mouseenter",this.handleMouseEnter),Object(xe.on)(n,"mouseenter",this.handleMouseEnter),Object(xe.on)(t,"mouseleave",this.handleMouseLeave),Object(xe.on)(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(xe.on)(t,"focusin",this.doShow),Object(xe.on)(t,"focusout",this.doClose)):(Object(xe.on)(t,"mousedown",this.doShow),Object(xe.on)(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(xe.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(xe.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(xe.removeClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this._timer=setTimeout((function(){e.showPopper=!1}),200)},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$slots.reference&&this.$slots.reference[0]&&(t=this.referenceElm=this.$slots.reference[0].elm),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){this.openDelay&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(xe.off)(e,"click",this.doToggle),Object(xe.off)(e,"mouseup",this.doClose),Object(xe.off)(e,"mousedown",this.doShow),Object(xe.off)(e,"focusin",this.doShow),Object(xe.off)(e,"focusout",this.doClose),Object(xe.off)(e,"mousedown",this.doShow),Object(xe.off)(e,"mouseup",this.doClose),Object(xe.off)(e,"mouseleave",this.handleMouseLeave),Object(xe.off)(e,"mouseenter",this.handleMouseEnter),Object(xe.off)(document,"click",this.handleDocumentClick)}},no,[],!1,null,null,null);ro.options.__file="packages/popover/src/main.vue";var main=ro.exports,io=function(e,t,n){var r=t.expression?t.value:t.arg,o=n.context.$refs[r];o&&(Array.isArray(o)?o[0].$refs.reference=e:o.$refs.reference=e)},oo={bind:function(e,t,n){io(e,t,n)},inserted:function(e,t,n){io(e,t,n)}};En.a.directive("popover",oo),main.install=function(e){e.directive("popover",oo),e.component(main.name,main)},main.directive=oo;var ao=main,so={name:"ElTooltip",mixins:[z.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(x.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new En.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=L()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var data=n.data=n.data||{};return data.staticClass=this.addTooltipClass(data.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(xe.on)(this.referenceElm,"mouseenter",this.show),Object(xe.on)(this.referenceElm,"mouseleave",this.hide),Object(xe.on)(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(xe.on)(this.referenceElm,"blur",this.handleBlur),Object(xe.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(xe.addClass)(this.referenceElm,"focusing"):Object(xe.removeClass)(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var element=null,t=0;t<e.length;t++)e[t]&&e[t].tag&&(element=e[t]);return element}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(xe.off)(e,"mouseenter",this.show),Object(xe.off)(e,"mouseleave",this.hide),Object(xe.off)(e,"focus",this.handleFocus),Object(xe.off)(e,"blur",this.handleBlur),Object(xe.off)(e,"click",this.removeFocusing))},install:function(e){e.component(so.name,so)}},lo=so,uo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"msgbox-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{staticClass:"el-message-box",class:[e.customClass,e.center&&"el-message-box--center"]},[null!==e.title?n("div",{staticClass:"el-message-box__header"},[n("div",{staticClass:"el-message-box__title"},[e.icon&&e.center?n("div",{class:["el-message-box__status",e.icon]}):e._e(),n("span",[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(t){e.handleAction(e.distinguishCancelAndClose?"close":"cancel")},keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction(e.distinguishCancelAndClose?"close":"cancel")}}},[n("i",{staticClass:"el-message-box__close el-icon-close"})]):e._e()]):e._e(),n("div",{staticClass:"el-message-box__content"},[e.icon&&!e.center&&""!==e.message?n("div",{class:["el-message-box__status",e.icon]}):e._e(),""!==e.message?n("div",{staticClass:"el-message-box__message"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[n("el-input",{ref:"input",attrs:{type:e.inputType,placeholder:e.inputPlaceholder},nativeOn:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputEnter(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),n("div",{staticClass:"el-message-box__errormsg",style:{visibility:e.editorErrorMessage?"visible":"hidden"}},[e._v(e._s(e.editorErrorMessage))])],1)]),n("div",{staticClass:"el-message-box__btns"},[e.showCancelButton?n("el-button",{class:[e.cancelButtonClasses],attrs:{loading:e.cancelButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("cancel")}},nativeOn:{click:function(t){e.handleAction("cancel")}}},[e._v("\n "+e._s(e.cancelButtonText||e.t("el.messagebox.cancel"))+"\n ")]):e._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:e.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[e.confirmButtonClasses],attrs:{loading:e.confirmButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("confirm")}},nativeOn:{click:function(t){e.handleAction("confirm")}}},[e._v("\n "+e._s(e.confirmButtonText||e.t("el.messagebox.confirm"))+"\n ")])],1)])])])};uo._withStripped=!0;var co=n(39),ho=n.n(co),fo=void 0,po={success:"success",info:"info",warning:"warning",error:"error"},go=o({mixins:[C.a,_.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:m.a,ElButton:J.a},computed:{icon:function(){var e=this.type;return this.iconClass||(e&&po[e]?"el-icon-"+po[e]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var e=this,t=this.uid;return function(){e.$nextTick((function(){t===e.uid&&e.doClose()}))}},doClose:function(){var e=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),fo.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout((function(){e.action&&e.callback(e.action,e)})))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(e){("prompt"!==this.$type||"confirm"!==e||this.validate())&&(this.action=e,"function"==typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(e,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var e=this.inputPattern;if(e&&!e.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(Xt.t)("el.messagebox.error"),Object(xe.addClass)(this.getInputElement(),"invalid"),!1;var t=this.inputValidator;if("function"==typeof t){var n=t(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(Xt.t)("el.messagebox.error"),Object(xe.addClass)(this.getInputElement(),"invalid"),!1;if("string"==typeof n)return this.editorErrorMessage=n,Object(xe.addClass)(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(xe.removeClass)(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var e=this.$el.querySelector(".el-message-box__btns .el-button"),title=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return e||title},getInputElement:function(){var e=this.$refs.input.$refs;return e.input||e.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(n){"prompt"===t.$type&&null!==e&&t.validate()}))}},visible:function(e){var t=this;e&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick((function(){t.$refs.confirm.$el.focus()})),this.focusAfterClosed=document.activeElement,fo=new ho.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(e?setTimeout((function(){t.$refs.input&&t.$refs.input.$el&&t.getInputElement().focus()}),500):(this.editorErrorMessage="",Object(xe.removeClass)(this.getInputElement(),"invalid")))}},mounted:function(){var e=this;this.$nextTick((function(){e.closeOnHashChange&&window.addEventListener("hashchange",e.close)}))},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout((function(){fo.closeDialog()}))},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},uo,[],!1,null,null,null);go.options.__file="packages/message-box/src/main.vue";var vo=go.exports,mo=n(23),yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bo={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},_o=En.a.extend(vo),xo=void 0,wo=void 0,So=[],ko=function(e){if(xo){var t=xo.callback;"function"==typeof t&&(wo.showInput?t(wo.inputValue,e):t(e)),xo.resolve&&("confirm"===e?wo.showInput?xo.resolve({value:wo.inputValue,action:e}):xo.resolve(e):!xo.reject||"cancel"!==e&&"close"!==e||xo.reject(e))}},Oo=function e(){if(wo||((wo=new _o({el:document.createElement("div")})).callback=ko),wo.action="",(!wo.visible||wo.closeTimer)&&So.length>0){var t=(xo=So.shift()).options;for(var n in t)t.hasOwnProperty(n)&&(wo[n]=t[n]);void 0===t.callback&&(wo.callback=ko);var r=wo.callback;wo.callback=function(t,n){r(t,n),e()},Object(mo.isVNode)(wo.message)?(wo.$slots.default=[wo.message],wo.message=null):delete wo.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach((function(e){void 0===wo[e]&&(wo[e]=!0)})),document.body.appendChild(wo.$el),En.a.nextTick((function(){wo.visible=!0}))}},Co=function e(t,n){if(!En.a.prototype.$isServer){if("string"==typeof t||Object(mo.isVNode)(t)?(t={message:t},"string"==typeof arguments[1]&&(t.title=arguments[1])):t.callback&&!n&&(n=t.callback),"undefined"!=typeof Promise)return new Promise((function(r,o){So.push({options:Ze()({},bo,e.defaults,t),callback:n,resolve:r,reject:o}),Oo()}));So.push({options:Ze()({},bo,e.defaults,t),callback:n}),Oo()}};Co.setDefaults=function(e){Co.defaults=e},Co.alert=function(e,title,t){return"object"===(void 0===title?"undefined":yo(title))?(t=title,title=""):void 0===title&&(title=""),Co(Ze()({title:title,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},t))},Co.confirm=function(e,title,t){return"object"===(void 0===title?"undefined":yo(title))?(t=title,title=""):void 0===title&&(title=""),Co(Ze()({title:title,message:e,$type:"confirm",showCancelButton:!0},t))},Co.prompt=function(e,title,t){return"object"===(void 0===title?"undefined":yo(title))?(t=title,title=""):void 0===title&&(title=""),Co(Ze()({title:title,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},t))},Co.close=function(){wo.doClose(),wo.visible=!1,So=[],xo=null};var To=Co,Eo=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[e._t("default")],2)};Eo._withStripped=!0;var Ao=o({name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var e=this.$el.querySelectorAll(".el-breadcrumb__item");e.length&&e[e.length-1].setAttribute("aria-current","page")}},Eo,[],!1,null,null,null);Ao.options.__file="packages/breadcrumb/src/breadcrumb.vue";var Mo=Ao.exports;Mo.install=function(e){e.component(Mo.name,Mo)};var Io=Mo,Do=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-breadcrumb__item"},[n("span",{ref:"link",class:["el-breadcrumb__inner",e.to?"is-link":""],attrs:{role:"link"}},[e._t("default")],2),e.separatorClass?n("i",{staticClass:"el-breadcrumb__separator",class:e.separatorClass}):n("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[e._v(e._s(e.separator))])])};Do._withStripped=!0;var Po=o({name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var e=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var link=this.$refs.link;link.setAttribute("role","link"),link.addEventListener("click",(function(t){var n=e.to,r=e.$router;n&&r&&(e.replace?r.replace(n):r.push(n))}))}},Do,[],!1,null,null,null);Po.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var No=Po.exports;No.install=function(e){e.component(No.name,No)};var Lo=No,jo=function(){var e=this,t=e.$createElement;return(e._self._c||t)("form",{staticClass:"el-form",class:[e.labelPosition?"el-form--label-"+e.labelPosition:"",{"el-form--inline":e.inline}]},[e._t("default")],2)};jo._withStripped=!0;var Ro={name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach((function(e){e.removeValidateEvents(),e.addValidateEvents()})),this.validateOnRuleChange&&this.validate((function(){}))}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var e=Math.max.apply(Math,this.potentialLabelWidthArr);return e?e+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var e=this;this.$on("el.form.addField",(function(t){t&&e.fields.push(t)})),this.$on("el.form.removeField",(function(t){t.prop&&e.fields.splice(e.fields.indexOf(t),1)}))},methods:{resetFields:function(){this.model?this.fields.forEach((function(e){e.resetField()})):console.warn("[Element Warn][Form]model is required for resetFields to work.")},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length?"string"==typeof e?this.fields.filter((function(t){return e===t.prop})):this.fields.filter((function(t){return e.indexOf(t.prop)>-1})):this.fields;t.forEach((function(e){e.clearValidate()}))},validate:function(e){var t=this;if(this.model){var n=void 0;"function"!=typeof e&&window.Promise&&(n=new window.Promise((function(t,n){e=function(e){e?t(e):n(e)}})));var r=!0,o=0;0===this.fields.length&&e&&e(!0);var l={};return this.fields.forEach((function(n){n.validate("",(function(n,c){n&&(r=!1),l=Ze()({},l,c),"function"==typeof e&&++o===t.fields.length&&e(r,l)}))})),n||void 0}console.warn("[Element Warn][Form]model is required for validate to work!")},validateField:function(e,t){e=[].concat(e);var n=this.fields.filter((function(t){return-1!==e.indexOf(t.prop)}));n.length?n.forEach((function(e){e.validate("",t)})):console.warn("[Element Warn]please pass correct props!")},getLabelWidthIndex:function(e){var t=this.potentialLabelWidthArr.indexOf(e);if(-1===t)throw new Error("[ElementForm]unpected width ",e);return t},registerLabelWidth:function(e,t){if(e&&t){var n=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(n,1,e)}else e&&this.potentialLabelWidthArr.push(e)},deregisterLabelWidth:function(e){var t=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(t,1)}}},Fo=o(Ro,jo,[],!1,null,null,null);Fo.options.__file="packages/form/src/form.vue";var Bo=Fo.exports;Bo.install=function(e){e.component(Bo.name,Bo)};var zo=Bo,$o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":e.elForm&&e.elForm.statusIcon,"is-error":"error"===e.validateState,"is-validating":"validating"===e.validateState,"is-success":"success"===e.validateState,"is-required":e.isRequired||e.required,"is-no-asterisk":e.elForm&&e.elForm.hideRequiredAsterisk},e.sizeClass?"el-form-item--"+e.sizeClass:""]},[n("label-wrap",{attrs:{"is-auto-width":e.labelStyle&&"auto"===e.labelStyle.width,"update-all":"auto"===e.form.labelWidth}},[e.label||e.$slots.label?n("label",{staticClass:"el-form-item__label",style:e.labelStyle,attrs:{for:e.labelFor}},[e._t("label",[e._v(e._s(e.label+e.form.labelSuffix))])],2):e._e()]),n("div",{staticClass:"el-form-item__content",style:e.contentStyle},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-top"}},["error"===e.validateState&&e.showMessage&&e.form.showMessage?e._t("error",[n("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"==typeof e.inlineMessage?e.inlineMessage:e.elForm&&e.elForm.inlineMessage||!1}},[e._v("\n "+e._s(e.validateMessage)+"\n ")])],{error:e.validateMessage}):e._e()],2)],2)],1)};$o._withStripped=!0;var Vo=n(40),Ho=n.n(Vo),qo={props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var e=arguments[0],t=this.$slots.default;if(!t)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,style={};if(n&&"auto"!==n){var r=parseInt(n,10)-this.computedWidth;r&&(style.marginLeft=r+"px")}return e("div",{class:"el-form-item__label-wrap",style:style},[t])}return t[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var e=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(e))}return 0},updateLabelWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===e?this.computedWidth=this.getLabelWidth():"remove"===e&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(e,t){this.updateAll&&(this.elForm.registerLabelWidth(e,t),this.elFormItem.updateComputedLabelWidth(e))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},Wo=o(qo,undefined,undefined,!1,null,null,null);Wo.options.__file="packages/form/src/label-wrap.vue";var Uo=Wo.exports,Go={name:"ElFormItem",componentName:"ElFormItem",mixins:[M.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:Uo},watch:{error:{immediate:!0,handler:function(e){this.validateMessage=e,this.validateState=e?"error":""}},validateStatus:function(e){this.validateState=e}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var e={};if("top"===this.form.labelPosition)return e;var t=this.labelWidth||this.form.labelWidth;return t&&(e.width=t),e},contentStyle:function(){var e={},label=this.label;if("top"===this.form.labelPosition||this.form.inline)return e;if(!label&&!this.labelWidth&&this.isNested)return e;var t=this.labelWidth||this.form.labelWidth;return"auto"===t?"auto"===this.labelWidth?e.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(e.marginLeft=this.elForm.autoLabelWidth):e.marginLeft=t,e},form:function(){for(var e=this.$parent,t=e.$options.componentName;"ElForm"!==t;)"ElFormItem"===t&&(this.isNested=!0),t=(e=e.$parent).$options.componentName;return e},fieldValue:function(){var e=this.form.model;if(e&&this.prop){var path=this.prop;return-1!==path.indexOf(":")&&(path=path.replace(/:/,".")),Object(x.getPropByPath)(e,path,!0).v}},isRequired:function(){var e=this.getRules(),t=!1;return e&&e.length&&e.every((function(e){return!e.required||(t=!0,!1)})),t},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.noop;this.validateDisabled=!1;var r=this.getFilteredRule(e);if((!r||0===r.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var o={};r&&r.length>0&&r.forEach((function(e){delete e.trigger})),o[this.prop]=r;var l=new Ho.a(o),c={};c[this.prop]=this.fieldValue,l.validate(c,{firstFields:!0},(function(e,r){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",n(t.validateMessage,r),t.elForm&&t.elForm.$emit("validate",t.prop,!e,t.validateMessage||null)}))},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var e=this;this.validateState="",this.validateMessage="";var t=this.form.model,n=this.fieldValue,path=this.prop;-1!==path.indexOf(":")&&(path=path.replace(/:/,"."));var r=Object(x.getPropByPath)(t,path,!0);this.validateDisabled=!0,Array.isArray(n)?r.o[r.k]=[].concat(this.initialValue):r.o[r.k]=this.initialValue,this.$nextTick((function(){e.validateDisabled=!1})),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var e=this.form.rules,t=this.rules,n=void 0!==this.required?{required:!!this.required}:[],r=Object(x.getPropByPath)(e,this.prop||"");return e=e?r.o[this.prop||""]||r.v:[],[].concat(t||e||[]).concat(n)},getFilteredRule:function(e){return this.getRules().filter((function(t){return!t.trigger||""===e||(Array.isArray(t.trigger)?t.trigger.indexOf(e)>-1:t.trigger===e)})).map((function(e){return Ze()({},e)}))},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth:function(e){this.computedLabelWidth=e?e+"px":""},addValidateEvents:function(){(this.getRules().length||void 0!==this.required)&&(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch("ElForm","el.form.addField",[this]);var e=this.fieldValue;Array.isArray(e)&&(e=[].concat(e)),Object.defineProperty(this,"initialValue",{value:e}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},Yo=o(Go,$o,[],!1,null,null,null);Yo.options.__file="packages/form/src/form-item.vue";var Ko=Yo.exports;Ko.install=function(e){e.component(Ko.name,Ko)};var Xo=Ko,Zo=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-tabs__active-bar",class:"is-"+e.rootTabs.tabPosition,style:e.barStyle})};Zo._withStripped=!0;var Jo=o({name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var e=this,style={},t=0,n=0,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",o="width"===r?"x":"y",l=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))};this.tabs.every((function(o,c){var h=Object(x.arrayFind)(e.$parent.$refs.tabs||[],(function(e){return e.id.replace("tab-","")===o.paneName}));return!!h&&(o.active?(n=h["client"+l(r)],"width"===r&&e.tabs.length>1&&(n-=0===c||c===e.tabs.length-1?20:40),!1):(t+=h["client"+l(r)],!0))})),"width"===r&&0!==t&&(t+=20);var c="translate"+l(o)+"("+t+"px)";return style[r]=n+"px",style.transform=c,style.msTransform=c,style.webkitTransform=c,style}}}},Zo,[],!1,null,null,null);Jo.options.__file="packages/tabs/src/tab-bar.vue";var Qo=Jo.exports;function ea(){}var ta=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))},na={name:"TabNav",components:{TabBar:Qo},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:ea},onTabRemove:{type:Function,default:ea},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){return{transform:"translate"+(-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"X":"Y")+"(-"+this.navOffset+"px)"}},sizeName:function(){return-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height"}},methods:{scrollPrev:function(){var e=this.$refs.navScroll["offset"+ta(this.sizeName)],t=this.navOffset;if(t){var n=t>e?t-e:0;this.navOffset=n}},scrollNext:function(){var e=this.$refs.nav["offset"+ta(this.sizeName)],t=this.$refs.navScroll["offset"+ta(this.sizeName)],n=this.navOffset;if(!(e-n<=t)){var r=e-n>2*t?n+t:e-t;this.navOffset=r}},scrollToActiveTab:function(){if(this.scrollable){var nav=this.$refs.nav,e=this.$el.querySelector(".is-active");if(e){var t=this.$refs.navScroll,n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=nav.offsetWidth-r.width,l=this.navOffset,c=l;n.left<r.left&&(c=l-(r.left-n.left)),n.right>r.right&&(c=l+n.right-r.right),c=Math.max(c,0),this.navOffset=Math.min(c,o)}}},update:function(){if(this.$refs.nav){var e=this.sizeName,t=this.$refs.nav["offset"+ta(e)],n=this.$refs.navScroll["offset"+ta(e)],r=this.navOffset;if(n<t){var o=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=o,this.scrollable.next=o+n<t,t-o<n&&(this.navOffset=t-n)}else this.scrollable=!1,r>0&&(this.navOffset=0)}},changeTab:function(e){var t=e.keyCode,n=void 0,r=void 0,o=void 0;-1!==[37,38,39,40].indexOf(t)&&(o=e.currentTarget.querySelectorAll("[role=tab]"),r=Array.prototype.indexOf.call(o,e.target),o[n=37===t||38===t?0===r?o.length-1:r-1:r<o.length-1?r+1:0].focus(),o[n].click(),this.setFocus())},setFocus:function(){this.focusable&&(this.isFocus=!0)},removeFocus:function(){this.isFocus=!1},visibilityChangeHandler:function(){var e=this,t=document.visibilityState;"hidden"===t?this.focusable=!1:"visible"===t&&setTimeout((function(){e.focusable=!0}),50)},windowBlurHandler:function(){this.focusable=!1},windowFocusHandler:function(){var e=this;setTimeout((function(){e.focusable=!0}),50)}},updated:function(){this.update()},render:function(e){var t=this,n=this.type,r=this.panes,o=this.editable,l=this.stretch,c=this.onTabClick,h=this.onTabRemove,f=this.navStyle,d=this.scrollable,v=this.scrollNext,m=this.scrollPrev,y=this.changeTab,_=this.setFocus,x=this.removeFocus,w=d?[e("span",{class:["el-tabs__nav-prev",d.prev?"":"is-disabled"],on:{click:m}},[e("i",{class:"el-icon-arrow-left"})]),e("span",{class:["el-tabs__nav-next",d.next?"":"is-disabled"],on:{click:v}},[e("i",{class:"el-icon-arrow-right"})])]:null,S=this._l(r,(function(n,r){var l,f=n.name||n.index||r,d=n.isClosable||o;n.index=""+r;var v=d?e("span",{class:"el-icon-close",on:{click:function(e){h(n,e)}}}):null,m=n.$slots.label||n.label,y=n.active?0:-1;return e("div",{class:(l={"el-tabs__item":!0},l["is-"+t.rootTabs.tabPosition]=!0,l["is-active"]=n.active,l["is-disabled"]=n.disabled,l["is-closable"]=d,l["is-focus"]=t.isFocus,l),attrs:{id:"tab-"+f,"aria-controls":"pane-"+f,role:"tab","aria-selected":n.active,tabindex:y},key:"tab-"+f,ref:"tabs",refInFor:!0,on:{focus:function(){_()},blur:function(){x()},click:function(e){x(),c(n,f,e)},keydown:function(e){!d||46!==e.keyCode&&8!==e.keyCode||h(n,e)}}},[m,v])}));return e("div",{class:["el-tabs__nav-wrap",d?"is-scrollable":"","is-"+this.rootTabs.tabPosition]},[w,e("div",{class:["el-tabs__nav-scroll"],ref:"navScroll"},[e("div",{class:["el-tabs__nav","is-"+this.rootTabs.tabPosition,l&&-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"is-stretch":""],ref:"nav",style:f,attrs:{role:"tablist"},on:{keydown:y}},[n?null:e("tab-bar",{attrs:{tabs:r}}),S])])])},mounted:function(){var e=this;Object(Kt.addResizeListener)(this.$el,this.update),document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.addEventListener("blur",this.windowBlurHandler),window.addEventListener("focus",this.windowFocusHandler),setTimeout((function(){e.scrollToActiveTab()}),0)},beforeDestroy:function(){this.$el&&this.update&&Object(Kt.removeResizeListener)(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},ra=o(na,undefined,undefined,!1,null,null,null);ra.options.__file="packages/tabs/src/tab-nav.vue";var ia={name:"ElTabs",components:{TabNav:ra.exports},props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:"top"},beforeLeave:Function,stretch:Boolean},provide:function(){return{rootTabs:this}},data:function(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName:function(e){this.setCurrentName(e)},value:function(e){this.setCurrentName(e)},currentName:function(e){var t=this;this.$refs.nav&&this.$nextTick((function(){t.$refs.nav.$nextTick((function(e){t.$refs.nav.scrollToActiveTab()}))}))}},methods:{calcPaneInstances:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter((function(e){return e.tag&&e.componentOptions&&"ElTabPane"===e.componentOptions.Ctor.options.name})),r=n.map((function(e){return e.componentInstance})),o=!(r.length===this.panes.length&&r.every((function(t,n){return t===e.panes[n]})));(t||o)&&(this.panes=r)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(e,t,n){e.disabled||(this.setCurrentName(t),this.$emit("tab-click",e,n))},handleTabRemove:function(e,t){e.disabled||(t.stopPropagation(),this.$emit("edit",e.name,"remove"),this.$emit("tab-remove",e.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(e){var t=this,n=function(){t.currentName=e,t.$emit("input",e)};if(this.currentName!==e&&this.beforeLeave){var r=this.beforeLeave(e,this.currentName);r&&r.then?r.then((function(){n(),t.$refs.nav&&t.$refs.nav.removeFocus()}),(function(){})):!1!==r&&n()}else n()}},render:function(e){var t,n=this.type,r=this.handleTabClick,o=this.handleTabRemove,l=this.handleTabAdd,c=this.currentName,h=this.panes,f=this.editable,d=this.addable,v=this.tabPosition,m=this.stretch,y=f||d?e("span",{class:"el-tabs__new-tab",on:{click:l,keydown:function(e){13===e.keyCode&&l()}},attrs:{tabindex:"0"}},[e("i",{class:"el-icon-plus"})]):null,header=e("div",{class:["el-tabs__header","is-"+v]},[y,e("tab-nav",{props:{currentName:c,onTabClick:r,onTabRemove:o,editable:f,type:n,panes:h,stretch:m},ref:"nav"})]),_=e("div",{class:"el-tabs__content"},[this.$slots.default]);return e("div",{class:(t={"el-tabs":!0,"el-tabs--card":"card"===n},t["el-tabs--"+v]=!0,t["el-tabs--border-card"]="border-card"===n,t)},["bottom"!==v?[header,_]:[_,header]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},oa=o(ia,undefined,undefined,!1,null,null,null);oa.options.__file="packages/tabs/src/tabs.vue";var aa=oa.exports;aa.install=function(e){e.component(aa.name,aa)};var sa=aa,la=function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.lazy||e.loaded||e.active?n("div",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!e.active,id:"pane-"+e.paneName,"aria-labelledby":"tab-"+e.paneName}},[e._t("default")],2):e._e()};la._withStripped=!0;var ua=o({name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var e=this.$parent.currentName===(this.name||this.index);return e&&(this.loaded=!0),e},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},la,[],!1,null,null,null);ua.options.__file="packages/tabs/src/tab-pane.vue";var ca=ua.exports;ca.install=function(e){e.component(ca.name,ca)};var ha=ca,fa=o({name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,r=this.hit,o=this.effect,l=e("span",{class:["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",o?"el-tag--"+o:"",r&&"is-hit"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?l:e("transition",{attrs:{name:"el-zoom-in-center"}},[l])}},undefined,undefined,!1,null,null,null);fa.options.__file="packages/tag/src/tag.vue";var da=fa.exports;da.install=function(e){e.component(da.name,da)};var pa=da,ga=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":e.highlightCurrent,"is-dragging":!!e.dragState.draggingNode,"is-drop-not-allow":!e.dragState.allowDrop,"is-drop-inner":"inner"===e.dragState.dropType},attrs:{role:"tree"}},[e._l(e.root.childNodes,(function(t){return n("el-tree-node",{key:e.getNodeKey(t),attrs:{node:t,props:e.props,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent},on:{"node-expand":e.handleNodeExpand}})})),e.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[e._v(e._s(e.emptyText))])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)};ga._withStripped=!0;var va="$treeNodeId",ma=function(e,data){data&&!data[va]&&Object.defineProperty(data,va,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},ya=function(e,data){return e?data[e]:data[va]},ba=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var _a=function(e){for(var t=!0,n=!0,r=!0,i=0,o=e.length;i<o;i++){var l=e[i];(!0!==l.checked||l.indeterminate)&&(t=!1,l.disabled||(r=!1)),(!1!==l.checked||l.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},xa=function e(t){if(0!==t.childNodes.length){var n=_a(t.childNodes),r=n.all,o=n.none,l=n.half;r?(t.checked=!0,t.indeterminate=!1):l?(t.checked=!1,t.indeterminate=!0):o&&(t.checked=!1,t.indeterminate=!1);var c=t.parent;c&&0!==c.level&&(t.store.checkStrictly||e(c))}},wa=function(e,t){var n=e.store.props,data=e.data||{},r=n[t];if("function"==typeof r)return r(data,e);if("string"==typeof r)return data[r];if(void 0===r){var o=data[t];return void 0===o?"":o}},Sa=0,ka=function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=Sa++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1);var r=this.store;if(!r)throw new Error("[Node]store is required!");r.registerNode(this);var o=r.props;if(o&&void 0!==o.isLeaf){var l=wa(this,"isLeaf");"boolean"==typeof l&&(this.isLeafByUser=l)}if(!0!==r.lazy&&this.data?(this.setData(this.data),r.defaultExpandAll&&(this.expanded=!0)):this.level>0&&r.lazy&&r.defaultExpandAll&&this.expand(),Array.isArray(this.data)||ma(this,this.data),this.data){var c=r.defaultExpandedKeys,h=r.key;h&&c&&-1!==c.indexOf(this.key)&&this.expand(null,r.autoExpandParent),h&&void 0!==r.currentNodeKey&&this.key===r.currentNodeKey&&(r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState()}}return e.prototype.setData=function(data){Array.isArray(data)||ma(this,data),this.data=data,this.childNodes=[];for(var e=void 0,i=0,t=(e=0===this.level&&this.data instanceof Array?this.data:wa(this,"children")||[]).length;i<t;i++)this.insertChild({data:e[i]})},e.prototype.contains=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function n(r){for(var o=r.childNodes||[],l=!1,i=0,c=o.length;i<c;i++){var h=o[i];if(h===e||t&&n(h)){l=!0;break}}return l};return n(this)},e.prototype.remove=function(){var e=this.parent;e&&e.removeChild(this)},e.prototype.insertChild=function(t,n,r){if(!t)throw new Error("insertChild error: child is required.");if(!(t instanceof e)){if(!r){var o=this.getChildren(!0);-1===o.indexOf(t.data)&&(void 0===n||n<0?o.push(t.data):o.splice(n,0,t.data))}Ze()(t,{parent:this,store:this.store}),t=new e(t)}t.level=this.level+1,void 0===n||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()},e.prototype.insertBefore=function(e,t){var n=void 0;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)},e.prototype.insertAfter=function(e,t){var n=void 0;t&&-1!==(n=this.childNodes.indexOf(t))&&(n+=1),this.insertChild(e,n)},e.prototype.removeChild=function(e){var t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);var r=this.childNodes.indexOf(e);r>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()},e.prototype.removeChildByData=function(data){for(var e=null,i=0;i<this.childNodes.length;i++)if(this.childNodes[i].data===data){e=this.childNodes[i];break}e&&this.removeChild(e)},e.prototype.expand=function(e,t){var n=this,r=function(){if(t)for(var r=n.parent;r.level>0;)r.expanded=!0,r=r.parent;n.expanded=!0,e&&e()};this.shouldLoadData()?this.loadData((function(data){data instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||xa(n),r())})):r()},e.prototype.doCreateChildren=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){t.insertChild(Ze()({data:e},n),void 0,!0)}))},e.prototype.collapse=function(){this.expanded=!1},e.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},e.prototype.updateLeafState=function(){if(!0!==this.store.lazy||!0===this.loaded||void 0===this.isLeafByUser){var e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser},e.prototype.setChecked=function(e,t,n,r){var o=this;if(this.indeterminate="half"===e,this.checked=!0===e,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var l=_a(this.childNodes),c=l.all,h=l.allWithoutDisable;this.isLeaf||c||!h||(this.checked=!1,e=!1);var f=function(){if(t){for(var n=o.childNodes,i=0,l=n.length;i<l;i++){var c=n[i];r=r||!1!==e;var h=c.disabled?c.checked:r;c.setChecked(h,t,!0,r)}var f=_a(n),d=f.half,v=f.all;v||(o.checked=v,o.indeterminate=d)}};if(this.shouldLoadData())return void this.loadData((function(){f(),xa(o)}),{checked:!1!==e});f()}var d=this.parent;d&&0!==d.level&&(n||xa(d))}},e.prototype.getChildren=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var data=this.data;if(!data)return null;var t=this.store.props,n="children";return t&&(n=t.children||"children"),void 0===data[n]&&(data[n]=null),e&&!data[n]&&(data[n]=[]),data[n]},e.prototype.updateChildren=function(){var e=this,t=this.getChildren()||[],n=this.childNodes.map((function(e){return e.data})),r={},o=[];t.forEach((function(e,t){var l=e[va];!!l&&Object(x.arrayFindIndex)(n,(function(data){return data[va]===l}))>=0?r[l]={index:t,data:e}:o.push({index:t,data:e})})),this.store.lazy||n.forEach((function(t){r[t[va]]||e.removeChildByData(t)})),o.forEach((function(t){var n=t.index,data=t.data;e.insertChild({data:data},n)})),this.updateLeafState()},e.prototype.loadData=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)e&&e.call(this);else{this.loading=!0;var r=function(r){t.loaded=!0,t.loading=!1,t.childNodes=[],t.doCreateChildren(r,n),t.updateLeafState(),e&&e.call(t,r)};this.store.load(this,r)}},ba(e,[{key:"label",get:function(){return wa(this,"label")}},{key:"key",get:function(){var e=this.store.key;return this.data?this.data[e]:null}},{key:"disabled",get:function(){return wa(this,"disabled")}},{key:"nextSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}},{key:"previousSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}}]),e}(),Oa=ka,Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var Ta=function(){function e(t){var n=this;for(var option in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentNode=null,this.currentNodeKey=null,t)t.hasOwnProperty(option)&&(this[option]=t[option]);(this.nodesMap={},this.root=new Oa({data:this.data,store:this}),this.lazy&&this.load)?(0,this.load)(this.root,(function(data){n.root.doCreateChildren(data),n._initDefaultCheckedNodes()})):this._initDefaultCheckedNodes()}return e.prototype.filter=function(e){var t=this.filterNodeMethod,n=this.lazy;!function r(o){var l=o.root?o.root.childNodes:o.childNodes;if(l.forEach((function(n){n.visible=t.call(n,e,n.data,n),r(n)})),!o.visible&&l.length){var c;c=!l.some((function(e){return e.visible})),o.root?o.root.visible=!1===c:o.visible=!1===c}e&&(!o.visible||o.isLeaf||n||o.expand())}(this)},e.prototype.setData=function(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()},e.prototype.getNode=function(data){if(data instanceof Oa)return data;var e="object"!==(void 0===data?"undefined":Ca(data))?data:ya(this.key,data);return this.nodesMap[e]||null},e.prototype.insertBefore=function(data,e){var t=this.getNode(e);t.parent.insertBefore({data:data},t)},e.prototype.insertAfter=function(data,e){var t=this.getNode(e);t.parent.insertAfter({data:data},t)},e.prototype.remove=function(data){var e=this.getNode(data);e&&e.parent&&(e===this.currentNode&&(this.currentNode=null),e.parent.removeChild(e))},e.prototype.append=function(data,e){var t=e?this.getNode(e):this.root;t&&t.insertChild({data:data})},e.prototype._initDefaultCheckedNodes=function(){var e=this,t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach((function(t){var r=n[t];r&&r.setChecked(!0,!e.checkStrictly)}))},e.prototype._initDefaultCheckedNode=function(e){-1!==(this.defaultCheckedKeys||[]).indexOf(e.key)&&e.setChecked(!0,!this.checkStrictly)},e.prototype.setDefaultCheckedKey=function(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())},e.prototype.registerNode=function(e){this.key&&e&&e.data&&(void 0!==e.key&&(this.nodesMap[e.key]=e))},e.prototype.deregisterNode=function(e){var t=this;this.key&&e&&e.data&&(e.childNodes.forEach((function(e){t.deregisterNode(e)})),delete this.nodesMap[e.key])},e.prototype.getCheckedNodes=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=function r(o){(o.root?o.root.childNodes:o.childNodes).forEach((function(o){(o.checked||t&&o.indeterminate)&&(!e||e&&o.isLeaf)&&n.push(o.data),r(o)}))};return r(this),n},e.prototype.getCheckedKeys=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(t).map((function(data){return(data||{})[e.key]}))},e.prototype.getHalfCheckedNodes=function(){var e=[];return function t(n){(n.root?n.root.childNodes:n.childNodes).forEach((function(n){n.indeterminate&&e.push(n.data),t(n)}))}(this),e},e.prototype.getHalfCheckedKeys=function(){var e=this;return this.getHalfCheckedNodes().map((function(data){return(data||{})[e.key]}))},e.prototype._getAllNodes=function(){var e=[],t=this.nodesMap;for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},e.prototype.updateChildren=function(e,data){var t=this.nodesMap[e];if(t){for(var n=t.childNodes,i=n.length-1;i>=0;i--){var r=n[i];this.remove(r.data)}for(var o=0,l=data.length;o<l;o++){var c=data[o];this.append(c,t.data)}}},e.prototype._setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],r=this._getAllNodes().sort((function(a,b){return b.level-a.level})),o=Object.create(null),l=Object.keys(n);r.forEach((function(e){return e.setChecked(!1,!1)}));for(var i=0,c=r.length;i<c;i++){var h=r[i],f=h.data[e].toString(),d=l.indexOf(f)>-1;if(d){for(var v=h.parent;v&&v.level>0;)o[v.data[e]]=!0,v=v.parent;h.isLeaf||this.checkStrictly?h.setChecked(!0,!1):(h.setChecked(!0,!0),t&&function(){h.setChecked(!1,!1);!function e(t){t.childNodes.forEach((function(t){t.isLeaf||t.setChecked(!1,!1),e(t)}))}(h)}())}else h.checked&&!o[f]&&h.setChecked(!1,!1)}},e.prototype.setCheckedNodes=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,r={};e.forEach((function(e){r[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,r)},e.prototype.setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,r={};e.forEach((function(e){r[e]=!0})),this._setCheckedKeys(n,t,r)},e.prototype.setDefaultExpandedKeys=function(e){var t=this;e=e||[],this.defaultExpandedKeys=e,e.forEach((function(e){var n=t.getNode(e);n&&n.expand(null,t.autoExpandParent)}))},e.prototype.setChecked=function(data,e,t){var n=this.getNode(data);n&&n.setChecked(!!e,t)},e.prototype.getCurrentNode=function(){return this.currentNode},e.prototype.setCurrentNode=function(e){var t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0},e.prototype.setUserCurrentNode=function(e){var t=e[this.key],n=this.nodesMap[t];this.setCurrentNode(n)},e.prototype.setCurrentNodeKey=function(e){if(null==e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var t=this.getNode(e);t&&this.setCurrentNode(t)},e}(),Ea=Ta,Aa=function(){var e=this,t=this,n=t.$createElement,r=t._self._c||n;return r("div",{directives:[{name:"show",rawName:"v-show",value:t.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":t.expanded,"is-current":t.node.isCurrent,"is-hidden":!t.node.visible,"is-focusable":!t.node.disabled,"is-checked":!t.node.disabled&&t.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.draggable},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)},contextmenu:function(t){return e.handleContextMenu(t)},dragstart:function(e){return e.stopPropagation(),t.handleDragStart(e)},dragover:function(e){return e.stopPropagation(),t.handleDragOver(e)},dragend:function(e){return e.stopPropagation(),t.handleDragEnd(e)},drop:function(e){return e.stopPropagation(),t.handleDrop(e)}}},[r("div",{staticClass:"el-tree-node__content",style:{"padding-left":(t.node.level-1)*t.tree.indent+"px"}},[r("span",{class:[{"is-leaf":t.node.isLeaf,expanded:!t.node.isLeaf&&t.expanded},"el-tree-node__expand-icon",t.tree.iconClass?t.tree.iconClass:"el-icon-caret-right"],on:{click:function(e){return e.stopPropagation(),t.handleExpandIconClick(e)}}}),t.showCheckbox?r("el-checkbox",{attrs:{indeterminate:t.node.indeterminate,disabled:!!t.node.disabled},on:{change:t.handleCheckChange},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:t.node.checked,callback:function(e){t.$set(t.node,"checked",e)},expression:"node.checked"}}):t._e(),t.node.loading?r("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):t._e(),r("node-content",{attrs:{node:t.node}})],1),r("el-collapse-transition",[!t.renderAfterExpand||t.childNodeRendered?r("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":t.expanded}},t._l(t.node.childNodes,(function(e){return r("el-tree-node",{key:t.getNodeKey(e),attrs:{"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:e},on:{"node-expand":t.handleChildNodeExpand}})})),1):t._e()])],1)};Aa._withStripped=!0;var Ma={name:"ElTreeNode",componentName:"ElTreeNode",mixins:[M.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:Te.a,ElCheckbox:xn.a,NodeContent:{props:{node:{required:!0}},render:function(e){var t=this.$parent,n=t.tree,r=this.node,data=r.data,o=r.store;return t.renderContent?t.renderContent.call(t._renderProxy,e,{_self:n.$vnode.context,node:r,data:data,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:r,data:data}):e("span",{class:"el-tree-node__label"},[r.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(e){this.handleSelectChange(this.node.checked,e)},"node.checked":function(e){this.handleSelectChange(e,this.node.indeterminate)},"node.expanded":function(e){var t=this;this.$nextTick((function(){return t.expanded=e})),e&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(e){return ya(this.tree.nodeKey,e.data)},handleSelectChange:function(e,t){this.oldChecked!==e&&this.oldIndeterminate!==t&&this.tree.$emit("check-change",this.node.data,e,t),this.oldChecked=e,this.indeterminate=t},handleClick:function(){var e=this.tree.store;e.setCurrentNode(this.node),this.tree.$emit("current-change",e.currentNode?e.currentNode.data:null,e.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(e){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(e.stopPropagation(),e.preventDefault()),this.tree.$emit("node-contextmenu",e,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(e,t){var n=this;this.node.setChecked(t.target.checked,!this.tree.checkStrictly),this.$nextTick((function(){var e=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:e.getCheckedNodes(),checkedKeys:e.getCheckedKeys(),halfCheckedNodes:e.getHalfCheckedNodes(),halfCheckedKeys:e.getHalfCheckedKeys()})}))},handleChildNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.tree.$emit("node-expand",e,t,n)},handleDragStart:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",e,this)},handleDragOver:function(e){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",e,this),e.preventDefault())},handleDrop:function(e){e.preventDefault()},handleDragEnd:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",e,this)}},created:function(){var e=this,t=this.$parent;t.isTree?this.tree=t:this.tree=t.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var r=(n.props||{}).children||"children";this.$watch("node.data."+r,(function(){e.node.updateChildren()})),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",(function(t){e.node!==t&&e.node.collapse()}))}},Ia=o(Ma,Aa,[],!1,null,null,null);Ia.options.__file="packages/tree/src/tree-node.vue";var Da=Ia.exports,Pa={name:"ElTree",mixins:[M.a],components:{ElTreeNode:Da},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(Xt.t)("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(e){this.data=e},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var e=this.root.childNodes;return!e||0===e.length||e.every((function(e){return!e.visible}))}},watch:{defaultCheckedKeys:function(e){this.store.setDefaultCheckedKey(e)},defaultExpandedKeys:function(e){this.store.defaultExpandedKeys=e,this.store.setDefaultExpandedKeys(e)},data:function(e){this.store.setData(e)},checkboxItems:function(e){Array.prototype.forEach.call(e,(function(e){e.setAttribute("tabindex",-1)}))},checkStrictly:function(e){this.store.checkStrictly=e}},methods:{filter:function(e){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(e)},getNodeKey:function(e){return ya(this.nodeKey,e.data)},getNodePath:function(data){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var e=this.store.getNode(data);if(!e)return[];for(var path=[e.data],t=e.parent;t&&t!==this.root;)path.push(t.data),t=t.parent;return path.reverse()},getCheckedNodes:function(e,t){return this.store.getCheckedNodes(e,t)},getCheckedKeys:function(e){return this.store.getCheckedKeys(e)},getCurrentNode:function(){var e=this.store.getCurrentNode();return e?e.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var e=this.getCurrentNode();return e?e[this.nodeKey]:null},setCheckedNodes:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(e,t)},setCheckedKeys:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(e,t)},setChecked:function(data,e,t){this.store.setChecked(data,e,t)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(e)},setCurrentKey:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(e)},getNode:function(data){return this.store.getNode(data)},remove:function(data){this.store.remove(data)},append:function(data,e){this.store.append(data,e)},insertBefore:function(data,e){this.store.insertBefore(data,e)},insertAfter:function(data,e){this.store.insertAfter(data,e)},handleNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.$emit("node-expand",e,t,n)},updateKeyChildren:function(e,data){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(e,data)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var e=this.$el.querySelectorAll(".is-checked[role=treeitem]");e.length?e[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(e){var t=e.target;if(-1!==t.className.indexOf("el-tree-node")){var n=e.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var r=this.treeItemArray.indexOf(t),o=void 0;[38,40].indexOf(n)>-1&&(e.preventDefault(),o=38===n?0!==r?r-1:0:r<this.treeItemArray.length-1?r+1:0,this.treeItemArray[o].focus()),[37,39].indexOf(n)>-1&&(e.preventDefault(),t.click());var l=t.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&l&&(e.preventDefault(),l.click())}}},created:function(){var e=this;this.isTree=!0,this.store=new Ea({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var t=this.dragState;this.$on("tree-node-drag-start",(function(n,r){if("function"==typeof e.allowDrag&&!e.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(e){}t.draggingNode=r,e.$emit("node-drag-start",r.node,n)})),this.$on("tree-node-drag-over",(function(n,r){var o=function(element,e){for(var t=element;t&&"BODY"!==t.tagName;){if(t.__vue__&&t.__vue__.$options.name===e)return t.__vue__;t=t.parentNode}return null}(n.target,"ElTreeNode"),l=t.dropNode;l&&l!==o&&Object(xe.removeClass)(l.$el,"is-drop-inner");var c=t.draggingNode;if(c&&o){var h=!0,f=!0,d=!0,v=!0;"function"==typeof e.allowDrop&&(h=e.allowDrop(c.node,o.node,"prev"),v=f=e.allowDrop(c.node,o.node,"inner"),d=e.allowDrop(c.node,o.node,"next")),n.dataTransfer.dropEffect=f?"move":"none",(h||f||d)&&l!==o&&(l&&e.$emit("node-drag-leave",c.node,l.node,n),e.$emit("node-drag-enter",c.node,o.node,n)),(h||f||d)&&(t.dropNode=o),o.node.nextSibling===c.node&&(d=!1),o.node.previousSibling===c.node&&(h=!1),o.node.contains(c.node,!1)&&(f=!1),(c.node===o.node||c.node.contains(o.node))&&(h=!1,f=!1,d=!1);var m=o.$el.getBoundingClientRect(),y=e.$el.getBoundingClientRect(),_=void 0,x=h?f?.25:d?.45:1:-1,w=d?f?.75:h?.55:0:1,S=-9999,k=n.clientY-m.top;_=k<m.height*x?"before":k>m.height*w?"after":f?"inner":"none";var O=o.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),C=e.$refs.dropIndicator;"before"===_?S=O.top-y.top:"after"===_&&(S=O.bottom-y.top),C.style.top=S+"px",C.style.left=O.right-y.left+"px","inner"===_?Object(xe.addClass)(o.$el,"is-drop-inner"):Object(xe.removeClass)(o.$el,"is-drop-inner"),t.showDropIndicator="before"===_||"after"===_,t.allowDrop=t.showDropIndicator||v,t.dropType=_,e.$emit("node-drag-over",c.node,o.node,n)}})),this.$on("tree-node-drag-end",(function(n){var r=t.draggingNode,o=t.dropType,l=t.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",r&&l){var c={data:r.node.data};"none"!==o&&r.node.remove(),"before"===o?l.node.parent.insertBefore(c,l.node):"after"===o?l.node.parent.insertAfter(c,l.node):"inner"===o&&l.node.insertChild(c),"none"!==o&&e.store.registerNode(c),Object(xe.removeClass)(l.$el,"is-drop-inner"),e.$emit("node-drag-end",r.node,l.node,o,n),"none"!==o&&e.$emit("node-drop",r.node,l.node,o,n)}r&&!l&&e.$emit("node-drag-end",r.node,null,o,n),t.showDropIndicator=!1,t.draggingNode=null,t.dropNode=null,t.allowDrop=!0}))},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},Na=o(Pa,ga,[],!1,null,null,null);Na.options.__file="packages/tree/src/tree.vue";var La=Na.exports;La.install=function(e){e.component(La.name,La)};var ja=La,Ra=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-alert",class:[e.typeClass,e.center?"is-center":"","is-"+e.effect],attrs:{role:"alert"}},[e.showIcon?n("i",{staticClass:"el-alert__icon",class:[e.iconClass,e.isBigIcon]}):e._e(),n("div",{staticClass:"el-alert__content"},[e.title||e.$slots.title?n("span",{staticClass:"el-alert__title",class:[e.isBoldTitle]},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e.$slots.default&&!e.description?n("p",{staticClass:"el-alert__description"},[e._t("default")],2):e._e(),e.description&&!e.$slots.default?n("p",{staticClass:"el-alert__description"},[e._v(e._s(e.description))]):e._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:e.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==e.closeText,"el-icon-close":""===e.closeText},on:{click:function(t){e.close()}}},[e._v(e._s(e.closeText))])])])])};Ra._withStripped=!0;var Fa={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},Ba=o({name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return Fa[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},Ra,[],!1,null,null,null);Ba.options.__file="packages/alert/src/main.vue";var za=Ba.exports;za.install=function(e){e.component(za.name,za)};var $a=za,Va=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-notification",e.customClass,e.horizontalClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(t){e.clearTimer()},mouseleave:function(t){e.startTimer()},click:e.click}},[e.type||e.iconClass?n("i",{staticClass:"el-notification__icon",class:[e.typeClass,e.iconClass]}):e._e(),n("div",{staticClass:"el-notification__group",class:{"is-with-icon":e.typeClass||e.iconClass}},[n("h2",{staticClass:"el-notification__title",domProps:{textContent:e._s(e.title)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.message,expression:"message"}],staticClass:"el-notification__content"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2),e.showClose?n("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(t){return t.stopPropagation(),e.close(t)}}}):e._e()])])])};Va._withStripped=!0;var Ha={success:"success",info:"info",warning:"warning",error:"error"},qa=o({data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&Ha[this.type]?"el-icon-"+Ha[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var e;return(e={})[this.verticalProperty]=this.verticalOffset+"px",e}},watch:{closed:function(e){e&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"==typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"==typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){46===e.keyCode||8===e.keyCode?this.clearTimer():27===e.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Va,[],!1,null,null,null);qa.options.__file="packages/notification/src/main.vue";var Wa=qa.exports,Ua=En.a.extend(Wa),Ga=void 0,Ya=[],Ka=1,Xa=function e(t){if(!En.a.prototype.$isServer){var n=(t=t||{}).onClose,r="notification_"+Ka++,o=t.position||"top-right";t.onClose=function(){e.close(r,n)},Ga=new Ua({data:t}),Object(mo.isVNode)(t.message)&&(Ga.$slots.default=[t.message],t.message="REPLACED_BY_VNODE"),Ga.id=r,Ga.$mount(),document.body.appendChild(Ga.$el),Ga.visible=!0,Ga.dom=Ga.$el,Ga.dom.style.zIndex=O.PopupManager.nextZIndex();var l=t.offset||0;return Ya.filter((function(e){return e.position===o})).forEach((function(e){l+=e.$el.offsetHeight+16})),l+=16,Ga.verticalOffset=l,Ya.push(Ga),Ga}};["success","warning","info","error"].forEach((function(e){Xa[e]=function(t){return("string"==typeof t||Object(mo.isVNode)(t))&&(t={message:t}),t.type=e,Xa(t)}})),Xa.close=function(e,t){var n=-1,r=Ya.length,o=Ya.filter((function(t,i){return t.id===e&&(n=i,!0)}))[0];if(o&&("function"==typeof t&&t(o),Ya.splice(n,1),!(r<=1)))for(var l=o.position,c=o.dom.offsetHeight,i=n;i<r-1;i++)Ya[i].position===l&&(Ya[i].dom.style[o.verticalProperty]=parseInt(Ya[i].dom.style[o.verticalProperty],10)-c-16+"px")},Xa.closeAll=function(){for(var i=Ya.length-1;i>=0;i--)Ya[i].close()};var Za=Xa,Ja=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-slider",class:{"is-vertical":e.vertical,"el-slider--with-input":e.showInput},attrs:{role:"slider","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":e.sliderDisabled}},[e.showInput&&!e.range?n("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:e.step,disabled:e.sliderDisabled,controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:e.inputSize},on:{change:e.emitChange},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}):e._e(),n("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":e.showInput,disabled:e.sliderDisabled},style:e.runwayStyle,on:{click:e.onSliderClick}},[n("div",{staticClass:"el-slider__bar",style:e.barStyle}),n("slider-button",{ref:"button1",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}),e.range?n("slider-button",{ref:"button2",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.secondValue,callback:function(t){e.secondValue=t},expression:"secondValue"}}):e._e(),e._l(e.stops,(function(t,r){return e.showStops?n("div",{key:r,staticClass:"el-slider__stop",style:e.getStopStyle(t)}):e._e()})),e.markList.length>0?[n("div",e._l(e.markList,(function(t,r){return n("div",{key:r,staticClass:"el-slider__stop el-slider__marks-stop",style:e.getStopStyle(t.position)})})),0),n("div",{staticClass:"el-slider__marks"},e._l(e.markList,(function(t,r){return n("slider-marker",{key:r,style:e.getStopStyle(t.position),attrs:{mark:t.mark}})})),1)]:e._e()],2)],1)};Ja._withStripped=!0;var Qa=n(41),es=n.n(Qa),ts=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:e.hovering,dragging:e.dragging},style:e.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave,mousedown:e.onButtonDown,touchstart:e.onButtonDown,focus:e.handleMouseEnter,blur:e.handleMouseLeave,keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.onLeftKeyDown(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:e.onRightKeyDown(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.onLeftKeyDown(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.onRightKeyDown(t))}]}},[n("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":e.tooltipClass,disabled:!e.showTooltip}},[n("span",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.formatValue))]),n("div",{staticClass:"el-slider__button",class:{hover:e.hovering,dragging:e.dragging}})])],1)};ts._withStripped=!0;var ns=o({name:"ElSliderButton",components:{ElTooltip:je.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(e){this.$parent.dragging=e}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(e){this.disabled||(e.preventDefault(),this.onDragStart(e),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(e){this.dragging=!0,this.isClick=!0,"touchstart"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?this.startY=e.clientY:this.startX=e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(e){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var t=0;"touchmove"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?(this.currentY=e.clientY,t=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=e.clientX,t=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd:function(){var e=this;this.dragging&&(setTimeout((function(){e.dragging=!1,e.hideTooltip(),e.isClick||(e.setPosition(e.newPosition),e.$parent.emitChange())}),0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(e){var t=this;if(null!==e&&!isNaN(e)){e<0?e=0:e>100&&(e=100);var n=100/((this.max-this.min)/this.step),r=Math.round(e/n)*n*(this.max-this.min)*.01+this.min;r=parseFloat(r.toFixed(this.precision)),this.$emit("input",r),this.$nextTick((function(){t.displayTooltip(),t.$refs.tooltip&&t.$refs.tooltip.updatePopper()})),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},ts,[],!1,null,null,null);ns.options.__file="packages/slider/src/button.vue";var rs=ns.exports,marker={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var e=arguments[0],label="string"==typeof this.mark?this.mark:this.mark.label;return e("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[label])}},is={name:"ElSlider",mixins:[M.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:es.a,SliderButton:rs,SliderMarker:marker},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(e,t){this.dragging||Array.isArray(e)&&Array.isArray(t)&&e.every((function(e,n){return e===t[n]}))||this.setValues()},dragging:function(e){e||this.setValues()},firstValue:function(e){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",e)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var e=this;return this.range?![this.minValue,this.maxValue].every((function(t,n){return t===e.oldValue[n]})):this.value!==this.oldValue},setValues:function(){if(this.min>this.max)console.error("[Element Error][Slider]min should not be greater than max.");else{var e=this.value;this.range&&Array.isArray(e)?e[1]<this.min?this.$emit("input",[this.min,this.min]):e[0]>this.max?this.$emit("input",[this.max,this.max]):e[0]<this.min?this.$emit("input",[this.min,e[1]]):e[1]>this.max?this.$emit("input",[e[0],this.max]):(this.firstValue=e[0],this.secondValue=e[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=e.slice())):this.range||"number"!=typeof e||isNaN(e)||(e<this.min?this.$emit("input",this.min):e>this.max?this.$emit("input",this.max):(this.firstValue=e,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",e),this.oldValue=e)))}},setPosition:function(e){var t=this.min+e*(this.max-this.min)/100;if(this.range){var button=void 0;button=Math.abs(this.minValue-t)<Math.abs(this.maxValue-t)?this.firstValue<this.secondValue?"button1":"button2":this.firstValue>this.secondValue?"button1":"button2",this.$refs[button].setPosition(e)}else this.$refs.button1.setPosition(e)},onSliderClick:function(e){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var t=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((t-e.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((e.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.range?[e.minValue,e.maxValue]:e.value)}))},getStopStyle:function(e){return this.vertical?{bottom:e+"%"}:{left:e+"%"}}},computed:{stops:function(){var e=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var t=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),r=[],i=1;i<t;i++)r.push(i*n);return this.range?r.filter((function(t){return t<100*(e.minValue-e.min)/(e.max-e.min)||t>100*(e.maxValue-e.min)/(e.max-e.min)})):r.filter((function(t){return t>100*(e.firstValue-e.min)/(e.max-e.min)}))},markList:function(){var e=this;return this.marks?Object.keys(this.marks).map(parseFloat).sort((function(a,b){return a-b})).filter((function(t){return t<=e.max&&t>=e.min})).map((function(t){return{point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]}})):[]},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var e=[this.min,this.max,this.step].map((function(e){var t=(""+e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var e=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],e=this.firstValue+"-"+this.secondValue):("number"!=typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,e=this.firstValue),this.$el.setAttribute("aria-valuetext",e),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},os=o(is,Ja,[],!1,null,null,null);os.options.__file="packages/slider/src/main.vue";var as=os.exports;as.install=function(e){e.component(as.name,as)};var ss=as,ls=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])};ls._withStripped=!0;var us=o({data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(text){this.text=text}}},ls,[],!1,null,null,null);us.options.__file="packages/loading/src/loading.vue";var cs=us.exports,hs=n(31),fs=n.n(hs),ds=En.a.extend(cs),ps={install:function(e){if(!e.prototype.$isServer){var t=function(t,r){r.value?e.nextTick((function(){r.modifiers.fullscreen?(t.originalPosition=Object(xe.getStyle)(document.body,"position"),t.originalOverflow=Object(xe.getStyle)(document.body,"overflow"),t.maskStyle.zIndex=O.PopupManager.nextZIndex(),Object(xe.addClass)(t.mask,"is-fullscreen"),n(document.body,t,r)):(Object(xe.removeClass)(t.mask,"is-fullscreen"),r.modifiers.body?(t.originalPosition=Object(xe.getStyle)(document.body,"position"),["top","left"].forEach((function(e){var n="top"===e?"scrollTop":"scrollLeft";t.maskStyle[e]=t.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]-parseInt(Object(xe.getStyle)(document.body,"margin-"+e),10)+"px"})),["height","width"].forEach((function(e){t.maskStyle[e]=t.getBoundingClientRect()[e]+"px"})),n(document.body,t,r)):(t.originalPosition=Object(xe.getStyle)(t,"position"),n(t,t,r)))})):(fs()(t.instance,(function(e){if(t.instance.hiding){t.domVisible=!1;var n=r.modifiers.fullscreen||r.modifiers.body?document.body:t;Object(xe.removeClass)(n,"el-loading-parent--relative"),Object(xe.removeClass)(n,"el-loading-parent--hidden"),t.instance.hiding=!1}}),300,!0),t.instance.visible=!1,t.instance.hiding=!0)},n=function(t,n,r){n.domVisible||"none"===Object(xe.getStyle)(n,"display")||"hidden"===Object(xe.getStyle)(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach((function(e){n.mask.style[e]=n.maskStyle[e]})),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(xe.addClass)(t,"el-loading-parent--relative"),r.modifiers.fullscreen&&r.modifiers.lock&&Object(xe.addClass)(t,"el-loading-parent--hidden"),n.domVisible=!0,t.appendChild(n.mask),e.nextTick((function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0})),n.domInserted=!0)};e.directive("loading",{bind:function(e,n,r){var o=e.getAttribute("element-loading-text"),l=e.getAttribute("element-loading-spinner"),c=e.getAttribute("element-loading-background"),h=e.getAttribute("element-loading-custom-class"),f=r.context,mask=new ds({el:document.createElement("div"),data:{text:f&&f[o]||o,spinner:f&&f[l]||l,background:f&&f[c]||c,customClass:f&&f[h]||h,fullscreen:!!n.modifiers.fullscreen}});e.instance=mask,e.mask=mask.$el,e.maskStyle={},n.value&&t(e,n)},update:function(e,n){e.instance.setText(e.getAttribute("element-loading-text")),n.oldValue!==n.value&&t(e,n)},unbind:function(e,n){e.domInserted&&(e.mask&&e.mask.parentNode&&e.mask.parentNode.removeChild(e.mask),t(e,{value:!1,modifiers:n.modifiers})),e.instance&&e.instance.$destroy()}})}}},gs=ps,vs=En.a.extend(cs),ms={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},ys=void 0;vs.prototype.originalPosition="",vs.prototype.originalOverflow="",vs.prototype.close=function(){var e=this;this.fullscreen&&(ys=void 0),fs()(this,(function(t){var n=e.fullscreen||e.body?document.body:e.target;Object(xe.removeClass)(n,"el-loading-parent--relative"),Object(xe.removeClass)(n,"el-loading-parent--hidden"),e.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),e.$destroy()}),300),this.visible=!1};var bs=function(e,t,n){var r={};e.fullscreen?(n.originalPosition=Object(xe.getStyle)(document.body,"position"),n.originalOverflow=Object(xe.getStyle)(document.body,"overflow"),r.zIndex=O.PopupManager.nextZIndex()):e.body?(n.originalPosition=Object(xe.getStyle)(document.body,"position"),["top","left"].forEach((function(t){var n="top"===t?"scrollTop":"scrollLeft";r[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"})),["height","width"].forEach((function(t){r[t]=e.target.getBoundingClientRect()[t]+"px"}))):n.originalPosition=Object(xe.getStyle)(t,"position"),Object.keys(r).forEach((function(e){n.$el.style[e]=r[e]}))},_s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!En.a.prototype.$isServer){if("string"==typeof(e=Ze()({},ms,e)).target&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,e.target!==document.body?e.fullscreen=!1:e.body=!0,e.fullscreen&&ys)return ys;var t=e.body?document.body:e.target,n=new vs({el:document.createElement("div"),data:e});return bs(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(xe.addClass)(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(xe.addClass)(t,"el-loading-parent--hidden"),t.appendChild(n.$el),En.a.nextTick((function(){n.visible=!0})),e.fullscreen&&(ys=n),n}},xs={install:function(e){e.use(gs),e.prototype.$loading=_s},directive:gs,service:_s},ws=function(){var e=this,t=e.$createElement;return(e._self._c||t)("i",{class:"el-icon-"+e.name})};ws._withStripped=!0;var Ss=o({name:"ElIcon",props:{name:String}},ws,[],!1,null,null,null);Ss.options.__file="packages/icon/src/icon.vue";var ks=Ss.exports;ks.install=function(e){e.component(ks.name,ks)};var Os=ks,Cs={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:{type:String,default:"top"}},computed:{style:function(){var e={};return this.gutter&&(e.marginLeft="-"+this.gutter/2+"px",e.marginRight=e.marginLeft),e}},render:function(e){return e(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"","top"!==this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(e){e.component(Cs.name,Cs)}},Ts=Cs,Es="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},col={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){for(var e=this.$parent;e&&"ElRow"!==e.$options.componentName;)e=e.$parent;return e?e.gutter:0}},render:function(e){var t=this,n=[],style={};return this.gutter&&(style.paddingLeft=this.gutter/2+"px",style.paddingRight=style.paddingLeft),["span","offset","pull","push"].forEach((function(e){(t[e]||0===t[e])&&n.push("span"!==e?"el-col-"+e+"-"+t[e]:"el-col-"+t[e])})),["xs","sm","md","lg","xl"].forEach((function(e){if("number"==typeof t[e])n.push("el-col-"+e+"-"+t[e]);else if("object"===Es(t[e])){var r=t[e];Object.keys(r).forEach((function(t){n.push("span"!==t?"el-col-"+e+"-"+t+"-"+r[t]:"el-col-"+e+"-"+r[t])}))}})),e(this.tag,{class:["el-col",n],style:style},this.$slots.default)},install:function(e){e.component(col.name,col)}},As=col,Ms=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition-group",{class:["el-upload-list","el-upload-list--"+e.listType,{"is-disabled":e.disabled}],attrs:{tag:"ul",name:"el-list"}},e._l(e.files,(function(t){return n("li",{key:t.uid,class:["el-upload-list__item","is-"+t.status,e.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!("button"in n)&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;!e.disabled&&e.$emit("remove",t)},focus:function(t){e.focusing=!0},blur:function(t){e.focusing=!1},click:function(t){e.focusing=!1}}},[e._t("default",["uploading"!==t.status&&["picture-card","picture"].indexOf(e.listType)>-1?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.url,alt:""}}):e._e(),n("a",{staticClass:"el-upload-list__item-name",on:{click:function(n){e.handleClick(t)}}},[n("i",{staticClass:"el-icon-document"}),e._v(e._s(t.name)+"\n ")]),n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===e.listType,"el-icon-check":["picture-card","picture"].indexOf(e.listType)>-1}})]),e.disabled?e._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){e.$emit("remove",t)}}}),e.disabled?e._e():n("i",{staticClass:"el-icon-close-tip"},[e._v(e._s(e.t("el.upload.deleteTip")))]),"uploading"===t.status?n("el-progress",{attrs:{type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:e.parsePercentage(t.percentage)}}):e._e(),"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-actions"},[e.handlePreview&&"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(n){e.handlePreview(t)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):e._e(),e.disabled?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(n){e.$emit("remove",t)}}},[n("i",{staticClass:"el-icon-delete"})])]):e._e()],{file:t})],2)})),0)};Ms._withStripped=!0;var Is=n(32),Ds=n.n(Is),Ps=o({name:"ElUploadList",mixins:[_.a],data:function(){return{focusing:!1}},components:{ElProgress:Ds.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(e){return parseInt(e,10)},handleClick:function(e){this.handlePreview&&this.handlePreview(e)}}},Ms,[],!1,null,null,null);Ps.options.__file="packages/upload/src/upload-list.vue";var Ns=Ps.exports,Ls=n(24),js=n.n(Ls);var Rs=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-upload-dragger",class:{"is-dragover":e.dragover},on:{drop:function(t){return t.preventDefault(),e.onDrop(t)},dragover:function(t){return t.preventDefault(),e.onDragover(t)},dragleave:function(t){t.preventDefault(),e.dragover=!1}}},[e._t("default")],2)};Rs._withStripped=!0;var Fs=o({name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(e){if(!this.disabled&&this.uploader){var t=this.uploader.accept;this.dragover=!1,t?this.$emit("file",[].slice.call(e.dataTransfer.files).filter((function(e){var n=e.type,r=e.name,o=r.indexOf(".")>-1?"."+r.split(".").pop():"",l=n.replace(/\/.*$/,"");return t.split(",").map((function(e){return e.trim()})).filter((function(e){return e})).some((function(e){return/\..+$/.test(e)?o===e:/\/\*$/.test(e)?l===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&n===e}))}))):this.$emit("file",e.dataTransfer.files)}}}},Rs,[],!1,null,null,null);Fs.options.__file="packages/upload/src/upload-dragger.vue";var Bs={inject:["uploader"],components:{UploadDragger:Fs.exports},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:function(option){if("undefined"!=typeof XMLHttpRequest){var e=new XMLHttpRequest,t=option.action;e.upload&&(e.upload.onprogress=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),option.onProgress(e)});var n=new FormData;option.data&&Object.keys(option.data).forEach((function(e){n.append(e,option.data[e])})),n.append(option.filename,option.file,option.file.name),e.onerror=function(e){option.onError(e)},e.onload=function(){if(e.status<200||e.status>=300)return option.onError(function(e,option,t){var n=void 0;n=t.response?""+(t.response.error||t.response):t.responseText?""+t.responseText:"fail to post "+e+" "+t.status;var r=new Error(n);return r.status=t.status,r.method="post",r.url=e,r}(t,0,e));option.onSuccess(function(e){var text=e.responseText||e.response;if(!text)return text;try{return JSON.parse(text)}catch(e){return text}}(e))},e.open("post",t,!0),option.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var r=option.headers||{};for(var o in r)r.hasOwnProperty(o)&&null!==r[o]&&e.setRequestHeader(o,r[o]);return e.send(n),e}}},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(e){return-1!==e.indexOf("image")},handleChange:function(e){var t=e.target.files;t&&this.uploadFiles(t)},uploadFiles:function(e){var t=this;if(this.limit&&this.fileList.length+e.length>this.limit)this.onExceed&&this.onExceed(e,this.fileList);else{var n=Array.prototype.slice.call(e);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach((function(e){t.onStart(e),t.autoUpload&&t.upload(e)}))}},upload:function(e){var t=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(e);var n=this.beforeUpload(e);n&&n.then?n.then((function(n){var r=Object.prototype.toString.call(n);if("[object File]"===r||"[object Blob]"===r){for(var p in"[object Blob]"===r&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(p)&&(n[p]=e[p]);t.post(n)}else t.post(e)}),(function(){t.onRemove(null,e)})):!1!==n?this.post(e):this.onRemove(null,e)},abort:function(e){var t=this.reqs;if(e){var n=e;e.uid&&(n=e.uid),t[n]&&t[n].abort()}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort(),delete t[e]}))},post:function(e){var t=this,n=e.uid,r={headers:this.headers,withCredentials:this.withCredentials,file:e,data:this.data,filename:this.name,action:this.action,onProgress:function(n){t.onProgress(n,e)},onSuccess:function(r){t.onSuccess(r,e),delete t.reqs[n]},onError:function(r){t.onError(r,e),delete t.reqs[n]}},o=this.httpRequest(r);this.reqs[n]=o,o&&o.then&&o.then(r.onSuccess,r.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(e){e.target===e.currentTarget&&(13!==e.keyCode&&32!==e.keyCode||this.handleClick())}},render:function(e){var t=this.handleClick,n=this.drag,r=this.name,o=this.handleChange,l=this.multiple,c=this.accept,h=this.listType,f=this.uploadFiles,d=this.disabled,data={class:{"el-upload":!0},on:{click:t,keydown:this.handleKeydown}};return data.class["el-upload--"+h]=!0,e("div",js()([data,{attrs:{tabindex:"0"}}]),[n?e("upload-dragger",{attrs:{disabled:d},on:{file:f}},[this.$slots.default]):this.$slots.default,e("input",{class:"el-upload__input",attrs:{type:"file",name:r,multiple:l,accept:c},ref:"input",on:{change:o}})])}},zs=o(Bs,undefined,undefined,!1,null,null,null);zs.options.__file="packages/upload/src/upload.vue";var $s=zs.exports;function Vs(){}var Hs=o({name:"ElUpload",mixins:[E.a],components:{ElProgress:Ds.a,UploadList:Ns,Upload:$s},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:Vs},onChange:{type:Function,default:Vs},onPreview:{type:Function},onSuccess:{type:Function,default:Vs},onProgress:{type:Function,default:Vs},onError:{type:Function,default:Vs},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:Vs}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(e){"picture-card"!==e&&"picture"!==e||(this.uploadFiles=this.uploadFiles.map((function(e){if(!e.url&&e.raw)try{e.url=URL.createObjectURL(e.raw)}catch(e){console.error("[Element Error][Upload]",e)}return e})))},fileList:{immediate:!0,handler:function(e){var t=this;this.uploadFiles=e.map((function(e){return e.uid=e.uid||Date.now()+t.tempIndex++,e.status=e.status||"success",e}))}}},methods:{handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"ready",name:e.name,size:e.size,percentage:0,uid:e.uid,raw:e};if("picture-card"===this.listType||"picture"===this.listType)try{t.url=URL.createObjectURL(e)}catch(e){return void console.error("[Element Error][Upload]",e)}this.uploadFiles.push(t),this.onChange(t,this.uploadFiles)},handleProgress:function(e,t){var n=this.getFile(t);this.onProgress(e,n,this.uploadFiles),n.status="uploading",n.percentage=e.percent||0},handleSuccess:function(e,t){var n=this.getFile(t);n&&(n.status="success",n.response=e,this.onSuccess(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(e,t){var n=this.getFile(t),r=this.uploadFiles;n.status="fail",r.splice(r.indexOf(n),1),this.onError(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(e,t){var n=this;t&&(e=this.getFile(t));var r=function(){n.abort(e);var t=n.uploadFiles;t.splice(t.indexOf(e),1),n.onRemove(e,t)};if(this.beforeRemove){if("function"==typeof this.beforeRemove){var o=this.beforeRemove(e,this.uploadFiles);o&&o.then?o.then((function(){r()}),Vs):!1!==o&&r()}}else r()},getFile:function(e){var t=this.uploadFiles,n=void 0;return t.every((function(t){return!(n=e.uid===t.uid?t:null)})),n},abort:function(e){this.$refs["upload-inner"].abort(e)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var e=this;this.uploadFiles.filter((function(e){return"ready"===e.status})).forEach((function(t){e.$refs["upload-inner"].upload(t.raw)}))},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach((function(e){e.url&&0===e.url.indexOf("blob:")&&URL.revokeObjectURL(e.url)}))},render:function(e){var t=this,n=void 0;this.showFileList&&(n=e(Ns,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(e){if(t.$scopedSlots.file)return t.$scopedSlots.file({file:e.file})}]));var r=e("upload",{props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},[this.$slots.trigger||this.$slots.default]);return e("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[r,this.$slots.default]:r,this.$slots.tip,"picture-card"!==this.listType?n:""])}},undefined,undefined,!1,null,null,null);Hs.options.__file="packages/upload/src/index.vue";var qs=Hs.exports;qs.install=function(e){e.component(qs.name,qs)};var Ws=qs,Us=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":"round","stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px"}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])};Us._withStripped=!0;var Gs=o({name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var style={};return style.width=this.percentage+"%",style.backgroundColor=this.getCurrentColor(this.percentage),style},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){return-1*this.perimeter*(1-this.rate)/2+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"==typeof this.color?this.color(e):"string"==typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(a,b){return a.percentage-b.percentage})),i=0;i<t.length;i++)if(t[i].percentage>e)return t[i].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,span=100/e.length;return e.map((function(e,t){return"string"==typeof e?{color:e,progress:(t+1)*span}:e}))}}},Us,[],!1,null,null,null);Gs.options.__file="packages/progress/src/progress.vue";var progress=Gs.exports;progress.install=function(e){e.component(progress.name,progress)};var Ys=progress,Ks=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-spinner"},[n("svg",{staticClass:"el-spinner-inner",style:{width:e.radius/2+"px",height:e.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:e.strokeColor,"stroke-width":e.strokeWidth}})])])};Ks._withStripped=!0;var Xs=o({name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},Ks,[],!1,null,null,null);Xs.options.__file="packages/spinner/src/spinner.vue";var Zs=Xs.exports;Zs.install=function(e){e.component(Zs.name,Zs)};var Js=Zs,Qs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-message",e.type&&!e.iconClass?"el-message--"+e.type:"",e.center?"is-center":"",e.showClose?"is-closable":"",e.customClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:e.clearTimer,mouseleave:e.startTimer}},[e.iconClass?n("i",{class:e.iconClass}):n("i",{class:e.typeClass}),e._t("default",[e.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:e._s(e.message)}}):n("p",{staticClass:"el-message__content"},[e._v(e._s(e.message))])]),e.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:e.close}}):e._e()],2)])};Qs._withStripped=!0;var el={success:"success",info:"info",warning:"warning",error:"error"},tl=o({data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+el[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(e){e&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"==typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){27===e.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Qs,[],!1,null,null,null);tl.options.__file="packages/message/src/main.vue";var nl=tl.exports,rl=En.a.extend(nl),il=void 0,al=[],sl=1,ll=function e(t){if(!En.a.prototype.$isServer){"string"==typeof(t=t||{})&&(t={message:t});var n=t.onClose,r="message_"+sl++;t.onClose=function(){e.close(r,n)},(il=new rl({data:t})).id=r,Object(mo.isVNode)(il.message)&&(il.$slots.default=[il.message],il.message=null),il.$mount(),document.body.appendChild(il.$el);var o=t.offset||20;return al.forEach((function(e){o+=e.$el.offsetHeight+16})),il.verticalOffset=o,il.visible=!0,il.$el.style.zIndex=O.PopupManager.nextZIndex(),al.push(il),il}};["success","warning","info","error"].forEach((function(e){ll[e]=function(t){return"string"==typeof t&&(t={message:t}),t.type=e,ll(t)}})),ll.close=function(e,t){for(var n=al.length,r=-1,i=0;i<n;i++)if(e===al[i].id){r=i,"function"==typeof t&&t(al[i]),al.splice(i,1);break}if(!(n<=1||-1===r||r>al.length-1))for(var o=al[r].$el.offsetHeight,l=r;l<n-1;l++){var c=al[l].$el;c.style.top=parseInt(c.style.top,10)-o-16+"px"}},ll.closeAll=function(){for(var i=al.length-1;i>=0;i--)al[i].close()};var cl=ll,hl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-badge"},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-center"}},[n("sup",{directives:[{name:"show",rawName:"v-show",value:!e.hidden&&(e.content||0===e.content||e.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:["el-badge__content--"+e.type,{"is-fixed":e.$slots.default,"is-dot":e.isDot}],domProps:{textContent:e._s(e.content)}})])],2)};hl._withStripped=!0;var fl=o({name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(e){return["primary","success","warning","info","danger"].indexOf(e)>-1}}},computed:{content:function(){if(!this.isDot){var e=this.value,t=this.max;return"number"==typeof e&&"number"==typeof t&&t<e?t+"+":e}}}},hl,[],!1,null,null,null);fl.options.__file="packages/badge/src/main.vue";var pl=fl.exports;pl.install=function(e){e.component(pl.name,pl)};var gl=pl,vl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-card",class:e.shadow?"is-"+e.shadow+"-shadow":"is-always-shadow"},[e.$slots.header||e.header?n("div",{staticClass:"el-card__header"},[e._t("header",[e._v(e._s(e.header))])],2):e._e(),n("div",{staticClass:"el-card__body",style:e.bodyStyle},[e._t("default")],2)])};vl._withStripped=!0;var ml=o({name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},vl,[],!1,null,null,null);ml.options.__file="packages/card/src/main.vue";var yl=ml.exports;yl.install=function(e){e.component(yl.name,yl)};var bl=yl,_l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-rate",attrs:{role:"slider","aria-valuenow":e.currentValue,"aria-valuetext":e.text,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0"},on:{keydown:e.handleKey}},[e._l(e.max,(function(t,r){return n("span",{key:r,staticClass:"el-rate__item",style:{cursor:e.rateDisabled?"auto":"pointer"},on:{mousemove:function(n){e.setCurrentValue(t,n)},mouseleave:e.resetCurrentValue,click:function(n){e.selectValue(t)}}},[n("i",{staticClass:"el-rate__icon",class:[e.classes[t-1],{hover:e.hoverIndex===t}],style:e.getIconStyle(t)},[e.showDecimalIcon(t)?n("i",{staticClass:"el-rate__decimal",class:e.decimalIconClass,style:e.decimalStyle}):e._e()])])})),e.showText||e.showScore?n("span",{staticClass:"el-rate__text",style:{color:e.textColor}},[e._v(e._s(e.text))]):e._e()],2)};_l._withStripped=!0;var xl=n(18),wl={name:"ElRate",mixins:[E.a],inject:{elForm:{default:""}},data:function(){return{pointerAtLeftHalf:!0,currentValue:this.value,hoverIndex:-1}},props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:function(){return["#F7BA2A","#F7BA2A","#F7BA2A"]}},voidColor:{type:String,default:"#C6D1DE"},disabledVoidColor:{type:String,default:"#EFF2F7"},iconClasses:{type:[Array,Object],default:function(){return["el-icon-star-on","el-icon-star-on","el-icon-star-on"]}},voidIconClass:{type:String,default:"el-icon-star-off"},disabledVoidIconClass:{type:String,default:"el-icon-star-on"},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:"#1f2d3d"},texts:{type:Array,default:function(){return["极差","失望","一般","满意","惊喜"]}},scoreTemplate:{type:String,default:"{value}"}},computed:{text:function(){var e="";return this.showScore?e=this.scoreTemplate.replace(/\{\s*value\s*\}/,this.rateDisabled?this.value:this.currentValue):this.showText&&(e=this.texts[Math.ceil(this.currentValue)-1]),e},decimalStyle:function(){var e="";return this.rateDisabled?e=this.valueDecimal+"%":this.allowHalf&&(e="50%"),{color:this.activeColor,width:e}},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)},classMap:function(){var e;return Array.isArray(this.iconClasses)?((e={})[this.lowThreshold]=this.iconClasses[0],e[this.highThreshold]={value:this.iconClasses[1],excluded:!0},e[this.max]=this.iconClasses[2],e):this.iconClasses},decimalIconClass:function(){return this.getValueFromMap(this.value,this.classMap)},voidClass:function(){return this.rateDisabled?this.disabledVoidIconClass:this.voidIconClass},activeClass:function(){return this.getValueFromMap(this.currentValue,this.classMap)},colorMap:function(){var e;return Array.isArray(this.colors)?((e={})[this.lowThreshold]=this.colors[0],e[this.highThreshold]={value:this.colors[1],excluded:!0},e[this.max]=this.colors[2],e):this.colors},activeColor:function(){return this.getValueFromMap(this.currentValue,this.colorMap)},classes:function(){var e=[],i=0,t=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&t--;i<t;i++)e.push(this.activeClass);for(;i<this.max;i++)e.push(this.voidClass);return e},rateDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){this.currentValue=e,this.pointerAtLeftHalf=this.value!==Math.floor(this.value)}},methods:{getMigratingConfig:function(){return{props:{"text-template":"text-template is renamed to score-template."}}},getValueFromMap:function(e,map){var t=Object.keys(map).filter((function(t){var n=map[t];return!!Object(xl.isObject)(n)&&n.excluded?e<t:e<=t})).sort((function(a,b){return a-b})),n=map[t[0]];return Object(xl.isObject)(n)?n.value:n||""},showDecimalIcon:function(e){var t=this.rateDisabled&&this.valueDecimal>0&&e-1<this.value&&e>this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&e-.5<=this.currentValue&&e>this.currentValue;return t||n},getIconStyle:function(e){var t=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:e<=this.currentValue?this.activeColor:t}},selectValue:function(e){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",e),this.$emit("change",e)))},handleKey:function(e){if(!this.rateDisabled){var t=this.currentValue,n=e.keyCode;38===n||39===n?(this.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):37!==n&&40!==n||(this.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=(t=t<0?0:t)>this.max?this.max:t,this.$emit("input",t),this.$emit("change",t)}},setCurrentValue:function(e,t){if(!this.rateDisabled){if(this.allowHalf){var n=t.target;Object(xe.hasClass)(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(xe.hasClass)(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*t.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?e-.5:e}else this.currentValue=e;this.hoverIndex=e}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},Sl=o(wl,_l,[],!1,null,null,null);Sl.options.__file="packages/rate/src/main.vue";var kl=Sl.exports;kl.install=function(e){e.component(kl.name,kl)};var Ol=kl,Cl=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-steps",class:[!e.simple&&"el-steps--"+e.direction,e.simple&&"el-steps--simple"]},[e._t("default")],2)};Cl._withStripped=!0;var Tl=o({name:"ElSteps",mixins:[E.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(e,t){this.$emit("change",e,t)},steps:function(e){e.forEach((function(e,t){e.index=t}))}}},Cl,[],!1,null,null,null);Tl.options.__file="packages/steps/src/steps.vue";var El=Tl.exports;El.install=function(e){e.component(El.name,El)};var Al=El,Ml=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-step",class:[!e.isSimple&&"is-"+e.$parent.direction,e.isSimple&&"is-simple",e.isLast&&!e.space&&!e.isCenter&&"is-flex",e.isCenter&&!e.isVertical&&!e.isSimple&&"is-center"],style:e.style},[n("div",{staticClass:"el-step__head",class:"is-"+e.currentStatus},[n("div",{staticClass:"el-step__line",style:e.isLast?"":{marginRight:e.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:e.lineStyle})]),n("div",{staticClass:"el-step__icon",class:"is-"+(e.icon?"icon":"text")},["success"!==e.currentStatus&&"error"!==e.currentStatus?e._t("icon",[e.icon?n("i",{staticClass:"el-step__icon-inner",class:[e.icon]}):e._e(),e.icon||e.isSimple?e._e():n("div",{staticClass:"el-step__icon-inner"},[e._v(e._s(e.index+1))])]):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===e.currentStatus?"check":"close")]})],2)]),n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+e.currentStatus]},[e._t("title",[e._v(e._s(e.title))])],2),e.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+e.currentStatus]},[e._t("description",[e._v(e._s(e.description))])],2)])])};Ml._withStripped=!0;var Il={name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var e=this.$parent.steps,t=e.indexOf(this);t>=0&&e.splice(t,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var e=this.$parent.steps[this.index-1];return e?e.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var e=this.$parent;return e.steps[e.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var style={},e=this.$parent.steps.length,t="number"==typeof this.space?this.space+"px":this.space?this.space:100/(e-(this.isCenter?0:1))+"%";return style.flexBasis=t,this.isVertical||(this.isLast?style.maxWidth=100/this.stepsCount+"%":style.marginRight=-this.$parent.stepOffset+"px"),style}},methods:{updateStatus:function(e){var t=this.$parent.$children[this.index-1];e>this.index?this.internalStatus=this.$parent.finishStatus:e===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",t&&t.calcProgress(this.internalStatus)},calcProgress:function(e){var t=100,style={};style.transitionDelay=150*this.index+"ms",e===this.$parent.processStatus?(this.currentStatus,t=0):"wait"===e&&(t=0,style.transitionDelay=-150*this.index+"ms"),style.borderWidth=t&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?style.height=t+"%":style.width=t+"%",this.lineStyle=style}},mounted:function(){var e=this,t=this.$watch("index",(function(n){e.$watch("$parent.active",e.updateStatus,{immediate:!0}),e.$watch("$parent.processStatus",(function(){var t=e.$parent.active;e.updateStatus(t)}),{immediate:!0}),t()}))}},Dl=o(Il,Ml,[],!1,null,null,null);Dl.options.__file="packages/steps/src/step.vue";var Pl=Dl.exports;Pl.install=function(e){e.component(Pl.name,Pl)};var Nl=Pl,Ll=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.carouselClasses,on:{mouseenter:function(t){return t.stopPropagation(),e.handleMouseEnter(t)},mouseleave:function(t){return t.stopPropagation(),e.handleMouseLeave(t)}}},[n("div",{staticClass:"el-carousel__container",style:{height:e.height}},[e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-left"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("left")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):e._e(),e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex<e.items.length-1),expression:"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"}],staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("right")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex+1)}}},[n("i",{staticClass:"el-icon-arrow-right"})])]):e._e(),e._t("default")],2),"none"!==e.indicatorPosition?n("ul",{class:e.indicatorsClasses},e._l(e.items,(function(t,r){return n("li",{key:r,class:["el-carousel__indicator","el-carousel__indicator--"+e.direction,{"is-active":r===e.activeIndex}],on:{mouseenter:function(t){e.throttledIndicatorHover(r)},click:function(t){t.stopPropagation(),e.handleIndicatorClick(r)}}},[n("button",{staticClass:"el-carousel__button"},[e.hasLabel?n("span",[e._v(e._s(t.label))]):e._e()])])})),0):e._e()])};Ll._withStripped=!0;var jl=n(25),Rl=n.n(jl),Fl=o({name:"ElCarousel",props:{initialIndex:{type:Number,default:0},height:String,trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:String,indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:String,loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}}},data:function(){return{items:[],activeIndex:-1,containerWidth:0,timer:null,hover:!1}},computed:{arrowDisplay:function(){return"never"!==this.arrow&&"vertical"!==this.direction},hasLabel:function(){return this.items.some((function(e){return e.label.toString().length>0}))},carouselClasses:function(){var e=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&e.push("el-carousel--card"),e},indicatorsClasses:function(){var e=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&e.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||e.push("el-carousel__indicators--outside"),e}},watch:{items:function(e){e.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(e,t){this.resetItemPosition(t),this.$emit("change",e,t)},autoplay:function(e){e?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(e,t){var n=this.items.length;return t===n-1&&e.inStage&&this.items[0].active||e.inStage&&this.items[t+1]&&this.items[t+1].active?"left":!!(0===t&&e.inStage&&this.items[n-1].active||e.inStage&&this.items[t-1]&&this.items[t-1].active)&&"right"},handleButtonEnter:function(e){var t=this;"vertical"!==this.direction&&this.items.forEach((function(n,r){e===t.itemInStage(n,r)&&(n.hover=!0)}))},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach((function(e){e.hover=!1}))},updateItems:function(){this.items=this.$children.filter((function(e){return"ElCarouselItem"===e.$options.name}))},resetItemPosition:function(e){var t=this;this.items.forEach((function(n,r){n.translateItem(r,t.activeIndex,e)}))},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},setActiveItem:function(e){if("string"==typeof e){var t=this.items.filter((function(t){return t.name===e}));t.length>0&&(e=this.items.indexOf(t[0]))}if(e=Number(e),isNaN(e)||e!==Math.floor(e))console.warn("[Element Warn][Carousel]index must be an integer.");else{var n=this.items.length,r=this.activeIndex;this.activeIndex=e<0?this.loop?n-1:0:e>=n?this.loop?0:n-1:e,r===this.activeIndex&&this.resetItemPosition(r)}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(e){this.activeIndex=e},handleIndicatorHover:function(e){"hover"===this.trigger&&e!==this.activeIndex&&(this.activeIndex=e)}},created:function(){var e=this;this.throttledArrowClick=Rl()(300,!0,(function(t){e.setActiveItem(t)})),this.throttledIndicatorHover=Rl()(300,(function(t){e.handleIndicatorHover(t)}))},mounted:function(){var e=this;this.updateItems(),this.$nextTick((function(){Object(Kt.addResizeListener)(e.$el,e.resetItemPosition),e.initialIndex<e.items.length&&e.initialIndex>=0&&(e.activeIndex=e.initialIndex),e.startTimer()}))},beforeDestroy:function(){this.$el&&Object(Kt.removeResizeListener)(this.$el,this.resetItemPosition),this.pauseTimer()}},Ll,[],!1,null,null,null);Fl.options.__file="packages/carousel/src/main.vue";var Bl=Fl.exports;Bl.install=function(e){e.component(Bl.name,Bl)};var zl=Bl,$l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function Vl(e){var t=e.move,n=e.size,r=e.bar,style={},o="translate"+r.axis+"("+t+"%)";return style[r.size]=n,style.transform=o,style.msTransform=o,style.webkitTransform=o,style}var Hl={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return $l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:Vl({size:t,move:n,bar:r})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=100*(Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=t*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(xe.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(xe.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-(this.$refs.thumb[this.bar.offset]-t))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(xe.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(xe.off)(document,"mouseup",this.mouseUpDocumentHandler)}},ql={name:"ElScrollbar",components:{Bar:Hl},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=Xn()(),style=this.wrapStyle;if(t){var n="-"+t+"px",r="margin-bottom: "+n+"; margin-right: "+n+";";Array.isArray(this.wrapStyle)?(style=Object(x.toObject)(this.wrapStyle)).marginRight=style.marginBottom=n:"string"==typeof this.wrapStyle?style+=r:style=r}var view=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),o=e("div",{ref:"wrap",style:style,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[view]]),l=void 0;return l=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:style},[[view]])]:[o,e(Hl,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(Hl,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},l)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e,t,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(Kt.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(Kt.removeResizeListener)(this.$refs.resize,this.update)},install:function(e){e.component(ql.name,ql)}},Wl=ql,Ul=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":e.active,"el-carousel__item--card":"card"===e.$parent.type,"is-in-stage":e.inStage,"is-hover":e.hover,"is-animating":e.animating},style:e.itemStyle,on:{click:e.handleItemClick}},["card"===e.$parent.type?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.active,expression:"!active"}],staticClass:"el-carousel__mask"}):e._e(),e._t("default")],2)};Ul._withStripped=!0;var Gl=.83,Yl=o({name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(e,t,n){return 0===t&&e===n-1?-1:t===n-1&&0===e?n:e<t-1&&t-e>=n/2?n+1:e>t+1&&e-t>=n/2?-2:e},calcCardTranslate:function(e,t){var n=this.$parent.$el.offsetWidth;return this.inStage?n*(1.17*(e-t)+1)/4:e<t?-1.83*n/4:3.83*n/4},calcTranslate:function(e,t,n){return this.$parent.$el[n?"offsetHeight":"offsetWidth"]*(e-t)},translateItem:function(e,t,n){var r=this.$parent.type,o=this.parentDirection,l=this.$parent.items.length;if("card"!==r&&void 0!==n&&(this.animating=e===t||e===n),e!==t&&l>2&&this.$parent.loop&&(e=this.processIndex(e,t,l)),"card"===r)"vertical"===o&&console.warn("[Element Warn][Carousel]vertical directionis not supported in card mode"),this.inStage=Math.round(Math.abs(e-t))<=1,this.active=e===t,this.translate=this.calcCardTranslate(e,t),this.scale=this.active?1:Gl;else{this.active=e===t;var c="vertical"===o;this.translate=this.calcTranslate(e,t,c)}this.ready=!0},handleItemClick:function(){var e=this.$parent;if(e&&"card"===e.type){var t=e.items.indexOf(this);e.setActiveItem(t)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var style={transform:("vertical"===this.parentDirection?"translateY":"translateX")+"("+this.translate+"px) scale("+this.scale+")"};return Object(x.autoprefixer)(style)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},Ul,[],!1,null,null,null);Yl.options.__file="packages/carousel/src/item.vue";var Kl=Yl.exports;Kl.install=function(e){e.component(Kl.name,Kl)};var Xl=Kl,Zl=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[e._t("default")],2)};Zl._withStripped=!0;var Jl=o({name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(e){this.activeNames=[].concat(e)}},methods:{setActiveNames:function(e){e=[].concat(e);var t=this.accordion?e[0]:e;this.activeNames=e,this.$emit("input",t),this.$emit("change",t)},handleItemClick:function(e){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==e.name?e.name:"");else{var t=this.activeNames.slice(0),n=t.indexOf(e.name);n>-1?t.splice(n,1):t.push(e.name),this.setActiveNames(t)}}},created:function(){this.$on("item-click",this.handleItemClick)}},Zl,[],!1,null,null,null);Jl.options.__file="packages/collapse/src/collapse.vue";var Ql=Jl.exports;Ql.install=function(e){e.component(Ql.name,Ql)};var eu=Ql,tu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse-item",class:{"is-active":e.isActive,"is-disabled":e.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":e.isActive,"aria-controls":"el-collapse-content-"+e.id,"aria-describedby":"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:e.focusing,"is-active":e.isActive},attrs:{role:"button",id:"el-collapse-head-"+e.id,tabindex:e.disabled?void 0:0},on:{click:e.handleHeaderClick,keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.handleEnterClick(t))},focus:e.handleFocus,blur:function(t){e.focusing=!1}}},[e._t("title",[e._v(e._s(e.title))]),n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":e.isActive}})],2)]),n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!e.isActive,"aria-labelledby":"el-collapse-head-"+e.id,id:"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__content"},[e._t("default")],2)])])],1)};tu._withStripped=!0;var nu=o({name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[M.a],components:{ElCollapseTransition:Te.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(x.generateId)()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var e=this;setTimeout((function(){e.isClick?e.isClick=!1:e.focusing=!0}),50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},tu,[],!1,null,null,null);nu.options.__file="packages/collapse/src/collapse-item.vue";var ru=nu.exports;ru.install=function(e){e.component(ru.name,ru)};var iu=ru,ou=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return e.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",e.realSize&&"el-cascader--"+e.realSize,{"is-disabled":e.isDisabled}],on:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1},click:function(){return e.toggleDropDownVisible(!e.readonly||void 0)},keydown:e.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":e.dropDownVisible},attrs:{size:e.realSize,placeholder:e.placeholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.handleInput},model:{value:e.multiple?e.presentText:e.inputValue,callback:function(t){e.multiple?e.presentText:e.inputValue=t},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[e.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.handleClear(t)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",e.dropDownVisible&&"is-reverse"],on:{click:function(t){t.stopPropagation(),e.toggleDropDownVisible()}}})])],2),e.multiple?n("div",{staticClass:"el-cascader__tags"},[e._l(e.presentTags,(function(t,r){return n("el-tag",{key:t.key,attrs:{type:"info",size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":""},on:{close:function(t){e.deleteTag(r)}}},[n("span",[e._v(e._s(t.text))])])})),e.filterable&&!e.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:e.presentTags.length?"":e.placeholder},domProps:{value:e.inputValue},on:{input:[function(t){t.target.composing||(e.inputValue=t.target.value.trim())},function(t){return e.handleInput(e.inputValue,t)}],click:function(t){t.stopPropagation(),e.toggleDropDownVisible(!0)},keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.handleDelete(t)},blur:function(t){e.$forceUpdate()}}}):e._e()],2):e._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",e.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!e.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:e.options,props:e.config,border:!1,"render-label":e.$scopedSlots.default},on:{"expand-change":e.handleExpandChange,close:function(t){e.toggleDropDownVisible(!1)}},model:{value:e.checkedValue,callback:function(t){e.checkedValue=t},expression:"checkedValue"}}),e.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(t){return e.handleSuggestionKeyDown(t)}}},[e.suggestions.length?e._l(e.suggestions,(function(t,r){return n("li",{key:t.uid,class:["el-cascader__suggestion-item",t.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(t){e.handleSuggestionClick(r)}}},[n("span",[e._v(e._s(t.text))]),t.checked?n("i",{staticClass:"el-icon-check"}):e._e()])})):e._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[e._v(e._s(e.t("el.cascader.noMatch")))])])],2):e._e()],1)])],1)};ou._withStripped=!0;var au=n(42),su=n.n(au),lu=n(33),uu=n.n(lu),cu=uu.a.keys,hu={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},fu={props:{placement:{type:String,default:"bottom-start"},appendToBody:z.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:z.a.props.arrowOffset,offset:z.a.props.offset,boundariesPadding:z.a.props.boundariesPadding,popperOptions:z.a.props.popperOptions},methods:z.a.methods,data:z.a.data,beforeDestroy:z.a.beforeDestroy},du={medium:36,small:32,mini:28},pu={name:"ElCascader",directives:{Clickoutside:R.a},mixins:[fu,M.a,_.a,E.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:m.a,ElTag:Yt.a,ElScrollbar:V.a,ElCascaderPanel:su.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(Xt.t)("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value||null,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var e=(this.elFormItem||{}).elFormItemSize;return this.size||e||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var e=this.props||{},t=this.$attrs;return Object.keys(hu).forEach((function(n){var r=hu[n],o=r.newProp,l=r.type,c=t[n]||t[Object(x.kebabCase)(n)];Object(en.isDef)(n)&&!Object(en.isDef)(e[o])&&(l===Boolean&&""===c&&(c=!0),e[o]=c)})),e},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter((function(e){return!e.isDisabled})).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{value:function(e){Object(x.isEqual)(e,this.checkedValue)||(this.checkedValue=e,this.computePresentContent())},checkedValue:function(e){var t=this.value,n=this.dropDownVisible,r=this.config,o=r.checkStrictly,l=r.multiple;Object(x.isEqual)(e,t)&&!Object(xl.isUndefined)(t)||(this.computePresentContent(),l||o||!n||this.toggleDropDownVisible(!1),this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",[e]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(e){this.inputValue=e},presentTags:function(e,t){this.multiple&&(e.length||t.length)&&this.$nextTick(this.updateStyle)},filtering:function(e){this.$nextTick(this.updatePopper)}},mounted:function(){var e=this,input=this.$refs.input;input&&input.$el&&(this.inputInitialHeight=input.$el.offsetHeight||du[this.realSize]||40),Object(x.isEmpty)(this.value)||this.computePresentContent(),this.filterHandler=L()(this.debounce,(function(){var t=e.inputValue;if(t){var n=e.beforeFilter(t);n&&n.then?n.then(e.getSuggestions):!1!==n?e.getSuggestions():e.filtering=!1}else e.filtering=!1})),Object(Kt.addResizeListener)(this.$el,this.updateStyle)},beforeDestroy:function(){Object(Kt.removeResizeListener)(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(e){var t=this;if(!this.isDisabled){var n=this.dropDownVisible,input=this.$refs.input;(e=Object(en.isDef)(e)?e:!n)!==n&&(this.dropDownVisible=e,e&&this.$nextTick((function(){t.updatePopper(),t.panel.scrollIntoView()})),input.$refs.input.setAttribute("aria-expanded",e),this.$emit("visible-change",e))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText},handleKeyDown:function(e){switch(e.keyCode){case cu.enter:this.toggleDropDownVisible();break;case cu.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case cu.esc:case cu.tab:this.toggleDropDownVisible(!1)}},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){this.$emit("blur",e)},handleInput:function(e,t){!this.dropDownVisible&&this.toggleDropDownVisible(!0),t&&t.isComposing||(e?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(e){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",e),this.$emit("active-item-change",e)},focusFirstNode:function(){var e=this;this.$nextTick((function(){var t=e.filtering,n=e.$refs,r=n.popper,o=n.suggestionPanel,l=null;t&&o?l=o.$el.querySelector(".el-cascader__suggestion-item"):l=r.querySelector(".el-cascader-menu").querySelector('.el-cascader-node[tabindex="-1"]');l&&(l.focus(),!t&&l.click())}))},computePresentContent:function(){var e=this;this.$nextTick((function(){e.config.multiple?(e.computePresentTags(),e.presentText=e.presentTags.length?" ":null):e.computePresentText()}))},computePresentText:function(){var e=this.checkedValue,t=this.config;if(!Object(x.isEmpty)(e)){var n=this.panel.getNodeByValue(e);if(n&&(t.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var e=this.isDisabled,t=this.leafOnly,n=this.showAllLevels,r=this.separator,o=this.collapseTags,l=this.getCheckedNodes(t),c=[],h=function(t){return{node:t,key:t.uid,text:t.getText(n,r),hitState:!1,closable:!e&&!t.isDisabled}};if(l.length){var f=l[0],d=l.slice(1),v=d.length;c.push(h(f)),v&&(o?c.push({key:-1,text:"+ "+v,closable:!1}):d.forEach((function(e){return c.push(h(e))})))}this.checkedNodes=l,this.presentTags=c},getSuggestions:function(){var e=this,t=this.filterMethod;Object(xl.isFunction)(t)||(t=function(e,t){return e.text.includes(t)});var n=this.panel.getFlattedNodes(this.leafOnly).filter((function(n){return!n.isDisabled&&(n.text=n.getText(e.showAllLevels,e.separator)||"",t(n,e.inputValue))}));this.multiple?this.presentTags.forEach((function(e){e.hitState=!1})):n.forEach((function(t){t.checked=Object(x.isEqual)(e.checkedValue,t.getValueByOption())})),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(e){var t=e.keyCode,n=e.target;switch(t){case cu.enter:n.click();break;case cu.up:var r=n.previousElementSibling;r&&r.focus();break;case cu.down:var o=n.nextElementSibling;o&&o.focus();break;case cu.esc:case cu.tab:this.toggleDropDownVisible(!1)}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags,r=n.length-1,o=n[r];this.pressDeleteCount=e?0:t+1,o&&this.pressDeleteCount&&(o.hitState?this.deleteTag(r):o.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple,n=this.suggestions[e];if(t){var r=n.checked;n.doCheck(!r),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(e){var t=this.checkedValue,n=t[e];this.checkedValue=t.filter((function(t,i){return i!==e})),this.$emit("remove-tag",n)},updateStyle:function(){var e=this.$el,t=this.inputInitialHeight;if(!this.$isServer&&e){var n=this.$refs.suggestionPanel,r=e.querySelector(".el-input__inner");if(r){var o=e.querySelector(".el-cascader__tags"),l=null;if(n&&(l=n.$el))l.querySelector(".el-cascader__suggestion-list").style.minWidth=r.offsetWidth+"px";if(o){var c=o.offsetHeight,h=Math.max(c+6,t)+"px";r.style.height=h,this.updatePopper()}}}},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},gu=o(pu,ou,[],!1,null,null,null);gu.options.__file="packages/cascader/src/cascader.vue";var vu=gu.exports;vu.install=function(e){e.component(vu.name,vu)};var mu=vu,yu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hide,expression:"hide"}],class:["el-color-picker",e.colorDisabled?"is-disabled":"",e.colorSize?"el-color-picker--"+e.colorSize:""]},[e.colorDisabled?n("div",{staticClass:"el-color-picker__mask"}):e._e(),n("div",{staticClass:"el-color-picker__trigger",on:{click:e.handleTrigger}},[n("span",{staticClass:"el-color-picker__color",class:{"is-alpha":e.showAlpha}},[n("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:e.displayedColor}}),e.value||e.showPanelColor?e._e():n("span",{staticClass:"el-color-picker__empty el-icon-close"})]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.value||e.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),n("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",e.popperClass||""],attrs:{color:e.color,"show-alpha":e.showAlpha,predefine:e.predefine},on:{pick:e.confirmValue,clear:e.clearValue},model:{value:e.showPicker,callback:function(t){e.showPicker=t},expression:"showPicker"}})],1)};yu._withStripped=!0;var bu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var _u=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},xu=function(e,t){var n;"string"==typeof(n=e)&&-1!==n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)},wu={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Su={A:10,B:11,C:12,D:13,E:14,F:15},ku=function(e){return 2===e.length?16*(Su[e[0].toUpperCase()]||+e[0])+(Su[e[1].toUpperCase()]||+e[1]):Su[e[1].toUpperCase()]||+e[1]},Ou=function(e,g,b){e=xu(e,255),g=xu(g,255),b=xu(b,255);var s,t=Math.max(e,g,b),n=Math.min(e,g,b),r=void 0,o=t,l=t-n;if(s=0===t?0:l/t,t===n)r=0;else{switch(t){case e:r=(g-b)/l+(g<b?6:0);break;case g:r=(b-e)/l+2;break;case b:r=(e-g)/l+4}r/=6}return{h:360*r,s:100*s,v:100*o}},Cu=function(e,s,t){e=6*xu(e,360),s=xu(s,100),t=xu(t,100);var i=Math.floor(e),n=e-i,p=t*(1-s),q=t*(1-n*s),r=t*(1-(1-n)*s),o=i%6,l=[t,q,p,p,r,t][o],g=[r,t,t,q,p,p][o],b=[p,p,r,t,t,q][o];return{r:Math.round(255*l),g:Math.round(255*g),b:Math.round(255*b)}},Tu=function(){function e(t){for(var option in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",t=t||{})t.hasOwnProperty(option)&&(this[option]=t[option]);this.doOnChange()}return e.prototype.set=function(e,t){if(1!==arguments.length||"object"!==(void 0===e?"undefined":bu(e)))this["_"+e]=t,this.doOnChange();else for(var p in e)e.hasOwnProperty(p)&&this.set(p,e[p])},e.prototype.get=function(e){return this["_"+e]},e.prototype.toRgb=function(){return Cu(this._hue,this._saturation,this._value)},e.prototype.fromString=function(e){var t=this;if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();var n=function(e,s,n){t._hue=Math.max(0,Math.min(360,e)),t._saturation=Math.max(0,Math.min(100,s)),t._value=Math.max(0,Math.min(100,n)),t.doOnChange()};if(-1!==e.indexOf("hsl")){var r=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===r.length?this._alpha=Math.floor(100*parseFloat(r[3])):3===r.length&&(this._alpha=100),r.length>=3){var o=function(e,t,n){n/=100;var r=t/=100,o=Math.max(n,.01);return t*=(n*=2)<=1?n:2-n,r*=o<=1?o:2-o,{h:e,s:100*(0===n?2*r/(o+r):2*t/(n+t)),v:(n+t)/2*100}}(r[0],r[1],r[2]);n(o.h,o.s,o.v)}}else if(-1!==e.indexOf("hsv")){var l=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));4===l.length?this._alpha=Math.floor(100*parseFloat(l[3])):3===l.length&&(this._alpha=100),l.length>=3&&n(l[0],l[1],l[2])}else if(-1!==e.indexOf("rgb")){var c=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===c.length?this._alpha=Math.floor(100*parseFloat(c[3])):3===c.length&&(this._alpha=100),c.length>=3){var h=Ou(c[0],c[1],c[2]);n(h.h,h.s,h.v)}}else if(-1!==e.indexOf("#")){var f=e.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}$/.test(f))return;var d=void 0,g=void 0,b=void 0;3===f.length?(d=ku(f[0]+f[0]),g=ku(f[1]+f[1]),b=ku(f[2]+f[2])):6!==f.length&&8!==f.length||(d=ku(f.substring(0,2)),g=ku(f.substring(2,4)),b=ku(f.substring(4,6))),8===f.length?this._alpha=Math.floor(ku(f.substring(6))/255*100):3!==f.length&&6!==f.length||(this._alpha=100);var v=Ou(d,g,b);n(v.h,v.s,v.v)}},e.prototype.compare=function(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1},e.prototype.doOnChange=function(){var e=this._hue,t=this._saturation,n=this._value,r=this._alpha,o=this.format;if(this.enableAlpha)switch(o){case"hsl":var l=_u(e,t/100,n/100);this.value="hsla("+e+", "+Math.round(100*l[1])+"%, "+Math.round(100*l[2])+"%, "+r/100+")";break;case"hsv":this.value="hsva("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%, "+r/100+")";break;default:var c=Cu(e,t,n),h=c.r,g=c.g,b=c.b;this.value="rgba("+h+", "+g+", "+b+", "+r/100+")"}else switch(o){case"hsl":var f=_u(e,t/100,n/100);this.value="hsl("+e+", "+Math.round(100*f[1])+"%, "+Math.round(100*f[2])+"%)";break;case"hsv":this.value="hsv("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%)";break;case"rgb":var d=Cu(e,t,n),v=d.r,m=d.g,y=d.b;this.value="rgb("+v+", "+m+", "+y+")";break;default:this.value=function(e){var t=e.r,g=e.g,b=e.b,n=function(e){e=Math.min(Math.round(e),255);var t=Math.floor(e/16),n=e%16;return""+(wu[t]||t)+(wu[n]||n)};return isNaN(t)||isNaN(g)||isNaN(b)?"":"#"+n(t)+n(g)+n(b)}(Cu(e,t,n))}},e}(),Eu=Tu,Au=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[n("div",{staticClass:"el-color-dropdown__main-wrapper"},[n("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:e.color,vertical:""}}),n("sv-panel",{ref:"sl",attrs:{color:e.color}})],1),e.showAlpha?n("alpha-slider",{ref:"alpha",attrs:{color:e.color}}):e._e(),e.predefine?n("predefine",{attrs:{color:e.color,colors:e.predefine}}):e._e(),n("div",{staticClass:"el-color-dropdown__btns"},[n("span",{staticClass:"el-color-dropdown__value"},[n("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:e.handleConfirm},nativeOn:{keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleConfirm(t)}},model:{value:e.customInput,callback:function(t){e.customInput=t},expression:"customInput"}})],1),n("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(t){e.$emit("clear")}}},[e._v("\n "+e._s(e.t("el.colorpicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:e.confirmValue}},[e._v("\n "+e._s(e.t("el.colorpicker.confirm"))+"\n ")])],1)],1)])};Au._withStripped=!0;var Mu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-svpanel",style:{backgroundColor:e.background}},[n("div",{staticClass:"el-color-svpanel__white"}),n("div",{staticClass:"el-color-svpanel__black"}),n("div",{staticClass:"el-color-svpanel__cursor",style:{top:e.cursorTop+"px",left:e.cursorLeft+"px"}},[n("div")])])};Mu._withStripped=!0;var Iu=!1,Du=function(element,e){if(!En.a.prototype.$isServer){var t=function(t){e.drag&&e.drag(t)},n=function n(r){document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n),document.onselectstart=null,document.ondragstart=null,Iu=!1,e.end&&e.end(r)};element.addEventListener("mousedown",(function(r){Iu||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),Iu=!0,e.start&&e.start(r))}))}},Pu=o({name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){return{hue:this.color.get("hue"),value:this.color.get("value")}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var e=this.color.get("saturation"),t=this.color.get("value"),n=this.$el,r=n.clientWidth,o=n.clientHeight;this.cursorLeft=e*r/100,this.cursorTop=(100-t)*o/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(e){var rect=this.$el.getBoundingClientRect(),t=e.clientX-rect.left,n=e.clientY-rect.top;t=Math.max(0,t),t=Math.min(t,rect.width),n=Math.max(0,n),n=Math.min(n,rect.height),this.cursorLeft=t,this.cursorTop=n,this.color.set({saturation:t/rect.width*100,value:100-n/rect.height*100})}},mounted:function(){var e=this;Du(this.$el,{drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},Mu,[],!1,null,null,null);Pu.options.__file="packages/color-picker/src/components/sv-panel.vue";var Nu=Pu.exports,Lu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])};Lu._withStripped=!0;var ju=o({name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){return this.color.get("hue")}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb;e.target!==t&&this.handleDrag(e)},handleDrag:function(e){var rect=this.$el.getBoundingClientRect(),t=this.$refs.thumb,n=void 0;if(this.vertical){var r=e.clientY-rect.top;r=Math.min(r,rect.height-t.offsetHeight/2),r=Math.max(t.offsetHeight/2,r),n=Math.round((r-t.offsetHeight/2)/(rect.height-t.offsetHeight)*360)}else{var o=e.clientX-rect.left;o=Math.min(o,rect.width-t.offsetWidth/2),o=Math.max(t.offsetWidth/2,o),n=Math.round((o-t.offsetWidth/2)/(rect.width-t.offsetWidth)*360)}this.color.set("hue",n)},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var e=this,t=this.$refs,n=t.bar,r=t.thumb,o={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};Du(n,o),Du(r,o),this.update()}},Lu,[],!1,null,null,null);ju.options.__file="packages/color-picker/src/components/hue-slider.vue";var Ru=ju.exports,Fu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:e.background},on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])};Fu._withStripped=!0;var Bu=o({name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb;e.target!==t&&this.handleDrag(e)},handleDrag:function(e){var rect=this.$el.getBoundingClientRect(),t=this.$refs.thumb;if(this.vertical){var n=e.clientY-rect.top;n=Math.max(t.offsetHeight/2,n),n=Math.min(n,rect.height-t.offsetHeight/2),this.color.set("alpha",Math.round((n-t.offsetHeight/2)/(rect.height-t.offsetHeight)*100))}else{var r=e.clientX-rect.left;r=Math.max(t.offsetWidth/2,r),r=Math.min(r,rect.width-t.offsetWidth/2),this.color.set("alpha",Math.round((r-t.offsetWidth/2)/(rect.width-t.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var e=this.color.toRgb(),t=e.r,g=e.g,b=e.b;return"linear-gradient(to right, rgba("+t+", "+g+", "+b+", 0) 0%, rgba("+t+", "+g+", "+b+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var e=this,t=this.$refs,n=t.bar,r=t.thumb,o={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};Du(n,o),Du(r,o),this.update()}},Fu,[],!1,null,null,null);Bu.options.__file="packages/color-picker/src/components/alpha-slider.vue";var zu=Bu.exports,$u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-predefine"},[n("div",{staticClass:"el-color-predefine__colors"},e._l(e.rgbaColors,(function(t,r){return n("div",{key:e.colors[r],staticClass:"el-color-predefine__color-selector",class:{selected:t.selected,"is-alpha":t._alpha<100},on:{click:function(t){e.handleSelect(r)}}},[n("div",{style:{"background-color":t.value}})])})),0)])};$u._withStripped=!0;var Vu=o({props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(e){this.color.fromString(this.colors[e])},parseColors:function(e,t){return e.map((function(e){var n=new Eu;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n}))}},watch:{"$parent.currentColor":function(e){var t=new Eu;t.fromString(e),this.rgbaColors.forEach((function(e){e.selected=t.compare(e)}))},colors:function(e){this.rgbaColors=this.parseColors(e,this.color)},color:function(e){this.rgbaColors=this.parseColors(this.colors,e)}}},$u,[],!1,null,null,null);Vu.options.__file="packages/color-picker/src/components/predefine.vue";var Hu=Vu.exports,qu=o({name:"el-color-picker-dropdown",mixins:[z.a,_.a],components:{SvPanel:Nu,HueSlider:Ru,AlphaSlider:zu,ElInput:m.a,ElButton:J.a,Predefine:Hu},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var e=this.$parent;return e.value||e.showPanelColor?e.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(e){var t=this;!0===e&&this.$nextTick((function(){var e=t.$refs,n=e.sl,r=e.hue,o=e.alpha;n&&n.update(),r&&r.update(),o&&o.update()}))},currentColor:{immediate:!0,handler:function(e){this.customInput=e}}}},Au,[],!1,null,null,null);qu.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var Wu=qu.exports,Uu=o({name:"ElColorPicker",mixins:[M.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:R.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){e?e&&e!==this.color.value&&this.color.fromString(e):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(e){if(this.showPicker){var t=new Eu({enableAlpha:this.showAlpha,format:this.colorFormat});t.fromString(this.value),e!==this.displayedRgb(t,this.showAlpha)&&this.$emit("active-change",e)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var e=this.color.value;this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",e),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var e=this;this.$nextTick((function(t){e.value?e.color.fromString(e.value):e.showPanelColor=!1}))},displayedRgb:function(e,t){if(!(e instanceof Eu))throw Error("color should be instance of Color Class");var n=e.toRgb(),r=n.r,g=n.g,b=n.b;return t?"rgba("+r+", "+g+", "+b+", "+e.get("alpha")/100+")":"rgb("+r+", "+g+", "+b+")"}},mounted:function(){var e=this.value;e&&this.color.fromString(e),this.popperElm=this.$refs.dropdown.$el},data:function(){return{color:new Eu({enableAlpha:this.showAlpha,format:this.colorFormat}),showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:Wu}},yu,[],!1,null,null,null);Uu.options.__file="packages/color-picker/src/main.vue";var Gu=Uu.exports;Gu.install=function(e){e.component(Gu.name,Gu)};var Yu=Gu,Ku=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer"},[n("transfer-panel",e._b({ref:"leftPanel",attrs:{data:e.sourceData,title:e.titles[0]||e.t("el.transfer.titles.0"),"default-checked":e.leftDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onSourceCheckedChange}},"transfer-panel",e.$props,!1),[e._t("left-footer")],2),n("div",{staticClass:"el-transfer__buttons"},[n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.rightChecked.length},nativeOn:{click:function(t){return e.addToLeft(t)}}},[n("i",{staticClass:"el-icon-arrow-left"}),void 0!==e.buttonTexts[0]?n("span",[e._v(e._s(e.buttonTexts[0]))]):e._e()]),n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.leftChecked.length},nativeOn:{click:function(t){return e.addToRight(t)}}},[void 0!==e.buttonTexts[1]?n("span",[e._v(e._s(e.buttonTexts[1]))]):e._e(),n("i",{staticClass:"el-icon-arrow-right"})])],1),n("transfer-panel",e._b({ref:"rightPanel",attrs:{data:e.targetData,title:e.titles[1]||e.t("el.transfer.titles.1"),"default-checked":e.rightDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onTargetCheckedChange}},"transfer-panel",e.$props,!1),[e._t("right-footer")],2)],1)};Ku._withStripped=!0;var Xu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleAllCheckedChange},model:{value:e.allChecked,callback:function(t){e.allChecked=t},expression:"allChecked"}},[e._v("\n "+e._s(e.title)+"\n "),n("span",[e._v(e._s(e.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",e.hasFooter?"is-with-footer":""]},[e.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:e.placeholder},nativeOn:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+e.inputIcon],attrs:{slot:"prefix"},on:{click:e.clearQuery},slot:"prefix"})]):e._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!e.hasNoMatch&&e.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":e.filterable},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},e._l(e.filteredData,(function(t){return n("el-checkbox",{key:t[e.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:t[e.keyProp],disabled:t[e.disabledProp]}},[n("option-content",{attrs:{option:t}})],1)})),1),n("p",{directives:[{name:"show",rawName:"v-show",value:e.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===e.data.length&&!e.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noData")))])],1),e.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[e._t("default")],2):e._e()])};Xu._withStripped=!0;var Zu={mixins:[_.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:ur.a,ElCheckbox:xn.a,ElInput:m.a,OptionContent:{props:{option:Object},render:function(e){var t=function e(t){return"ElTransferPanel"===t.$options.componentName?t:t.$parent?e(t.$parent):t}(this),n=t.$parent||t;return t.renderContent?t.renderContent(e,this.option):n.$scopedSlots.default?n.$scopedSlots.default({option:this.option}):e("span",[this.option[t.labelProp]||this.option[t.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(e,t){if(this.updateAllChecked(),this.checkChangeByUser){var n=e.concat(t).filter((function(n){return-1===e.indexOf(n)||-1===t.indexOf(n)}));this.$emit("checked-change",e,n)}else this.$emit("checked-change",e),this.checkChangeByUser=!0},data:function(){var e=this,t=[],n=this.filteredData.map((function(t){return t[e.keyProp]}));this.checked.forEach((function(e){n.indexOf(e)>-1&&t.push(e)})),this.checkChangeByUser=!1,this.checked=t},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(e,t){var n=this;if(!t||e.length!==t.length||!e.every((function(e){return t.indexOf(e)>-1}))){var r=[],o=this.checkableData.map((function(e){return e[n.keyProp]}));e.forEach((function(e){o.indexOf(e)>-1&&r.push(e)})),this.checkChangeByUser=!1,this.checked=r}}}},computed:{filteredData:function(){var e=this;return this.data.filter((function(t){return"function"==typeof e.filterMethod?e.filterMethod(e.query,t):(t[e.labelProp]||t[e.keyProp].toString()).toLowerCase().indexOf(e.query.toLowerCase())>-1}))},checkableData:function(){var e=this;return this.filteredData.filter((function(t){return!t[e.disabledProp]}))},checkedSummary:function(){var e=this.checked.length,t=this.data.length,n=this.format,r=n.noChecked,o=n.hasChecked;return r&&o?e>0?o.replace(/\${checked}/g,e).replace(/\${total}/g,t):r.replace(/\${total}/g,t):e+"/"+t},isIndeterminate:function(){var e=this.checked.length;return e>0&&e<this.checkableData.length},hasNoMatch:function(){return this.query.length>0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var e=this,t=this.checkableData.map((function(t){return t[e.keyProp]}));this.allChecked=t.length>0&&t.every((function(t){return e.checked.indexOf(t)>-1}))},handleAllCheckedChange:function(e){var t=this;this.checked=e?this.checkableData.map((function(e){return e[t.keyProp]})):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},Ju=o(Zu,Xu,[],!1,null,null,null);Ju.options.__file="packages/transfer/src/transfer-panel.vue";var Qu=Ju.exports,ec=o({name:"ElTransfer",mixins:[M.a,_.a,E.a],components:{TransferPanel:Qu,ElButton:J.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var e=this.props.key;return this.data.reduce((function(t,n){return(t[n[e]]=n)&&t}),{})},sourceData:function(){var e=this;return this.data.filter((function(t){return-1===e.value.indexOf(t[e.props.key])}))},targetData:function(){var e=this;return"original"===this.targetOrder?this.data.filter((function(t){return e.value.indexOf(t[e.props.key])>-1})):this.value.reduce((function(t,n){var r=e.dataObj[n];return r&&t.push(r),t}),[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(e,t){this.leftChecked=e,void 0!==t&&this.$emit("left-check-change",e,t)},onTargetCheckedChange:function(e,t){this.rightChecked=e,void 0!==t&&this.$emit("right-check-change",e,t)},addToLeft:function(){var e=this.value.slice();this.rightChecked.forEach((function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)})),this.$emit("input",e),this.$emit("change",e,"left",this.rightChecked)},addToRight:function(){var e=this,t=this.value.slice(),n=[],r=this.props.key;this.data.forEach((function(t){var o=t[r];e.leftChecked.indexOf(o)>-1&&-1===e.value.indexOf(o)&&n.push(o)})),t="unshift"===this.targetOrder?n.concat(t):t.concat(n),this.$emit("input",t),this.$emit("change",t,"right",this.leftChecked)},clearQuery:function(e){"left"===e?this.$refs.leftPanel.query="":"right"===e&&(this.$refs.rightPanel.query="")}}},Ku,[],!1,null,null,null);ec.options.__file="packages/transfer/src/main.vue";var tc=ec.exports;tc.install=function(e){e.component(tc.name,tc)};var nc=tc,rc=function(){var e=this,t=e.$createElement;return(e._self._c||t)("section",{staticClass:"el-container",class:{"is-vertical":e.isVertical}},[e._t("default")],2)};rc._withStripped=!0;var ic={name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some((function(e){var t=e.componentOptions&&e.componentOptions.tag;return"el-header"===t||"el-footer"===t})))}}},oc=o(ic,rc,[],!1,null,null,null);oc.options.__file="packages/container/src/main.vue";var ac=oc.exports;ac.install=function(e){e.component(ac.name,ac)};var sc=ac,lc=function(){var e=this,t=e.$createElement;return(e._self._c||t)("header",{staticClass:"el-header",style:{height:e.height}},[e._t("default")],2)};lc._withStripped=!0;var uc=o({name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},lc,[],!1,null,null,null);uc.options.__file="packages/header/src/main.vue";var cc=uc.exports;cc.install=function(e){e.component(cc.name,cc)};var header=cc,hc=function(){var e=this,t=e.$createElement;return(e._self._c||t)("aside",{staticClass:"el-aside",style:{width:e.width}},[e._t("default")],2)};hc._withStripped=!0;var fc=o({name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},hc,[],!1,null,null,null);fc.options.__file="packages/aside/src/main.vue";var dc=fc.exports;dc.install=function(e){e.component(dc.name,dc)};var aside=dc,pc=function(){var e=this,t=e.$createElement;return(e._self._c||t)("main",{staticClass:"el-main"},[e._t("default")],2)};pc._withStripped=!0;var gc=o({name:"ElMain",componentName:"ElMain"},pc,[],!1,null,null,null);gc.options.__file="packages/main/src/main.vue";var vc=gc.exports;vc.install=function(e){e.component(vc.name,vc)};var mc=vc,yc=function(){var e=this,t=e.$createElement;return(e._self._c||t)("footer",{staticClass:"el-footer",style:{height:e.height}},[e._t("default")],2)};yc._withStripped=!0;var bc=o({name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},yc,[],!1,null,null,null);bc.options.__file="packages/footer/src/main.vue";var _c=bc.exports;_c.install=function(e){e.component(_c.name,_c)};var footer=_c,xc={name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var e=arguments[0],t=this.reverse,n={"el-timeline":!0,"is-reverse":t},r=this.$slots.default||[];return t&&(r=r.reverse()),e("ul",{class:n},[r])}},wc=o(xc,undefined,undefined,!1,null,null,null);wc.options.__file="packages/timeline/src/main.vue";var Sc=wc.exports;Sc.install=function(e){e.component(Sc.name,Sc)};var kc=Sc,Oc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-timeline-item"},[n("div",{staticClass:"el-timeline-item__tail"}),e.$slots.dot?e._e():n("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(e.size||""),"el-timeline-item__node--"+(e.type||"")],style:{backgroundColor:e.color}},[e.icon?n("i",{staticClass:"el-timeline-item__icon",class:e.icon}):e._e()]),e.$slots.dot?n("div",{staticClass:"el-timeline-item__dot"},[e._t("dot")],2):e._e(),n("div",{staticClass:"el-timeline-item__wrapper"},[e.hideTimestamp||"top"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-top"},[e._v("\n "+e._s(e.timestamp)+"\n ")]),n("div",{staticClass:"el-timeline-item__content"},[e._t("default")],2),e.hideTimestamp||"bottom"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[e._v("\n "+e._s(e.timestamp)+"\n ")])])])};Oc._withStripped=!0;var Cc=o({name:"ElTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:String,color:String,size:{type:String,default:"normal"},icon:String}},Oc,[],!1,null,null,null);Cc.options.__file="packages/timeline/src/item.vue";var Tc=Cc.exports;Tc.install=function(e){e.component(Tc.name,Tc)};var Ec=Tc,Ac=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._b({class:["el-link",e.type?"el-link--"+e.type:"",e.disabled&&"is-disabled",e.underline&&!e.disabled&&"is-underline"],attrs:{href:e.disabled?null:e.href},on:{click:e.handleClick}},"a",e.$attrs,!1),[e.icon?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",{staticClass:"el-link--inner"},[e._t("default")],2):e._e(),e.$slots.icon?[e.$slots.icon?e._t("icon"):e._e()]:e._e()],2)};Ac._withStripped=!0;var Mc=o({name:"ElLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(e){this.disabled||this.href||this.$emit("click",e)}}},Ac,[],!1,null,null,null);Mc.options.__file="packages/link/src/main.vue";var Ic=Mc.exports;Ic.install=function(e){e.component(Ic.name,Ic)};var Dc=Ic,Pc={functional:!0,name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},contentPosition:{type:String,default:"center",validator:function(e){return-1!==["left","center","right"].indexOf(e)}}},render:function(e,t){var n=t.slots(),r=t.props,o=r.direction,l=r.contentPosition;return e("div",{class:["el-divider","el-divider--"+o]},[n.default&&"vertical"!==o?e("div",{class:["el-divider__text","is-"+l]},[n.default]):null])},install:function(e){e.component(Pc.name,Pc)}},Nc=Pc,Lc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-image"},[e.loading?e._t("placeholder",[n("div",{staticClass:"el-image__placeholder"})]):e.error?e._t("error",[n("div",{staticClass:"el-image__error"},[e._v(e._s(e.t("el.image.error")))])]):n("img",e._g(e._b({staticClass:"el-image__inner",class:{"el-image__inner--center":e.alignCenter,"el-image__preview":e.preview},style:e.imageStyle,attrs:{src:e.src},on:{click:e.clickHandler}},"img",e.$attrs,!1),e.$listeners)),e.preview&&e.showViewer?n("image-viewer",{attrs:{"z-index":e.zIndex,"on-close":e.closeViewer,"url-list":e.previewSrcList}}):e._e()],2)};Lc._withStripped=!0;var jc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{staticClass:"el-image-viewer__wrapper",style:{"z-index":e.zIndex}},[n("div",{staticClass:"el-image-viewer__mask"}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.hide}},[n("i",{staticClass:"el-icon-circle-close"})]),e.isSingle?e._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){e.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){e.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:e.mode.icon,on:{click:e.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){e.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){e.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},e._l(e.urlList,(function(t,i){return i===e.index?n("img",{key:t,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()})),0)],2)])};jc._withStripped=!0;var Rc=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e},Fc={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},Bc=Object(x.isFirefox)()?"DOMMouseScroll":"mousewheel",zc={name:"elImageViewer",props:{urlList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}}},data:function(){return{index:0,isShow:!1,infinite:!0,loading:!1,mode:Fc.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},currentImg:function(){return this.urlList[this.index]},imgStyle:function(){var e=this.transform,t=e.scale,n=e.deg,r=e.offsetX,o=e.offsetY,style={transform:"scale("+t+") rotate("+n+"deg)",transition:e.enableTransition?"transform .3s":"","margin-left":r+"px","margin-top":o+"px"};return this.mode===Fc.CONTAIN&&(style.maxWidth=style.maxHeight="100%"),style}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},currentImg:function(e){var t=this;this.$nextTick((function(e){t.$refs.img[0].complete||(t.loading=!0)}))}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var e=this;this._keyDownHandler=Object(x.rafThrottle)((function(t){switch(t.keyCode){case 27:e.hide();break;case 32:e.toggleMode();break;case 37:e.prev();break;case 38:e.handleActions("zoomIn");break;case 39:e.next();break;case 40:e.handleActions("zoomOut")}})),this._mouseWheelHandler=Object(x.rafThrottle)((function(t){(t.wheelDelta?t.wheelDelta:-t.detail)>0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(xe.on)(document,"keydown",this._keyDownHandler),Object(xe.on)(document,Bc,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(xe.off)(document,"keydown",this._keyDownHandler),Object(xe.off)(document,Bc,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown:function(e){var t=this;if(!this.loading&&0===e.button){var n=this.transform,r=n.offsetX,o=n.offsetY,l=e.pageX,c=e.pageY;this._dragHandler=Object(x.rafThrottle)((function(e){t.transform.offsetX=r+e.pageX-l,t.transform.offsetY=o+e.pageY-c})),Object(xe.on)(document,"mousemove",this._dragHandler),Object(xe.on)(document,"mouseup",(function(e){Object(xe.off)(document,"mousemove",t._dragHandler)})),e.preventDefault()}},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var e=Object.keys(Fc),t=(Object.values(Fc).indexOf(this.mode)+1)%e.length;this.mode=Fc[e[t]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=Rc({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),r=n.zoomRate,o=n.rotateDeg,l=n.enableTransition,c=this.transform;switch(e){case"zoomOut":c.scale>.2&&(c.scale=parseFloat((c.scale-r).toFixed(3)));break;case"zoomIn":c.scale=parseFloat((c.scale+r).toFixed(3));break;case"clocelise":c.deg+=o;break;case"anticlocelise":c.deg-=o}c.enableTransition=l}}},mounted:function(){this.deviceSupportInstall()}},$c=o(zc,jc,[],!1,null,null,null);$c.options.__file="packages/image/src/image-viewer.vue";var Vc=$c.exports,Hc=function(){return void 0!==document.documentElement.style.objectFit},qc="none",Wc="contain",Uc="cover",Gc="fill",Yc="scale-down",Kc=o({name:"ElImage",mixins:[_.a],inheritAttrs:!1,components:{ImageViewer:Vc},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var e=this.fit;return!this.$isServer&&e?Hc()?{"object-fit":e}:this.getImageStyle(e):{}},alignCenter:function(){return!this.$isServer&&!Hc()&&this.fit!==Gc},preview:function(){var e=this.previewSrcList;return Array.isArray(e)&&e.length>0}},watch:{src:function(e){this.show&&this.loadImage()},show:function(e){e&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var e=this;if(!this.$isServer){this.loading=!0,this.error=!1;var img=new Image;img.onload=function(t){return e.handleLoad(t,img)},img.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach((function(t){var n=e.$attrs[t];img.setAttribute(t,n)})),img.src=this.src}},handleLoad:function(e,img){this.imageWidth=img.width,this.imageHeight=img.height,this.loading=!1},handleError:function(e){this.loading=!1,this.error=!0,this.$emit("error",e)},handleLazyLoad:function(){Object(xe.isInContainer)(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var e=this.scrollContainer,t=null;(t=Object(xl.isHtmlElement)(e)?e:Object(xl.isString)(e)?document.querySelector(e):Object(xe.getScrollContainer)(this.$el))&&(this._scrollContainer=t,this._lazyLoadHandler=Rl()(200,this.handleLazyLoad),Object(xe.on)(t,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var e=this._scrollContainer,t=this._lazyLoadHandler;!this.$isServer&&e&&t&&(Object(xe.off)(e,"scroll",t),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(e){var t=this.imageWidth,n=this.imageHeight,r=this.$el,o=r.clientWidth,l=r.clientHeight;if(!(t&&n&&o&&l))return{};var c=t/n<1;e===Yc&&(e=t<o&&n<l?qc:Wc);switch(e){case qc:return{width:"auto",height:"auto"};case Wc:return c?{width:"auto"}:{height:"auto"};case Uc:return c?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.showViewer=!0},closeViewer:function(){this.showViewer=!1}}},Lc,[],!1,null,null,null);Kc.options.__file="packages/image/src/main.vue";var Xc=Kc.exports;Xc.install=function(e){e.component(Xc.name,Xc)};var Zc=Xc,Jc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-calendar"},[n("div",{staticClass:"el-calendar__header"},[n("div",{staticClass:"el-calendar__title"},[e._v("\n "+e._s(e.i18nDate)+"\n ")]),0===e.validatedRange.length?n("div",{staticClass:"el-calendar__button-group"},[n("el-button-group",[n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("prev-month")}}},[e._v("\n "+e._s(e.t("el.datepicker.prevMonth"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("today")}}},[e._v("\n "+e._s(e.t("el.datepicker.today"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("next-month")}}},[e._v("\n "+e._s(e.t("el.datepicker.nextMonth"))+"\n ")])],1)],1):e._e()]),0===e.validatedRange.length?n("div",{key:"no-range",staticClass:"el-calendar__body"},[n("date-table",{attrs:{date:e.date,"selected-day":e.realSelectedDay,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})],1):n("div",{key:"has-range",staticClass:"el-calendar__body"},e._l(e.validatedRange,(function(t,r){return n("date-table",{key:r,attrs:{date:t[0],"selected-day":e.realSelectedDay,range:t,"hide-header":0!==r,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})})),1)])};Jc._withStripped=!0;var Qc=n(19),eh=n.n(Qc),nh=Object(Nr.getI18nSettings)().dayNames,rh={props:{selectedDay:String,range:{type:Array,validator:function(e){if(!e||!e.length)return!0;var t=e[0],n=e[1];return Object(Nr.validateRangeInOneMonth)(t,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],methods:{toNestedArr:function(e){return Object(Nr.range)(e.length/7).map((function(t,n){var r=7*n;return e.slice(r,r+7)}))},getFormateDate:function(e,t){if(!e||-1===["prev","current","next"].indexOf(t))throw new Error("invalid day or type");var n=this.curMonthDatePrefix;return"prev"===t?n=this.prevMonthDatePrefix:"next"===t&&(n=this.nextMonthDatePrefix),n+"-"+(e=("00"+e).slice(-2))},getCellClass:function(e){var text=e.text,t=e.type,n=[t];if("current"===t){var r=this.getFormateDate(text,t);r===this.selectedDay&&n.push("is-selected"),r===this.formatedToday&&n.push("is-today")}return n},pickDay:function(e){var text=e.text,t=e.type,n=this.getFormateDate(text,t);this.$emit("pick",n)},cellRenderProxy:function(e){var text=e.text,t=e.type,n=this.$createElement,r=this.elCalendar.$scopedSlots.dateCell;if(!r)return n("span",[text]);var o=this.getFormateDate(text,t);return r({date:new Date(o),data:{isSelected:this.selectedDay===o,type:t+"-month",day:o}})}},computed:{prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),eh.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return eh.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return eh.a.format(e,"yyyy-MM")},formatedToday:function(){return this.elCalendar.formatedToday},isInRange:function(){return this.range&&this.range.length},rows:function(){var e=[];if(this.isInRange){var t=this.range,n=t[0],r=t[1],o=Object(Nr.range)(r.getDate()-n.getDate()+1).map((function(e,t){return{text:n.getDate()+t,type:"current"}})),l=o.length%7;l=0===l?0:7-l;var c=Object(Nr.range)(l).map((function(e,t){return{text:t+1,type:"next"}}));e=o.concat(c)}else{var h=this.date,f=Object(Nr.getFirstDayOfMonth)(h);f=0===f?7:f;var d="number"==typeof this.firstDayOfWeek?this.firstDayOfWeek:1,v=Object(Nr.getPrevMonthLastDays)(h,f-d).map((function(e){return{text:e,type:"prev"}})),m=Object(Nr.getMonthDays)(h).map((function(e){return{text:e,type:"current"}}));e=[].concat(v,m);var y=Object(Nr.range)(42-e.length).map((function(e,t){return{text:t+1,type:"next"}}));e=e.concat(y)}return this.toNestedArr(e)},weekDays:function(){var e=this.firstDayOfWeek;return"number"!=typeof e||0===e?nh.slice():nh.slice(e).concat(nh.slice(0,e))}},render:function(){var e=this,t=arguments[0],thead=this.hideHeader?null:t("thead",[this.weekDays.map((function(e){return t("th",{key:e},[e])}))]);return t("table",{class:{"el-calendar-table":!0,"is-range":this.isInRange},attrs:{cellspacing:"0",cellpadding:"0"}},[thead,t("tbody",[this.rows.map((function(n,r){return t("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===r&&e.hideHeader},key:r},[n.map((function(n,r){return t("td",{key:r,class:e.getCellClass(n),on:{click:e.pickDay.bind(e,n)}},[t("div",{class:"el-calendar-day"},[e.cellRenderProxy(n)])])}))])}))])])}},ih=o(rh,undefined,undefined,!1,null,null,null);ih.options.__file="packages/calendar/src/date-table.vue";var oh=ih.exports,ah=["prev-month","today","next-month"],sh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],lh=864e5,uh=o({name:"ElCalendar",mixins:[_.a],components:{DateTable:oh},props:{value:[Date,String,Number],range:{type:Array,validator:function(e){return!Array.isArray(e)||2===e.length&&e.every((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date}))}},firstDayOfWeek:{type:Number,default:1}},provide:function(){return{elCalendar:this}},methods:{pickDay:function(e){this.realSelectedDay=e},selectDate:function(e){if(-1===ah.indexOf(e))throw new Error("invalid type "+e);var t="";(t="prev-month"===e?this.prevMonthDatePrefix+"-01":"next-month"===e?this.nextMonthDatePrefix+"-01":this.formatedToday)!==this.formatedDate&&this.pickDay(t)},toDate:function(e){if(!e)throw new Error("invalid val");return e instanceof Date?e:new Date(e)},rangeValidator:function(e,t){var n=this.realFirstDayOfWeek,r=t?n:0===n?6:n-1,o=(t?"start":"end")+" of range should be "+sh[r]+".";return e.getDay()===r||(console.warn("[ElementCalendar]",o,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),eh.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return eh.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return eh.a.format(e,"yyyy-MM")},formatedDate:function(){return eh.a.format(this.date,"yyyy-MM-dd")},i18nDate:function(){var e=this.date.getFullYear(),t=this.date.getMonth()+1;return e+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+t)},formatedToday:function(){return eh.a.format(this.now,"yyyy-MM-dd")},realSelectedDay:{get:function(){return this.value?this.formatedDate:this.selectedDay},set:function(e){this.selectedDay=e;var t=new Date(e);this.$emit("input",t)}},date:function(){return this.value?this.toDate(this.value):this.realSelectedDay?new Date(this.selectedDay):this.validatedRange.length?this.validatedRange[0][0]:this.now},validatedRange:function(){var e=this,t=this.range;if(!t)return[];if(2===(t=t.reduce((function(t,n,r){var o=e.toDate(n);return e.rangeValidator(o,0===r)&&(t=t.concat(o)),t}),[])).length){var n=t,r=n[0],o=n[1];if(r>o)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(Nr.validateRangeInOneMonth)(r,o))return[[r,o]];var data=[],l=new Date(r.getFullYear(),r.getMonth()+1,1),c=this.toDate(l.getTime()-lh);if(!Object(Nr.validateRangeInOneMonth)(l,o))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];data.push([r,c]);var h=this.realFirstDayOfWeek,f=l.getDay(),d=0;return f!==h&&(d=0===h?7-f:(d=h-f)>0?d:7+d),(l=this.toDate(l.getTime()+d*lh)).getDate()<o.getDate()&&data.push([l,o]),data}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},Jc,[],!1,null,null,null);uh.options.__file="packages/calendar/src/main.vue";var ch=uh.exports;ch.install=function(e){e.component(ch.name,ch)};var hh=ch,fh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-fade-in"}},[e.visible?n("div",{staticClass:"el-backtop",style:{right:e.styleRight,bottom:e.styleBottom},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)}}},[e._t("default",[n("el-icon",{attrs:{name:"caret-top"}})])],2):e._e()])};fh._withStripped=!0;var dh={name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=Rl()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var e=this.el.scrollTop;this.visible=e>=this.visibilityHeight},handleClick:function(e){this.scrollToTop(),this.$emit("click",e)},scrollToTop:function(){var e=this.el,t=0,n=setInterval((function(){e.scrollTop<=0?clearInterval(n):(t+=10,e.scrollTop-=t)}),20)}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},ph=o(dh,fh,[],!1,null,null,null);ph.options.__file="packages/backtop/src/main.vue";var gh=ph.exports;gh.install=function(e){e.component(gh.name,gh)};var vh=gh,mh=function(e,t){return e===window||e===document?document.documentElement[t]:e[t]},yh=function(e){return mh(e,"offsetHeight")},bh="ElInfiniteScroll",_h={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},xh=function(e,t){return Object(xl.isHtmlElement)(e)?(n=_h,Object.keys(n||{}).map((function(e){return[e,n[e]]}))).reduce((function(map,n){var r=n[0],option=n[1],o=option.type,l=option.default,c=e.getAttribute("infinite-scroll-"+r);switch(c=Object(xl.isUndefined)(t[c])?c:t[c],o){case Number:c=Number(c),c=Number.isNaN(c)?l:c;break;case Boolean:c=Object(xl.isDefined)(c)?"false"!==c&&Boolean(c):l;break;default:c=o(c)}return map[r]=c,map}),{}):{};var n},wh=function(e){return e.getBoundingClientRect().top},Sh=function(e){var t=this[bh],n=t.el,r=t.vm,o=t.container,l=t.observer,c=xh(n,r),h=c.distance;if(!c.disabled){var f=!1;if(o===n){var d=o.scrollTop+function(e){return mh(e,"clientHeight")}(o);f=o.scrollHeight-d<=h}else{f=yh(n)+wh(n)-wh(o)-yh(o)+Number.parseFloat(function(element,e){if(element===window&&(element=document.documentElement),1!==element.nodeType)return[];var t=window.getComputedStyle(element,null);return e?t[e]:t}(o,"borderBottomWidth"))<=h}f&&Object(xl.isFunction)(e)?e.call(r):l&&(l.disconnect(),this[bh].observer=null)}},kh={name:"InfiniteScroll",inserted:function(e,t,n){var r=t.value,o=n.context,l=Object(xe.getScrollContainer)(e,!0),c=xh(e,o),h=c.delay,f=c.immediate,d=L()(h,Sh.bind(e,r));(e[bh]={el:e,vm:o,container:l,onScroll:d},l)&&(l.addEventListener("scroll",d),f&&((e[bh].observer=new MutationObserver(d)).observe(l,{childList:!0,subtree:!0}),d()))},unbind:function(e){var t=e[bh],n=t.container,r=t.onScroll;n&&n.removeEventListener("scroll",r)},install:function(e){e.directive(kh.name,kh)}},Oh=kh,Ch=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-page-header"},[n("div",{staticClass:"el-page-header__left",on:{click:function(t){e.$emit("back")}}},[n("i",{staticClass:"el-icon-back"}),n("div",{staticClass:"el-page-header__title"},[e._t("title",[e._v(e._s(e.title))])],2)]),n("div",{staticClass:"el-page-header__content"},[e._t("content",[e._v(e._s(e.content))])],2)])};Ch._withStripped=!0;var Th=o({name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(Xt.t)("el.pageHeader.title")}},content:String}},Ch,[],!1,null,null,null);Th.options.__file="packages/page-header/src/main.vue";var Eh=Th.exports;Eh.install=function(e){e.component(Eh.name,Eh)};var Ah=Eh,Mh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(menu,e){return n("cascader-menu",{key:e,ref:"menu",refInFor:!0,attrs:{index:e,nodes:menu}})})),1)};Mh._withStripped=!0;var Ih=n(43),Dh=n.n(Ih),Ph=function(e){return e.stopPropagation()},Nh=o({inject:["panel"],components:{ElCheckbox:xn.a,ElRadio:Dh.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,r=this.isDisabled,o=this.config,l=o.multiple;!o.checkStrictly&&r||n.loading||(o.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),l){var r=!!t&&n.checked;e.handleMultiCheckChange(r)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node;return(e[t.level-1]||{}).uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,r=this.config,o=r.checkStrictly;return r.multiple?this.renderCheckbox(e):o?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,r=this.isDisabled,o={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(o.nativeOn.click=Ph),e("el-checkbox",js()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:r}},o]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,r=this.isDisabled;return Object(x.isEqual)(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:Ph}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,r=t.renderLabelFn;return e("span",{class:"el-cascader-node__label"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(e){var t=this,n=this.inActivePath,r=this.inCheckedPath,o=this.isChecked,l=this.isLeaf,c=this.isDisabled,h=this.config,f=this.nodeId,d=h.expandTrigger,v=h.checkStrictly,m=h.multiple,y=!v&&c,_={on:{}};return l?c||v||m||(_.on.click=this.handleCheckChange):"click"===d?_.on.click=this.handleExpand:(_.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},_.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),e("li",js()([{attrs:{role:"menuitem",id:f,"aria-expanded":n,tabindex:y?null:-1},class:{"el-cascader-node":!0,"is-selectable":v,"in-active-path":n,"in-checked-path":r,"is-active":o,"is-disabled":y}},_]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},undefined,undefined,!1,null,null,null);Nh.options.__file="packages/cascader-panel/src/cascader-node.vue";var Lh=Nh.exports,jh=o({name:"ElCascaderMenu",mixins:[_.a],inject:["panel"],components:{ElScrollbar:V.a,CascaderNode:Lh},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(x.generateId)()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(t&&r)if(t.contains(e.target)){clearTimeout(n);var o=this.$el.getBoundingClientRect().left,l=e.clientX-o,c=this.$el,h=c.offsetWidth,f=c.offsetHeight,d=t.offsetTop,v=d+t.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+l+" "+d+" L"+h+" 0 V"+d+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+l+" "+v+" L"+h+" "+f+" V"+v+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var o=this.nodes.map((function(n,o){var l=n.hasChildren;return e("cascader-node",js()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+o,"aria-haspopup":l,"aria-owns":l?t:null}},r]))}));return[].concat(o,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",js()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},r]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},undefined,undefined,!1,null,null,null);jh.options.__file="packages/cascader-panel/src/cascader-menu.vue";var Rh=jh.exports,Fh=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Bh=0,zh=function(){function e(data,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=data,this.config=t,this.parent=n||null,this.level=this.parent?this.parent.level+1:1,this.uid=Bh++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,r=n.children,o=this.data[r];this.hasChildren=Array.isArray(o),this.children=(o||[]).map((function(r){return new e(r,n,t)}))},e.prototype.calculatePathNodes=function(){for(var e=[this],t=this.parent;t;)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(x.isEqual)(e,t)})):Object(x.isEqual)(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o="onParent"+Object(x.capitalize)(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[o]&&t[o].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(x.capitalize)(e);if(t){for(var r=arguments.length,o=Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];t[n]&&t[n].apply(t,o),t.emit.apply(t,[e].concat(o))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children.filter((function(e){return!e.isDisabled})),t=!!e.length&&e.every((function(e){return e.checked}));this.setCheckState(t)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,p){return e+(p.checked?1:p.indeterminate?.5:0)}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},Fh(e,[{key:"isDisabled",get:function(){var data=this.data,e=this.parent,t=this.config,n=t.disabled,r=t.checkStrictly;return data[n]||!r&&e&&e.isDisabled}},{key:"isLeaf",get:function(){var data=this.data,e=this.loaded,t=this.hasChildren,n=this.children,r=this.config,o=r.lazy,l=r.leaf;if(o){var c=Object(en.isDef)(data[l])?data[l]:!!e&&!n.length;return this.hasChildren=!c,c}return!t}}]),e}(),$h=zh;var Vh=function e(data,t){return data.reduce((function(n,r){return r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(e(r.children,t))),n}),[])},Hh=function(){function e(data,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.initNodes(data)}return e.prototype.initNodes=function(data){var e=this;data=Object(x.coerceTruthyValueToArray)(data),this.nodes=data.map((function(t){return new $h(t,e.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new $h(e,this.config,t);(t?t.children:this.nodes).push(n)},e.prototype.appendNodes=function(e,t){var n=this;(e=Object(x.coerceTruthyValueToArray)(e)).forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:Vh(this.nodes,e)},e.prototype.getNodeByValue=function(e){if(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(x.valueEquals)(t.path,e)||t.value===e}));return t&&t.length?t[0]:null}return null},e}(),qh=Hh,Wh=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e},Uh=uu.a.keys,Gh={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:x.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Yh=function(e){return!e.getAttribute("aria-owns")},Kh=function(e,t){var n=e.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return r[Array.prototype.indexOf.call(r,e)+t]||null}return null},Xh=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},Zh=function(e){e&&(e.focus(),!Yh(e)&&e.click())},Jh=o({name:"ElCascaderPanel",components:{CascaderMenu:Rh},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return Ze()(Wh({},Gh),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(e){Object(x.isEqual)(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){Object(x.isEmpty)(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(x.isEmpty)(t)?this.lazyLoad():(this.store=new qh(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(x.isEqual)(e,t)||(this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this;this.getFlattedNodes(this.leafOnly).forEach((function(t){t.syncCheckState(e.checkedValue)}))},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,o=this.checkedValue;if(Object(x.isEmpty)(r))if(Object(x.isEmpty)(o))this.activePath=[],this.menus=[t.getNodes()];else{var l=n?o[0]:o,c=((this.getNodeByValue(l)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(c)}else{var h=r.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(h)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple?Object(x.coerceTruthyValueToArray)(t):[t];this.checkedNodePaths=n.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target;switch(e.keyCode){case Uh.up:var n=Kh(t,-1);Zh(n);break;case Uh.down:var r=Kh(t,1);Zh(r);break;case Uh.left:var o=this.$refs.menu[Xh(t)-1];if(o){var l=o.$el.querySelector('.el-cascader-node[aria-expanded="true"]');Zh(l)}break;case Uh.right:var c=this.$refs.menu[Xh(t)+1];if(c){var h=c.$el.querySelector('.el-cascader-node[tabindex="-1"]');Zh(h)}break;case Uh.enter:!function(e){if(e){var input=e.querySelector("input");input?input.click():Yh(e)&&e.click()}}(t);break;case Uh.esc:case Uh.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,r=e.level,path=n.slice(0,r-1),o=this.menus.slice(0,r);if(e.isLeaf||(path.push(e),o.push(e.children)),this.activePath=path,this.menus=o,!t){var l=path.map((function(e){return e.getValue()})),c=n.map((function(e){return e.getValue()}));Object(x.valueEquals)(l,c)||(this.$emit("active-item-change",l),this.$emit("expand-change",l))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,r=this.config;e||(e=e||{root:!0,level:0},this.store=new qh([],r),this.menus=[this.store.getNodes()]),e.loading=!0;r.lazyLoad(e,(function(r){var o=e.root?null:e;if(r&&r.length&&n.store.appendNodes(r,o),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var l=n.checkedValue[n.loadCount++],c=n.config.value,h=n.config.leaf;if(Array.isArray(r)&&r.filter((function(e){return e[c]===l})).length>0){var f=n.store.getNodeByValue(l);f.data[h]||n.lazyLoad(f,(function(){n.handleExpand(f)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(r)}))},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){this.$isServer||(this.$refs.menu||[]).forEach((function(menu){var e=menu.$el;if(e){var t=e.querySelector(".el-scrollbar__wrap"),n=e.querySelector(".el-cascader-node.is-active")||e.querySelector(".el-cascader-node.in-active-path");Qt()(t,n)}}))},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue;return this.multiple?this.getFlattedNodes(e).filter((function(e){return e.checked})):Object(x.isEmpty)(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,r=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},Mh,[],!1,null,null,null);Jh.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Qh=Jh.exports;Qh.install=function(e){e.component(Qh.name,Qh)};var ef=Qh,tf={name:"ElAvatar",props:{size:{type:[Number,String],validator:function(e){return"string"==typeof e?["large","medium","small"].includes(e):"number"==typeof e}},shape:{type:String,default:"circle",validator:function(e){return["circle","square"].includes(e)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var e=this.size,t=this.icon,n=this.shape,r=["el-avatar"];return e&&"string"==typeof e&&r.push("el-avatar--"+e),t&&r.push("el-avatar--icon"),n&&r.push("el-avatar--"+n),r.join(" ")}},methods:{handleError:function(){var e=this.error;!1!==(e?e():void 0)&&(this.isImageExist=!1)},renderAvatar:function(){var e=this.$createElement,t=this.icon,n=this.src,r=this.alt,o=this.isImageExist,l=this.srcSet,c=this.fit;return o&&n?e("img",{attrs:{src:n,alt:r,srcSet:l},on:{error:this.handleError},style:{"object-fit":c}}):t?e("i",{class:t}):this.$slots.default}},render:function(){var e=arguments[0],t=this.avatarClass,n=this.size,r="number"==typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{};return e("span",{class:t,style:r},[this.renderAvatar()])}},nf=o(tf,undefined,undefined,!1,null,null,null);nf.options.__file="packages/avatar/src/main.vue";var rf=nf.exports;rf.install=function(e){e.component(rf.name,rf)};var of=rf,af=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",attrs:{role:"presentation"}},[n("div",{staticClass:"el-drawer__container",class:e.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{ref:"drawer",staticClass:"el-drawer",class:[e.direction,e.customClass],style:e.isHorizontal?"width: "+e.size:"height: "+e.size,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title",role:"presentation"}},[n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[e._t("title",[n("span",{attrs:{role:"heading"}},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(e.title||"drawer"),type:"button"},on:{click:e.closeDrawer}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?n("section",{staticClass:"el-drawer__body"},[e._t("default")],2):e._e()])])])])};af._withStripped=!0;var sf=o({name:"ElDrawer",mixins:[C.a,M.a,E.a],props:{appendToBody:{type:Boolean,default:!0},beforeClose:{type:Function},customClass:{type:String,default:""},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(e){return-1!==["ltr","rtl","ttb","btt"].indexOf(e)}},showClose:{type:Boolean,default:!0},size:{type:String,default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction}},data:function(){return{closed:!1}},watch:{visible:function(e){e?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el)):this.closed||this.$emit("close")}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()}},mounted:function(){this.visible&&(this.rendered=!0,this.open())},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},af,[],!1,null,null,null);sf.options.__file="packages/drawer/src/main.vue";var lf=sf.exports;lf.install=function(e){e.component(lf.name,lf)};var uf=lf,cf=[S,dialog,X,ie,le,fe,Oe,Pe,Be,He,et,st,ht,mt,xt,Ot,At,Pt,Rt,on,an,cn,pn,yn,Or,Dr,ji,Wi,to,ao,lo,Io,Lo,zo,Xo,sa,ha,pa,ja,$a,ss,Os,Ts,As,Ws,Ys,Js,gl,bl,Ol,Al,Nl,zl,Wl,Xl,eu,iu,mu,Yu,nc,sc,header,aside,mc,footer,kc,Ec,Dc,Nc,Zc,hh,vh,Ah,ef,of,uf,Te.a],hf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zt.a.use(t.locale),Zt.a.i18n(t.i18n),cf.forEach((function(component){e.component(component.name,component)})),e.use(Oh),e.use(xs.directive),e.prototype.$ELEMENT={size:t.size||"",zIndex:t.zIndex||2e3},e.prototype.$loading=xs.service,e.prototype.$msgbox=To,e.prototype.$alert=To.alert,e.prototype.$confirm=To.confirm,e.prototype.$prompt=To.prompt,e.prototype.$notify=Za,e.prototype.$message=cl};"undefined"!=typeof window&&window.Vue&&hf(window.Vue);t.default={version:"2.11.1",locale:Zt.a.use,i18n:Zt.a.i18n,install:hf,CollapseTransition:Te.a,Loading:xs,Pagination:S,Dialog:dialog,Autocomplete:X,Dropdown:ie,DropdownMenu:le,DropdownItem:fe,Menu:Oe,Submenu:Pe,MenuItem:Be,MenuItemGroup:He,Input:et,InputNumber:st,Radio:ht,RadioGroup:mt,RadioButton:xt,Checkbox:Ot,CheckboxButton:At,CheckboxGroup:Pt,Switch:Rt,Select:on,Option:an,OptionGroup:cn,Button:pn,ButtonGroup:yn,Table:Or,TableColumn:Dr,DatePicker:ji,TimeSelect:Wi,TimePicker:to,Popover:ao,Tooltip:lo,MessageBox:To,Breadcrumb:Io,BreadcrumbItem:Lo,Form:zo,FormItem:Xo,Tabs:sa,TabPane:ha,Tag:pa,Tree:ja,Alert:$a,Notification:Za,Slider:ss,Icon:Os,Row:Ts,Col:As,Upload:Ws,Progress:Ys,Spinner:Js,Message:cl,Badge:gl,Card:bl,Rate:Ol,Steps:Al,Step:Nl,Carousel:zl,Scrollbar:Wl,CarouselItem:Xl,Collapse:eu,CollapseItem:iu,Cascader:mu,ColorPicker:Yu,Transfer:nc,Container:sc,Header:header,Aside:aside,Main:mc,Footer:footer,Timeline:kc,TimelineItem:Ec,Link:Dc,Divider:Nc,Image:Zc,Calendar:hh,Backtop:vh,InfiniteScroll:Oh,PageHeader:Ah,CascaderPanel:ef,Avatar:of,Drawer:uf}}]).default},function(e,t,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,l=r(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return e(!1)})):e(!1))}};e.exports=r},function(e,t,n){var r=Date.prototype,o="Invalid Date",l="toString",c=r.toString,h=r.getTime;new Date(NaN)+""!=o&&n(34)(r,l,(function(){var e=h.call(this);return e==e?c.call(this):o}))},function(e,t,n){"use strict";n(301);var r=n(20),o=n(110),l=n(17),c="toString",h=/./.toString,f=function(e){n(34)(RegExp.prototype,c,e,!0)};n(16)((function(){return"/a/b"!=h.call({source:"a",flags:"b"})}))?f((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!l&&e instanceof RegExp?o.call(e):void 0)})):h.name!=c&&f((function(){return h.call(this)}))},function(e,t,n){"use strict";var r=n(9),o=n(154),l="includes";r(r.P+r.F*n(156)(l),"String",{includes:function(e){return!!~o(this,e,l).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(25);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(55),o=Math.max,l=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):l(e,t)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(20),o=n(281),l=n(148),c=n(147)("IE_PROTO"),h=function(){},f=function(){var e,iframe=n(142)("iframe"),i=l.length;for(iframe.style.display="none",n(143).appendChild(iframe),iframe.src="javascript:",(e=iframe.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),f=e.F;i--;)delete f.prototype[l[i]];return f()};e.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=r(e),n=new h,h.prototype=null,n[c]=e):n=f(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(54),o=n(13)("toStringTag"),l="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,c;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:l?r(t):"Object"==(c=r(t))&&"function"==typeof t.callee?"Arguments":c}},function(e,t,n){var r=n(13)("unscopables"),o=Array.prototype;null==o[r]&&n(39)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(34);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(45),o=n(145),l=n(42),c=n(24),h=n(292);e.exports=function(e,t){var n=1==e,f=2==e,d=3==e,v=4==e,m=6==e,y=5==e||m,_=t||h;return function(t,h,x){for(var w,S,k=l(t),O=o(k),C=r(h,x,3),T=c(O.length),E=0,A=n?_(t,T):f?_(t,0):void 0;T>E;E++)if((y||E in O)&&(S=C(w=O[E],E,k),e))if(n)A[E]=S;else if(S)switch(e){case 3:return!0;case 5:return w;case 6:return E;case 2:A.push(w)}else if(v)return!1;return m?-1:d||v?v:A}}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},,function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}n.d(t,"a",(function(){return r}))},,function(e,t,n){var r=n(11),o=n(157),l=n(23).f,c=n(65).f,h=n(155),f=n(110),d=r.RegExp,v=d,m=d.prototype,y=/a/g,_=/a/g,x=new d(y)!==y;if(n(17)&&(!x||n(16)((function(){return _[n(13)("match")]=!1,d(y)!=y||d(_)==_||"/a/i"!=d(y,"i")})))){d=function(p,e){var t=this instanceof d,n=h(p),r=void 0===e;return!t&&n&&p.constructor===d&&r?p:o(x?new v(n&&!r?p.source:p,e):v((n=p instanceof d)?p.source:p,n&&r?f.call(p):e),t?this:m,d)};for(var w=function(e){e in d||l(d,e,{configurable:!0,get:function(){return v[e]},set:function(t){v[e]=t}})},S=c(v),i=0;S.length>i;)w(S[i++]);m.constructor=d,d.prototype=m,n(34)(r,"RegExp",d)}n(109)("RegExp")},function(e,t,n){var r=n(53),o=n(11),l="__core-js_shared__",c=o[l]||(o[l]={});(e.exports=function(e,t){return c[e]||(c[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(63)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(13)("iterator"),o=!1;try{var l=[7][r]();l.return=function(){o=!0},Array.from(l,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var l=[7],c=l[r]();c.next=function(){return{done:n=!0}},l[r]=function(){return c},e(l)}catch(e){}return n}},function(e,t,n){var r=n(20),o=n(105),l=n(13)("species");e.exports=function(e,t){var n,c=r(e).constructor;return void 0===c||null==(n=r(c)[l])?t:o(n)}},function(e,t,n){"use strict";var r=n(11),o=n(23),l=n(17),c=n(13)("species");e.exports=function(e){var t=r[e];l&&t&&!t[c]&&o.f(t,c,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(20);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(92),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var l=n.call(e,t);if("object"!=typeof l)throw new TypeError("RegExp exec method returned something other than an Object or null");return l}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";n(299);var r=n(34),o=n(39),l=n(16),c=n(56),h=n(13),f=n(159),d=h("species"),v=!l((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),m=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var y=h(e),_=!l((function(){var t={};return t[y]=function(){return 7},7!=""[e](t)})),x=_?!l((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[d]=function(){return n}),n[y](""),!t})):void 0;if(!_||!x||"replace"===e&&!v||"split"===e&&!m){var w=/./[y],S=n(c,y,""[e],(function(e,t,n,r,o){return t.exec===f?_&&!o?{done:!0,value:w.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),k=S[0],O=S[1];r(String.prototype,e,k),o(RegExp.prototype,y,2==t?function(e,t){return O.call(e,this,t)}:function(e){return O.call(e,this)})}}},function(e,t){var n,r,o=e.exports={};function l(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function h(e){if(n===setTimeout)return setTimeout(e,0);if((n===l||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:l}catch(e){n=l}try{r="function"==typeof clearTimeout?clearTimeout:c}catch(e){r=c}}();var f,d=[],v=!1,m=-1;function y(){v&&f&&(v=!1,f.length?d=f.concat(d):m=-1,d.length&&_())}function _(){if(!v){var e=h(y);v=!0;for(var t=d.length;t;){for(f=d,d=[];++m<t;)f&&f[m].run();m=-1,t=d.length}f=null,v=!1,function(marker){if(r===clearTimeout)return clearTimeout(marker);if((r===c||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(marker);try{r(marker)}catch(e){try{return r.call(null,marker)}catch(e){return r.call(this,marker)}}}(e)}}function x(e,t){this.fun=e,this.array=t}function w(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];d.push(new x(e,t)),1!==d.length||v||h(_)},x.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=w,o.addListener=w,o.once=w,o.off=w,o.removeListener=w,o.removeAllListeners=w,o.emit=w,o.prependListener=w,o.prependOnceListener=w,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var r=c(n(187)),o=c(n(2)),l=c(n(358));function c(e){return e&&e.__esModule?e:{default:e}}var h=(0,c(n(359)).default)(o.default),f=r.default,d=!1,v=function(){var e=Object.getPrototypeOf(this||o.default).$t;if("function"==typeof e&&o.default.locale)return d||(d=!0,o.default.locale(o.default.config.lang,(0,l.default)(f,o.default.locale(o.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},m=t.t=function(path,e){var t=v.apply(this,arguments);if(null!=t)return t;for(var n=path.split("."),r=f,i=0,o=n.length;i<o;i++){var l=n[i];if(t=r[l],i===o-1)return h(t,e);if(!t)return"";r=t}return""},use=t.use=function(e){f=e||f},y=t.i18n=function(e){v=e||v};t.default={use:use,t:m,i18n:y}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var i=1,t=arguments.length;i<t;i++){var source=arguments[i]||{};for(var n in source)if(source.hasOwnProperty(n)){var r=source[n];void 0!==r&&(e[n]=r)}}return e}},function(e,t,n){var r=n(166);e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},function(e,t,n){var r=n(98);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(253),o=n(178);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},,,,,,,,function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,"a",(function(){return r}))},,,,,,,,,function(e,t,n){"use strict";var r=n(155),o=n(20),l=n(108),c=n(158),h=n(24),f=n(111),d=n(159),v=n(16),m=Math.min,y=[].push,_=4294967295,x=!v((function(){RegExp(_,"y")}));n(112)("split",2,(function(e,t,n,v){var w;return w="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var l,c,h,output=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,m=void 0===t?_:t>>>0,x=new RegExp(e.source,f+"g");(l=d.call(x,o))&&!((c=x.lastIndex)>v&&(output.push(o.slice(v,l.index)),l.length>1&&l.index<o.length&&y.apply(output,l.slice(1)),h=l[0].length,v=c,output.length>=m));)x.lastIndex===l.index&&x.lastIndex++;return v===o.length?!h&&x.test("")||output.push(""):output.push(o.slice(v)),output.length>m?output.slice(0,m):output}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),l=null==n?void 0:n[t];return void 0!==l?l.call(n,o,r):w.call(String(o),n,r)},function(e,t){var r=v(w,e,this,t,w!==n);if(r.done)return r.value;var d=o(e),y=String(this),S=l(d,RegExp),k=d.unicode,O=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(x?"y":"g"),C=new S(x?d:"^(?:"+d.source+")",O),T=void 0===t?_:t>>>0;if(0===T)return[];if(0===y.length)return null===f(C,y)?[y]:[];for(var p=0,q=0,E=[];q<y.length;){C.lastIndex=x?q:0;var A,M=f(C,x?y:y.slice(q));if(null===M||(A=m(h(C.lastIndex+(x?0:q)),y.length))===p)q=c(y,q,k);else{if(E.push(y.slice(p,q)),E.length===T)return E;for(var i=1;i<=M.length-1;i++)if(E.push(M[i]),E.length===T)return E;q=p=A}}return E.push(y.slice(p)),E}]}))},function(e,t,n){var r=n(25),o=n(11).document,l=r(o)&&r(o.createElement);e.exports=function(e){return l?o.createElement(e):{}}},function(e,t,n){var r=n(11).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(62)("meta"),o=n(25),l=n(44),c=n(23).f,h=0,f=Object.isExtensible||function(){return!0},d=!n(16)((function(){return f(Object.preventExtensions({}))})),v=function(e){c(e,r,{value:{i:"O"+ ++h,w:{}}})},meta=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!l(e,r)){if(!f(e))return"F";if(!t)return"E";v(e)}return e[r].i},getWeak:function(e,t){if(!l(e,r)){if(!f(e))return!0;if(!t)return!1;v(e)}return e[r].w},onFreeze:function(e){return d&&meta.NEED&&f(e)&&!l(e,r)&&v(e),e}}},function(e,t,n){var r=n(54);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(46),o=n(24),l=n(89);e.exports=function(e){return function(t,n,c){var h,f=r(t),d=o(f.length),v=l(c,d);if(e&&n!=n){for(;d>v;)if((h=f[v++])!=h)return!0}else for(;d>v;v++)if((e||v in f)&&f[v]===n)return e||v||0;return!e&&-1}}},function(e,t,n){var r=n(104)("keys"),o=n(62);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(76),o=n(13)("iterator"),l=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||l[o]===e)}},function(e,t,n){var r=n(92),o=n(13)("iterator"),l=n(76);e.exports=n(53).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||l[r(e)]}},function(e,t,n){"use strict";var r=n(93),o=n(199),l=n(76),c=n(46);e.exports=n(152)(Array,"Array",(function(e,t){this._t=c(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),l.Arguments=l.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=n(63),o=n(9),l=n(34),c=n(39),h=n(76),f=n(283),d=n(74),v=n(200),m=n(13)("iterator"),y=!([].keys&&"next"in[].keys()),_="keys",x="values",w=function(){return this};e.exports=function(e,t,n,S,k,O,C){f(n,t,S);var T,E,A,M=function(e){if(!y&&e in N)return N[e];switch(e){case _:case x:return function(){return new n(this,e)}}return function(){return new n(this,e)}},I=t+" Iterator",D=k==x,P=!1,N=e.prototype,L=N[m]||N["@@iterator"]||k&&N[k],j=L||M(k),R=k?D?M("entries"):j:void 0,F="Array"==t&&N.entries||L;if(F&&(A=v(F.call(new e)))!==Object.prototype&&A.next&&(d(A,I,!0),r||"function"==typeof A[m]||c(A,m,w)),D&&L&&L.name!==x&&(P=!0,j=function(){return L.call(this)}),r&&!C||!y&&!P&&N[m]||c(N,m,j),h[t]=j,h[I]=w,k)if(T={values:D?j:M(x),keys:O?j:M(_),entries:R},C)for(E in T)E in N||l(N,E,T[E]);else o(o.P+o.F*(y||P),t,T);return T}},function(e,t,n){var r=n(45),o=n(197),l=n(149),c=n(20),h=n(24),f=n(150),d={},v={};(t=e.exports=function(e,t,n,m,y){var _,x,w,S,k=y?function(){return e}:f(e),O=r(n,m,t?2:1),C=0;if("function"!=typeof k)throw TypeError(e+" is not iterable!");if(l(k)){for(_=h(e.length);_>C;C++)if((S=t?O(c(x=e[C])[0],x[1]):O(e[C]))===d||S===v)return S}else for(w=k.call(e);!(x=w.next()).done;)if((S=o(w,O,x.value,t))===d||S===v)return S}).BREAK=d,t.RETURN=v},function(e,t,n){var r=n(155),o=n(56);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var r=n(25),o=n(54),l=n(13)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[l])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(13)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var r=n(25),o=n(295).set;e.exports=function(e,t,n){var l,c=t.constructor;return c!==n&&"function"==typeof c&&(l=c.prototype)!==n.prototype&&r(l)&&o&&o(e,l),e}},function(e,t,n){"use strict";var r=n(206)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r,o,l=n(110),c=RegExp.prototype.exec,h=String.prototype.replace,f=c,d=(r=/a/,o=/b*/g,c.call(r,"a"),c.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),v=void 0!==/()??/.exec("")[1];(d||v)&&(f=function(e){var t,n,r,i,o=this;return v&&(n=new RegExp("^"+o.source+"$(?!\\s)",l.call(o))),d&&(t=o.lastIndex),r=c.call(o,e),d&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),v&&r&&r.length>1&&h.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=f},function(e,t,n){"use strict";var r=n(9),o=n(24),l=n(154),c="startsWith",h="".startsWith;r(r.P+r.F*n(156)(c),"String",{startsWith:function(e){var t=l(this,e,c),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return h?h.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";t.__esModule=!0;var r=n(114);t.default={methods:{t:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.t.apply(this,t)}}}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(2),l=(r=o)&&r.__esModule?r:{default:r},c=n(245);var h=l.default.prototype.$isServer?function(){}:n(361),f=function(e){return e.stopPropagation()};t.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(e){this.showPopper=e,this.$emit("input",e)}},showPopper:function(e){this.disabled||(e?this.updatePopper():this.destroyPopper(),this.$emit("input",e))}},methods:{createPopper:function(){var e=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var t=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),t.placement=this.currentPlacement,t.offset=this.offset,t.arrowOffset=this.arrowOffset,this.popperJS=new h(r,n,t),this.popperJS.onCreate((function(t){e.$emit("created",e),e.resetTransformOrigin(),e.$nextTick(e.updatePopper)})),"function"==typeof t.onUpdate&&this.popperJS.onUpdate(t.onUpdate),this.popperJS._popper.style.zIndex=c.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",f))}},updatePopper:function(){var e=this.popperJS;e?(e.update(),e._popper&&(e._popper.style.zIndex=c.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(e){!this.popperJS||this.showPopper&&!e||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var e=this.popperJS._popper.getAttribute("x-placement").split("-")[0],t={top:"bottom",bottom:"top",left:"right",right:"left"}[e];this.popperJS._popper.style.transformOrigin="string"==typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(e)>-1?"center "+t:t+" center"}},appendArrow:function(element){var e=void 0;if(!this.appended){for(var t in this.appended=!0,element.attributes)if(/^_v-/.test(element.attributes[t].name)){e=element.attributes[t].name;break}var n=document.createElement("div");e&&n.setAttribute(e,""),n.setAttribute("x-arrow",""),n.className="popper__arrow",element.appendChild(n)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",f),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){if(l.default.prototype.$isServer)return 0;if(void 0!==c)return c;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),c=t-r};var r,o=n(2),l=(r=o)&&r.__esModule?r:{default:r};var c=void 0},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=70)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n(246)},4:function(e,t){e.exports=n(66)},70:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)};r._withStripped=!0;var o=n(4),l=n.n(o),c=n(10),h=n.n(c),f=void 0,d="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",v=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function m(e){var style=window.getComputedStyle(e),t=style.getPropertyValue("box-sizing"),n=parseFloat(style.getPropertyValue("padding-bottom"))+parseFloat(style.getPropertyValue("padding-top")),r=parseFloat(style.getPropertyValue("border-bottom-width"))+parseFloat(style.getPropertyValue("border-top-width"));return{contextStyle:v.map((function(e){return e+":"+style.getPropertyValue(e)})).join(";"),paddingSize:n,borderSize:r,boxSizing:t}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;f||(f=document.createElement("textarea"),document.body.appendChild(f));var r=m(e),o=r.paddingSize,l=r.borderSize,c=r.boxSizing,h=r.contextStyle;f.setAttribute("style",h+";"+d),f.value=e.value||e.placeholder||"";var v=f.scrollHeight,y={};"border-box"===c?v+=l:"content-box"===c&&(v-=o),f.value="";var _=f.scrollHeight-o;if(null!==t){var x=_*t;"border-box"===c&&(x=x+o+l),v=Math.max(x,v),y.minHeight=x+"px"}if(null!==n){var w=_*n;"border-box"===c&&(w=w+o+l),v=Math.min(w,v)}return y.height=v+"px",f.parentNode&&f.parentNode.removeChild(f),f=null,y}var _=n(9),x=n.n(_),w={name:"ElInput",componentName:"ElInput",mixins:[l.a,h.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return x()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize;if("textarea"===this.type)if(e){var t=e.minRows,n=e.maxRows;this.textareaCalcStyle=y(this.$refs.textarea,t,n)}else this.textareaCalcStyle={minHeight:y(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var input=this.getInput();input&&input.value!==this.nativeInputValue&&(input.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionEnd:function(e){this.isComposing=!1,this.handleInput(e)},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,i=0;i<t.length;i++)if(t[i].parentNode===this.$el){n=t[i];break}if(n){var r={suffix:"append",prefix:"prepend"}[e];this.$slots[r]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+r).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){this.passwordVisible=!this.passwordVisible,this.focus()},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},S=w,k=n(0),component=Object(k.a)(S,r,[],!1,null,null,null);component.options.__file="packages/input/src/input.vue";var input=component.exports;input.install=function(e){e.component(input.name,input)};t.default=input},9:function(e,t){e.exports=n(115)}})},function(e,t,n){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var r,o=n(362),l=(r=o)&&r.__esModule?r:{default:r};var c="undefined"==typeof window,h=function(e){var t=e,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var o;if(n){if(r>=t.length)break;o=t[r++]}else{if((r=t.next()).done)break;o=r.value}var l=o.target.__resizeListeners__||[];l.length&&l.forEach((function(e){e()}))}};t.addResizeListener=function(element,e){c||(element.__resizeListeners__||(element.__resizeListeners__=[],element.__ro__=new l.default(h),element.__ro__.observe(element)),element.__resizeListeners__.push(e))},t.removeResizeListener=function(element,e){element&&element.__resizeListeners__&&(element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(e),1),element.__resizeListeners__.length||element.__ro__.disconnect())}},function(e,t){e.exports=function(e,t,n,r){var o,l=0;return"boolean"!=typeof t&&(r=n,n=t,t=void 0),function(){var c=this,h=Number(new Date)-l,f=arguments;function d(){l=Number(new Date),n.apply(c,f)}function v(){o=void 0}r&&!o&&d(),o&&clearTimeout(o),void 0===r&&h>e?d():!0!==t&&(o=setTimeout(r?v:d,void 0===r?e-h:e))}}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=122)}({122:function(e,t,n){"use strict";n.r(t);var r=n(15),o=n(37),l=n.n(o),c=n(3),h=n(2),f={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function d(e){var t=e.move,n=e.size,r=e.bar,style={},o="translate"+r.axis+"("+t+"%)";return style[r.size]=n,style.transform=o,style.msTransform=o,style.webkitTransform=o,style}var v={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return f[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:d({size:t,move:n,bar:r})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=100*(Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=t*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(h.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(h.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-(this.$refs.thumb[this.bar.offset]-t))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(h.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(h.off)(document,"mouseup",this.mouseUpDocumentHandler)}},main={name:"ElScrollbar",components:{Bar:v},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=l()(),style=this.wrapStyle;if(t){var n="-"+t+"px",r="margin-bottom: "+n+"; margin-right: "+n+";";Array.isArray(this.wrapStyle)?(style=Object(c.toObject)(this.wrapStyle)).marginRight=style.marginBottom=n:"string"==typeof this.wrapStyle?style+=r:style=r}var view=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),o=e("div",{ref:"wrap",style:style,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[view]]),h=void 0;return h=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:style},[[view]])]:[o,e(v,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(v,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},h)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e,t,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r.removeResizeListener)(this.$refs.resize,this.update)},install:function(e){e.component(main.name,main)}};t.default=main},15:function(e,t){e.exports=n(165)},2:function(e,t){e.exports=n(57)},3:function(e,t){e.exports=n(47)},37:function(e,t){e.exports=n(163)}})},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},function(e,t,n){"use strict";t.__esModule=!0,t.isDef=function(e){return null!=e},t.isKorean=function(text){return/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(text)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(l.default.prototype.$isServer)return;if(!t)return void(e.scrollTop=0);var n=[],r=t.offsetParent;for(;r&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;var o=t.offsetTop+n.reduce((function(e,t){return e+t.offsetTop}),0),c=o+t.offsetHeight,h=e.scrollTop,f=h+e.clientHeight;o<h?e.scrollTop=o:c>f&&(e.scrollTop=c-e.clientHeight)};var r,o=n(2),l=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";t.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(element){for(var i=0;i<element.childNodes.length;i++){var e=element.childNodes[i];if(r.Utils.attemptFocus(e)||r.Utils.focusFirstDescendant(e))return!0}return!1},r.Utils.focusLastDescendant=function(element){for(var i=element.childNodes.length-1;i>=0;i--){var e=element.childNodes[i];if(r.Utils.attemptFocus(e)||r.Utils.focusLastDescendant(e))return!0}return!1},r.Utils.attemptFocus=function(element){if(!r.Utils.isFocusable(element))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{element.focus()}catch(e){}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===element},r.Utils.isFocusable=function(element){if(element.tabIndex>0||0===element.tabIndex&&null!==element.getAttribute("tabIndex"))return!0;if(element.disabled)return!1;switch(element.nodeName){case"A":return!!element.href&&"ignore"!==element.rel;case"INPUT":return"hidden"!==element.type&&"file"!==element.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),o=arguments.length,l=Array(o>2?o-2:0),c=2;c<o;c++)l[c-2]=arguments[c];return r.initEvent.apply(r,[t].concat(l)),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r),e},r.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t.default=r.Utils},function(e,t,n){var r=n(58),o=n(97),l=n(383),c=n(77),h=n(68),f=function(e,t,source){var n,d,v,m=e&f.F,y=e&f.G,_=e&f.S,x=e&f.P,w=e&f.B,S=e&f.W,k=y?o:o[t]||(o[t]={}),O=k.prototype,C=y?r:_?r[t]:(r[t]||{}).prototype;for(n in y&&(source=t),source)(d=!m&&C&&void 0!==C[n])&&h(k,n)||(v=d?C[n]:source[n],k[n]=y&&"function"!=typeof C[n]?source[n]:w&&d?l(v,r):S&&C[n]==v?function(e){var t=function(a,b,t){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(a);case 2:return new e(a,b)}return new e(a,b,t)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(v):x&&"function"==typeof v?l(Function.call,v):v,x&&((k.virtual||(k.virtual={}))[n]=v,e&f.R&&O&&!O[n]&&c(O,n,v)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f},function(e,t,n){var r=n(98);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(177)("keys"),o=n(121);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(97),o=n(58),l="__core-js_shared__",c=o[l]||(o[l]={});(e.exports=function(e,t){return c[e]||(c[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(120)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(174);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports={}},function(e,t,n){var r=n(78).f,o=n(68),l=n(80)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,l)&&r(e,l,{configurable:!0,value:t})}},function(e,t,n){t.f=n(80)},function(e,t,n){var r=n(58),o=n(97),l=n(120),c=n(183),h=n(78).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=l?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||h(t,e,{value:c.f(e)})}},function(e,t,n){"use strict";var r=n(42),o=n(89),l=n(24);e.exports=function(e){for(var t=r(this),n=l(t.length),c=arguments.length,h=o(c>1?arguments[1]:void 0,n),f=c>2?arguments[2]:void 0,d=void 0===f?n:o(f,n);d>h;)t[h++]=e;return t}},,function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"}}}},function(e,t,n){var r;e.exports=(r=n(414),function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=2)}([function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),r=n.n(i),o=n(6),u=n(5)(r.a,o.a,!1,null,null,null);t.default=u.exports},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.quillEditor=t.Quill=void 0;var r=i(n(0)),u=i(n(1)),s=window.Quill||r.default,a=function(e,t){t&&(u.default.props.globalOptions.default=function(){return t}),e.component(u.default.name,u.default)},o={Quill:s,quillEditor:u.default,install:a};t.default=o,t.Quill=s,t.quillEditor=u.default,t.install=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(0)),u=i(n(3)),s=window.Quill||r.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},writable:!0,configurable:!0}),t.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:u.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var e=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new s(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",(function(t){t?e.$emit("focus",e.quill):e.$emit("blur",e.quill)})),this.quill.on("text-change",(function(t,n,i){var r=e.$refs.editor.children[0].innerHTML,o=e.quill,l=e.quill.getText();"<p><br></p>"===r&&(r=""),e._content=r,e.$emit("input",e._content),e.$emit("change",{html:r,text:l,quill:o})})),this.$emit("ready",this.quill))}},watch:{content:function(e,t){this.quill&&(e&&e!==this._content?(this._content=e,this.quill.pasteHTML(e)):e||this.quill.setText(""))},value:function(e,t){this.quill&&(e&&e!==this._content?(this._content=e,this.quill.pasteHTML(e)):e||this.quill.setText(""))},disabled:function(e,t){this.quill&&this.quill.enable(!e)}}}},function(e,t){e.exports=function(e,t,n,i,r,o){var l,u=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(l=e,u=e.default);var c,a="function"==typeof u?u.options:u;if(t&&(a.render=t.render,a.staticRenderFns=t.staticRenderFns,a._compiled=!0),n&&(a.functional=!0),r&&(a._scopeId=r),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},a._ssrRegister=c):i&&(c=i),c){var h=a.functional,f=h?a.render:a.beforeCreate;h?(a._injectStyles=c,a.render=function(e,t){return c.call(t),f(e,t)}):a.beforeCreate=f?[].concat(f,c):[c]}return{esModule:l,exports:u,options:a}}},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"quill-editor"},[e._t("toolbar"),e._v(" "),n("div",{ref:"editor"})],2)},r={render:i,staticRenderFns:[]};t.a=r}]))},,function(e,t,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,l=r(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?e(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return e(!1)})):e(!1))}};e.exports=r},function(e,t,n){"use strict";var r=n(11),o=n(44),l=n(54),c=n(157),h=n(88),f=n(16),d=n(65).f,v=n(75).f,m=n(23).f,y=n(322).trim,_="Number",x=r.Number,w=x,S=x.prototype,k=l(n(91)(S))==_,O="trim"in String.prototype,C=function(e){var t=h(e,!1);if("string"==typeof t&&t.length>2){var n,r,o,l=(t=O?t.trim():y(t,3)).charCodeAt(0);if(43===l||45===l){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===l){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var code,c=t.slice(2),i=0,f=c.length;i<f;i++)if((code=c.charCodeAt(i))<48||code>o)return NaN;return parseInt(c,r)}}return+t};if(!x(" 0o1")||!x("0b1")||x("+0x1")){x=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof x&&(k?f((function(){S.valueOf.call(n)})):l(n)!=_)?c(new w(C(t)),n,x):C(t)};for(var T,E=n(17)?d(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),A=0;E.length>A;A++)o(w,T=E[A])&&!o(x,T)&&m(x,T,v(w,T));x.prototype=S,S.constructor=x,n(34)(r,_,x)}},function(e,t,n){"use strict";var r=n(20),o=n(24),l=n(158),c=n(111);n(112)("match",1,(function(e,t,n,h){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=h(n,e,this);if(t.done)return t.value;var f=r(e),d=String(this);if(!f.global)return c(f,d);var v=f.unicode;f.lastIndex=0;for(var m,y=[],_=0;null!==(m=c(f,d));){var x=String(m[0]);y[_]=x,""===x&&(f.lastIndex=l(d,o(f.lastIndex),v)),_++}return 0===_?null:y}]}))},function(e,t,n){e.exports=!n(17)&&!n(16)((function(){return 7!=Object.defineProperty(n(142)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){t.f=n(13)},function(e,t,n){var r=n(44),o=n(46),l=n(146)(!1),c=n(147)("IE_PROTO");e.exports=function(object,e){var t,n=o(object),i=0,h=[];for(t in n)t!=c&&r(n,t)&&h.push(t);for(;e.length>i;)r(n,t=e[i++])&&(~l(h,t)||h.push(t));return h}},function(e,t,n){var r=n(54);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(20);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var l=e.return;throw void 0!==l&&r(l.call(e)),t}}},function(e,t,n){"use strict";var r=n(23),o=n(73);e.exports=function(object,e,t){e in object?r.f(object,e,o(0,t)):object[e]=t}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(44),o=n(42),l=n(147)("IE_PROTO"),c=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){var r,o,l,c=n(45),h=n(285),html=n(143),f=n(142),d=n(11),v=d.process,m=d.setImmediate,y=d.clearImmediate,_=d.MessageChannel,x=d.Dispatch,w=0,S={},k="onreadystatechange",O=function(){var e=+this;if(S.hasOwnProperty(e)){var t=S[e];delete S[e],t()}},C=function(e){O.call(e.data)};m&&y||(m=function(e){for(var t=[],i=1;arguments.length>i;)t.push(arguments[i++]);return S[++w]=function(){h("function"==typeof e?e:Function(e),t)},r(w),w},y=function(e){delete S[e]},"process"==n(54)(v)?r=function(e){v.nextTick(c(O,e,1))}:x&&x.now?r=function(e){x.now(c(O,e,1))}:_?(l=(o=new _).port2,o.port1.onmessage=C,r=c(l.postMessage,l,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(r=function(e){d.postMessage(e+"","*")},d.addEventListener("message",C,!1)):r=k in f("script")?function(e){html.appendChild(f("script")).onreadystatechange=function(){html.removeChild(this),O.call(e)}}:function(e){setTimeout(c(O,e,1),0)}),e.exports={set:m,clear:y}},function(e,t,n){"use strict";var r=n(105);function o(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new o(e)}},function(e,t,n){var r=n(20),o=n(25),l=n(202);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=l.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(16);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){var r=n(9),o=n(53),l=n(16);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],c={};c[e]=t(n),r(r.S+r.F*l((function(){n(1)})),"Object",c)}},function(e,t,n){var r=n(55),o=n(56);e.exports=function(e){return function(t,n){var a,b,s=String(o(t)),i=r(n),l=s.length;return i<0||i>=l?e?"":void 0:(a=s.charCodeAt(i))<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?e?s.charAt(i):a:e?s.slice(i,i+2):b-56320+(a-55296<<10)+65536}}},,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(25);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},,,,,,,,,,function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(29);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var l;if(n)l=n(t);else if(r.isURLSearchParams(t))l=t.toString();else{var c=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),c.push(o(t)+"="+o(e))})))})),l=c.join("&")}if(l){var h=e.indexOf("#");-1!==h&&(e=e.slice(0,h)),e+=(-1===e.indexOf("?")?"?":"&")+l}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(29),o=n(345),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var h,f={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(h=n(239)),h),transformRequest:[function(data,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(data)||r.isArrayBuffer(data)||r.isBuffer(data)||r.isStream(data)||r.isFile(data)||r.isBlob(data)?data:r.isArrayBufferView(data)?data.buffer:r.isURLSearchParams(data)?(c(e,"application/x-www-form-urlencoded;charset=utf-8"),data.toString()):r.isObject(data)?(c(e,"application/json;charset=utf-8"),JSON.stringify(data)):data}],transformResponse:[function(data){if("string"==typeof data)try{data=JSON.parse(data)}catch(e){}return data}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};f.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(l)})),e.exports=f}).call(this,n(113))},function(e,t,n){"use strict";var r=n(29),o=n(346),l=n(348),c=n(236),h=n(349),f=n(352),d=n(353),v=n(240);e.exports=function(e){return new Promise((function(t,n){var m=e.data,y=e.headers;r.isFormData(m)&&delete y["Content-Type"];var _=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(x+":"+w)}var S=h(e.baseURL,e.url);if(_.open(e.method.toUpperCase(),c(S,e.params,e.paramsSerializer),!0),_.timeout=e.timeout,_.onreadystatechange=function(){if(_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in _?f(_.getAllResponseHeaders()):null,l={data:e.responseType&&"text"!==e.responseType?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:r,config:e,request:_};o(t,n,l),_=null}},_.onabort=function(){_&&(n(v("Request aborted",e,"ECONNABORTED",_)),_=null)},_.onerror=function(){n(v("Network Error",e,null,_)),_=null},_.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(v(t,e,"ECONNABORTED",_)),_=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||d(S))&&e.xsrfCookieName?l.read(e.xsrfCookieName):void 0;k&&(y[e.xsrfHeaderName]=k)}if("setRequestHeader"in _&&r.forEach(y,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete y[t]:_.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(_.withCredentials=!!e.withCredentials),e.responseType)try{_.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&_.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){_&&(_.abort(),n(e),_=null)})),m||(m=null),_.send(m)}))}},function(e,t,n){"use strict";var r=n(347);e.exports=function(e,t,code,n,o){var l=new Error(e);return r(l,t,code,n,o)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],l=["headers","auth","proxy","params"],c=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],h=["validateStatus"];function f(e,source){return r.isPlainObject(e)&&r.isPlainObject(source)?r.merge(e,source):r.isPlainObject(source)?r.merge({},source):r.isArray(source)?source.slice():source}function d(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=f(void 0,e[o])):n[o]=f(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=f(void 0,t[e]))})),r.forEach(l,d),r.forEach(c,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=f(void 0,e[o])):n[o]=f(void 0,t[o])})),r.forEach(h,(function(r){r in t?n[r]=f(e[r],t[r]):r in e&&(n[r]=f(void 0,e[r]))}));var v=o.concat(l).concat(c).concat(h),m=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===v.indexOf(e)}));return r.forEach(m,d),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r;!function(main){var o={},l=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,c="\\d\\d?",h="[^\\s]+",f=/\[([^]*?)\]/gm,d=function(){};function v(e,t){for(var n=[],i=0,r=e.length;i<r;i++)n.push(e[i].substr(0,t));return n}function m(e){return function(t,n,r){var o=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~o&&(t.month=o)}}function y(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}var _=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],x=["January","February","March","April","May","June","July","August","September","October","November","December"],w=v(x,3),S=v(_,3);o.i18n={dayNamesShort:S,dayNames:_,monthNamesShort:w,monthNames:x,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var k={D:function(e){return e.getDay()},DD:function(e){return y(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return y(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return y(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return y(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return y(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return y(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return y(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return y(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return y(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return y(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return y(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+y(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},O={d:[c,function(e,t){e.day=t}],Do:["\\d\\d?[^\\s]+",function(e,t){e.day=parseInt(t,10)}],M:[c,function(e,t){e.month=t-1}],yy:[c,function(e,t){var n=+(""+(new Date).getFullYear()).substr(0,2);e.year=""+(t>68?n-1:n)+t}],h:[c,function(e,t){e.hour=t}],m:[c,function(e,t){e.minute=t}],s:[c,function(e,t){e.second=t}],yyyy:["\\d{4}",function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:["\\d{3}",function(e,t){e.millisecond=t}],D:[c,d],ddd:[h,d],MMM:[h,m("monthNamesShort")],MMMM:[h,m("monthNames")],a:[h,function(e,t,n){var r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,r=(t+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),e.timezoneOffset="+"===r[0]?n:-n)}]};O.dd=O.d,O.dddd=O.ddd,O.DD=O.D,O.mm=O.m,O.hh=O.H=O.HH=O.h,O.MM=O.M,O.ss=O.s,O.A=O.a,o.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},o.format=function(e,mask,t){var n=t||o.i18n;if("number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");mask=o.masks[mask]||mask||o.masks.default;var r=[];return(mask=(mask=mask.replace(f,(function(e,t){return r.push(t),"@@@"}))).replace(l,(function(t){return t in k?k[t](e,n):t.slice(1,t.length-1)}))).replace(/@@@/g,(function(){return r.shift()}))},o.parse=function(e,t,n){var r=n||o.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=o.masks[t]||t,e.length>1e3)return null;var c={},h=[],d=[];t=t.replace(f,(function(e,t){return d.push(t),"@@@"}));var v,m=(v=t,v.replace(/[|\\{()[^$+*?.-]/g,"\\$&")).replace(l,(function(e){if(O[e]){var t=O[e];return h.push(t[1]),"("+t[0]+")"}return e}));m=m.replace(/@@@/g,(function(){return d.shift()}));var y=e.match(new RegExp(m,"i"));if(!y)return null;for(var i=1;i<y.length;i++)h[i-1](c,y[i],r);var _,x=new Date;return!0===c.isPm&&null!=c.hour&&12!=+c.hour?c.hour=+c.hour+12:!1===c.isPm&&12==+c.hour&&(c.hour=0),null!=c.timezoneOffset?(c.minute=+(c.minute||0)-+c.timezoneOffset,_=new Date(Date.UTC(c.year||x.getFullYear(),c.month||0,c.day||1,c.hour||0,c.minute||0,c.second||0,c.millisecond||0))):_=new Date(c.year||x.getFullYear(),c.month||0,c.day||1,c.hour||0,c.minute||0,c.second||0,c.millisecond||0),_},e.exports?e.exports=o:void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";t.__esModule=!0,t.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},t.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isHtmlElement=function(e){return e&&e.nodeType===Node.ELEMENT_NODE};t.isFunction=function(e){return e&&"[object Function]"==={}.toString.call(e)},t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return null!=e}},function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var r=f(n(2)),o=f(n(115)),l=f(n(360)),c=f(n(163)),h=n(57);function f(e){return e&&e.__esModule?e:{default:e}}var d=1,v=void 0;t.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+d++,l.default.register(this._popupId,this)},beforeDestroy:function(){l.default.deregister(this._popupId),l.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick((function(){t.open()})))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,o.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),r):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,r=e.zIndex;if(r&&(l.default.zIndex=r),n&&(this._closing&&(l.default.closeModal(this._popupId),this._closing=!1),l.default.openModal(this._popupId,l.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,h.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,h.getStyle)(document.body,"paddingRight"),10)),v=(0,c.default)();var o=document.documentElement.clientHeight<document.body.scrollHeight,f=(0,h.getStyle)(document.body,"overflowY");v>0&&(o||"scroll"===f)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+v+"px"),(0,h.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=l.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout((function(){e._closeTimer=null,e.doClose()}),t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){l.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,h.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=l.default},function(e,t,n){"use strict";t.__esModule=!0;n(47);t.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(2),l=(r=o)&&r.__esModule?r:{default:r},c=n(57);var h=[],f="@@clickoutsideContext",d=void 0,v=0;function m(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&o.target)||e.contains(r.target)||e.contains(o.target)||e===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(o.target))||(t.expression&&e[f].methodName&&n.context[e[f].methodName]?n.context[e[f].methodName]():e[f].bindingFn&&e[f].bindingFn())}}!l.default.prototype.$isServer&&(0,c.on)(document,"mousedown",(function(e){return d=e})),!l.default.prototype.$isServer&&(0,c.on)(document,"mouseup",(function(e){h.forEach((function(t){return t[f].documentHandler(e,d)}))})),t.default={bind:function(e,t,n){h.push(e);var r=v++;e[f]={id:r,documentHandler:m(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[f].documentHandler=m(e,t,n),e[f].methodName=t.expression,e[f].bindingFn=t.value},unbind:function(e){for(var t=h.length,i=0;i<t;i++)if(h[i][f].id===e[f].id){h.splice(i,1);break}delete e[f]}}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=105)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}n.d(t,"a",(function(){return r}))},105:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{role:"checkbox","aria-checked":e.indeterminate?"mixed":e.isChecked,"aria-disabled":e.isDisabled,id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{"aria-checked":"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":"true",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,o=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var l=e._i(n,null);r.checked?l<0&&(e.model=n.concat([null])):l>-1&&(e.model=n.slice(0,l).concat(n.slice(l+1)))}else e.model=o},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":"true",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,o=!!r.checked;if(Array.isArray(n)){var l=e.label,c=e._i(n,l);r.checked?c<0&&(e.model=n.concat([l])):c>-1&&(e.model=n.slice(0,c).concat(n.slice(c+1)))}else e.model=o},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])};r._withStripped=!0;var o=n(4),l={name:"ElCheckbox",mixins:[n.n(o).a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var e=this.$parent;e;){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},c=n(0),component=Object(c.a)(l,r,[],!1,null,null,null);component.options.__file="packages/checkbox/src/checkbox.vue";var h=component.exports;h.install=function(e){e.component(h.name,h)};t.default=h},4:function(e,t){e.exports=n(66)}})},function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(a,b){return function(){a&&a.apply(this,arguments),b&&b.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(a,b){var e,t,o,l,c;for(o in b)if(e=a[o],t=b[o],e&&n.test(o))if("class"===o&&("string"==typeof e&&(c=e,a[o]=e={},e[c]=!0),"string"==typeof t&&(c=t,b[o]=t={},t[c]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(l in t)e[l]=r(e[l],t[l]);else if(Array.isArray(e))a[o]=e.concat(t);else if(Array.isArray(t))a[o]=[e].concat(t);else for(l in t)e[l]=t[l];else a[o]=b[o];return a}),{})}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=123)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}n.d(t,"a",(function(){return r}))},123:function(e,t,n){"use strict";n.r(t);var r={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,r=this.hit,o=this.effect,l=e("span",{class:["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",o?"el-tag--"+o:"",r&&"is-hit"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?l:e("transition",{attrs:{name:"el-zoom-in-center"}},[l])}},o=n(0),component=Object(o.a)(r,undefined,undefined,!1,null,null,null);component.options.__file="packages/tag/src/tag.vue";var l=component.exports;l.install=function(e){e.component(l.name,l)};t.default=l}})},function(e,t,n){e.exports=!n(67)&&!n(99)((function(){return 7!=Object.defineProperty(n(252)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(98),o=n(58).document,l=r(o)&&r(o.createElement);e.exports=function(e){return l?o.createElement(e):{}}},function(e,t,n){var r=n(68),o=n(79),l=n(386)(!1),c=n(176)("IE_PROTO");e.exports=function(object,e){var t,n=o(object),i=0,h=[];for(t in n)t!=c&&r(n,t)&&h.push(t);for(;e.length>i;)r(n,t=e[i++])&&(~l(h,t)||h.push(t));return h}},function(e,t,n){var r=n(255);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";var r=n(120),o=n(172),l=n(257),c=n(77),h=n(181),f=n(393),d=n(182),v=n(396),m=n(80)("iterator"),y=!([].keys&&"next"in[].keys()),_="keys",x="values",w=function(){return this};e.exports=function(e,t,n,S,k,O,C){f(n,t,S);var T,E,A,M=function(e){if(!y&&e in N)return N[e];switch(e){case _:case x:return function(){return new n(this,e)}}return function(){return new n(this,e)}},I=t+" Iterator",D=k==x,P=!1,N=e.prototype,L=N[m]||N["@@iterator"]||k&&N[k],j=L||M(k),R=k?D?M("entries"):j:void 0,F="Array"==t&&N.entries||L;if(F&&(A=v(F.call(new e)))!==Object.prototype&&A.next&&(d(A,I,!0),r||"function"==typeof A[m]||c(A,m,w)),D&&L&&L.name!==x&&(P=!0,j=function(){return L.call(this)}),r&&!C||!y&&!P&&N[m]||c(N,m,j),h[t]=j,h[I]=w,k)if(T={values:D?j:M(x),keys:O?j:M(_),entries:R},C)for(E in T)E in N||l(N,E,T[E]);else o(o.P+o.F*(y||P),t,T);return T}},function(e,t,n){e.exports=n(77)},function(e,t,n){var r=n(117),o=n(394),l=n(178),c=n(176)("IE_PROTO"),h=function(){},f=function(){var e,iframe=n(252)("iframe"),i=l.length;for(iframe.style.display="none",n(395).appendChild(iframe),iframe.src="javascript:",(e=iframe.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),f=e.F;i--;)delete f.prototype[l[i]];return f()};e.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=r(e),n=new h,h.prototype=null,n[c]=e):n=f(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(253),o=n(178).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=96)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=n(66)},96:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])};r._withStripped=!0;var o=n(4),l={name:"ElRadio",mixins:[n.n(o).a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){for(var e=this.$parent;e;){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},c=n(0),component=Object(c.a)(l,r,[],!1,null,null,null);component.options.__file="packages/radio/src/radio.vue";var h=component.exports;h.install=function(e){e.component(h.name,h)};t.default=h}})},function(e,t,n){"use strict";(function(e){var r=n(415),o=n(416),l=n(417);function c(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(e,t){if(c()<t)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=f.prototype:(null===e&&(e=new f(t)),e.length=t),e}function f(e,t,n){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return m(this,e)}return d(this,e,t,n)}function d(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);f.TYPED_ARRAY_SUPPORT?(e=t).__proto__=f.prototype:e=y(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!f.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|x(t,n),o=(e=h(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(f.isBuffer(t)){var n=0|_(t.length);return 0===(e=h(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?h(e,0):y(e,t);if("Buffer"===t.type&&l(t.data))return y(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function v(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function m(e,t){if(v(t),e=h(e,t<0?0:0|_(t)),!f.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function y(e,t){var n=t.length<0?0:0|_(t.length);e=h(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function _(e){if(e>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|e}function x(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(r)return K(e).length;t=(""+t).toLowerCase(),r=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function S(b,e,t){var i=b[e];b[e]=b[t],b[t]=i}function k(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=f.from(t,r)),f.isBuffer(t))return 0===t.length?-1:O(e,t,n,r,o);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):O(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function O(e,t,n,r,o){var i,l=1,c=e.length,h=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;l=2,c/=2,h/=2,n/=2}function f(e,i){return 1===l?e[i]:e.readUInt16BE(i*l)}if(o){var d=-1;for(i=n;i<c;i++)if(f(e,i)===f(t,-1===d?0:i-d)){if(-1===d&&(d=i),i-d+1===h)return d*l}else-1!==d&&(i-=i-d),d=-1}else for(n+h>c&&(n=c-h),i=n;i>=0;i--){for(var v=!0,m=0;m<h;m++)if(f(e,i+m)!==f(t,m)){v=!1;break}if(v)return i}return-1}function C(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var l=t.length;if(l%2!=0)throw new TypeError("Invalid hex string");r>l/2&&(r=l/2);for(var i=0;i<r;++i){var c=parseInt(t.substr(2*i,2),16);if(isNaN(c))return i;e[n+i]=c}return i}function T(e,t,n,r){return Z(K(t,e.length-n),e,n,r)}function E(e,t,n,r){return Z(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,n,r)}function A(e,t,n,r){return E(e,t,n,r)}function M(e,t,n,r){return Z(X(t),e,n,r)}function I(e,t,n,r){return Z(function(e,t){for(var n,r,o,l=[],i=0;i<e.length&&!((t-=2)<0);++i)r=(n=e.charCodeAt(i))>>8,o=n%256,l.push(o),l.push(r);return l}(t,e.length-n),e,n,r)}function D(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,l,c,h,f=e[i],d=null,v=f>239?4:f>223?3:f>191?2:1;if(i+v<=n)switch(v){case 1:f<128&&(d=f);break;case 2:128==(192&(o=e[i+1]))&&(h=(31&f)<<6|63&o)>127&&(d=h);break;case 3:o=e[i+1],l=e[i+2],128==(192&o)&&128==(192&l)&&(h=(15&f)<<12|(63&o)<<6|63&l)>2047&&(h<55296||h>57343)&&(d=h);break;case 4:o=e[i+1],l=e[i+2],c=e[i+3],128==(192&o)&&128==(192&l)&&128==(192&c)&&(h=(15&f)<<18|(63&o)<<12|(63&l)<<6|63&c)>65535&&h<1114112&&(d=h)}null===d?(d=65533,v=1):d>65535&&(d-=65536,r.push(d>>>10&1023|55296),d=56320|1023&d),r.push(d),i+=v}return function(e){var t=e.length;if(t<=N)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=N));return n}(r)}t.Buffer=f,t.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},t.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=c(),f.poolSize=8192,f._augment=function(e){return e.__proto__=f.prototype,e},f.from=function(e,t,n){return d(null,e,t,n)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(e,t,n){return function(e,t,n,r){return v(t),t<=0?h(e,t):void 0!==n?"string"==typeof r?h(e,t).fill(n,r):h(e,t).fill(n):h(e,t)}(null,e,t,n)},f.allocUnsafe=function(e){return m(null,e)},f.allocUnsafeSlow=function(e){return m(null,e)},f.isBuffer=function(b){return!(null==b||!b._isBuffer)},f.compare=function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var e=a.length,t=b.length,i=0,n=Math.min(e,t);i<n;++i)if(a[i]!==b[i]){e=a[i],t=b[i];break}return e<t?-1:t<e?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!l(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=f.allocUnsafe(t),r=0;for(i=0;i<e.length;++i){var o=e[i];if(!f.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,r),r+=o.length}return n},f.byteLength=x,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<e;i+=2)S(this,i,i+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<e;i+=4)S(this,i,i+3),S(this,i+1,i+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<e;i+=8)S(this,i,i+7),S(this,i+1,i+6),S(this,i+2,i+5),S(this,i+3,i+4);return this},f.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):w.apply(this,arguments)},f.prototype.equals=function(b){if(!f.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===f.compare(this,b)},f.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},f.prototype.compare=function(e,t,n,r,o){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var l=(o>>>=0)-(r>>>=0),c=(n>>>=0)-(t>>>=0),h=Math.min(l,c),d=this.slice(r,o),v=e.slice(t,n),i=0;i<h;++i)if(d[i]!==v[i]){l=d[i],c=v[i];break}return l<c?-1:c<l?1:0},f.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},f.prototype.indexOf=function(e,t,n){return k(this,e,t,n,!0)},f.prototype.lastIndexOf=function(e,t,n){return k(this,e,t,n,!1)},f.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var l=!1;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return M(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function j(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function R(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=Y(e[i]);return o}function F(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function B(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function z(e,t,n,r,o,l){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<l)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function $(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function V(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function H(e,t,n,r,o,l){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(e,t,n,r,l){return l||H(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,l){return l||H(e,0,n,8),o.write(e,t,n,r,52,8),n+8}f.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),f.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=f.prototype;else{var o=t-e;n=new f(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},f.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},f.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},f.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},f.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),o.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),o.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),o.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),o.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||z(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},f.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||z(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},f.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):V(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):V(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);z(this,e,t,n,o-1,-o)}var i=0,l=1,sub=0;for(this[t]=255&e;++i<n&&(l*=256);)e<0&&0===sub&&0!==this[t+i-1]&&(sub=1),this[t+i]=(e/l>>0)-sub&255;return t+n},f.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);z(this,e,t,n,o-1,-o)}var i=n-1,l=1,sub=0;for(this[t+i]=255&e;--i>=0&&(l*=256);)e<0&&0===sub&&0!==this[t+i+1]&&(sub=1),this[t+i]=(e/l>>0)-sub&255;return t+n},f.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):V(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):V(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,n){return W(this,e,t,!0,n)},f.prototype.writeFloatBE=function(e,t,n){return W(this,e,t,!1,n)},f.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},f.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},f.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},f.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var code=e.charCodeAt(0);code<256&&(e=code)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!f.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=f.isBuffer(e)?e:K(new f(e,r).toString()),l=o.length;for(i=0;i<n-t;++i)this[i+t]=o[i%l]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){var n;t=t||1/0;for(var r=e.length,o=null,l=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&l.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&l.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&l.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&l.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;l.push(n)}else if(n<2048){if((t-=2)<0)break;l.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;l.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;l.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return l}function X(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(52))},function(e,t,n){for(var r,o=n(11),l=n(39),c=n(62),h=c("typed_array"),f=c("view"),d=!(!o.ArrayBuffer||!o.DataView),v=d,i=0,m="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");i<9;)(r=o[m[i++]])?(l(r.prototype,h,!0),l(r.prototype,f,!0)):v=!1;e.exports={ABV:d,CONSTR:v,TYPED:h,VIEW:f}},function(e,t,n){var r=n(55),o=n(24);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},,function(e,t,n){"use strict";t.a=function(e,t){return t=t||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var l in s.open(t.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),u.push([t,n]),i[t]=i[t]?i[t]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==t.credentials,t.headers)s.setRequestHeader(l,t.headers[l]);s.send(t.body||null)}))}},function(e,t,n){"use strict";(function(e){var r=n(267),o=n.n(r);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function h(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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 o,l=!0,h=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return l=e.done,e},e:function(e){h=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(h)throw o}}}}function f(e){return Array.isArray(e)}function d(e){return void 0===e}function v(e){return"object"===l(e)}function m(e){return"object"===l(e)&&null!==e}function y(e){return"function"==typeof e}var _=(function(){try{return!d(window)}catch(e){return!1}}()?window:e).console||{};function x(e){_&&_.warn&&_.warn(e)}var w=function(e){return x("".concat(e," is not supported in browser builds"))},S={title:void 0,titleChunk:"",titleTemplate:"%s",htmlAttrs:{},bodyAttrs:{},headAttrs:{},base:[],link:[],meta:[],style:[],script:[],noscript:[],__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{}},k="metaInfo",O="data-vue-meta",C="data-vue-meta-server-rendered",T="vmid",E="content",A="template",M=!0,I=10,D="ssr",P=Object.keys(S),N=[P[12],P[13]],L=[P[1],P[2],"changed"].concat(N),j=[P[3],P[4],P[5]],R=["link","style","script"],F=["once","skip","template"],B=["body","pbody"],z=["allowfullscreen","amp","amp-boilerplate","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","truespeed","typemustmatch","visible"],$=null;function V(e,t,n){var r=e.debounceWait;t._vueMeta.initialized||!t._vueMeta.initializing&&"watcher"!==n||(t._vueMeta.initialized=null),t._vueMeta.initialized&&!t._vueMeta.pausing&&function(e,t){if(!(t=void 0===t?10:t))return void e();clearTimeout($),$=setTimeout((function(){e()}),t)}((function(){t.$meta().refresh()}),r)}function H(e,t,n){if(!Array.prototype.findIndex){for(var r=0;r<e.length;r++)if(t.call(n,e[r],r,e))return r;return-1}return e.findIndex(t,n)}function W(e){return Array.from?Array.from(e):Array.prototype.slice.call(e)}function U(e,t){if(!Array.prototype.includes){for(var n in e)if(e[n]===t)return!0;return!1}return e.includes(t)}var G=function(e,t){return(t||document).querySelectorAll(e)};function Y(e,t){return e[t]||(e[t]=document.getElementsByTagName(t)[0]),e[t]}function K(e,t,n){var r=t.appId,o=t.attribute,l=t.type,c=t.tagIDKeyName;n=n||{};var h=["".concat(l,"[").concat(o,'="').concat(r,'"]'),"".concat(l,"[data-").concat(c,"]")].map((function(e){for(var t in n){var r=n[t],o=r&&!0!==r?'="'.concat(r,'"'):"";e+="[data-".concat(t).concat(o,"]")}return e}));return W(G(h.join(", "),e))}function X(e,t){e.removeAttribute(t)}function Z(e){return(e=e||this)&&(!0===e._vueMeta||v(e._vueMeta))}function J(e,t){return e._vueMeta.pausing=!0,function(){return Q(e,t)}}function Q(e,t){if(e._vueMeta.pausing=!1,t||void 0===t)return e.$meta().refresh()}function ee(e){var t=e.$router;!e._vueMeta.navGuards&&t&&(e._vueMeta.navGuards=!0,t.beforeEach((function(t,n,r){J(e),r()})),t.afterEach((function(){e.$nextTick((function(){var t=Q(e).metaInfo;t&&y(t.afterNavigation)&&t.afterNavigation(t)}))})))}var te=1;function ne(e,t){var n=["activated","deactivated","beforeMount"],r=!1;return{beforeCreate:function(){var o=this,l=this.$root,c=this.$options,h=e.config.devtools;if(Object.defineProperty(this,"_hasMetaInfo",{configurable:!0,get:function(){return h&&!l._vueMeta.deprecationWarningShown&&(x("VueMeta DeprecationWarning: _hasMetaInfo has been deprecated and will be removed in a future version. Please use hasMetaInfo(vm) instead"),l._vueMeta.deprecationWarningShown=!0),Z(this)}}),this===l&&l.$once("hook:beforeMount",(function(){if(!(r=this.$el&&1===this.$el.nodeType&&this.$el.hasAttribute("data-server-rendered"))&&l._vueMeta&&1===l._vueMeta.appId){var e=Y({},"html");r=e&&e.hasAttribute(t.ssrAttribute)}})),!d(c[t.keyName])&&null!==c[t.keyName]){if(l._vueMeta||(l._vueMeta={appId:te},te++,h&&l.$options[t.keyName]&&this.$nextTick((function(){var e=function(e,t,n){if(Array.prototype.find)return e.find(t,n);for(var r=0;r<e.length;r++)if(t.call(n,e[r],r,e))return e[r]}(l.$children,(function(e){return e.$vnode&&e.$vnode.fnOptions}));e&&e.$vnode.fnOptions[t.keyName]&&x("VueMeta has detected a possible global mixin which adds a ".concat(t.keyName," property to all Vue components on the page. This could cause severe performance issues. If possible, use $meta().addApp to add meta information instead"))}))),!this._vueMeta){this._vueMeta=!0;for(var f=this.$parent;f&&f!==l;)d(f._vueMeta)&&(f._vueMeta=!1),f=f.$parent}y(c[t.keyName])&&(c.computed=c.computed||{},c.computed.$metaInfo=c[t.keyName],this.$isServer||this.$on("hook:created",(function(){this.$watch("$metaInfo",(function(){V(t,this.$root,"watcher")}))}))),d(l._vueMeta.initialized)&&(l._vueMeta.initialized=this.$isServer,l._vueMeta.initialized||(l._vueMeta.initializedSsr||(l._vueMeta.initializedSsr=!0,this.$on("hook:beforeMount",(function(){var e=this.$root;r&&(e._vueMeta.appId=t.ssrAppId)}))),this.$on("hook:mounted",(function(){var e=this.$root;e._vueMeta.initialized||(e._vueMeta.initializing=!0,this.$nextTick((function(){var n=e.$meta().refresh(),r=n.tags,o=n.metaInfo;!1===r&&null===e._vueMeta.initialized&&this.$nextTick((function(){return V(t,e,"init")})),e._vueMeta.initialized=!0,delete e._vueMeta.initializing,!t.refreshOnceOnNavigation&&o.afterNavigation&&ee(e)})))})),t.refreshOnceOnNavigation&&ee(l))),this.$on("hook:destroyed",(function(){var e=this;this.$parent&&Z(this)&&(delete this._hasMetaInfo,this.$nextTick((function(){if(t.waitOnDestroyed&&e.$el&&e.$el.offsetParent)var n=setInterval((function(){e.$el&&null!==e.$el.offsetParent||(clearInterval(n),V(t,e.$root,"destroyed"))}),50);else V(t,e.$root,"destroyed")})))})),this.$isServer||n.forEach((function(e){o.$on("hook:".concat(e),(function(){V(t,this.$root,e)}))}))}}}}function re(e,t){return t&&v(e)?(f(e[t])||(e[t]=[]),e):f(e)?e:[]}var ie=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/"/g,'"'],[/'/g,"'"]];function oe(e,t,n,r){var o=t.tagIDKeyName,l=n.doEscape,c=void 0===l?function(e){return e}:l,h={};for(var d in e){var v=e[d];if(U(L,d))h[d]=v;else{var y=N[0];if(n[y]&&U(n[y],d))h[d]=v;else{var _=e[o];if(_&&(y=N[1],n[y]&&n[y][_]&&U(n[y][_],d)))h[d]=v;else if("string"==typeof v?h[d]=c(v):f(v)?h[d]=v.map((function(e){return m(e)?oe(e,t,n,!0):c(e)})):m(v)?h[d]=oe(v,t,n,!0):h[d]=v,r){var x=c(d);d!==x&&(h[x]=h[d],delete h[d])}}}}return h}function ae(e,t,n){n=n||[];var r={doEscape:function(e){return n.reduce((function(e,t){return e.replace(t[0],t[1])}),e)}};return N.forEach((function(e,n){if(0===n)re(t,e);else if(1===n)for(var o in t[e])re(t[e],o);r[e]=t[e]})),oe(t,e,r)}function se(e,t,template,n){var component=e.component,r=e.metaTemplateKeyName,o=e.contentKeyName;return!0!==template&&!0!==t[r]&&(d(template)&&t[r]&&(template=t[r],t[r]=!0),template?(d(n)&&(n=t[o]),t[o]=y(template)?template.call(component,n):template.replace(/%s/g,n),!0):(delete t[r],!1))}var le=!1;function ue(e,source,t){return t=t||{},void 0===source.title&&delete source.title,j.forEach((function(e){if(source[e])for(var t in source[e])t in source[e]&&void 0===source[e][t]&&(U(z,t)&&!le&&(x("VueMeta: Please note that since v2 the value undefined is not used to indicate boolean attributes anymore, see migration guide for details"),le=!0),delete source[e][t])})),o()(e,source,{arrayMerge:function(e,s){return function(e,t,source){var component=e.component,n=e.tagIDKeyName,r=e.metaTemplateKeyName,o=e.contentKeyName,l=[];return t.length||source.length?(t.forEach((function(e,t){if(e[n]){var c=H(source,(function(t){return t[n]===e[n]})),h=source[c];if(-1!==c){if(o in h&&void 0===h[o]||"innerHTML"in h&&void 0===h.innerHTML)return l.push(e),void source.splice(c,1);if(null!==h[o]&&null!==h.innerHTML){var f=e[r];if(f){if(!h[r])return se({component:component,metaTemplateKeyName:r,contentKeyName:o},h,f),void(h.template=!0);h[o]||se({component:component,metaTemplateKeyName:r,contentKeyName:o},h,void 0,e[o])}}else source.splice(c,1)}else l.push(e)}else l.push(e)})),l.concat(source)):l}(t,e,s)}})}function ce(e,component){return he(e||{},component,S)}function he(e,component,t){if(t=t||{},component._inactive)return t;var n=(e=e||{}).keyName,r=component.$metaInfo,o=component.$options,l=component.$children;if(o[n]){var data=r||o[n];v(data)&&(t=ue(t,data,e))}return l.length&&l.forEach((function(n){(function(e){return(e=e||this)&&!d(e._vueMeta)})(n)&&(t=he(e,n,t))})),t}var fe=[];function de(e,t,n,r){var o=e.tagIDKeyName,l=!1;return n.forEach((function(e){e[o]&&e.callback&&(l=!0,function(e,t){1===arguments.length&&(t=e,e=""),fe.push([e,t])}("".concat(t,"[data-").concat(o,'="').concat(e[o],'"]'),e.callback))})),r&&l?pe():l}function pe(){var e;"complete"!==(e||document).readyState?document.onreadystatechange=function(){ge()}:ge()}function ge(e){fe.forEach((function(t){var n=t[0],r=t[1],o="".concat(n,'[onload="this.__vm_l=1"]'),l=[];e||(l=W(G(o))),e&&e.matches(o)&&(l=[e]),l.forEach((function(element){if(!element.__vm_cb){var e=function(){element.__vm_cb=!0,X(element,"onload"),r(element)};element.__vm_l?e():element.__vm_ev||(element.__vm_ev=!0,element.addEventListener("load",e))}}))}))}var ve,me={};function ye(e,t,n,r,o){var l=(t||{}).attribute,c=o.getAttribute(l);c&&(me[n]=JSON.parse(decodeURI(c)),X(o,l));var data=me[n]||{},h=[];for(var f in data)void 0!==data[f]&&e in data[f]&&(h.push(f),r[f]||delete data[f][e]);for(var d in r){var v=data[d];v&&v[e]===r[d]||(h.push(d),void 0!==r[d]&&(data[d]=data[d]||{},data[d][e]=r[d]))}for(var m=0,y=h;m<y.length;m++){var _=y[m],x=data[_],w=[];for(var S in x)Array.prototype.push.apply(w,[].concat(x[S]));if(w.length){var k=U(z,_)&&w.some(Boolean)?"":w.filter((function(e){return void 0!==e})).join(" ");o.setAttribute(_,k)}else X(o,_)}me[n]=data}function be(e,t,n,r,head,body){var o=t||{},l=o.attribute,c=o.tagIDKeyName,h=B.slice();h.push(c);var f=[],d={appId:e,attribute:l,type:n,tagIDKeyName:c},v={head:K(head,d),pbody:K(body,d,{pbody:!0}),body:K(body,d,{body:!0})};if(r.length>1){var m=[];r=r.filter((function(e){var t=JSON.stringify(e),n=!U(m,t);return m.push(t),n}))}r.forEach((function(t){if(!t.skip){var r=document.createElement(n);t.once||r.setAttribute(l,e),Object.keys(t).forEach((function(e){if(!U(F,e))if("innerHTML"!==e)if("json"!==e)if("cssText"!==e)if("callback"!==e){var n=U(h,e)?"data-".concat(e):e,o=U(z,e);if(!o||t[e]){var l=o?"":t[e];r.setAttribute(n,l)}}else r.onload=function(){return t[e](r)};else r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else r.innerHTML=JSON.stringify(t.json);else r.innerHTML=t.innerHTML}));var o,c=v[function(e){var body=e.body,t=e.pbody;return body?"body":t?"pbody":"head"}(t)],d=c.some((function(e,t){return o=t,r.isEqualNode(e)}));d&&(o||0===o)?c.splice(o,1):f.push(r)}}));var y=[];for(var _ in v)Array.prototype.push.apply(y,v[_]);return y.forEach((function(element){element.parentNode.removeChild(element)})),f.forEach((function(element){element.hasAttribute("data-body")?body.appendChild(element):element.hasAttribute("data-pbody")?body.insertBefore(element,body.firstChild):head.appendChild(element)})),{oldTags:y,newTags:f}}function _e(e,t,n){var r=t=t||{},o=r.ssrAttribute,l=r.ssrAppId,c={},h=Y(c,"html");if(e===l&&h.hasAttribute(o)){X(h,o);var d=!1;return R.forEach((function(e){n[e]&&de(t,e,n[e])&&(d=!0)})),d&&pe(),!1}var title,v={},m={};for(var y in n)if(!U(L,y))if("title"!==y){if(U(j,y)){var _=y.substr(0,4);ye(e,t,y,n[y],Y(c,_))}else if(f(n[y])){var x=be(e,t,y,n[y],Y(c,"head"),Y(c,"body")),w=x.oldTags,S=x.newTags;S.length&&(v[y]=S,m[y]=w)}}else((title=n.title)||""===title)&&(document.title=title);return{tagsAdded:v,tagsRemoved:m}}function xe(e,t,n){return{set:function(r){return function(e,t,n,r){if(e&&e.$el)return _e(t,n,r);(ve=ve||{})[t]=r}(e,t,n,r)},remove:function(){return function(e,t,n){if(e&&e.$el){var r,o={},l=h(j);try{for(l.s();!(r=l.n()).done;){var c=r.value,f=c.substr(0,4);ye(t,n,c,{},Y(o,f))}}catch(e){l.e(e)}finally{l.f()}return function(e,t){var n=e.attribute;W(G("[".concat(n,'="').concat(t,'"]'))).map((function(e){return e.remove()}))}(n,t)}ve[t]&&(delete ve[t],Se())}(e,t,n)}}}function we(){return ve}function Se(e){!e&&Object.keys(ve).length||(ve=void 0)}function ke(e,t){if(t=t||{},!e._vueMeta)return x("This vue app/component has no vue-meta configuration"),{};var n=function(e,t,n,component){n=n||[];var r=(e=e||{}).tagIDKeyName;return t.title&&(t.titleChunk=t.title),t.titleTemplate&&"%s"!==t.titleTemplate&&se({component:component,contentKeyName:"title"},t,t.titleTemplate,t.titleChunk||""),t.base&&(t.base=Object.keys(t.base).length?[t.base]:[]),t.meta&&(t.meta=t.meta.filter((function(e,t,n){return!e[r]||t===H(n,(function(t){return t[r]===e[r]}))})),t.meta.forEach((function(t){return se(e,t)}))),ae(e,t,n)}(t,ce(t,e),ie,e),r=_e(e._vueMeta.appId,t,n);r&&y(n.changed)&&(n.changed(n,r.tagsAdded,r.tagsRemoved),r={addedTags:r.tagsAdded,removedTags:r.tagsRemoved});var o=we();if(o){for(var l in o)_e(l,t,o[l]),delete o[l];Se(!0)}return{vm:e,metaInfo:n,tags:r}}function Oe(e){e=e||{};var t=this.$root;return{getOptions:function(){return function(e){var t={};for(var n in e)t[n]=e[n];return t}(e)},setOptions:function(n){var r="refreshOnceOnNavigation";n&&n[r]&&(e.refreshOnceOnNavigation=!!n[r],ee(t));var o="debounceWait";if(n&&o in n){var l=parseInt(n.debounceWait);isNaN(l)||(e.debounceWait=l)}var c="waitOnDestroyed";n&&c in n&&(e.waitOnDestroyed=!!n.waitOnDestroyed)},refresh:function(){return ke(t,e)},inject:function(e){return w("inject")},pause:function(){return J(t)},resume:function(){return Q(t)},addApp:function(n){return xe(t,n,e)}}}function Ce(e,t){e.__vuemeta_installed||(e.__vuemeta_installed=!0,t=function(e){return{keyName:(e=v(e)?e:{}).keyName||k,attribute:e.attribute||O,ssrAttribute:e.ssrAttribute||C,tagIDKeyName:e.tagIDKeyName||T,contentKeyName:e.contentKeyName||E,metaTemplateKeyName:e.metaTemplateKeyName||A,debounceWait:d(e.debounceWait)?I:e.debounceWait,waitOnDestroyed:d(e.waitOnDestroyed)?M:e.waitOnDestroyed,ssrAppId:e.ssrAppId||D,refreshOnceOnNavigation:!!e.refreshOnceOnNavigation}}(t),e.prototype.$meta=function(){return Oe.call(this,t)},e.mixin(ne(e,t)))}d(window)||d(window.Vue)||Ce(window.Vue);var Te={version:"2.4.0",install:Ce,generate:function(e,t){return w("generate")},hasMetaInfo:Z};t.a=Te}).call(this,n(52))},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?v((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function c(e,source,t){return e.concat(source).map((function(element){return l(element,t)}))}function h(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(symbol){return e.propertyIsEnumerable(symbol)})):[]}(e))}function f(object,e){try{return e in object}catch(e){return!1}}function d(e,source,t){var n={};return t.isMergeableObject(e)&&h(e).forEach((function(r){n[r]=l(e[r],t)})),h(source).forEach((function(r){(function(e,t){return f(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(f(e,r)&&t.isMergeableObject(source[r])?n[r]=function(e,t){if(!t.customMerge)return v;var n=t.customMerge(e);return"function"==typeof n?n:v}(r,t)(e[r],source[r],t):n[r]=l(source[r],t))})),n}function v(e,source,t){(t=t||{}).arrayMerge=t.arrayMerge||c,t.isMergeableObject=t.isMergeableObject||r,t.cloneUnlessOtherwiseSpecified=l;var n=Array.isArray(source);return n===Array.isArray(e)?n?t.arrayMerge(e,source,t):d(e,source,t):l(source,t)}v.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return v(e,n,t)}),{})};var m=v;e.exports=m},function(e,t,n){"use strict"},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=n(1),a=n(7),s=a.get,l=(a.deepValue,a.isArray),c=function(){function e(t,n){var r=n.location,o=void 0===r?0:r,i=n.distance,a=void 0===i?100:i,l=n.threshold,c=void 0===l?.6:l,h=n.maxPatternLength,u=void 0===h?32:h,f=n.caseSensitive,d=void 0!==f&&f,p=n.tokenSeparator,v=void 0===p?/ +/g:p,g=n.findAllMatches,m=void 0!==g&&g,y=n.minMatchCharLength,_=void 0===y?1:y,b=n.id,x=void 0===b?null:b,w=n.keys,S=void 0===w?[]:w,k=n.shouldSort,O=void 0===k||k,C=n.getFn,T=void 0===C?s:C,E=n.sortFn,A=void 0===E?function(e,t){return e.score-t.score}:E,M=n.tokenize,I=void 0!==M&&M,D=n.matchAllTokens,P=void 0!==D&&D,N=n.includeMatches,L=void 0!==N&&N,j=n.includeScore,R=void 0!==j&&j,F=n.verbose,B=void 0!==F&&F;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:o,distance:a,threshold:c,maxPatternLength:u,isCaseSensitive:d,tokenSeparator:v,findAllMatches:m,minMatchCharLength:_,id:x,keys:S,includeMatches:L,includeScore:R,shouldSort:O,getFn:T,sortFn:A,verbose:B,tokenize:I,matchAllTokens:P},this.setCollection(t),this._processKeys(S)}var t,n,a;return t=e,(n=[{key:"setCollection",value:function(e){return this.list=e,e}},{key:"_processKeys",value:function(e){if(this._keyWeights={},this._keyNames=[],e.length&&"string"==typeof e[0])for(var t=0,n=e.length;t<n;t+=1){var r=e[t];this._keyWeights[r]=1,this._keyNames.push(r)}else{for(var o=null,i=null,a=0,s=0,l=e.length;s<l;s+=1){var c=e[s];if(!c.hasOwnProperty("name"))throw new Error('Missing "name" property in key object');var h=c.name;if(this._keyNames.push(h),!c.hasOwnProperty("weight"))throw new Error('Missing "weight" property in key object');var u=c.weight;if(u<0||u>1)throw new Error('"weight" property in key must bein the range of [0, 1)');i=null==i?u:Math.max(i,u),o=null==o?u:Math.min(o,u),this._keyWeights[h]=u,a+=u}if(a>1)throw new Error("Total of weights cannot exceed 1")}}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(e,'"'));var n=this._prepareSearchers(e),r=n.tokenSearchers,o=n.fullSearcher,i=this._search(r,o);return this._computeScore(i),this.options.shouldSort&&this._sort(i),t.limit&&"number"==typeof t.limit&&(i=i.slice(0,t.limit)),this._format(i)}},{key:"_prepareSearchers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(var n=e.split(this.options.tokenSeparator),r=0,o=n.length;r<o;r+=1)t.push(new i(n[r],this.options));return{tokenSearchers:t,fullSearcher:new i(e,this.options)}}},{key:"_search",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=this.list,r={},o=[];if("string"==typeof n[0]){for(var i=0,a=n.length;i<a;i+=1)this._analyze({key:"",value:n[i],record:i,index:i},{resultMap:r,results:o,tokenSearchers:e,fullSearcher:t});return o}for(var s=0,l=n.length;s<l;s+=1)for(var c=n[s],h=0,u=this._keyNames.length;h<u;h+=1){var f=this._keyNames[h];this._analyze({key:f,value:this.options.getFn(c,f),record:c,index:s},{resultMap:r,results:o,tokenSearchers:e,fullSearcher:t})}return o}},{key:"_analyze",value:function(e,t){var n=this,r=e.key,o=e.arrayIndex,i=void 0===o?-1:o,a=e.value,s=e.record,c=e.index,h=t.tokenSearchers,u=void 0===h?[]:h,f=t.fullSearcher,d=t.resultMap,p=void 0===d?{}:d,v=t.results,g=void 0===v?[]:v;!function e(t,o,i,a){if(null!=o)if("string"==typeof o){var s=!1,c=-1,h=0;n._log("\nKey: ".concat(""===r?"--":r));var d=f.search(o);if(n._log('Full text: "'.concat(o,'", score: ').concat(d.score)),n.options.tokenize){for(var v=o.split(n.options.tokenSeparator),m=v.length,y=[],_=0,b=u.length;_<b;_+=1){var x=u[_];n._log('\nPattern: "'.concat(x.pattern,'"'));for(var w=!1,S=0;S<m;S+=1){var k=v[S],O=x.search(k),C={};O.isMatch?(C[k]=O.score,s=!0,w=!0,y.push(O.score)):(C[k]=1,n.options.matchAllTokens||y.push(1)),n._log('Token: "'.concat(k,'", score: ').concat(C[k]))}w&&(h+=1)}c=y[0];for(var T=y.length,E=1;E<T;E+=1)c+=y[E];c/=T,n._log("Token score average:",c)}var A=d.score;c>-1&&(A=(A+c)/2),n._log("Score average:",A);var M=!n.options.tokenize||!n.options.matchAllTokens||h>=u.length;if(n._log("\nCheck Matches: ".concat(M)),(s||d.isMatch)&&M){var I={key:r,arrayIndex:t,value:o,score:A};n.options.includeMatches&&(I.matchedIndices=d.matchedIndices);var D=p[a];D?D.output.push(I):(p[a]={item:i,output:[I]},g.push(p[a]))}}else if(l(o))for(var P=0,N=o.length;P<N;P+=1)e(P,o[P],i,a)}(i,a,s,c)}},{key:"_computeScore",value:function(e){this._log("\n\nComputing score:\n");for(var t=this._keyWeights,n=!!Object.keys(t).length,r=0,o=e.length;r<o;r+=1){for(var i=e[r],a=i.output,s=a.length,l=1,c=0;c<s;c+=1){var h=a[c],u=h.key,f=n?t[u]:1,d=0===h.score&&t&&t[u]>0?Number.EPSILON:h.score;l*=Math.pow(d,f)}i.score=l,this._log(i)}}},{key:"_sort",value:function(e){this._log("\n\nSorting...."),e.sort(this.options.sortFn)}},{key:"_format",value:function(e){var t=[];if(this.options.verbose){var n=[];this._log("\n\nOutput:\n\n",JSON.stringify(e,(function(e,t){if("object"===r(t)&&null!==t){if(-1!==n.indexOf(t))return;n.push(t)}return t}),2)),n=null}var o=[];this.options.includeMatches&&o.push((function(e,t){var n=e.output;t.matches=[];for(var r=0,o=n.length;r<o;r+=1){var i=n[r];if(0!==i.matchedIndices.length){var a={indices:i.matchedIndices,value:i.value};i.key&&(a.key=i.key),i.hasOwnProperty("arrayIndex")&&i.arrayIndex>-1&&(a.arrayIndex=i.arrayIndex),t.matches.push(a)}}})),this.options.includeScore&&o.push((function(e,t){t.score=e.score}));for(var i=0,a=e.length;i<a;i+=1){var s=e[i];if(this.options.id&&(s.item=this.options.getFn(s.item,this.options.id)[0]),o.length){for(var l={item:s.item},c=0,h=o.length;c<h;c+=1)o[c](s,l);t.push(l)}else t.push(s.item)}return t}},{key:"_log",value:function(){var e;this.options.verbose&&(e=console).log.apply(e,arguments)}}])&&o(t.prototype,n),a&&o(t,a),e}();e.exports=c},function(e,t,n){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(2),i=n(3),a=n(6),s=function(){function e(t,n){var r=n.location,o=void 0===r?0:r,i=n.distance,s=void 0===i?100:i,l=n.threshold,c=void 0===l?.6:l,h=n.maxPatternLength,u=void 0===h?32:h,f=n.isCaseSensitive,d=void 0!==f&&f,p=n.tokenSeparator,v=void 0===p?/ +/g:p,g=n.findAllMatches,m=void 0!==g&&g,y=n.minMatchCharLength,_=void 0===y?1:y,b=n.includeMatches,x=void 0!==b&&b;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:o,distance:s,threshold:c,maxPatternLength:u,isCaseSensitive:d,tokenSeparator:v,findAllMatches:m,includeMatches:x,minMatchCharLength:_},this.pattern=d?t:t.toLowerCase(),this.pattern.length<=u&&(this.patternAlphabet=a(this.pattern))}var t,n,s;return t=e,(n=[{key:"search",value:function(e){var t=this.options,n=t.isCaseSensitive,r=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){var a={isMatch:!0,score:0};return r&&(a.matchedIndices=[[0,e.length-1]]),a}var s=this.options,l=s.maxPatternLength,c=s.tokenSeparator;if(this.pattern.length>l)return o(e,this.pattern,c);var h=this.options,u=h.location,f=h.distance,d=h.threshold,p=h.findAllMatches,v=h.minMatchCharLength;return i(e,this.pattern,this.patternAlphabet,{location:u,distance:f,threshold:d,findAllMatches:p,minMatchCharLength:v,includeMatches:r})}}])&&r(t.prototype,n),s&&r(t,s),e}();e.exports=s},function(e,t){var n=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;e.exports=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,o=new RegExp(t.replace(n,"\\$&").replace(r,"|")),i=e.match(o),a=!!i,s=[];if(a)for(var l=0,c=i.length;l<c;l+=1){var h=i[l];s.push([e.indexOf(h),h.length-1])}return{score:a?.5:1,isMatch:a,matchedIndices:s}}},function(e,t,n){var r=n(4),o=n(5);e.exports=function(e,t,n,i){for(var a=i.location,s=void 0===a?0:a,l=i.distance,c=void 0===l?100:l,h=i.threshold,u=void 0===h?.6:h,f=i.findAllMatches,d=void 0!==f&&f,p=i.minMatchCharLength,v=void 0===p?1:p,g=i.includeMatches,m=void 0!==g&&g,y=s,_=e.length,b=u,x=e.indexOf(t,y),w=t.length,S=[],k=0;k<_;k+=1)S[k]=0;if(-1!==x){var O=r(t,{errors:0,currentLocation:x,expectedLocation:y,distance:c});if(b=Math.min(O,b),-1!==(x=e.lastIndexOf(t,y+w))){var C=r(t,{errors:0,currentLocation:x,expectedLocation:y,distance:c});b=Math.min(C,b)}}x=-1;for(var T=[],E=1,A=w+_,M=1<<(w<=31?w-1:30),I=0;I<w;I+=1){for(var D=0,P=A;D<P;)r(t,{errors:I,currentLocation:y+P,expectedLocation:y,distance:c})<=b?D=P:A=P,P=Math.floor((A-D)/2+D);A=P;var N=Math.max(1,y-P+1),L=d?_:Math.min(y+P,_)+w,j=Array(L+2);j[L+1]=(1<<I)-1;for(var R=L;R>=N;R-=1){var F=R-1,B=n[e.charAt(F)];if(B&&(S[F]=1),j[R]=(j[R+1]<<1|1)&B,0!==I&&(j[R]|=(T[R+1]|T[R])<<1|1|T[R+1]),j[R]&M&&(E=r(t,{errors:I,currentLocation:F,expectedLocation:y,distance:c}))<=b){if(b=E,(x=F)<=y)break;N=Math.max(1,2*y-x)}}if(r(t,{errors:I+1,currentLocation:y,expectedLocation:y,distance:c})>b)break;T=j}var z={isMatch:x>=0,score:0===E?.001:E};return m&&(z.matchedIndices=o(S,v)),z}},function(e,t){e.exports=function(e,t){var n=t.errors,r=void 0===n?0:n,o=t.currentLocation,i=void 0===o?0:o,a=t.expectedLocation,s=void 0===a?0:a,l=t.distance,c=void 0===l?100:l,h=r/e.length,u=Math.abs(s-i);return c?h+u/c:u?1:h}},function(e,t){e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=-1,o=-1,i=0,a=e.length;i<a;i+=1){var s=e[i];s&&-1===r?r=i:s||-1===r||((o=i-1)-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}},function(e,t){e.exports=function(e){for(var t={},n=e.length,r=0;r<n;r+=1)t[e.charAt(r)]=0;for(var o=0;o<n;o+=1)t[e.charAt(o)]|=1<<n-o-1;return t}},function(e,t){var n=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},r=function(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)},o=function(e){return"string"==typeof e},i=function(e){return"number"==typeof e};e.exports={get:function(e,t){var a=[];return function e(t,s){if(s){var l=s.indexOf("."),c=s,h=null;-1!==l&&(c=s.slice(0,l),h=s.slice(l+1));var u=t[c];if(null!=u)if(h||!o(u)&&!i(u))if(n(u))for(var f=0,d=u.length;f<d;f+=1)e(u[f],h);else h&&e(u,h);else a.push(r(u))}else a.push(t)}(e,t),a},isArray:n,isString:o,isNum:i,toString:r}}])},,function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}function o(e,t,n=".",l){if(!r(t))return o(e,{},n,l);const c=Object.assign({},t);for(const t in e){if("__proto__"===t||"constructor"===t)continue;const h=e[t];null!==h&&(l&&l(c,t,h,n)||(Array.isArray(h)&&Array.isArray(c[t])?c[t]=c[t].concat(h):r(h)&&r(c[t])?c[t]=o(h,c[t],(n?`${n}.`:"")+t.toString(),l):c[t]=h))}return c}function l(e){return(...t)=>t.reduce(((p,t)=>o(p,t,"",e)),{})}const c=l();c.fn=l(((e,t,n,r)=>{if(void 0!==e[t]&&"function"==typeof n)return e[t]=n(e[t]),!0})),c.arrayFn=l(((e,t,n,r)=>{if(Array.isArray(e[t])&&"function"==typeof n)return e[t]=n(e[t]),!0})),c.extend=l,t.a=c},function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=39)}([function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){var r=n(22),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(80),i=n(81),l=n(82),a=n(83),s=n(84);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=l,r.prototype.has=a,r.prototype.set=s,e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}var o=n(8);e.exports=r},function(e,t,n){function r(e){return null==e?void 0===e?s:a:u&&u in Object(e)?i(e):l(e)}var o=n(16),i=n(69),l=n(92),a="[object Null]",s="[object Undefined]",u=o?o.toStringTag:void 0;e.exports=r},function(e,t,n){function r(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}var o=n(78);e.exports=r},function(e,t,n){var r=n(11)(Object,"create");e.exports=r},function(e,t){function n(e,t){return e===t||e!=e&&t!=t}e.exports=n},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return o}));var o=function e(t){r(this,e),this.onCreate=function(){},this.onDestroy=function(){},this.onUpdate=function(){},this.overlay=t.overlay,this.img=t.img,this.options=t.options,this.requestUpdate=t.onUpdate}},function(e,t,n){function r(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var o=n(21);e.exports=r},function(e,t,n){function r(e,t){var n=i(e,t);return o(n)?n:void 0}var o=n(53),i=n(70);e.exports=r},function(e,t,n){function r(e){return null!=e&&i(e.length)&&!o(e)}var o=n(13),i=n(30);e.exports=r},function(e,t,n){function r(e){if(!i(e))return!1;var t=o(e);return t==a||t==s||t==l||t==u}var o=n(5),i=n(0),l="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var i=n(11)(n(1),"Map");e.exports=i},function(e,t,n){var r=n(1).Symbol;e.exports=r},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t,n){function r(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||o(e,t,n)}var o=n(10),i=n(8);e.exports=r},function(e,t,n){function r(e,t,n,c,h){e!==t&&l(t,(function(l,u){if(s(l))h||(h=new o),a(e,t,u,n,r,c,h);else{var p=c?c(e[u],l,u+"",e,t,h):void 0;void 0===p&&(p=l),i(e,u,p)}}),u)}var o=n(46),i=n(18),l=n(51),a=n(56),s=n(0),u=n(32);e.exports=r},function(e,t,n){function r(e,t){return l(i(e,t,o),e+"")}var o=n(26),i=n(94),l=n(95);e.exports=r},function(e,t,n){var r=n(11),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(33))},function(e,t,n){var r=n(93)(Object.getPrototypeOf,Object);e.exports=r},function(e,t){function n(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){var r=n(52),o=n(2),i=Object.prototype,l=i.hasOwnProperty,a=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&l.call(e,"callee")&&!a.call(e,"callee")};e.exports=s},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){(function(e){var r=n(1),o=n(107),i="object"==typeof t&&t&&!t.nodeType&&t,l=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=l&&l.exports===i?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c}).call(t,n(14)(e))},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t,n){var r=n(54),o=n(59),i=n(91),l=i&&i.isTypedArray,a=l?o(l):r;e.exports=a},function(e,t,n){function r(e){return l(e)?o(e,!0):i(e)}var o=n(48),i=n(55),l=n(12);e.exports=r},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.a={modules:["DisplaySize","Toolbar","Resize"],overlayStyles:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"},handleStyles:{position:"absolute",height:"12px",width:"12px",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"},displayStyles:{position:"absolute",font:"12px/1.0 Arial, Helvetica, sans-serif",padding:"4px 8px",textAlign:"center",backgroundColor:"white",color:"#333",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80",cursor:"default"},toolbarStyles:{position:"absolute",top:"-12px",right:"0",left:"0",height:"0",minWidth:"100px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"#333",boxSizing:"border-box",cursor:"default"},toolbarButtonStyles:{display:"inline-block",width:"24px",height:"24px",padding:"3px",background:"white",border:"1px solid #999",verticalAlign:"middle"},toolbarButtonSvgStyles:{fill:"#444",stroke:"#444",strokeWidth:"2"}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n(9);n.d(t,"a",(function(){return a}));var a=function(e){function t(){var e,n,i;r(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.onCreate=function(){i.display=document.createElement("div"),Object.assign(i.display.style,i.options.displayStyles),i.overlay.appendChild(i.display)},i.onDestroy=function(){},i.onUpdate=function(){if(i.display&&i.img){var e=i.getCurrentSize();if(i.display.innerHTML=e.join(" &times; "),e[0]>120&&e[1]>30)Object.assign(i.display.style,{right:"4px",bottom:"4px",left:"auto"});else if("right"==i.img.style.float){var t=i.display.getBoundingClientRect();Object.assign(i.display.style,{right:"auto",bottom:"-"+(t.height+4)+"px",left:"-"+(t.width+4)+"px"})}else{var n=i.display.getBoundingClientRect();Object.assign(i.display.style,{right:"-"+(n.width+4)+"px",bottom:"-"+(n.height+4)+"px",left:"auto"})}}},i.getCurrentSize=function(){return[i.img.width,Math.round(i.img.width/i.img.naturalWidth*i.img.naturalHeight)]},o(i,n)}return i(t,e),t}(l.a)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n(9);n.d(t,"a",(function(){return a}));var a=function(e){function t(){var e,n,i;r(this,t);for(var a=arguments.length,u=Array(a),l=0;l<a;l++)u[l]=arguments[l];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),s.call(i),o(i,n)}return i(t,e),t}(l.a),s=function(){var e=this;this.onCreate=function(){e.boxes=[],e.addBox("nwse-resize"),e.addBox("nesw-resize"),e.addBox("nwse-resize"),e.addBox("nesw-resize"),e.positionBoxes()},this.onDestroy=function(){e.setCursor("")},this.positionBoxes=function(){var t=-parseFloat(e.options.handleStyles.width)/2+"px",n=-parseFloat(e.options.handleStyles.height)/2+"px";[{left:t,top:n},{right:t,top:n},{right:t,bottom:n},{left:t,bottom:n}].forEach((function(t,n){Object.assign(e.boxes[n].style,t)}))},this.addBox=function(t){var n=document.createElement("div");Object.assign(n.style,e.options.handleStyles),n.style.cursor=t,n.style.width=e.options.handleStyles.width+"px",n.style.height=e.options.handleStyles.height+"px",n.addEventListener("mousedown",e.handleMousedown,!1),e.overlay.appendChild(n),e.boxes.push(n)},this.handleMousedown=function(t){e.dragBox=t.target,e.dragStartX=t.clientX,e.preDragWidth=e.img.width||e.img.naturalWidth,e.setCursor(e.dragBox.style.cursor),e.throttleDrag=e.throttle(e.handleDrag,100),document.addEventListener("mousemove",e.throttleDrag,!1),document.addEventListener("mouseup",e.handleMouseup,!1)},this.handleMouseup=function(){e.setCursor(""),document.removeEventListener("mousemove",e.throttleDrag),document.removeEventListener("mouseup",e.handleMouseup)},this.throttle=function(e,t){var n=null,r=Date.now();return function(){var o=Date.now(),i=t-(o-r),l=this,a=arguments;clearTimeout(n),i<=0?(e.apply(l,a),r=Date.now()):n=setTimeout((function(){e.apply(l,a)}),i)}},this.handleDrag=function(t){if(e.img){var n=t.clientX-e.dragStartX;e.dragBox===e.boxes[0]||e.dragBox===e.boxes[3]?e.img.width=Math.round(e.preDragWidth-n):e.img.width=Math.round(e.preDragWidth+n),e.requestUpdate()}},this.setCursor=function(t){[document.body,e.img].forEach((function(e){e.style.cursor=t}))}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n(111),a=n.n(l),s=n(110),u=n.n(s),c=n(112),h=n.n(c),p=n(9),f=n(109),d=n.n(f);n.d(t,"a",(function(){return y}));var v=(window.Quill||d.a).imports.parchment,b=new v.Attributor.Style("float","float"),g=new v.Attributor.Style("margin","margin"),m=new v.Attributor.Style("display","display"),y=function(e){function t(){var e,n,i;r(this,t);for(var s=arguments.length,l=Array(s),p=0;p<s;p++)l[p]=arguments[p];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),i.onCreate=function(){i.toolbar=document.createElement("div"),Object.assign(i.toolbar.style,i.options.toolbarStyles),i.overlay.appendChild(i.toolbar),i._defineAlignments(),i._addToolbarButtons()},i.onDestroy=function(){},i.onUpdate=function(){},i._defineAlignments=function(){i.alignments=[{icon:a.a,apply:function(){m.add(i.img,"inline"),b.add(i.img,"left"),g.add(i.img,"0 1em 1em 0")},isApplied:function(){return"left"==b.value(i.img)}},{icon:u.a,apply:function(){m.add(i.img,"block"),b.remove(i.img),g.add(i.img,"auto")},isApplied:function(){return"auto"==g.value(i.img)}},{icon:h.a,apply:function(){m.add(i.img,"inline"),b.add(i.img,"right"),g.add(i.img,"0 0 1em 1em")},isApplied:function(){return"right"==b.value(i.img)}}]},i._addToolbarButtons=function(){var e=[];i.alignments.forEach((function(t,n){var r=document.createElement("span");e.push(r),r.innerHTML=t.icon,r.addEventListener("click",(function(){e.forEach((function(e){return e.style.filter=""})),t.isApplied()?(b.remove(i.img),g.remove(i.img),m.remove(i.img)):(i._selectButton(r),t.apply()),i.requestUpdate()})),Object.assign(r.style,i.options.toolbarButtonStyles),n>0&&(r.style.borderLeftWidth="0"),Object.assign(r.children[0].style,i.options.toolbarButtonSvgStyles),t.isApplied()&&i._selectButton(r),i.toolbar.appendChild(r)}))},i._selectButton=function(e){e.style.filter="invert(20%)"},o(i,n)}return i(t,e),t}(p.a)},function(e,t,n){var r=n(17),o=n(20),i=n(68),l=n(106),a=o((function(e){return e.push(void 0,i),r(l,void 0,e)}));e.exports=a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=n(38),i=n.n(o),l=n(34),a=n(35),s=n(37),u=n(36),c={DisplaySize:a.a,Toolbar:s.a,Resize:u.a},h=function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.initializeModules=function(){n.removeModules(),n.modules=n.moduleClasses.map((function(e){return new(c[e]||e)(n)})),n.modules.forEach((function(e){e.onCreate()})),n.onUpdate()},this.onUpdate=function(){n.repositionElements(),n.modules.forEach((function(e){e.onUpdate()}))},this.removeModules=function(){n.modules.forEach((function(e){e.onDestroy()})),n.modules=[]},this.handleClick=function(e){if(e.target&&e.target.tagName&&"IMG"===e.target.tagName.toUpperCase()){if(n.img===e.target)return;n.img&&n.hide(),n.show(e.target)}else n.img&&n.hide()},this.show=function(e){n.img=e,n.showOverlay(),n.initializeModules()},this.showOverlay=function(){n.overlay&&n.hideOverlay(),n.quill.setSelection(null),n.setUserSelect("none"),document.addEventListener("keyup",n.checkImage,!0),n.quill.root.addEventListener("input",n.checkImage,!0),n.overlay=document.createElement("div"),Object.assign(n.overlay.style,n.options.overlayStyles),n.quill.root.parentNode.appendChild(n.overlay),n.repositionElements()},this.hideOverlay=function(){n.overlay&&(n.quill.root.parentNode.removeChild(n.overlay),n.overlay=void 0,document.removeEventListener("keyup",n.checkImage),n.quill.root.removeEventListener("input",n.checkImage),n.setUserSelect(""))},this.repositionElements=function(){if(n.overlay&&n.img){var e=n.quill.root.parentNode,t=n.img.getBoundingClientRect(),r=e.getBoundingClientRect();Object.assign(n.overlay.style,{left:t.left-r.left-1+e.scrollLeft+"px",top:t.top-r.top+e.scrollTop+"px",width:t.width+"px",height:t.height+"px"})}},this.hide=function(){n.hideOverlay(),n.removeModules(),n.img=void 0},this.setUserSelect=function(e){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach((function(t){n.quill.root.style[t]=e,document.documentElement.style[t]=e}))},this.checkImage=function(e){n.img&&(46!=e.keyCode&&8!=e.keyCode||window.Quill.find(n.img).deleteAt(0),n.hide())},this.quill=t;var a=!1;o.modules&&(a=o.modules.slice()),this.options=i()({},o,l.a),!1!==a&&(this.options.modules=a),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]};t.default=h,window.Quill&&window.Quill.register("modules/imageResize",h)},function(e,t,n){"use strict";function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function o(e){return 3*e.length/4-r(e)}function i(e){var t,n,o,i,l,a,s=e.length;l=r(e),a=new h(3*s/4-l),o=l>0?s-4:s;var u=0;for(t=0,n=0;t<o;t+=4,n+=3)i=c[e.charCodeAt(t)]<<18|c[e.charCodeAt(t+1)]<<12|c[e.charCodeAt(t+2)]<<6|c[e.charCodeAt(t+3)],a[u++]=i>>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===l?(i=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,a[u++]=255&i):1===l&&(i=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}function l(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function a(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16)+(e[i+1]<<8)+e[i+2],o.push(l(r));return o.join("")}function s(e){for(var t,n=e.length,r=n%3,o="",i=[],l=0,s=n-r;l<s;l+=16383)i.push(a(e,l,l+16383>s?s:l+16383));return 1===r?(t=e[n-1],o+=u[t>>2],o+=u[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=u[t>>10],o+=u[t>>4&63],o+=u[t<<2&63],o+="="),i.push(o),i.join("")}t.byteLength=o,t.toByteArray=i,t.fromByteArray=s;for(var u=[],c=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,d=p.length;f<d;++f)u[f]=p[f],c[p.charCodeAt(f)]=f;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(e,t,n){"use strict";(function(e){function r(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(r()<t)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=i.prototype:(null===e&&(e=new i(t)),e.length=t),e}function i(e,t,n){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?p(e,t,n,r):"string"==typeof t?c(e,t,n):f(e,t)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function s(e,t,n,r){return a(t),t<=0?o(e,t):void 0!==n?"string"==typeof r?o(e,t).fill(n,r):o(e,t).fill(n):o(e,t)}function u(e,t){if(a(t),e=o(e,t<0?0:0|d(t)),!i.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function c(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!i.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|m(t,n),l=(e=o(e,r)).write(t,n);return l!==r&&(e=e.slice(0,l)),e}function h(e,t){var n=t.length<0?0:0|d(t.length);e=o(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),i.TYPED_ARRAY_SUPPORT?(e=t).__proto__=i.prototype:e=h(e,t),e}function f(e,t){if(i.isBuffer(t)){var n=0|d(t.length);return 0===(e=o(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||K(t.length)?o(e,0):h(e,t);if("Buffer"===t.type&&J(t.data))return h(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),i.alloc(+e)}function m(e,t){if(i.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return H(e).length;t=(""+t).toLowerCase(),r=!0}}function b(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return q(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=i.from(t,r)),i.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,o);if("number"==typeof t)return t&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,o){function i(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}var u,l=1,a=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;l=2,a/=2,s/=2,n/=2}if(o){var c=-1;for(u=n;u<a;u++)if(i(e,u)===i(t,-1===c?0:u-c)){if(-1===c&&(c=u),u-c+1===s)return c*l}else-1!==c&&(u-=u-c),c=-1}else for(n+s>a&&(n=a-s),u=n;u>=0;u--){for(var h=!0,p=0;p<s;p++)if(i(e,u+p)!==i(t,p)){h=!1;break}if(h)return u}return-1}function x(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var l=0;l<r;++l){var a=parseInt(t.substr(2*l,2),16);if(isNaN(a))return l;e[n+l]=a}return l}function w(e,t,n,r){return Y(H(t,e.length-n),e,n,r)}function S(e,t,n,r){return Y(W(t),e,n,r)}function k(e,t,n,r){return S(e,t,n,r)}function O(e,t,n,r){return Y(G(t),e,n,r)}function C(e,t,n,r){return Y(U(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?X.fromByteArray(e):X.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var s,u,l,c,i=e[o],h=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=n)switch(a){case 1:i<128&&(h=i);break;case 2:128==(192&(s=e[o+1]))&&(c=(31&i)<<6|63&s)>127&&(h=c);break;case 3:s=e[o+1],u=e[o+2],128==(192&s)&&128==(192&u)&&(c=(15&i)<<12|(63&s)<<6|63&u)>2047&&(c<55296||c>57343)&&(h=c);break;case 4:s=e[o+1],u=e[o+2],l=e[o+3],128==(192&s)&&128==(192&u)&&128==(192&l)&&(c=(15&i)<<18|(63&s)<<12|(63&u)<<6|63&l)>65535&&c<1114112&&(h=c)}null===h?(h=65533,a=1):h>65535&&(h-=65536,r.push(h>>>10&1023|55296),h=56320|1023&h),r.push(h),o+=a}return A(r)}function A(e){var t=e.length;if(t<=Q)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Q));return n}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function q(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=V(e[i]);return o}function D(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,o,l){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<l)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function R(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return o||R(e,t,n,4,34028234663852886e22,-34028234663852886e22),Z.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return o||R(e,t,n,8,17976931348623157e292,-17976931348623157e292),Z.write(e,t,n,r,52,8),n+8}function z(e){if((e=$(e).replace(ee,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function $(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function V(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],l=0;l<r;++l){if((n=e.charCodeAt(l))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(l+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function W(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function U(e,t){for(var n,r,o,i=[],l=0;l<e.length&&!((t-=2)<0);++l)r=(n=e.charCodeAt(l))>>8,o=n%256,i.push(o),i.push(r);return i}function G(e){return X.toByteArray(z(e))}function Y(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function K(e){return e!=e}var X=n(40),Z=n(42),J=n(43);t.Buffer=i,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=r(),i.poolSize=8192,i._augment=function(e){return e.__proto__=i.prototype,e},i.from=function(e,t,n){return l(null,e,t,n)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(e,t,n){return s(null,e,t,n)},i.allocUnsafe=function(e){return u(null,e)},i.allocUnsafeSlow=function(e){return u(null,e)},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,l=Math.min(n,r);o<l;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,t){if(!J(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return i.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=i.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var l=e[n];if(!i.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(r,o),o+=l.length}return r},i.byteLength=m,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},i.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},i.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},i.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):b.apply(this,arguments)},i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===i.compare(this,e)},i.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},i.prototype.compare=function(e,t,n,r,o){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var l=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(l,a),u=this.slice(r,o),c=e.slice(t,n),h=0;h<s;++h)if(u[h]!==c[h]){l=u[h],a=c[h];break}return l<a?-1:a<l?1:0},i.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},i.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},i.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},i.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;i.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),i.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=i.prototype;else{var o=t-e;n=new i(o,void 0);for(var l=0;l<o;++l)n[l]=this[l+e]}return n},i.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},i.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},i.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},i.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),Z.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),Z.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),Z.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),Z.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},i.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},i.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},i.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},i.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},i.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},i.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},i.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);N(this,e,t,n,o-1,-o)}var i=0,l=1,a=0;for(this[t]=255&e;++i<n&&(l*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/l>>0)-a&255;return t+n},i.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);N(this,e,t,n,o-1,-o)}var i=n-1,l=1,a=0;for(this[t+i]=255&e;--i>=0&&(l*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/l>>0)-a&255;return t+n},i.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},i.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},i.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},i.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},i.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},i.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,l=r-n;if(this===e&&n<t&&t<r)for(o=l-1;o>=0;--o)e[o+t]=this[o+n];else if(l<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<l;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+l),t);return l},i.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!i.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var l;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(l=t;l<n;++l)this[l]=e;else{var a=i.isBuffer(e)?e:H(new i(e,r).toString()),s=a.length;for(l=0;l<n-t;++l)this[l+t]=a[l%s]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(t,n(33))},function(e,t){t.read=function(e,t,n,r,o){var i,l,a=8*o-r-1,s=(1<<a)-1,u=s>>1,c=-7,h=n?o-1:0,p=n?-1:1,f=e[t+h];for(h+=p,i=f&(1<<-c)-1,f>>=-c,c+=a;c>0;i=256*i+e[t+h],h+=p,c-=8);for(l=i&(1<<-c)-1,i>>=-c,c+=r;c>0;l=256*l+e[t+h],h+=p,c-=8);if(0===i)i=1-u;else{if(i===s)return l?NaN:1/0*(f?-1:1);l+=Math.pow(2,r),i-=u}return(f?-1:1)*l*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var l,a,s,u=8*i-o-1,c=(1<<u)-1,h=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,d=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||1/0===t?(a=isNaN(t)?1:0,l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-l))<1&&(l--,s*=2),(t+=l+h>=1?p/s:p*Math.pow(2,1-h))*s>=2&&(l++,s/=2),l+h>=c?(a=0,l=c):l+h>=1?(a=(t*s-1)*Math.pow(2,o),l+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,o),l=0));o>=8;e[n+f]=255&a,f+=d,a/=256,o-=8);for(l=l<<o|a,u+=o;u>0;e[n+f]=255&l,f+=d,l/=256,u-=8);e[n+f-d]|=128*v}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(71),i=n(72),l=n(73),a=n(74),s=n(75);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=l,r.prototype.has=a,r.prototype.set=s,e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(85),i=n(86),l=n(87),a=n(88),s=n(89);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=l,r.prototype.has=a,r.prototype.set=s,e.exports=r},function(e,t,n){function r(e){var t=this.__data__=new o(e);this.size=t.size}var o=n(3),i=n(97),l=n(98),a=n(99),s=n(100),u=n(101);r.prototype.clear=i,r.prototype.delete=l,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t,n){var r=n(1).Uint8Array;e.exports=r},function(e,t,n){function r(e,t){var n=l(e),r=!n&&i(e),h=!n&&!r&&a(e),p=!n&&!r&&!h&&u(e),f=n||r||h||p,d=f?o(e.length,String):[],v=d.length;for(var m in e)!t&&!c.call(e,m)||f&&("length"==m||h&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||d.push(m);return d}var o=n(58),i=n(27),l=n(28),a=n(29),s=n(24),u=n(31),c=Object.prototype.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t,n){var r=e[t];a.call(e,t)&&i(r,n)&&(void 0!==n||t in e)||o(e,t,n)}var o=n(10),i=n(8),a=Object.prototype.hasOwnProperty;e.exports=r},function(e,t,n){var r=n(0),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(67)();e.exports=r},function(e,t,n){function r(e){return i(e)&&o(e)==l}var o=n(5),i=n(2),l="[object Arguments]";e.exports=r},function(e,t,n){function r(e){return!(!l(e)||i(e))&&(o(e)?f:s).test(a(e))}var o=n(13),i=n(79),l=n(0),a=n(102),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,h=u.toString,p=c.hasOwnProperty,f=RegExp("^"+h.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){function r(e){return l(e)&&i(e.length)&&!!a[o(e)]}var o=n(5),i=n(30),l=n(2),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=r},function(e,t,n){function r(e){if(!o(e))return l(e);var t=i(e),n=[];for(var r in e)("constructor"!=r||!t&&s.call(e,r))&&n.push(r);return n}var o=n(0),i=n(25),l=n(90),s=Object.prototype.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t,n,r,g,y,_){var x=e[n],w=t[n],S=_.get(w);if(S)o(e,n,S);else{var k=y?y(x,w,n+"",e,t,_):void 0,O=void 0===k;if(O){var C=c(w),T=!C&&p(w),E=!C&&!T&&m(w);k=w,C||T||E?c(x)?k=x:h(x)?k=a(x):T?(O=!1,k=i(w,!0)):E?(O=!1,k=l(w,!0)):k=[]:v(w)||u(w)?(k=x,u(x)?k=b(x):(!d(x)||r&&f(x))&&(k=s(w))):O=!1}O&&(_.set(w,k),g(k,w,r,y,_),_.delete(w)),o(e,n,k)}}var o=n(18),i=n(61),l=n(62),a=n(63),s=n(76),u=n(27),c=n(28),h=n(104),p=n(29),f=n(13),d=n(0),v=n(105),m=n(31),b=n(108);e.exports=r},function(e,t,n){var r=n(103),o=n(21),i=n(26),l=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=l},function(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){function r(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}var o=n(47);e.exports=r},function(e,t,n){(function(e){function r(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}var o=n(1),i="object"==typeof t&&t&&!t.nodeType&&t,l=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=l&&l.exports===i?o.Buffer:void 0,u=s?s.allocUnsafe:void 0;e.exports=r}).call(t,n(14)(e))},function(e,t,n){function r(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var o=n(60);e.exports=r},function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=n},function(e,t,n){function r(e,t,n,r){var l=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),l?i(n,u,c):o(n,u,c)}return n}var o=n(49),i=n(10);e.exports=r},function(e,t,n){var r=n(1)["__core-js_shared__"];e.exports=r},function(e,t,n){function r(e){return o((function(t,n){var r=-1,o=n.length,l=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(l=e.length>3&&"function"==typeof l?(o--,l):void 0,a&&i(n[0],n[1],a)&&(l=o<3?void 0:l,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,l)}return t}))}var o=n(20),i=n(77);e.exports=r},function(e,t){function n(e){return function(t,n,r){for(var o=-1,i=Object(t),l=r(t),a=l.length;a--;){var s=l[e?a:++o];if(!1===n(i[s],s,i))break}return t}}e.exports=n},function(e,t,n){function r(e,t,n,l,a,s){return i(e)&&i(t)&&(s.set(t,e),o(e,t,void 0,r,s),s.delete(t)),e}var o=n(19),i=n(0);e.exports=r},function(e,t,n){function r(e){var t=l.call(e,s),n=e[s];try{e[s]=void 0}catch(e){}var r=a.call(e);return t?e[s]=n:delete e[s],r}var o=n(16),i=Object.prototype,l=i.hasOwnProperty,a=i.toString,s=o?o.toStringTag:void 0;e.exports=r},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t,n){function r(){this.__data__=o?o(null):{},this.size=0}var o=n(7);e.exports=r},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function r(e){var t=this.__data__;if(o){var n=t[e];return n===i?void 0:n}return a.call(t,e)?t[e]:void 0}var o=n(7),i="__lodash_hash_undefined__",a=Object.prototype.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){var t=this.__data__;return o?void 0!==t[e]:l.call(t,e)}var o=n(7),l=Object.prototype.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?i:t,this}var o=n(7),i="__lodash_hash_undefined__";e.exports=r},function(e,t,n){function r(e){return"function"!=typeof e.constructor||l(e)?{}:o(i(e))}var o=n(50),i=n(23),l=n(25);e.exports=r},function(e,t,n){function r(e,t,n){if(!a(n))return!1;var r=typeof t;return!!("number"==r?i(n)&&l(t,n.length):"string"==r&&t in n)&&o(n[t],e)}var o=n(8),i=n(12),l=n(24),a=n(0);e.exports=r},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function r(e){return!!i&&i in e}var o=n(65),i=function(){var e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return!(n<0||(n==t.length-1?t.pop():l.call(t,n,1),--this.size,0))}var o=n(4),l=Array.prototype.splice;e.exports=r},function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}var o=n(4);e.exports=r},function(e,t,n){function r(e){return o(this.__data__,e)>-1}var o=n(4);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var o=n(4);e.exports=r},function(e,t,n){function r(){this.size=0,this.__data__={hash:new o,map:new(l||i),string:new o}}var o=n(44),i=n(3),l=n(15);e.exports=r},function(e,t,n){function r(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}var o=n(6);e.exports=r},function(e,t,n){function r(e){return o(this,e).get(e)}var o=n(6);e.exports=r},function(e,t,n){function r(e){return o(this,e).has(e)}var o=n(6);e.exports=r},function(e,t,n){function r(e,t){var n=o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var o=n(6);e.exports=r},function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},function(e,t,n){(function(e){var r=n(22),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(t,n(14)(e))},function(e,t){function n(e){return r.call(e)}var r=Object.prototype.toString;e.exports=n},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){function r(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var r=arguments,l=-1,a=i(r.length-t,0),s=Array(a);++l<a;)s[l]=r[t+l];l=-1;for(var u=Array(t+1);++l<t;)u[l]=r[l];return u[t]=n(s),o(e,this,u)}}var o=n(17),i=Math.max;e.exports=r},function(e,t,n){var r=n(57),i=n(96)(r);e.exports=i},function(e,t){function n(e){var t=0,n=0;return function(){var l=i(),a=o-(l-n);if(n=l,a>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,o=16,i=Date.now;e.exports=n},function(e,t,n){function r(){this.__data__=new o,this.size=0}var o=n(3);e.exports=r},function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new l(r)}return n.set(e,t),this.size=n.size,this}var o=n(3),i=n(15),l=n(45),a=200;e.exports=r},function(e,t){function n(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype.toString;e.exports=n},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t,n){function r(e){return i(e)&&o(e)}var o=n(12),i=n(2);e.exports=r},function(e,t,n){function r(e){if(!l(e)||o(e)!=a)return!1;var t=i(e);if(null===t)return!0;var n=h.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==p}var o=n(5),i=n(23),l=n(2),a="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,h=u.hasOwnProperty,p=c.call(Object);e.exports=r},function(e,t,n){var r=n(19),i=n(66)((function(e,t,n,o){r(e,t,n,o)}));e.exports=i},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){function r(e){return o(e,i(e))}var o=n(64),i=n(32);e.exports=r},function(e,t,n){(function(t){!function(t,n){e.exports=n()}(0,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=136)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),o=n(22),i=n(23),l=n(59),a=n(58),s=n(56),u=n(57),c=n(60),h=n(13),p=n(31),f=n(33),d=n(32),v=n(1),m={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:h.default,Class:p.default,Style:f.default,Store:d.default}};t.default=m},function(e,t,n){"use strict";function r(e,t){var n=i(e);if(null==n)throw new s("Unable to create "+e+" blot");return new n(e instanceof Node?e:n.create(t),t)}function o(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?o(e.parentNode,n):null}function i(e,t){var n;if(void 0===t&&(t=c.ANY),"string"==typeof e)n=p[e]||u[e];else if(e instanceof Text)n=p.text;else if("number"==typeof e)e&c.LEVEL&c.BLOCK?n=p.block:e&c.LEVEL&c.INLINE&&(n=p.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=h[r[o]])break;n=n||f[e.tagName]}return null==n?null:t&c.LEVEL&n.scope&&t&c.TYPE&n.scope?n:null}function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return l(e)}));var n=e[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new s("Invalid definition");if("abstract"===n.blotName)throw new s("Cannot register abstract class");return p[n.blotName||n.attrName]=n,"string"==typeof n.keyName?u[n.keyName]=n:(null!=n.className&&(h[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach((function(e){null!=f[e]&&null!=n.className||(f[e]=n)})))),n}var a=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return a(t,e),t}(Error);t.ParchmentError=s;var c,u={},h={},f={},p={};t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(c=t.Scope||(t.Scope={})),t.create=r,t.find=o,t.query=i,t.register=l},function(e,t,n){var r=n(54),o=n(11),i=n(3),l=n(20),a=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.length=function(){return this.reduce((function(e,t){return e+l.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=l.iterator(this.ops),o=0;o<t&&r.hasNext();){var i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=l.length(i)}return new s(n)},s.prototype.compose=function(e){for(var t=l.iterator(this.ops),n=l.iterator(e.ops),r=new s;t.hasNext()||n.hasNext();)if("insert"===n.peekType())r.push(n.next());else if("delete"===t.peekType())r.push(t.next());else{var o=Math.min(t.peekLength(),n.peekLength()),i=t.next(o),a=n.next(o);if("number"==typeof a.retain){var u={};"number"==typeof i.retain?u.retain=o:u.insert=i.insert;var c=l.attributes.compose(i.attributes,a.attributes,"number"==typeof i.retain);c&&(u.attributes=c),r.push(u)}else"number"==typeof a.delete&&"number"==typeof i.retain&&r.push(a)}return r.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,u=r(n[0],n[1],t),c=l.iterator(this.ops),h=l.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(h.peekLength(),t),i.push(h.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),h.peekLength(),t);var a=c.next(n),s=h.next(n);o(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=l.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,a)-a:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&e(r,{},o)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=l.iterator(this.ops),r=l.iterator(e.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),a=n.next(i),u=r.next(i);if(a.delete)continue;u.delete?o.push(u):o.retain(i,l.attributes.transform(a.attributes,u.attributes,t))}else o.retain(l.length(n.next()));return o.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=l.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=s},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},i=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var i,t=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!o)return!1;for(i in e);return void 0===i||n.call(e,i)};e.exports=function e(){var t,n,r,l,a,s,u=arguments[0],c=1,h=arguments.length,p=!1;for("boolean"==typeof u?(p=u,u=arguments[1]||{},c=2):("object"!=typeof u&&"function"!=typeof u||null==u)&&(u={});c<h;++c)if(null!=(t=arguments[c]))for(n in t)r=u[n],u!==(l=t[n])&&(p&&l&&(i(l)||(a=o(l)))?(a?(a=!1,s=r&&o(r)?r:[]):s=r&&i(r)?r:{},u[n]=e(p,s,l)):void 0!==l&&(u[n]=l));return u}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,c.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:a(e.parent,t))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},c=r(n(3)),h=r(n(2)),f=r(n(0)),b=r(n(17)),d=r(n(7)),v=r(n(8)),m=r(n(12)),y=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"attach",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new f.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new h.default).insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=f.default.query(e,f.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"==typeof n&&n.endsWith("\n")){var o=f.default.create(_.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,n.slice(0,-1))}else u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(d.default);y.scope=f.default.Scope.BLOCK_BLOT;var _=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return l(t,e),s(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(f.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),a(t))}),new h.default).insert("\n",a(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,o){n<=0||(f.default.query(r,f.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,o):u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,o),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var o=n.split("\n"),i=o.shift();i.length>0&&(e<this.length()-1||null==this.children.tail?u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});var l=this;o.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+i.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof b.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this),this.cache={}}},{key:"path",value:function(e){return u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(f.default.Block);_.blotName="block",_.tagName="P",_.defaultChild="break",_.allowedChildren=[v.default,d.default,m.default],t.bubbleFormats=a,t.BlockEmbed=y,t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},c=r(n(53)),h=(0,r(n(10)).default)("quill:events"),f=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.on("error",h.error),e}return l(t,e),a(t,[{key:"emit",value:function(){h.log.apply(h,arguments),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}}]),t}(c.default);f.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},f.sources={API:"api",SILENT:"silent",USER:"user"},t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if((t=(0,x.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==q.DEFAULTS.theme){if(t.theme=q.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=S.default;var n=(0,x.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=q.import("modules/"+t);return null==n?k.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,x.default)(!0,{},q.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function a(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===g.default.sources.USER)return new f.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=u(o,l,t):0!==r&&(o=u(o,n,r,t)),this.setSelection(o,g.default.sources.SILENT)),l.length()>0){var a,c,s=[g.default.events.TEXT_CHANGE,l,i,t];(a=this.emitter).emit.apply(a,[g.default.events.EDITOR_CHANGE].concat(s)),t!==g.default.sources.SILENT&&(c=this.emitter).emit.apply(c,s)}return l}function s(e,t,n,r,o){var i={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(o=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(o=r,r=n,n=t,t=0),"object"===(void 0===n?"undefined":c(n))?(i=n,o=r):"string"==typeof n&&(null!=r?i[n]=r:o=n),[e,t,i,o=o||g.default.sources.API]}function u(e,t,n,r){if(null==e)return null;var o=void 0,i=void 0;if(t instanceof f.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r===g.default.sources.USER)})),a=h(l,2);o=a[0],i=a[1]}else{var s=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r!==g.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),u=h(s,2);o=u[0],i=u[1]}return new y.Range(o,i-o)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(43);var f=r(n(2)),d=r(n(14)),g=r(n(5)),v=r(n(9)),m=r(n(0)),y=n(15),_=r(y),x=r(n(3)),w=r(n(10)),S=r(n(29)),k=(0,w.default)("quill"),q=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,e),this.options=l(t,r),this.container=this.options.container,null==this.container)return k.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new g.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,scrollingContainer:this.scrollingContainer,whitelist:this.options.formats}),this.editor=new d.default(this.scroll),this.selection=new _.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(g.default.events.EDITOR_CHANGE,(function(e){e===g.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(g.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;a.call(n,(function(){return n.editor.update(null,t,o)}),e)}));var s=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(s),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return p(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),w.default.level(e)}},{key:"find",value:function(e){return e.__quill||m.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&k.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||k.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?m.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),p(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=s(e,t,n),i=h(o,4);return e=i[0],t=i[1],n=i[3],a.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.selection.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.default.sources.API;return a.call(this,(function(){var r=n.getSelection(!0),i=new f.default;if(null==r)return i;if(m.default.query(e,m.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,o({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,o({},e,t))}return n.setSelection(r,g.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var i=this,l=void 0,u=s(e,t,n,r,o),c=h(u,4);return e=c[0],t=c[1],l=c[2],o=c[3],a.call(this,(function(){return i.editor.formatLine(e,t,l)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var i=this,l=void 0,u=s(e,t,n,r,o),c=h(u,4);return e=c[0],t=c[1],l=c[2],o=c[3],a.call(this,(function(){return i.editor.formatText(e,t,l)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=s(e,t),r=h(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=s(e,t),r=h(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return a.call(this,(function(){return o.editor.insertEmbed(t,n,r)}),i,t)}},{key:"insertText",value:function(e,t,n,r,o){var i=this,l=void 0,u=s(e,0,n,r,o),c=h(u,4);return e=c[0],l=c[2],o=c[3],a.call(this,(function(){return i.editor.insertText(e,t,l)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=s(e,t,n),i=h(o,4);return e=i[0],t=i[1],n=i[3],a.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,(function(){e=new f.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=s(t,n,r),i=h(o,4);t=i[0],n=i[1],r=i[3],this.selection.setRange(new y.Range(t,n),r)}r!==g.default.sources.SILENT&&this.selection.scrollIntoView()}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API,n=(new f.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,(function(){return e=new f.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();q.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},q.events=g.default.events,q.sources=g.default.sources,q.version="1.2.3",q.imports={delta:f.default,parchment:m.default,"core/module":v.default,"core/theme":S.default},t.expandConfig=l,t.overload=s,t.default=q},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}(a.default.Embed);t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},c=r(n(7)),p=r(n(12)),h=r(n(0)),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),a(t,[{key:"formatAt",value:function(e,n,r,o){if(t.compare(this.statics.blotName,r)<0&&h.default.query(r,h.default.Scope.BLOT)){var i=this.isolate(e,n);o&&i.wrap(r,o)}else s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o)}},{key:"optimize",value:function(){if(s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(h.default.Inline);f.allowedChildren=[f,c.default,p.default],f.order=["cursor","inline","code","underline","strike","italic","bold","script","link"],t.default=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};o.DEFAULTS={},t.default=o},function(e,t,n){"use strict";function r(e){if(i.indexOf(e)<=i.indexOf(l)){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console[e].apply(console,n)}}function o(e){return i.reduce((function(t,n){return t[n]=r.bind(console,n,e),t}),{})}Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],l="warn";r.level=o.level=function(e){l=e},t.default=o},function(e,t,n){function r(e){return null==e}function o(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}function i(e,t,n){var i,c;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(s(e))return!!s(t)&&(e=l.call(e),t=l.call(t),u(e,t,n));if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}try{var h=a(e),p=a(t)}catch(e){return!1}if(h.length!=p.length)return!1;for(h.sort(),p.sort(),i=h.length-1;i>=0;i--)if(h[i]!=p[i])return!1;for(i=h.length-1;i>=0;i--)if(c=h[i],!u(e[c],t[c],n))return!1;return typeof e==typeof t}var l=Array.prototype.slice,a=n(52),s=n(51),u=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:i(e,t,n))}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}(a.default.Text);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||this.whitelist.indexOf(t)>-1)},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)?t:""},e}();t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}function a(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,y.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,y.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new p.default)}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=r(n(2)),h=r(n(20)),f=r(n(0)),g=r(n(16)),d=r(n(25)),v=n(4),m=r(v),y=r(n(19)),_=r(n(11)),x=r(n(3)),w=function(){function e(t){i(this,e),this.scroll=t,this.delta=this.getDelta()}return c(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batch=!0,(e=a(e)).reduce((function(e,o){var i=o.retain||o.delete||o.insert.length||1,l=o.attributes||{};if(null!=o.insert){if("string"==typeof o.insert){var a=o.insert;a.endsWith("\n")&&n&&(n=!1,a=a.slice(0,-1)),e>=r&&!a.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,a);var c=t.scroll.line(e),d=u(c,2),p=d[0],y=d[1],_=(0,x.default)({},(0,v.bubbleFormats)(p));if(p instanceof m.default){var b=p.descendant(f.default.Leaf,y),w=u(b,1)[0];_=(0,x.default)(_,(0,v.bubbleFormats)(w))}l=h.default.attributes.diff(_,l)||{}}else if("object"===s(o.insert)){var S=Object.keys(o.insert)[0];if(null==S)return e;t.scroll.insertAt(e,S,o.insert[S])}r+=i}return Object.keys(l).forEach((function(n){t.scroll.formatAt(e,i,n,l[n])})),e+i}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batch=!1,this.scroll.optimize(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new p.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),l=t;i.forEach((function(t){var i=t.length();if(t instanceof g.default){var a=e-t.offset(n.scroll),s=t.newlineIndex(a+l)-a+1;t.formatAt(a,s,o,r[o])}else t.format(o,r[o]);l-=i}))}})),this.scroll.optimize(),this.update((new p.default).retain(e).retain(t,(0,y.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])})),this.update((new p.default).retain(e).retain(t,(0,y.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new p.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=u(e,1)[0];t instanceof m.default?n.push(t):t instanceof f.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(f.default.Leaf,e,t));var o=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,v.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=l((0,v.bubbleFormats)(n),t)}return t}));return x.default.apply(x.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new p.default).retain(e).insert(o({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t.length,o,r[o])})),this.update((new p.default).retain(e).insert(t,(0,y.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.length()<=1&&0==Object.keys(e.formats()).length}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),o=u(r,2),i=o[0],l=o[1],a=0,s=new p.default;null!=i&&(a=i instanceof g.default?i.newlineIndex(l)-l+1:i.length()-l,s=i.delta().slice(l,l+a-1).insert("\n"));var c=this.getContents(e,t+a).diff((new p.default).insert(n).concat(s)),h=(new p.default).retain(e).concat(c);return this.applyDelta(h)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&f.default.find(t[0].target)){var o=f.default.find(t[0].target),i=(0,v.bubbleFormats)(o),l=o.offset(this.scroll),a=t[0].oldValue.replace(d.default.CONTENTS,""),s=(new p.default).insert(a),u=(new p.default).insert(o.value());e=(new p.default).retain(l).concat(s.diff(u,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new p.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,_.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=r(n(0)),p=r(n(19)),h=r(n(11)),f=r(n(5)),d=(0,r(n(10)).default)("quill:selection"),v=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(this,e),this.index=t,this.length=n},m=function(){function e(t,n){var r=this;i(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.root=this.scroll.domNode,this.root.addEventListener("compositionstart",(function(){r.composing=!0})),this.root.addEventListener("compositionend",(function(){r.composing=!1})),this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new v(0,0),["keyup","mouseup","mouseleave","touchend","touchleave","focus","blur"].forEach((function(e){r.root.addEventListener(e,(function(){setTimeout(r.update.bind(r,f.default.sources.USER),100)}))})),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(e,t){e===f.default.events.TEXT_CHANGE&&t.length()>0&&r.update(f.default.sources.SILENT)})),this.emitter.on(f.default.events.SCROLL_BEFORE_UPDATE,(function(){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(f.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))})),this.update(f.default.sources.SILENT)}return s(e,[{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!c.default.query(e,c.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=c.default.find(n.start.node,!1);if(null==r)return;if(r instanceof c.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,o=this.scroll.leaf(e),i=a(o,2),l=i[0],s=i[1];if(null==l)return null;var u=l.position(s,!0),c=a(u,2);r=c[0],s=c[1];var h=document.createRange();if(t>0){h.setStart(r,s);var p=this.scroll.leaf(e+t),f=a(p,2);if(l=f[0],s=f[1],null==l)return null;var d=l.position(s,!0),v=a(d,2);return r=v[0],s=v[1],h.setEnd(r,s),h.getBoundingClientRect()}var m="left",b=void 0;return r instanceof Text?(s<r.data.length?(h.setStart(r,s),h.setEnd(r,s+1)):(h.setStart(r,s-1),h.setEnd(r,s),m="right"),b=h.getBoundingClientRect()):(b=l.domNode.getBoundingClientRect(),s>0&&(m="right")),{bottom:b.top+b.height,height:b.height,left:b[m],right:b[m],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;if(!l(this.root,t.startContainer)||!t.collapsed&&!l(this.root,t.endContainer))return null;var n={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[n.start,n.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this,t=this.getNativeRange();if(null==t)return[null,null];var n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var r=n.map((function(t){var n=a(t,2),r=n[0],o=n[1],i=c.default.find(r,!0),l=i.offset(e.scroll);return 0===o?l:i instanceof c.default.Container?l+i.length():l+i.index(r,o)})),i=Math.min.apply(Math,o(r)),l=Math.max.apply(Math,o(r));return l=Math.min(l,this.scroll.length()-1),[new v(i,l-i),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"scrollIntoView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastRange;if(null!=e){var t=this.getBounds(e.index,e.length);if(null!=t){var n=this.scroll.length()-1,r=this.scroll.line(Math.min(e.index,n)),i=a(r,1)[0],o=i;if(e.length>0){var s=this.scroll.line(Math.min(e.index+e.length,n));o=a(s,1)[0]}if(null!=i&&null!=o){var u=this.scroll.scrollingContainer,l=u.getBoundingClientRect();t.top<l.top?u.scrollTop-=l.top-t.top:t.bottom>l.bottom&&(u.scrollTop+=t.bottom-l.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||o||e!==l.startContainer||t!==l.startOffset||n!==l.endContainer||r!==l.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(e,t),a.setEnd(n,r),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"==typeof n&&(r=n,n=!1),d.info("setRange",e),null!=e){var i=e.collapsed?[e.index]:[e.index,e.index+e.length],l=[],s=this.scroll.length();i.forEach((function(e,n){e=Math.min(s-1,e);var r=void 0,o=t.scroll.leaf(e),i=a(o,2),u=i[0],c=i[1],h=u.position(c,0!==n),p=a(h,2);r=p[0],c=p[1],l.push(r,c)})),l.length<2&&(l=l.concat(l)),this.setNativeRange.apply(this,o(l).concat([n]))}else this.setNativeRange(null);this.update(r)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,t=this.lastRange,n=this.getRange(),r=a(n,2),o=r[0],i=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,h.default)(t,this.lastRange)){var l;!this.composing&&null!=i&&i.native.collapsed&&i.start.node!==this.cursor.textNode&&this.cursor.restore();var u,s=[f.default.events.SELECTION_CHANGE,(0,p.default)(this.lastRange),(0,p.default)(t),e];(l=this.emitter).emit.apply(l,[f.default.events.EDITOR_CHANGE].concat(s)),e!==f.default.sources.SILENT&&(u=this.emitter).emit.apply(u,s)}}}]),e}();t.Range=v,t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},c=r(n(2)),h=r(n(0)),f=r(n(4)),b=r(n(8)),d=r(n(12)),v=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(b.default);v.blotName="code",v.tagName="CODE";var m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new c.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(d.default,this.length()-1),i=a(r,1)[0];null!=i&&i.deleteAt(i.length()-1,1),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,o){if(0!==n&&null!=h.default.query(r,h.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var l=this.newlineIndex(e,!0)+1,a=i-l+1,s=this.isolate(l,a),u=s.next;s.format(r,o),u instanceof t&&u.formatAt(0,e-l+n-a,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(d.default,e),o=a(r,2),i=o[0],l=o[1];i.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(){this.domNode.textContent.endsWith("\n")||this.appendChild(h.default.create("text","\n")),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this);var e=this.next;null!=e&&e.prev===this&&e.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===e.statics.formats(e.domNode)&&(e.optimize(),e.moveChildren(this),e.remove())}},{key:"replace",value:function(e){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=h.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof h.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=u(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(f.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=v,t.default=m},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},u=function(e){return e&&e.__esModule?e:{default:e}}(n(7)),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"insertInto",value:function(e,n){0===e.children.length?a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(u.default);c.blotName="break",c.tagName="BR",t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){return e instanceof d.default||e instanceof f.BlockEmbed}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},p=r(n(0)),h=r(n(5)),f=n(4),d=r(f),g=r(n(17)),v=r(n(24)),m=r(n(16)),y=function(e){function t(e,n){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,r.scrollingContainer=n.scrollingContainer,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.optimize(),r.enable(),r}return l(t,e),u(t,[{key:"deleteAt",value:function(e,n){var r=this.line(e),o=s(r,2),i=o[0],l=o[1],a=this.line(e+n),h=s(a,1)[0];if(c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=h&&i!==h&&l>0&&!(i instanceof f.BlockEmbed)&&!(h instanceof f.BlockEmbed)){h instanceof m.default&&h.deleteAt(h.length()-1,1);var p=h.children.head instanceof g.default?null:h.children.head;i.moveChildren(h,p),i.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==p.default.query(n,p.default.Scope.BLOCK)){var o=p.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var i=p.default.create(n,r);this.appendChild(i)}else c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===p.default.Scope.INLINE_BLOT){var r=p.default.create(this.statics.defaultChild);r.appendChild(e),e=r}c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(a,e)}},{key:"lines",value:function(){return function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,(function(t,n,r){a(t)?o.push(t):t instanceof p.default.Container&&(o=o.concat(e(t,n,i))),i-=r})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!0!==this.batch&&(c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),e.length>0&&this.emitter.emit(h.default.events.SCROLL_OPTIMIZE,e))}},{key:"path",value:function(e){return c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=h.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(h.default.events.SCROLL_BEFORE_UPDATE,n,e),c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(h.default.events.SCROLL_UPDATE,n,e)}}}]),t}(p.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[d.default,f.BlockEmbed,v.default],t.default=y},function(e,n){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}function n(r,o,i,l,h){function p(r,i){if(null===r)return null;if(0===i)return r;var m,b;if("object"!=typeof r)return r;if(e(r,s))m=new s;else if(e(r,u))m=new u;else if(e(r,c))m=new c((function(e,t){r.then((function(t){e(p(t,i-1))}),(function(e){t(p(e,i-1))}))}));else if(n.__isArray(r))m=[];else if(n.__isRegExp(r))m=new RegExp(r.source,a(r)),r.lastIndex&&(m.lastIndex=r.lastIndex);else if(n.__isDate(r))m=new Date(r.getTime());else{if(v&&t.isBuffer(r))return m=new t(r.length),r.copy(m),m;e(r,Error)?m=Object.create(r):void 0===l?(b=Object.getPrototypeOf(r),m=Object.create(b)):(m=Object.create(l),b=l)}if(o){var g=f.indexOf(r);if(-1!=g)return d[g];f.push(r),d.push(m)}for(var y in e(r,s)&&r.forEach((function(e,t){var n=p(t,i-1),r=p(e,i-1);m.set(n,r)})),e(r,u)&&r.forEach((function(e){var t=p(e,i-1);m.add(t)})),r){var _;b&&(_=Object.getOwnPropertyDescriptor(b,y)),_&&null==_.set||(m[y]=p(r[y],i-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(r);for(y=0;y<x.length;y++){var w=x[y];(!(k=Object.getOwnPropertyDescriptor(r,w))||k.enumerable||h)&&(m[w]=p(r[w],i-1),k.enumerable||Object.defineProperty(m,w,{enumerable:!1}))}}if(h){var S=Object.getOwnPropertyNames(r);for(y=0;y<S.length;y++){var k,O=S[y];(k=Object.getOwnPropertyDescriptor(r,O))&&k.enumerable||(m[O]=p(r[O],i-1),Object.defineProperty(m,O,{enumerable:!1}))}}return m}"object"==typeof o&&(i=o.depth,l=o.prototype,h=o.includeNonEnumerable,o=o.circular);var f=[],d=[],v=void 0!==t;return void 0===o&&(o=!0),void 0===i&&(i=1/0),p(r,i)}function r(e){return Object.prototype.toString.call(e)}function o(e){return"object"==typeof e&&"[object Date]"===r(e)}function i(e){return"object"==typeof e&&"[object Array]"===r(e)}function l(e){return"object"==typeof e&&"[object RegExp]"===r(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}var s,u,c;try{s=Map}catch(e){s=function(){}}try{u=Set}catch(e){u=function(){}}try{c=Promise}catch(e){c=function(){}}return n.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},n.__objToStr=r,n.__isDate=o,n.__isArray=i,n.__isRegExp=l,n.__getRegExpFlags=a,n}();"object"==typeof e&&e.exports&&(e.exports=r)},function(e,t,n){function r(e){this.ops=e,this.index=0,this.offset=0}var o=n(11),i=n(3),l={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new r(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=l.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},e.exports=l},function(e,t,n){"use strict";function r(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(61),l=n(34),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){var t=this;e.prototype.attach.call(this),this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=r(e);t.insertBefore(n,t.children.head)}catch(e){if(e instanceof a.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],i=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,(function(n,r,l){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,i))),i-=l})),o},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],i=r[1];if(o)o.insertAt(i,t,n);else{var l=null==n?a.create("text",t):a.create(t,n);this.appendChild(l)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(){if(e.prototype.optimize.call(this),0===this.children.length)if(null!=this.statics.defaultChild){var t=a.create(this.statics.defaultChild);this.appendChild(t),t.optimize()}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],i=r[1],l=[[this,e]];return o instanceof t?l.concat(o.path(i,n)):(null!=o&&l.push([o,i]),l)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,o){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e){var t=this,n=[],o=[];e.forEach((function(e){e.target===t.domNode&&"childList"===e.type&&(n.push.apply(n,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var n=a.find(e);null!=n&&(null!=n.domNode.parentNode&&n.domNode.parentNode!==t.domNode||n.detach())}})),n.filter((function(e){return e.parentNode==t.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var n=null;null!=e.nextSibling&&(n=a.find(e.nextSibling));var o=r(e);o.next==n&&null!=o.next||(null!=o.parent&&o.parent.removeChild(t),t.insertBefore(o,n))}))},t}(l.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(13),i=n(32),l=n(21),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.attach=function(){e.prototype.attach.call(this),this.attributes=new i.default(this.domNode)},t.prototype.format=function(e,t){var n=a.query(e);n instanceof o.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t){var n=this;e.prototype.update.call(this,t),t.some((function(e){return e.target===n.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(l.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(34),i=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return e!==this.domNode?-1:Math.min(t,1)},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e;var e},t}(o.default);l.scope=i.Scope.INLINE_BLOT,t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=r(n(0)),u=n(4),c=r(u),h=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(s.default.Container);h.allowedChildren=[c.default,u.BlockEmbed,h],t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=r(n(0)),h=r(n(7)),f=r(n(12)),b=r(n(5)),g=function(e){function t(e,n){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return l(t,e),u(t,null,[{key:"value",value:function(){}}]),u(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,o=0;null!=r&&r.statics.scope!==c.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(o,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){var e=this;if(!this.selection.composing&&null!=this.parent){var n=this.textNode,r=this.selection.getNativeRange(),o=void 0,i=void 0,l=void 0;if(null!=r&&r.start.node===n&&r.end.node===n){var s=[n,r.start.offset,r.end.offset];o=s[0],i=s[1],l=s[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof f.default?(o=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(c.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}this.remove(),null!=i&&this.selection.emitter.once(b.default.events.SCROLL_OPTIMIZE,(function(){var t=[i,l].map((function(e){return Math.max(0,Math.min(o.data.length,e-1))})),n=a(t,2);i=n[0],l=n[1],e.selection.setNativeRange(o,i,o,l)}))}}},{key:"update",value:function(e){var t=this;e.forEach((function(e){"characterData"===e.type&&e.target===t.textNode&&t.restore()}))}},{key:"value",value:function(){return""}}]),t}(h.default);g.blotName="cursor",g.className="ql-cursor",g.tagName="span",g.CONTENTS="\ufeff",t.default=g},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},u=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"value",value:function(e){var n=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):n}}]),t}(u.default.Attributor.Style),h=new u.default.Attributor.Class("color","ql-color",{scope:u.default.Scope.INLINE}),p=new c("color","color",{scope:u.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=h,t.ColorStyle=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},c=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=s(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return l(e,["http","https","mailto"])?e:this.SANITIZED_URL}}]),t}(c.default);h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",t.default=h,t.sanitize=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e){return e&&e.__esModule?e:{default:e}}(n(88)),s=function(){function e(t){var n=this;r(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.container.classList.toggle("ql-expanded")})),this.select.addEventListener("change",this.update.bind(this))}return i(e,[{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),n.hasAttribute("selected")&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"close",value:function(){this.container.classList.remove("ql-expanded")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n){r(this,e),this.quill=t,this.options=n,this.modules={}}return o(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=v(n,1)[0],i={};if(0===t.offset){var o=r.formats(),a=this.quill.getFormat(e.index-1,1);i=x.default.attributes.diff(o,a)||{}}var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-s,s,S.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-s,s,i,S.default.sources.USER),this.quill.selection.scrollIntoView()}}function s(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;e.index>=this.quill.getLength()-n||this.quill.deleteText(e.index,n,S.default.sources.USER)}function u(e){this.quill.deleteText(e,S.default.sources.USER),this.quill.setSelection(e.index,S.default.sources.SILENT),this.quill.selection.scrollIntoView()}function c(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return w.default.query(n,w.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,S.default.sources.USER),this.quill.setSelection(e.index+1,S.default.sources.SILENT),this.quill.selection.scrollIntoView(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],S.default.sources.USER))}))}function h(e){return{key:T.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=w.default.query("code-block"),r=t.index,o=t.length,i=this.quill.scroll.descendant(n,r),l=v(i,2),a=l[0],s=l[1];if(null!=a){var u=this.quill.getIndex(a),c=a.newlineIndex(s,!0)+1,h=a.newlineIndex(u+s+o),p=a.domNode.textContent.slice(c,h).split("\n");s=0,p.forEach((function(t,i){e?(a.insertAt(c+s,n.TAB),s+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(a.deleteAt(c+s,n.TAB.length),s-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),s+=t.length+1})),this.quill.update(S.default.sources.USER),this.quill.setSelection(r,o,S.default.sources.SILENT)}}}}function p(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],S.default.sources.USER)}}}function f(e){if("string"==typeof e||"number"==typeof e)return f({key:e});if("object"===(void 0===e?"undefined":d(e))&&(e=(0,g.default)(e,!1)),"string"==typeof e.key)if(null!=T.keys[e.key.toUpperCase()])e.key=T.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[C]=e.shortKey,delete e.shortKey),e}Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=r(n(19)),y=r(n(11)),_=r(n(3)),x=r(n(20)),w=r(n(0)),S=r(n(6)),k=r(n(10)),q=r(n(9)),O=(0,k.default)("quill:keyboard"),C=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",T=function(e){function t(e,n){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},c),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},a),r.addBinding({key:t.keys.DELETE},{collapsed:!0},s)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},a),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},s)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},u),r.addBinding({key:t.keys.DELETE},{collapsed:!1},u),r.addBinding({key:t.keys.BACKSPACE},{empty:!0,shortKey:!0},a),r.listen(),r}return l(t,e),m(t,null,[{key:"match",value:function(e,t){return t=f(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),m(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=f(e);if(null==r||null==r.key)return O.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,_.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,o=(e.bindings[r]||[]).filter((function(e){return t.match(n,e)}));if(0!==o.length){var i=e.quill.getSelection();if(null!=i&&e.quill.hasFocus()){var l=e.quill.getLine(i.index),a=v(l,2),s=a[0],u=a[1],c=e.quill.getLeaf(i.index),h=v(c,2),p=h[0],f=h[1],m=0===i.length?[p,f]:e.quill.getLeaf(i.index+i.length),b=v(m,2),g=b[0],_=b[1],x=p instanceof w.default.Text?p.value().slice(0,f):"",S=g instanceof w.default.Text?g.value().slice(_):"",k={collapsed:0===i.length,empty:0===i.length&&s.length()<=1,format:e.quill.getFormat(i),offset:u,prefix:x,suffix:S};o.some((function(t){if(null!=t.collapsed&&t.collapsed!==k.collapsed)return!1;if(null!=t.empty&&t.empty!==k.empty)return!1;if(null!=t.offset&&t.offset!==k.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==k.format[e]})))return!1}else if("object"===d(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=k.format[e]:!1===t.format[e]?null==k.format[e]:(0,y.default)(t.format[e],k.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(k.prefix)||null!=t.suffix&&!t.suffix.test(k.suffix)||!0===t.handler.call(e,i,k))}))&&n.preventDefault()}}}}))}}]),t}(q.default);T.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},T.DEFAULTS={bindings:{bold:p("bold"),italic:p("italic"),underline:p("underline"),indent:{key:T.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",S.default.sources.USER)}},outdent:{key:T.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",S.default.sources.USER)}},"outdent backspace":{key:T.keys.BACKSPACE,collapsed:!0,format:["blockquote","indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",S.default.sources.USER):null!=t.format.blockquote?this.quill.format("blockquote",!1,S.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,S.default.sources.USER)}},"indent code-block":h(!0),"outdent code-block":h(!1),"remove tab":{key:T.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,S.default.sources.USER)}},tab:{key:T.keys.TAB,handler:function(e,t){t.collapsed||this.quill.scroll.deleteAt(e.index,e.length),this.quill.insertText(e.index,"\t",S.default.sources.USER),this.quill.setSelection(e.index+1,S.default.sources.SILENT)}},"list empty enter":{key:T.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,S.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,S.default.sources.USER)}},"checklist enter":{key:T.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){this.quill.scroll.insertAt(e.index,"\n");var t=this.quill.getLine(e.index+1);v(t,1)[0].format("list","unchecked"),this.quill.update(S.default.sources.USER),this.quill.setSelection(e.index+1,S.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"header enter":{key:T.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e){this.quill.scroll.insertAt(e.index,"\n"),this.quill.formatText(e.index+1,1,"header",!1,S.default.sources.USER),this.quill.setSelection(e.index+1,S.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(1\.|-|\[ \]|\[x\])$/,handler:function(e,t){if(null!=this.quill.scroll.whitelist&&!this.quill.scroll.whitelist.list)return!0;var n=t.prefix.length,r=void 0;switch(t.prefix.trim()){case"[ ]":r="unchecked";break;case"[x]":r="checked";break;case"-":r="bullet";break;default:r="ordered"}this.quill.scroll.deleteAt(e.index-n,n),this.quill.formatLine(e.index-n,1,"list",r,S.default.sources.USER),this.quill.setSelection(e.index-n,S.default.sources.SILENT)}},"code exit":{key:T.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){this.quill.format("code-block",!1,S.default.sources.USER),this.quill.deleteText(e.index-2,1,S.default.sources.USER)}}}},t.default=T,t.SHORTKEY=C},function(e,t,n){"use strict";function r(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){r(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(r(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(13).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13),o=n(31),i=n(33),l=n(1),a=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),a=i.default.keys(this.domNode);t.concat(n).concat(a).forEach((function(t){var n=l.query(t,l.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=a},function(e,t,n){"use strict";function r(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[r(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[r(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[r(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(13).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.attach()}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){this.domNode[r.DATA_KEY]={blot:this}},e.prototype.clone=function(){var e=this.domNode.cloneNode();return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var l=r.create(this.statics.scope);i.wrap(l),l.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){if(null!=this.parent&&this.parent.children.remove(this),e.children.insertBefore(this,t),null!=t)var n=t.domNode;null!=this.next&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,void 0!==n?n:null),this.parent=e},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e){void 0===e&&(e=[])},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e}();o.blotName="abstract",t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=r(n(0)),a=r(n(6)),s=n(4),u=r(s),o=r(n(17)),l=r(n(24)),c=r(n(25)),b=r(n(7)),h=r(n(8)),f=r(n(18)),d=r(n(12)),v=r(n(45)),m=r(n(42)),y=r(n(30));a.default.register({"blots/block":u.default,"blots/block/embed":s.BlockEmbed,"blots/break":o.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":b.default,"blots/inline":h.default,"blots/scroll":f.default,"blots/text":d.default,"modules/clipboard":v.default,"modules/history":m.default,"modules/keyboard":y.default}),i.default.register(u.default,o.default,c.default,h.default,f.default,d.default),e.exports=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},o=new r.default.Attributor.Attribute("align","align",i),a=new r.default.Attributor.Class("align","ql-align",i),s=new r.default.Attributor.Style("align","text-align",i);t.AlignAttribute=o,t.AlignClass=a,t.AlignStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(26),o=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),a=new i.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});t.BackgroundClass=o,t.BackgroundStyle=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},o=new r.default.Attributor.Attribute("direction","dir",i),a=new r.default.Attributor.Class("direction","ql-direction",i),s=new r.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=o,t.DirectionClass=a,t.DirectionStyle=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},u=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),c={scope:u.default.Scope.INLINE,whitelist:["serif","monospace"]},h=new u.default.Attributor.Class("font","ql-font",c),p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"value",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(u.default.Attributor.Style),f=new p("font","font-family",c);t.FontStyle=f,t.FontClass=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=new r.default.Attributor.Class("size","ql-size",{scope:r.default.Scope.INLINE,whitelist:["small","large","huge"]}),o=new r.default.Attributor.Style("size","font-size",{scope:r.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=o},function(e,t,n){"use strict";e.exports={align:{"":n(79),center:n(77),right:n(80),justify:n(78)},background:n(81),blockquote:n(82),bold:n(83),clean:n(84),code:n(55),"code-block":n(55),color:n(85),direction:{"":n(86),rtl:n(87)},float:{center:n(89),full:n(90),left:n(91),right:n(92)},formula:n(93),header:{1:n(95),2:n(94)},italic:n(98),image:n(96),indent:{"+1":n(97),"-1":n(103)},link:n(99),list:{ordered:n(102),bullet:n(100),check:n(101)},script:{sub:n(105),super:n(106)},strike:n(104),underline:n(107),video:n(108)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=c.default.query(e,c.default.Scope.BLOCK)})))}function s(e){var t=e.reduce((function(e,t){return e+(t.delete||0)}),0),n=e.length()-t;return a(e)&&(n-=1),n}Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=r(n(0)),h=r(n(6)),f=function(e){function t(e,n){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(h.default.events.EDITOR_CHANGE,(function(e,t,n,o){e!==h.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==h.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return l(t,e),u(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],h.default.sources.USER),this.ignoreChange=!1;var r=s(n[e]);this.quill.setSelection(r),this.quill.selection.scrollIntoView(),this.stack[t].push(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(r(n(9)).default);f.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=f,t.getLastChangeIndex=s},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1)}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},u=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"optimize",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(u.default);c.blotName="bold",c.tagName=["STRONG","B"],t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){return e.nodeType!==Node.ELEMENT_NODE?{}:e["__ql-computed-style"]||(e["__ql-computed-style"]=window.getComputedStyle(e))}function c(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function h(e){if(0===e.childNodes.length)return!1;var t=u(e);return["block","list-item"].indexOf(t.display)>-1}function p(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new k.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,o){var i=p(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[j]||[]).reduce((function(e,t){return t(o,e)}),i)),r.concat(i)}),new k.default):new k.default}function f(e,t,n){return n.compose((new k.default).retain(n.length(),o({},e,!0)))}function d(e,t){var n=O.default.Attributor.Attribute.keys(e),r=O.default.Attributor.Class.keys(e),o=O.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach((function(t){var n=O.default.query(t,O.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null!=F[t]&&(n=F[t],i[n.attrName]=n.value(e)||void 0),null!=B[t]&&(n=B[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=t.compose((new k.default).retain(t.length(),i))),t}function v(e,t){var n=O.default.query(e);if(null==n)return t;if(n.prototype instanceof O.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new k.default).insert(r,n.formats(e)))}else if("function"==typeof n.formats){var l=o({},n.blotName,n.formats(e));t=t.compose((new k.default).retain(t.length(),l))}return t}function m(e,t){return c(t,"\n")||t.insert("\n"),t}function b(){return new k.default}function g(e,t){return h(e)&&!c(t,"\n")&&t.insert("\n"),t}function y(e,t){if(h(e)&&null!=e.nextElementSibling&&!c(t,"\n\n")){var n=e.offsetHeight+parseFloat(u(e).marginTop)+parseFloat(u(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function _(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===u(e).fontStyle&&(n.italic=!0),r.fontWeight&&"bold"===u(e).fontWeight&&(n.bold=!0),Object.keys(n).length>0&&(t=t.compose((new k.default).retain(t.length(),n))),parseFloat(r.textIndent||0)>0&&(t=(new k.default).insert("\t").concat(t)),t}function x(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(!u(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&h(e.parentNode)||null!=e.previousSibling&&h(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&h(e.parentNode)||null!=e.nextSibling&&h(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var w=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=r(n(2)),O=r(n(0)),C=r(n(6)),T=r(n(10)),E=r(n(9)),A=n(36),M=n(37),I=n(26),D=n(38),P=n(39),N=n(40),L=(0,T.default)("quill:clipboard"),j="__ql-matcher",R=[[Node.TEXT_NODE,x],["br",m],[Node.ELEMENT_NODE,g],[Node.ELEMENT_NODE,v],[Node.ELEMENT_NODE,y],[Node.ELEMENT_NODE,d],[Node.ELEMENT_NODE,_],["b",f.bind(f,"bold")],["i",f.bind(f,"italic")],["style",b]],F=[A.AlignAttribute,D.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),B=[A.AlignStyle,M.BackgroundStyle,I.ColorStyle,D.DirectionStyle,P.FontStyle,N.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),z=function(e){function t(e,n){l(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],R.concat(r.options.matchers).forEach((function(e){r.addMatcher.apply(r,i(e))})),r}return s(t,e),S(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){"string"==typeof e&&(this.container.innerHTML=e);var t=this.prepareMatching(),n=w(t,2),r=n[0],o=n[1],i=p(this.container,r,o);return c(i,"\n")&&null==i.ops[i.ops.length-1].attributes&&(i=i.compose((new k.default).retain(i.length()-1).delete(1))),L.log("convert",this.container.innerHTML,i),this.container.innerHTML="",i}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C.default.sources.API;if("string"==typeof e)return this.quill.setContents(this.convert(e),t);var r=this.convert(t);return this.quill.updateContents((new k.default).retain(e).concat(r),n)}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new k.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),setTimeout((function(){t.quill.selection.update(C.default.sources.SILENT),r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,C.default.sources.USER),t.quill.setSelection(r.length()-n.length,C.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.selection.scrollIntoView()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var o=w(r,2),i=o[0],l=o[1];switch(i){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(i),(function(e){e[j]=e[j]||[],e[j].push(l)}))}})),[t,n]}}]),t}(E.default);z.DEFAULTS={matchers:[]},t.default=z,t.matchAttributor=d,t.matchBlot=v,t.matchNewline=g,t.matchSpacing=y,t.matchText=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function u(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)s(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?c(n,t,r):s(n,t,r)}})),e.appendChild(n)}))}function c(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var h=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=r(n(2)),d=r(n(0)),g=r(n(6)),v=r(n(10)),m=r(n(9)),y=(0,v.default)("quill:toolbar"),_=function(e){function t(e,n){i(this,t);var a,r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(r.options.container)){var o=document.createElement("div");u(o,r.options.container),e.container.parentNode.insertBefore(o,e.container),r.container=o}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;return r.container instanceof HTMLElement?(r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach((function(e){r.addHandler(e,r.options.handlers[e])})),[].forEach.call(r.container.querySelectorAll("button, select"),(function(e){r.attach(e)})),r.quill.on(g.default.events.EDITOR_CHANGE,(function(e,t){e===g.default.events.SELECTION_CHANGE&&r.update(t)})),r.quill.on(g.default.events.SCROLL_OPTIMIZE,(function(){var e=r.quill.selection.getRange(),t=h(e,1)[0];r.update(t)})),r):(a=y.error("Container required for toolbar",r.options),l(r,a))}return a(t,e),p(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void y.warn("ignoring attaching to disabled format",n,e);if(null==d.default.query(n))return void y.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var i=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var l=e.options[e.selectedIndex];i=!l.hasAttribute("selected")&&(l.value||!1)}else i=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var a=t.quill.selection.getRange(),u=h(a,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,i);else if(d.default.query(n).prototype instanceof d.default.Embed){if(!(i=prompt("Enter "+n)))return;t.quill.updateContents((new f.default).retain(u.index).delete(u.length).insert(o({},n,i)),g.default.sources.USER)}else t.quill.format(n,i,g.default.sources.USER);t.update(u)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=h(n,2),o=r[0],i=r[1];if("SELECT"===i.tagName){var l=void 0;if(null==e)l=null;else if(null==t[o])l=i.querySelector("option[selected]");else if(!Array.isArray(t[o])){var a=t[o];"string"==typeof a&&(a=a.replace(/\"/g,'\\"')),l=i.querySelector('option[value="'+a+'"]')}null==l?(i.value="",i.selectedIndex=-1):l.selected=!0}else if(null==e)i.classList.remove("ql-active");else if(i.hasAttribute("value")){var s=t[o]===i.getAttribute("value")||null!=t[o]&&t[o].toString()===i.getAttribute("value")||null==t[o]&&!i.getAttribute("value");i.classList.toggle("ql-active",s)}else i.classList.toggle("ql-active",null!=t[o])}))}}]),t}(m.default);_.DEFAULTS={},_.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=d.default.query(t,d.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,g.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",g.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,g.default.sources.USER),this.quill.format("direction",e,g.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,g.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,g.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,g.default.sources.USER):this.quill.format("list","unchecked",g.default.sources.USER):this.quill.format("list",e,g.default.sources.USER)}}},t.default=_,t.addControls=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},c=r(n(3)),h=r(n(2)),f=r(n(5)),b=r(n(30)),d=r(n(29)),v=r(n(48)),m=r(n(49)),y=r(n(28)),_=r(n(50)),x=[!1,"center","right","justify"],w=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],S=[!1,"serif","monospace"],k=["1","2","3",!1],q=["small",!1,"large","huge"],O=function(e){function t(e,n){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),l=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return document.body.addEventListener("click",l),r}return l(t,e),s(t,[{key:"addModule",value:function(e){var n=u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&a(e,x),new m.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&a(e,w,"background"===n?"#ffffff":"#000000"),new v.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?a(e,S):e.classList.contains("ql-header")?a(e,k):e.classList.contains("ql-size")&&a(e,q)),new y.default(e)}));var r=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(f.default.events.SELECTION_CHANGE,r).on(f.default.events.SCROLL_OPTIMIZE,r)}}]),t}(d.default);O.DEFAULTS=(0,c.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon, image/svg+xml"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new h.default).retain(r.index).delete(r.length).insert({image:n.target.result}),f.default.sources.USER),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var C=function(e){function t(e,n){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return l(t,e),s(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){b.default.match(t,"enter")?(e.save(),t.preventDefault()):b.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,f.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,f.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":var n=e.match(/^(https?):\/\/(www\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(https?):\/\/(www\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);n?e=n[1]+"://www.youtube.com/embed/"+n[3]+"?showinfo=0":(n=e.match(/^(https?):\/\/(www\.)?vimeo\.com\/(\d+)/))&&(e=n[1]+"://player.vimeo.com/video/"+n[3]+"/");case"formula":if(!e)break;var r=this.quill.getSelection(!0),o=r.index+r.length;null!=r&&(this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,f.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",f.default.sources.USER),this.quill.setSelection(o+2,f.default.sources.USER))}this.textbox.value="",this.hide()}}]),t}(_.default);t.BaseTooltip=C,t.default=O},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},u=function(e){return e&&e.__esModule?e:{default:e}}(n(28)),c=function(e){function t(e,n){r(this,t);var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.label.innerHTML=n,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),i}return i(t,e),l(t,[{key:"buildItem",value:function(e){var n=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(u.default);t.default=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},u=function(e){return e&&e.__esModule?e:{default:e}}(n(28)),c=function(e){function t(e,n){r(this,t);var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return i(t,e),l(t,[{key:"selectItem",value:function(e,n){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(u.default);t.default=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n){var o=this;r(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"})),this.hide()}return o(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=t+i+"px"),o.bottom>r.bottom){var l=o.bottom-o.top,a=e.bottom-e.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();(t=e.exports=o?n:r).supported=n,t.unsupported=r},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){"use strict";function n(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(){this._events=new n,this._eventsCount=0}var i=Object.prototype.hasOwnProperty,l="~";Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(l=!1)),o.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)i.call(e,t)&&n.push(l?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},o.prototype.listeners=function(e,t){var n=l?l+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},o.prototype.emit=function(e,t,n,r,o,i){var a=l?l+e:e;if(!this._events[a])return!1;var s,u,c=this._events[a],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,o),!0;case 6:return c.fn.call(c.context,t,n,r,o,i),!0}for(u=1,s=new Array(h-1);u<h;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var p,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),h){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!s)for(p=1,s=new Array(h-1);p<h;p++)s[p-1]=arguments[p];c[u].fn.apply(c[u].context,s)}}return!0},o.prototype.on=function(e,t,n){var o=new r(t,n||this),i=l?l+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},o.prototype.once=function(e,t,n){var o=new r(t,n||this,!0),i=l?l+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},o.prototype.removeListener=function(e,t,r,o){var i=l?l+e:e;if(!this._events[i])return this;if(!t)return 0==--this._eventsCount?this._events=new n:delete this._events[i],this;var a=this._events[i];if(a.fn)a.fn!==t||o&&!a.once||r&&a.context!==r||(0==--this._eventsCount?this._events=new n:delete this._events[i]);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==t||o&&!a[s].once||r&&a[s].context!==r)&&u.push(a[s]);u.length?this._events[i]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new n:delete this._events[i]}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=l?l+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new n:delete this._events[t])):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=l,o.EventEmitter=o,void 0!==e&&(e.exports=o)},function(e,t){function n(e,t,n){if(e==t)return e?[[v,e]]:[];(n<0||e.length<n)&&(n=null);var o=l(e,t),i=e.substring(0,o);o=a(e=e.substring(o),t=t.substring(o));var s=e.substring(e.length-o),c=r(e=e.substring(0,e.length-o),t=t.substring(0,t.length-o));return i&&c.unshift([v,i]),s&&c.push([v,s]),u(c),null!=n&&(c=h(c,n)),c}function r(e,t){var r;if(!e)return[[d,t]];if(!t)return[[f,e]];var i=e.length>t.length?e:t,l=e.length>t.length?t:e,a=i.indexOf(l);if(-1!=a)return r=[[d,i.substring(0,a)],[v,l],[d,i.substring(a+l.length)]],e.length>t.length&&(r[0][0]=r[2][0]=f),r;if(1==l.length)return[[f,e],[d,t]];var u=s(e,t);if(u){var c=u[0],h=u[1],p=u[2],m=u[3],b=u[4],g=n(c,p),y=n(h,m);return g.concat([[v,b]],y)}return o(e,t)}function o(e,t){for(var n=e.length,r=t.length,o=Math.ceil((n+r)/2),l=o,a=2*o,s=new Array(a),u=new Array(a),c=0;c<a;c++)s[c]=-1,u[c]=-1;s[l+1]=0,u[l+1]=0;for(var h=n-r,p=h%2!=0,v=0,m=0,b=0,g=0,y=0;y<o;y++){for(var _=-y+v;_<=y-m;_+=2){for(var x=l+_,w=(T=_==-y||_!=y&&s[x-1]<s[x+1]?s[x+1]:s[x-1]+1)-_;T<n&&w<r&&e.charAt(T)==t.charAt(w);)T++,w++;if(s[x]=T,T>n)m+=2;else if(w>r)v+=2;else if(p&&(O=l+h-_)>=0&&O<a&&-1!=u[O]&&T>=(k=n-u[O]))return i(e,t,T,w)}for(var S=-y+b;S<=y-g;S+=2){for(var k,O=l+S,C=(k=S==-y||S!=y&&u[O-1]<u[O+1]?u[O+1]:u[O-1]+1)-S;k<n&&C<r&&e.charAt(n-k-1)==t.charAt(r-C-1);)k++,C++;if(u[O]=k,k>n)g+=2;else if(C>r)b+=2;else if(!p){var T;if((x=l+h-S)>=0&&x<a&&-1!=s[x]&&(w=l+(T=s[x])-x,T>=(k=n-k)))return i(e,t,T,w)}}}return[[f,e],[d,t]]}function i(e,t,r,o){var i=e.substring(0,r),l=t.substring(0,o),a=e.substring(r),s=t.substring(o),u=n(i,l),c=n(a,s);return u.concat(c)}function l(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function a(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function s(e,t){function n(e,t,n){for(var r,o,i,s,u=e.substring(n,n+Math.floor(e.length/4)),c=-1,h="";-1!=(c=t.indexOf(u,c+1));){var p=l(e.substring(n),t.substring(c)),f=a(e.substring(0,n),t.substring(0,c));h.length<f+p&&(h=t.substring(c-f,c)+t.substring(c,c+p),r=e.substring(0,n-f),o=e.substring(n+p),i=t.substring(0,c-f),s=t.substring(c+p))}return 2*h.length>=e.length?[r,o,i,s,h]:null}var r=e.length>t.length?e:t,o=e.length>t.length?t:e;if(r.length<4||2*o.length<r.length)return null;var i,c,h,p,f,s=n(r,o,Math.ceil(r.length/4)),u=n(r,o,Math.ceil(r.length/2));return s||u?(i=u?s&&s[4].length>u[4].length?s:u:s,e.length>t.length?(c=i[0],h=i[1],p=i[2],f=i[3]):(p=i[0],f=i[1],c=i[2],h=i[3]),[c,h,p,f,i[4]]):null}function u(e){e.push([v,""]);for(var t,n=0,r=0,o=0,i="",s="";n<e.length;)switch(e[n][0]){case d:o++,s+=e[n][1],n++;break;case f:r++,i+=e[n][1],n++;break;case v:r+o>1?(0!==r&&0!==o&&(0!==(t=l(s,i))&&(n-r-o>0&&e[n-r-o-1][0]==v?e[n-r-o-1][1]+=s.substring(0,t):(e.splice(0,0,[v,s.substring(0,t)]),n++),s=s.substring(t),i=i.substring(t)),0!==(t=a(s,i))&&(e[n][1]=s.substring(s.length-t)+e[n][1],s=s.substring(0,s.length-t),i=i.substring(0,i.length-t))),0===r?e.splice(n-o,r+o,[d,s]):0===o?e.splice(n-r,r+o,[f,i]):e.splice(n-r-o,r+o,[f,i],[d,s]),n=n-r-o+(r?1:0)+(o?1:0)+1):0!==n&&e[n-1][0]==v?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,o=0,r=0,i="",s=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(n=1;n<e.length-1;)e[n-1][0]==v&&e[n+1][0]==v&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),c=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),c=!0)),n++;c&&u(e)}function c(e,t){if(0===t)return[v,e];for(var n=0,r=0;r<e.length;r++){var o=e[r];if(o[0]===f||o[0]===v){var i=n+o[1].length;if(t===i)return[r+1,e];if(t<i){e=e.slice();var l=t-n,a=[o[0],o[1].slice(0,l)],s=[o[0],o[1].slice(l)];return e.splice(r,1,a,s),[r+1,e]}n=i}}throw new Error("cursor_pos is out of bounds!")}function h(e,t){var n=c(e,t),r=n[1],o=n[0],i=r[o],l=r[o+1];if(null==i)return e;if(i[0]!==v)return e;if(null!=l&&i[1]+l[1]===l[1]+i[1])return r.splice(o,2,l,i),p(r,o,2);if(null!=l&&0===l[1].indexOf(i[1])){r.splice(o,2,[l[0],i[1]],[0,i[1]]);var a=l[1].slice(i[1].length);return a.length>0&&r.splice(o+2,0,[l[0],a]),p(r,o,3)}return e}function p(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var o=e[r],i=e[r+1];o[0]===i[1]&&e.splice(r,2,[o[0],o[1]+i[1]])}return e}var f=-1,d=1,v=0,m=n;m.INSERT=d,m.DELETE=f,m.EQUAL=v,e.exports=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(22),i=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=i.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),l=i.create(n,r);o.parent.insertBefore(l,o)}},t.prototype.update=function(t){navigator.userAgent.match(/Trident/)?this.attach():e.prototype.update.call(this,t)},t}(o.default);l.blotName="block",l.scope=i.Scope.BLOCK_BLOT,l.tagName="P",t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(23).default);t.default=i},function(e,t,n){"use strict";function r(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||l.query(r,l.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(){e.prototype.optimize.call(this);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&r(n,o.formats())&&(o.moveChildren(this),o.remove())},t}(i.default);a.blotName="inline",a.scope=l.Scope.INLINE_BLOT,a.tagName="SPAN",t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(21),i=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},a=function(e){function t(t){var n=e.call(this,t)||this;return n.parent=null,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,l),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t){var n=this;void 0===t&&(t=[]),e.prototype.optimize.call(this);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==n&&null!=e.domNode.parentNode&&(null==e.domNode[i.DATA_KEY].mutations&&(e.domNode[i.DATA_KEY].mutations=[]),t&&l(e.parent))},a=function(e){null!=e.domNode[i.DATA_KEY]&&null!=e.domNode[i.DATA_KEY].mutations&&(e instanceof o.default&&e.children.forEach(a),e.optimize())},s=t,u=0;s.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach((function(e){var t=i.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(i.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=i.find(e,!1);l(t,!1),t instanceof o.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(a),r=(s=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t){var n=this;(t=t||this.observer.takeRecords()).map((function(e){var t=i.find(e.target,!0);if(null!=t)return null==t.domNode[i.DATA_KEY].mutations?(t.domNode[i.DATA_KEY].mutations=[e],t):(t.domNode[i.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==n&&null!=e.domNode[i.DATA_KEY]&&e.update(e.domNode[i.DATA_KEY].mutations||[])})),null!=this.domNode[i.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations),this.optimize(t)},t}(o.default);a.blotName="scroll",a.defaultChild="block",a.scope=i.Scope.BLOCK_BLOT,a.tagName="DIV",t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),i=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){return e.data},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(){e.prototype.optimize.call(this),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=i.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e){var t=this;e.some((function(e){return"characterData"===e.type&&e.target===t.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t}(o.default);l.blotName="text",l.scope=i.Scope.INLINE_BLOT,t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=void 0,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],void 0),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=void 0,this.head=this.tail=e),this.length+=1},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),i=o[0],a=e-o[1],s=this.iterator(i);(r=s())&&a<e+t;){var u=r.length();e>a?n(r,e-a,Math.min(t,a+u-e)):n(r,0,Math.min(u,e+t-a)),a+=u}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=r(n(35)),o=n(36),a=n(38),s=n(67),l=r(n(64)),p=r(n(65)),c=n(69),h=r(c),f=n(37),d=n(26),b=n(39),g=n(40),v=r(n(44)),m=r(n(68)),y=r(n(27)),_=r(n(70)),x=r(n(71)),w=r(n(72)),q=r(n(66)),S=r(n(73)),k=n(16),O=r(k),C=r(n(74)),T=r(n(75)),E=r(n(46)),A=r(n(41)),M=r(n(28)),I=r(n(48)),D=r(n(49)),P=r(n(50)),N=r(n(76)),L=r(n(63));i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":g.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":b.FontClass,"formats/size":g.SizeClass,"formats/blockquote":l.default,"formats/code-block":O.default,"formats/header":p.default,"formats/list":h.default,"formats/bold":v.default,"formats/code":k.Code,"formats/italic":m.default,"formats/link":y.default,"formats/script":_.default,"formats/strike":x.default,"formats/underline":w.default,"formats/image":q.default,"formats/video":S.default,"formats/list/item":c.ListItem,"modules/formula":C.default,"modules/syntax":T.default,"modules/toolbar":E.default,"themes/bubble":N.default,"themes/snow":L.default,"ui/icons":A.default,"ui/picker":M.default,"ui/icon-picker":D.default,"ui/color-picker":I.default,"ui/tooltip":P.default},!0),e.exports=i.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=r(n(3)),h=r(n(5)),f=n(47),d=r(f),b=r(n(27)),g=n(15),v=r(n(41)),m=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(e){function t(e,n){o(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return l(t,e),u(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),v.default),this.tooltip=new _(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(d.default);y.DEFAULTS=(0,c.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var _=function(e){function t(e,n){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return l(t,e),u(t,[{key:"listen",value:function(){var e=this;s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,h.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(h.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===h.default.sources.USER){var o=e.quill.scroll.descendant(b.default,t.index),i=a(o,2),l=i[0],s=i[1];if(null!=l){e.linkRange=new g.Range(t.index-s,l.length());var u=b.default.formats(l.domNode);return e.preview.textContent=u,e.preview.setAttribute("href",u),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(f.BaseTooltip);_.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=y},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n(4)),s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}(a.default);s.blotName="blockquote",s.tagName="blockquote",t.default=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e){return e&&e.__esModule?e:{default:e}}(n(4)),u=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(s.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],t.default=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},u=function(e){return e&&e.__esModule?e:{default:e}}(n(7)),c=n(27),h=["alt","height","width"],p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"format",value:function(e,n){h.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return h.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,c.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(u.default);p.blotName="image",p.tagName="IMG",t.default=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},u=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(u.default.Attributor.Class),h=new c("indent","ql-indent",{scope:u.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n(44)),s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}(a.default);s.blotName="italic",s.tagName=["EM","I"],t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},c=r(n(0)),h=r(n(4)),f=r(n(24)),d=function(e){function t(){return i(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"format",value:function(e,n){e!==b.blotName||n?u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(c.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:u(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(h.default);d.blotName="list-item",d.tagName="LI";var b=function(e){function t(e){i(this,t);var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e.addEventListener("click",(function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=c.default.find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}})),n}return a(t,e),s(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=u(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),s(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return o({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof d)u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this);var e=this.next;null!=e&&e.prev===this&&e.statics.blotName===this.statics.blotName&&e.domNode.tagName===this.domNode.tagName&&e.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(e.moveChildren(this),e.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=c.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(f.default);b.blotName="list",b.scope=c.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[d],t.ListItem=d,t.default=b},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},u=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(u.default);c.blotName="script",c.tagName=["SUB","SUP"],t.default=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}(a.default);s.blotName="strike",s.tagName="S",t.default=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}(a.default);s.blotName="underline",s.tagName="U",t.default=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},s=n(4),c=function(e){return e&&e.__esModule?e:{default:e}}(n(27)),h=["height","width"],p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"format",value:function(e,n){h.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return h.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return c.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(s.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},c=r(n(7)),p=r(n(6)),h=r(n(9)),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),a(t,[{key:"index",value:function(){return 1}}],[{key:"create",value:function(e){var n=s(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n),n.setAttribute("data-value",e)),n.setAttribute("contenteditable",!1),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(c.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var d=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return l(t,e),a(t,null,[{key:"register",value:function(){p.default.register(f,!0)}}]),t}(h.default);t.FormulaBlot=f,t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},c=r(n(0)),p=r(n(6)),h=r(n(9)),b=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),a(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){if(this.cachedHTML!==this.domNode.innerHTML){var t=this.domNode.textContent;(t.trim().length>0||null==this.cachedHTML)&&(this.domNode.innerHTML=e(t),this.attach()),this.cachedHTML=this.domNode.innerHTML}}}]),t}(r(n(16)).default);b.className="ql-syntax";var g=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),f=function(e){function t(e,n){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var l=null;return r.quill.on(p.default.events.SCROLL_OPTIMIZE,(function(){null==l&&(l=setTimeout((function(){r.highlight(),l=null}),100))})),r.highlight(),r}return l(t,e),a(t,null,[{key:"register",value:function(){p.default.register(g,!0),p.default.register(b,!0)}}]),a(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){var t=this.quill.getSelection();this.quill.scroll.descendants(b).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(p.default.sources.SILENT),null!=t&&this.quill.setSelection(t,p.default.sources.SILENT)}}}]),t}(h.default);f.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value}},t.CodeBlock=b,t.CodeToken=g,t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=r(n(3)),p=r(n(5)),h=n(47),f=r(h),d=n(15),b=r(n(41)),g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(e){function t(e,n){o(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return l(t,e),s(t,[{key:"extendToolbar",value:function(e){this.tooltip=new m(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),b.default)}}]),t}(f.default);v.DEFAULTS=(0,c.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var m=function(e){function t(e,n){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(p.default.events.EDITOR_CHANGE,(function(e,t,n,o){if(e===p.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===p.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var l=i[i.length-1],a=r.quill.getIndex(l),s=Math.min(l.length()-1,t.index+t.length-a),u=r.quill.getBounds(new d.Range(a,s));r.position(u)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return l(t,e),s(t,[{key:"listen",value:function(){var e=this;a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(p.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(h.BaseTooltip);m.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=m,t.default=v},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=3 y1=4 y2=14></line> <line class=ql-stroke x1=11 x2=11 y1=4 y2=14></line> <line class=ql-stroke x1=11 x2=3 y1=9 y2=9></line> <path class="ql-stroke ql-thin" d=M15.5,14.5h-2c0-.234,1.85-1.076,1.85-2.234a0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=3 y1=4 y2=14></line> <line class=ql-stroke x1=11 x2=11 y1=4 y2=14></line> <line class=ql-stroke x1=11 x2=3 y1=9 y2=9></line> <line class="ql-stroke ql-thin" x1=13.5 x2=15.5 y1=14.5 y2=14.5></line> <path class=ql-fill d=M14.5,15a0.5,0.5,0,0,1-.5-0.5V12.085l-0.276.138A0.5,0.5,0,0,1,13.053,12c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,15,11.5v3A0.5,0.5,0,0,1,14.5,15Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(62)}])}))}).call(t,n(41).Buffer)},function(e,t){e.exports='<svg viewbox="0 0 18 18">\n <line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>\n <line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"></line>\n <line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"></line>\n</svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18">\n <line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"></line>\n <line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"></line>\n <line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"></line>\n</svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18">\n <line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>\n <line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"></line>\n <line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"></line>\n</svg>'}])},,,,,,function(e,t,n){e.exports=n(104)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(11),o=n(53),l=n(63),c=n(194),h=n(23).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=l?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||h(t,e,{value:c.f(e)})}},function(e,t,n){var r=n(64),o=n(106),l=n(90);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var c,h=n(e),f=l.f,i=0;h.length>i;)f.call(e,c=h[i++])&&t.push(c);return t}},function(e,t,n){var r=n(23),o=n(20),l=n(64);e.exports=n(17)?Object.defineProperties:function(e,t){o(e);for(var n,c=l(t),h=c.length,i=0;h>i;)r.f(e,n=c[i++],t[n]);return e}},function(e,t,n){var r=n(46),o=n(65).f,l={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return c&&"[object Window]"==l.call(e)?function(e){try{return o(e)}catch(e){return c.slice()}}(e):o(r(e))}},function(e,t,n){"use strict";var r=n(91),o=n(73),l=n(74),c={};n(39)(c,n(13)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(c,{next:o(1,n)}),l(e,t+" Iterator")}},function(e,t,n){"use strict";var r,o,l,c,h=n(63),f=n(11),d=n(45),v=n(92),m=n(9),y=n(25),_=n(105),x=n(94),w=n(153),S=n(108),k=n(201).set,O=n(286)(),C=n(202),T=n(287),E=n(288),A=n(203),M="Promise",I=f.TypeError,D=f.process,P=D&&D.versions,N=P&&P.v8||"",L=f.Promise,j="process"==v(D),R=function(){},F=o=C.f,B=!!function(){try{var e=L.resolve(1),t=(e.constructor={})[n(13)("species")]=function(e){e(R,R)};return(j||"function"==typeof PromiseRejectionEvent)&&e.then(R)instanceof t&&0!==N.indexOf("6.6")&&-1===E.indexOf("Chrome/66")}catch(e){}}(),z=function(e){var t;return!(!y(e)||"function"!=typeof(t=e.then))&&t},$=function(e,t){if(!e._n){e._n=!0;var n=e._c;O((function(){for(var r=e._v,o=1==e._s,i=0,l=function(t){var n,l,c,h=o?t.ok:t.fail,f=t.resolve,d=t.reject,v=t.domain;try{h?(o||(2==e._h&&W(e),e._h=1),!0===h?n=r:(v&&v.enter(),n=h(r),v&&(v.exit(),c=!0)),n===t.promise?d(I("Promise-chain cycle")):(l=z(n))?l.call(n,f,d):f(n)):d(r)}catch(e){v&&!c&&v.exit(),d(e)}};n.length>i;)l(n[i++]);e._c=[],e._n=!1,t&&!e._h&&V(e)}))}},V=function(e){k.call(f,(function(){var t,n,r,o=e._v,l=H(e);if(l&&(t=T((function(){j?D.emit("unhandledRejection",o,e):(n=f.onunhandledrejection)?n({promise:e,reason:o}):(r=f.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=j||H(e)?2:1),e._a=void 0,l&&t.e)throw t.v}))},H=function(e){return 1!==e._h&&0===(e._a||e._c).length},W=function(e){k.call(f,(function(){var t;j?D.emit("rejectionHandled",e):(t=f.onrejectionhandled)&&t({promise:e,reason:e._v})}))},U=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),$(t,!0))},G=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw I("Promise can't be resolved itself");(t=z(e))?O((function(){var r={_w:n,_d:!1};try{t.call(e,d(G,r,1),d(U,r,1))}catch(e){U.call(r,e)}})):(n._v=e,n._s=1,$(n,!1))}catch(e){U.call({_w:n,_d:!1},e)}}};B||(L=function(e){x(this,L,M,"_h"),_(e),r.call(this);try{e(d(G,this,1),d(U,this,1))}catch(e){U.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(95)(L.prototype,{then:function(e,t){var n=F(S(this,L));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=j?D.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&$(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),l=function(){var e=new r;this.promise=e,this.resolve=d(G,e,1),this.reject=d(U,e,1)},C.f=F=function(e){return e===L||e===c?new l(e):o(e)}),m(m.G+m.W+m.F*!B,{Promise:L}),n(74)(L,M),n(109)(M),c=n(53).Promise,m(m.S+m.F*!B,M,{reject:function(e){var t=F(this);return(0,t.reject)(e),t.promise}}),m(m.S+m.F*(h||!B),M,{resolve:function(e){return A(h&&this===c?L:this,e)}}),m(m.S+m.F*!(B&&n(107)((function(e){L.all(e).catch(R)}))),M,{all:function(e){var t=this,n=F(t),r=n.resolve,o=n.reject,l=T((function(){var n=[],l=0,c=1;w(e,!1,(function(e){var h=l++,f=!1;n.push(void 0),c++,t.resolve(e).then((function(e){f||(f=!0,n[h]=e,--c||r(n))}),o)})),--c||r(n)}));return l.e&&o(l.v),n.promise},race:function(e){var t=this,n=F(t),r=n.reject,o=T((function(){w(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(11),o=n(201).set,l=r.MutationObserver||r.WebKitMutationObserver,c=r.process,h=r.Promise,f="process"==n(54)(c);e.exports=function(){var head,e,t,n=function(){var n,r;for(f&&(n=c.domain)&&n.exit();head;){r=head.fn,head=head.next;try{r()}catch(n){throw head?t():e=void 0,n}}e=void 0,n&&n.enter()};if(f)t=function(){c.nextTick(n)};else if(!l||r.navigator&&r.navigator.standalone)if(h&&h.resolve){var d=h.resolve(void 0);t=function(){d.then(n)}}else t=function(){o.call(r,n)};else{var v=!0,m=document.createTextNode("");new l(n).observe(m,{characterData:!0}),t=function(){m.data=v=!v}}return function(n){var r={fn:n,next:void 0};e&&(e.next=r),head||(head=r,t()),e=r}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(11).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){var r=n(9);r(r.S+r.F,"Object",{assign:n(290)})},function(e,t,n){"use strict";var r=n(17),o=n(64),l=n(106),c=n(90),h=n(42),f=n(145),d=Object.assign;e.exports=!d||n(16)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||Object.keys(d({},t)).join("")!=r}))?function(e,source){for(var t=h(e),n=arguments.length,d=1,v=l.f,m=c.f;n>d;)for(var y,_=f(arguments[d++]),x=v?o(_).concat(v(_)):o(_),w=x.length,S=0;w>S;)y=x[S++],r&&!m.call(_,y)||(t[y]=_[y]);return t}:d},function(e,t,n){"use strict";var r=n(9),o=n(53),l=n(11),c=n(108),h=n(203);r(r.P+r.R,"Promise",{finally:function(e){var t=c(this,o.Promise||l.Promise),n="function"==typeof e;return this.then(n?function(n){return h(t,e()).then((function(){return n}))}:e,n?function(n){return h(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){var r=n(293);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(25),o=n(196),l=n(13)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[l])&&(t=void 0)),void 0===t?Array:t}},,function(e,t,n){var r=n(25),o=n(20),l=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(45)(Function.call,n(75).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return l(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:l}},function(e,t,n){var r=n(65),o=n(106),l=n(20),c=n(11).Reflect;e.exports=c&&c.ownKeys||function(e){var t=r.f(l(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(9),o=n(298)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){var r=n(17),o=n(64),l=n(46),c=n(90).f;e.exports=function(e){return function(t){for(var n,h=l(t),f=o(h),d=f.length,i=0,v=[];d>i;)n=f[i++],r&&!c.call(h,n)||v.push(e?[n,h[n]]:h[n]);return v}}},function(e,t,n){"use strict";var r=n(159);n(9)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){n(17)&&"g"!=/./g.flags&&n(23).f(RegExp.prototype,"flags",{configurable:!0,get:n(110)})},function(e,t,n){var r=n(9);r(r.P,"String",{repeat:n(303)})},function(e,t,n){"use strict";var r=n(55),o=n(56);e.exports=function(e){var t=String(o(this)),n="",l=r(e);if(l<0||l==1/0)throw RangeError("Count can't be negative");for(;l>0;(l>>>=1)&&(t+=t))1&l&&(n+=t);return n}},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function l(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new l(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new l(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(305),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(52))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,html,o,l,c,h=1,f={},d=!1,v=e.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(e);m=m&&m.setTimeout?m:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){_(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){_(e.data)},r=function(e){o.port2.postMessage(e)}):v&&"onreadystatechange"in v.createElement("script")?(html=v.documentElement,r=function(e){var script=v.createElement("script");script.onreadystatechange=function(){_(e),script.onreadystatechange=null,html.removeChild(script),script=null},html.appendChild(script)}):r=function(e){setTimeout(_,0,e)}:(l="setImmediate$"+Math.random()+"$",c=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(l)&&_(+t.data.slice(l.length))},e.addEventListener?e.addEventListener("message",c,!1):e.attachEvent("onmessage",c),r=function(t){e.postMessage(l+t,"*")}),m.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var n={callback:e,args:t};return f[h]=n,r(h),h++},m.clearImmediate=y}function y(e){delete f[e]}function _(e){if(d)setTimeout(_,0,e);else{var t=f[e];if(t){d=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{y(e),d=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(52),n(113))},function(e,t,n){"use strict";var r=n(9),o=n(24),l=n(154),c="endsWith",h="".endsWith;r(r.P+r.F*n(156)(c),"String",{endsWith:function(e){var t=l(this,e,c),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),f=void 0===n?r:Math.min(o(n),r),d=String(e);return h?h.call(t,d,f):t.slice(f-d.length,f)===d}})},,,function(e,t,n){},,,,,,,,,,,,,function(e,t,n){var r=n(9),o=n(56),l=n(16),c=n(323),h="["+c+"]",f=RegExp("^"+h+h+"*"),d=RegExp(h+h+"*$"),v=function(e,t,n){var o={},h=l((function(){return!!c[e]()||"​…"!="​…"[e]()})),f=o[e]=h?t(m):c[e];n&&(o[n]=f),r(r.P+r.F*h,"String",o)},m=v.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(f,"")),2&t&&(e=e.replace(d,"")),e};e.exports=v},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e){e.exports=JSON.parse('{"_args":[["element-ui@2.11.1","E:\\\\project\\\\boss"]],"_from":"element-ui@2.11.1","_id":"element-ui@2.11.1","_inBundle":false,"_integrity":"sha1-K2f57uPtouaISHPBxYnL4w2anWA=","_location":"/element-ui","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"element-ui@2.11.1","name":"element-ui","escapedName":"element-ui","rawSpec":"2.11.1","saveSpec":null,"fetchSpec":"2.11.1"},"_requiredBy":["/"],"_resolved":"https://registry.npm.taobao.org/element-ui/download/element-ui-2.11.1.tgz?cache=0&sync_timestamp=1586760879922&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felement-ui%2Fdownload%2Felement-ui-2.11.1.tgz","_spec":"2.11.1","_where":"E:\\\\project\\\\boss","bugs":{"url":"https://github.com/ElemeFE/element/issues"},"dependencies":{"async-validator":"~1.8.1","babel-helper-vue-jsx-merge-props":"^2.0.0","deepmerge":"^1.2.0","normalize-wheel":"^1.0.1","resize-observer-polyfill":"^1.5.0","throttle-debounce":"^1.0.1"},"description":"A Component Library for Vue.js.","devDependencies":{"@vue/component-compiler-utils":"^2.6.0","algoliasearch":"^3.24.5","babel-cli":"^6.26.0","babel-core":"^6.26.3","babel-loader":"^7.1.5","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-istanbul":"^4.1.1","babel-plugin-module-resolver":"^2.2.0","babel-plugin-syntax-jsx":"^6.18.0","babel-plugin-transform-vue-jsx":"^3.7.0","babel-preset-env":"^1.7.0","babel-preset-stage-2":"^6.24.1","babel-regenerator-runtime":"^6.5.0","chai":"^4.2.0","chokidar":"^1.7.0","copy-webpack-plugin":"^5.0.0","coveralls":"^3.0.3","cp-cli":"^1.0.2","cross-env":"^3.1.3","css-loader":"^2.1.0","es6-promise":"^4.0.5","eslint":"4.18.2","eslint-config-elemefe":"0.1.1","eslint-loader":"^2.0.0","eslint-plugin-html":"^4.0.1","eslint-plugin-json":"^1.2.0","file-loader":"^1.1.11","file-save":"^0.2.0","gulp":"^4.0.0","gulp-autoprefixer":"^6.0.0","gulp-cssmin":"^0.2.0","gulp-sass":"^4.0.2","highlight.js":"^9.3.0","html-webpack-plugin":"^3.2.0","json-loader":"^0.5.7","json-templater":"^1.0.4","karma":"^4.0.1","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.2","karma-mocha":"^1.3.0","karma-sinon-chai":"^2.0.2","karma-sourcemap-loader":"^0.3.7","karma-spec-reporter":"^0.0.32","karma-webpack":"^3.0.5","markdown-it":"^8.4.1","markdown-it-anchor":"^5.0.2","markdown-it-chain":"^1.3.0","markdown-it-container":"^2.0.0","mini-css-extract-plugin":"^0.4.1","mocha":"^6.0.2","node-sass":"^4.11.0","optimize-css-assets-webpack-plugin":"^5.0.1","postcss":"^7.0.14","progress-bar-webpack-plugin":"^1.11.0","rimraf":"^2.5.4","sass-loader":"^7.1.0","select-version-cli":"^0.0.2","sinon":"^7.2.7","sinon-chai":"^3.3.0","style-loader":"^0.23.1","transliteration":"^1.1.11","uglifyjs-webpack-plugin":"^2.1.1","uppercamelcase":"^1.1.0","url-loader":"^1.0.1","vue":"2.5.21","vue-loader":"^15.7.0","vue-router":"^3.0.1","vue-template-compiler":"2.5.21","vue-template-es2015-compiler":"^1.6.0","webpack":"^4.14.0","webpack-cli":"^3.0.8","webpack-dev-server":"^3.1.11","webpack-node-externals":"^1.7.2"},"faas":[{"domain":"element","public":"temp_web/element"},{"domain":"element-theme","public":"examples/element-ui","build":["yarn","npm run deploy:build"]}],"files":["lib","src","packages","types"],"homepage":"http://element.eleme.io","keywords":["eleme","vue","components"],"license":"MIT","main":"lib/element-ui.common.js","name":"element-ui","peerDependencies":{"vue":"^2.5.17"},"repository":{"type":"git","url":"git+ssh://git@github.com/ElemeFE/element.git"},"scripts":{"bootstrap":"yarn || npm i","build:file":"node build/bin/iconInit.js & node build/bin/build-entry.js & node build/bin/i18n.js & node build/bin/version.js","build:theme":"node build/bin/gen-cssfile && gulp build --gulpfile packages/theme-chalk/gulpfile.js && cp-cli packages/theme-chalk/lib lib/theme-chalk","build:umd":"node build/bin/build-locale.js","build:utils":"cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js","clean":"rimraf lib && rimraf packages/*/lib && rimraf test/**/coverage","deploy:build":"npm run build:file && cross-env NODE_ENV=production webpack --config build/webpack.demo.js && echo element.eleme.io>>examples/element-ui/CNAME","dev":"npm run bootstrap && npm run build:file && cross-env NODE_ENV=development webpack-dev-server --config build/webpack.demo.js & node build/bin/template.js","dev:play":"npm run build:file && cross-env NODE_ENV=development PLAY_ENV=true webpack-dev-server --config build/webpack.demo.js","dist":"npm run clean && npm run build:file && npm run lint && webpack --config build/webpack.conf.js && webpack --config build/webpack.common.js && webpack --config build/webpack.component.js && npm run build:utils && npm run build:umd && npm run build:theme","i18n":"node build/bin/i18n.js","lint":"eslint src/**/* test/**/* packages/**/* build/**/* --quiet","pub":"npm run bootstrap && sh build/git-release.sh && sh build/release.sh && node build/bin/gen-indices.js && sh build/deploy-faas.sh","test":"npm run lint && npm run build:theme && cross-env CI_ENV=/dev/ BABEL_ENV=test karma start test/unit/karma.conf.js --single-run","test:watch":"npm run build:theme && cross-env BABEL_ENV=test karma start test/unit/karma.conf.js"},"style":"lib/theme-chalk/index.css","typings":"types/index.d.ts","unpkg":"lib/index.js","version":"2.11.1"}')},,,,function(e,t,n){"use strict";var r=n(9),o=n(96)(6),l="findIndex",c=!0;l in[]&&Array(1)[l]((function(){c=!1})),r(r.P+r.F*c,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(93)(l)},,,,function(e,t,n){"use strict";var strong=n(333),r=n(225);e.exports=n(334)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return strong.def(r(this,"Set"),e=0===e?0:e,e)}},strong)},function(e,t,n){"use strict";var r=n(23).f,o=n(91),l=n(95),c=n(45),h=n(94),f=n(153),d=n(152),v=n(199),m=n(109),y=n(17),_=n(144).fastKey,x=n(225),w=y?"_s":"size",S=function(e,t){var n,r=_(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,d){var v=e((function(e,r){h(e,v,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[w]=0,null!=r&&f(r,n,e[d],e)}));return l(v.prototype,{clear:function(){for(var e=x(this,t),data=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete data[n.i];e._f=e._l=void 0,e[w]=0},delete:function(e){var n=x(this,t),r=S(n,e);if(r){var o=r.n,l=r.p;delete n._i[r.i],r.r=!0,l&&(l.n=o),o&&(o.p=l),n._f==r&&(n._f=o),n._l==r&&(n._l=l),n[w]--}return!!r},forEach:function(e){x(this,t);for(var n,r=c(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!S(x(this,t),e)}}),y&&r(v.prototype,"size",{get:function(){return x(this,t)[w]}}),v},def:function(e,t,n){var r,o,l=S(e,t);return l?l.v=n:(e._l=l={i:o=_(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=l),r&&(r.n=l),e[w]++,"F"!==o&&(e._i[o]=l)),e},getEntry:S,setStrong:function(e,t,n){d(e,t,(function(e,n){this._t=x(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?v(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,v(1))}),n?"entries":"values",!n,!0),m(t)}}},function(e,t,n){"use strict";var r=n(11),o=n(9),l=n(34),c=n(95),meta=n(144),h=n(153),f=n(94),d=n(25),v=n(16),m=n(107),y=n(74),_=n(157);e.exports=function(e,t,n,x,w,S){var k=r[e],O=k,C=w?"set":"add",T=O&&O.prototype,E={},A=function(e){var t=T[e];l(T,e,"delete"==e||"has"==e?function(a){return!(S&&!d(a))&&t.call(this,0===a?0:a)}:"get"==e?function(a){return S&&!d(a)?void 0:t.call(this,0===a?0:a)}:"add"==e?function(a){return t.call(this,0===a?0:a),this}:function(a,b){return t.call(this,0===a?0:a,b),this})};if("function"==typeof O&&(S||T.forEach&&!v((function(){(new O).entries().next()})))){var M=new O,I=M[C](S?{}:-0,1)!=M,D=v((function(){M.has(1)})),P=m((function(e){new O(e)})),N=!S&&v((function(){for(var e=new O,t=5;t--;)e[C](t,t);return!e.has(-0)}));P||((O=t((function(t,n){f(t,O,e);var r=_(new k,t,O);return null!=n&&h(n,w,r[C],r),r}))).prototype=T,T.constructor=O),(D||N)&&(A("delete"),A("has"),w&&A("get")),(N||I)&&A(C),S&&T.clear&&delete T.clear}else O=x.getConstructor(t,e,w,C),c(O.prototype,n),meta.NEED=!0;return y(O,e),E[e]=O,o(o.G+o.W+o.F*(O!=k),E),S||x.setStrong(O,e,w),O}},,,,,,function(e,t,n){"use strict";var r=n(29),o=n(235),l=n(341),c=n(241);function h(e){var t=new l(e),n=o(l.prototype.request,t);return r.extend(n,l.prototype,t),r.extend(n,t),n}var f=h(n(238));f.Axios=l,f.create=function(e){return h(c(f.defaults,e))},f.Cancel=n(242),f.CancelToken=n(354),f.isCancel=n(237),f.all=function(e){return Promise.all(e)},f.spread=n(355),f.isAxiosError=n(356),e.exports=f,e.exports.default=f},function(e,t,n){"use strict";var r=n(29),o=n(236),l=n(342),c=n(343),h=n(241);function f(e){this.defaults=e,this.interceptors={request:new l,response:new l}}f.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=h(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[c,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},f.prototype.getUri=function(e){return e=h(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(h(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){f.prototype[e]=function(t,data,n){return this.request(h(n||{},{method:e,url:t,data:data}))}})),e.exports=f},function(e,t,n){"use strict";var r=n(29);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(29),o=n(344),l=n(237),c=n(238);function h(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return h(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||c.adapter)(e).then((function(t){return h(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return l(t)||(h(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(29);e.exports=function(data,e,t){return r.forEach(t,(function(t){data=t(data,e)})),data}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(240);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,code,n,r){return e.config=t,code&&(e.code=code),e.request=n,e.response=r,e.isAxiosError=!0,e.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}},e}},function(e,t,n){"use strict";var r=n(29);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,path,o,l){var c=[];c.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(path)&&c.push("path="+path),r.isString(o)&&c.push("domain="+o),!0===l&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(350),o=n(351);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(29),o=["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"];e.exports=function(e){var t,n,i,l={};return e?(r.forEach(e.split("\n"),(function(line){if(i=line.indexOf(":"),t=r.trim(line.substr(0,i)).toLowerCase(),n=r.trim(line.substr(i+1)),t){if(l[t]&&o.indexOf(t)>=0)return;l[t]="set-cookie"===t?(l[t]?l[t]:[]).concat([n]):l[t]?l[t]+", "+n:n}})),l):l}},function(e,t,n){"use strict";var r=n(29);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(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 e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(242);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){"use strict";t.__esModule=!0,t.validateRangeInOneMonth=t.extractTimeFormat=t.extractDateFormat=t.nextYear=t.prevYear=t.nextMonth=t.prevMonth=t.changeYearMonthAndClampDate=t.timeWithinRange=t.limitTimeRange=t.clearMilliseconds=t.clearTime=t.modifyWithTimeString=t.modifyTime=t.modifyDate=t.range=t.getRangeMinutes=t.getMonthDays=t.getPrevMonthLastDays=t.getRangeHours=t.getWeekNumber=t.getStartDateOfMonth=t.nextDate=t.prevDate=t.getFirstDayOfMonth=t.getDayCountOfYear=t.getDayCountOfMonth=t.parseDate=t.formatDate=t.isDateObject=t.isDate=t.toDate=t.getI18nSettings=void 0;var r,o=n(243),l=(r=o)&&r.__esModule?r:{default:r},c=n(114);var h=["sun","mon","tue","wed","thu","fri","sat"],f=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],d=t.getI18nSettings=function(){return{dayNamesShort:h.map((function(e){return(0,c.t)("el.datepicker.weeks."+e)})),dayNames:h.map((function(e){return(0,c.t)("el.datepicker.weeks."+e)})),monthNamesShort:f.map((function(e){return(0,c.t)("el.datepicker.months."+e)})),monthNames:f.map((function(e,t){return(0,c.t)("el.datepicker.month"+(t+1))})),amPm:["am","pm"]}},v=t.toDate=function(e){return m(e)?new Date(e):null},m=t.isDate=function(e){return null!=e&&(!isNaN(new Date(e).getTime())&&!Array.isArray(e))},y=(t.isDateObject=function(e){return e instanceof Date},t.formatDate=function(e,t){return(e=v(e))?l.default.format(e,t||"yyyy-MM-dd",d()):""},t.parseDate=function(e,t){return l.default.parse(e,t||"yyyy-MM-dd",d())}),_=t.getDayCountOfMonth=function(e,t){return 3===t||5===t||8===t||10===t?30:1===t?e%4==0&&e%100!=0||e%400==0?29:28:31},x=(t.getDayCountOfYear=function(e){return e%400==0||e%100!=0&&e%4==0?366:365},t.getFirstDayOfMonth=function(e){var t=new Date(e.getTime());return t.setDate(1),t.getDay()},t.prevDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-t)});t.nextDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},t.getStartDateOfMonth=function(e,t){var n=new Date(e,t,1),r=n.getDay();return x(n,0===r?7:r)},t.getWeekNumber=function(e){if(!m(e))return null;var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},t.getRangeHours=function(e){var t=[],n=[];if((e||[]).forEach((function(e){var t=e.map((function(e){return e.getHours()}));n=n.concat(function(e,t){for(var n=[],i=e;i<=t;i++)n.push(i);return n}(t[0],t[1]))})),n.length)for(var i=0;i<24;i++)t[i]=-1===n.indexOf(i);else for(var r=0;r<24;r++)t[r]=!1;return t},t.getPrevMonthLastDays=function(e,t){if(t<=0)return[];var n=new Date(e.getTime());n.setDate(0);var r=n.getDate();return S(t).map((function(e,n){return r-(t-n-1)}))},t.getMonthDays=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return S(t).map((function(e,t){return t+1}))};function w(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}t.getRangeMinutes=function(e,t){var n=new Array(60);return e.length>0?e.forEach((function(e){var r=e[0],o=e[1],l=r.getHours(),c=r.getMinutes(),h=o.getHours(),f=o.getMinutes();l===t&&h!==t?w(n,c,60,!0):l===t&&h===t?w(n,c,f+1,!0):l!==t&&h===t?w(n,0,f+1,!0):l<t&&h>t&&w(n,0,60,!0)})):w(n,0,60,!0),n};var S=t.range=function(e){return Array.apply(null,{length:e}).map((function(e,t){return t}))},k=t.modifyDate=function(e,t,n,r){return new Date(t,n,r,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},O=t.modifyTime=function(e,t,n,s){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,s,e.getMilliseconds())},C=(t.modifyWithTimeString=function(e,time){return null!=e&&time?(time=y(time,"HH:mm:ss"),O(e,time.getHours(),time.getMinutes(),time.getSeconds())):e},t.clearTime=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},t.clearMilliseconds=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),0)},t.limitTimeRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===t.length)return e;var r=function(e){return l.default.parse(l.default.format(e,n),n)},o=r(e),c=t.map((function(e){return e.map(r)}));if(c.some((function(e){return o>=e[0]&&o<=e[1]})))return e;var h=c[0][0],f=c[0][0];c.forEach((function(e){h=new Date(Math.min(e[0],h)),f=new Date(Math.max(e[1],h))}));var d=o<h?h:f;return k(d,e.getFullYear(),e.getMonth(),e.getDate())}),T=(t.timeWithinRange=function(e,t,n){return C(e,t,n).getTime()===e.getTime()},t.changeYearMonthAndClampDate=function(e,t,n){var r=Math.min(e.getDate(),_(t,n));return k(e,t,n,r)});t.prevMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 0===n?T(e,t-1,11):T(e,t,n-1)},t.nextMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 11===n?T(e,t+1,0):T(e,t,n+1)},t.prevYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return T(e,n-t,r)},t.nextYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return T(e,n+t,r)},t.extractDateFormat=function(e){return e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},t.extractTimeFormat=function(e){return e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},t.validateRangeInOneMonth=function(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){var n;return t&&!0===t.clone&&r(e)?h((n=e,Array.isArray(n)?[]:{}),e,t):e}function c(e,source,t){var n=e.slice();return source.forEach((function(o,i){void 0===n[i]?n[i]=l(o,t):r(o)?n[i]=h(e[i],o,t):-1===e.indexOf(o)&&n.push(l(o,t))})),n}function h(e,source,t){var n=Array.isArray(source);return n===Array.isArray(e)?n?((t||{arrayMerge:c}).arrayMerge||c)(e,source,t):function(e,source,t){var n={};return r(e)&&Object.keys(e).forEach((function(r){n[r]=l(e[r],t)})),Object.keys(source).forEach((function(o){r(source[o])&&e[o]?n[o]=h(e[o],source[o],t):n[o]=l(source[o],t)})),n}(e,source,t):l(source,t)}h.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return h(e,n,t)}))};var f=h;e.exports=f},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),c=1;c<t;c++)n[c-1]=arguments[c];return 1===n.length&&"object"===r(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(l,(function(t,r,i,l){var c=void 0;return"{"===e[l-1]&&"}"===e[l+t.length]?i:null==(c=(0,o.hasOwn)(n,i)?n[i]:null)?"":c}))}};var o=n(47),l=/(%|)\{([0-9a-zA-Z_]+)\}/g},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(2),l=(r=o)&&r.__esModule?r:{default:r},c=n(57);var h=!1,f=!1,d=void 0,v=function(){if(!l.default.prototype.$isServer){var e=y.modalDom;return e?h=!0:(h=!1,e=document.createElement("div"),y.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){y.doOnModalClick&&y.doOnModalClick()}))),e}},m={},y={modalFade:!0,getInstance:function(e){return m[e]},register:function(e,t){e&&t&&(m[e]=t)},deregister:function(e){e&&(m[e]=null,delete m[e])},nextZIndex:function(){return y.zIndex++},modalStack:[],doOnModalClick:function(){var e=y.modalStack[y.modalStack.length-1];if(e){var t=y.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,r,o){if(!l.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=o;for(var f=this.modalStack,i=0,d=f.length;i<d;i++){if(f[i].id===e)return}var m=v();if((0,c.addClass)(m,"v-modal"),this.modalFade&&!h&&(0,c.addClass)(m,"v-modal-enter"),r)r.trim().split(/\s+/).forEach((function(e){return(0,c.addClass)(m,e)}));setTimeout((function(){(0,c.removeClass)(m,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(m):document.body.appendChild(m),t&&(m.style.zIndex=t),m.tabIndex=0,m.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:r})}},closeModal:function(e){var t=this.modalStack,n=v();if(t.length>0){var r=t[t.length-1];if(r.id===e){if(r.modalClass)r.modalClass.trim().split(/\s+/).forEach((function(e){return(0,c.removeClass)(n,e)}));t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var i=t.length-1;i>=0;i--)if(t[i].id===e){t.splice(i,1);break}}0===t.length&&(this.modalFade&&(0,c.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",y.modalDom=void 0),(0,c.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(y,"zIndex",{configurable:!0,get:function(){return f||(d=d||(l.default.prototype.$ELEMENT||{}).zIndex||2e3,f=!0),d},set:function(e){d=e}});l.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=function(){if(!l.default.prototype.$isServer&&y.modalStack.length>0){var e=y.modalStack[y.modalStack.length-1];if(!e)return;return y.getInstance(e.id)}}();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t.default=y},function(e,t,n){"use strict";var r,o;"function"==typeof Symbol&&Symbol.iterator;r=function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,r){this._reference=e.jquery?e[0]:e,this.state={};var o=null==n,l=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=o||l?this.parse(l?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,r),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),m(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(element){var t=element.style.display,n=element.style.visibility;element.style.display="block",element.style.visibility="hidden",element.offsetWidth;var r=e.getComputedStyle(element),o=parseFloat(r.marginTop)+parseFloat(r.marginBottom),l=parseFloat(r.marginLeft)+parseFloat(r.marginRight),c={width:element.offsetWidth+l,height:element.offsetHeight+o};return element.style.display=t,element.style.visibility=n,c}function o(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function l(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function c(e,t){var n,i=0;for(n in e){if(e[n]===t)return i;i++}return null}function h(element,t){return e.getComputedStyle(element,null)[t]}function f(element){var t=element.offsetParent;return t!==e.document.body&&t?t:e.document.documentElement}function d(element){var t=element.parentNode;return t?t===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(h(t,"overflow"))||-1!==["scroll","auto"].indexOf(h(t,"overflow-x"))||-1!==["scroll","auto"].indexOf(h(t,"overflow-y"))?t:d(element.parentNode):element}function v(element){return element!==e.document.body&&("fixed"===h(element,"position")||(element.parentNode?v(element.parentNode):element))}function m(element,e){function t(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}Object.keys(e).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&t(e[n])&&(r="px"),element.style[n]=e[n]+r}))}function y(e){return e&&"[object Function]"==={}.toString.call(e)}function _(element){var e={width:element.offsetWidth,height:element.offsetHeight,left:element.offsetLeft,top:element.offsetTop};return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function x(element){var rect=element.getBoundingClientRect(),e=-1!=navigator.userAgent.indexOf("MSIE")&&"HTML"===element.tagName?-element.scrollTop:rect.top;return{left:rect.left,top:e,right:rect.right,bottom:rect.bottom,width:rect.right-rect.left,height:rect.bottom-e}}function w(element,e,t){var n=x(element),r=x(e);if(t){var o=d(e);r.top+=o.scrollTop,r.bottom+=o.scrollTop,r.left+=o.scrollLeft,r.right+=o.scrollLeft}return{top:n.top-r.top,left:n.left-r.left,bottom:n.top-r.top+n.height,right:n.left-r.left+n.width,width:n.width,height:n.height}}function S(t){for(var n=["","ms","webkit","moz","o"],i=0;i<n.length;i++){var r=n[i]?n[i]+t.charAt(0).toUpperCase()+t.slice(1):t;if(void 0!==e.document.body.style[r])return r}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[S("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var data={instance:this,styles:{}};data.placement=this._options.placement,data._originalPlacement=this._options.placement,data.offsets=this._getOffsets(this._popper,this._reference,data.placement),data.boundaries=this._getBoundaries(data,this._options.boundariesPadding,this._options.boundariesElement),data=this.runModifiers(data,this._options.modifiers),"function"==typeof this.state.updateCallback&&this.state.updateCallback(data)},n.prototype.onCreate=function(e){return e(this),this},n.prototype.onUpdate=function(e){return this.state.updateCallback=e,this},n.prototype.parse=function(t){var n={tagName:"div",classNames:["popper"],attributes:[],parent:e.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};t=Object.assign({},n,t);var r=e.document,o=r.createElement(t.tagName);if(h(o,t.classNames),f(o,t.attributes),"node"===t.contentType?o.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?o.innerHTML=t.content:o.textContent=t.content,t.arrowTagName){var l=r.createElement(t.arrowTagName);h(l,t.arrowClassNames),f(l,t.arrowAttributes),o.appendChild(l)}var c=t.parent.jquery?t.parent[0]:t.parent;if("string"==typeof c){if((c=r.querySelectorAll(t.parent)).length>1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===c.length)throw"ERROR: the given `parent` doesn't exists!";c=c[0]}return c.length>1&&c instanceof Element==0&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),c=c[0]),c.appendChild(o),o;function h(element,e){e.forEach((function(e){element.classList.add(e)}))}function f(element,e){e.forEach((function(e){element.setAttribute(e.split(":")[0],e.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,t){var n=f(t);return this._options.forceAbsolute?"absolute":v(t,n)?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var o={};o.position=this.state.position;var l="fixed"===o.position,c=w(t,f(e),l),h=r(e);return-1!==["right","left"].indexOf(n)?(o.top=c.top+c.height/2-h.height/2,o.left="left"===n?c.left-h.width:c.right):(o.left=c.left+c.width/2-h.width/2,o.top="top"===n?c.top-h.height:c.bottom),o.width=h.width,o.height=h.height,{popper:o,reference:c}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=d(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(data,t,n){var r,o={};if("window"===n){var body=e.document.body,html=e.document.documentElement;r=Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight),o={top:0,right:Math.max(body.scrollWidth,body.offsetWidth,html.clientWidth,html.scrollWidth,html.offsetWidth),bottom:r,left:0}}else if("viewport"===n){var l=f(this._popper),c=d(this._popper),h=_(l),v=function(element){return element==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):element.scrollTop},m=function(element){return element==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):element.scrollLeft},y="fixed"===data.offsets.popper.position?0:v(c),x="fixed"===data.offsets.popper.position?0:m(c);o={top:0-(h.top-y),right:e.document.documentElement.clientWidth-(h.left-x),bottom:e.document.documentElement.clientHeight-(h.top-y),left:0-(h.left-x)}}else o=f(this._popper)===n?{top:0,left:0,right:n.clientWidth,bottom:n.clientHeight}:_(n);return o.left+=t,o.right-=t,o.top=o.top+t,o.bottom=o.bottom-t,o},n.prototype.runModifiers=function(data,e,t){var n=e.slice();return void 0!==t&&(n=this._options.modifiers.slice(0,c(this._options.modifiers,t))),n.forEach(function(e){y(e)&&(data=e.call(this,data))}.bind(this)),data},n.prototype.isModifierRequired=function(e,t){var n=c(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter((function(e){return e===t})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(data){var e,t={position:data.offsets.popper.position},n=Math.round(data.offsets.popper.left),r=Math.round(data.offsets.popper.top);return this._options.gpuAcceleration&&(e=S("transform"))?(t[e]="translate3d("+n+"px, "+r+"px, 0)",t.top=0,t.left=0):(t.left=n,t.top=r),Object.assign(t,data.styles),m(this._popper,t),this._popper.setAttribute("x-placement",data.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&data.offsets.arrow&&m(data.arrowElement,data.offsets.arrow),data},n.prototype.modifiers.shift=function(data){var e=data.placement,t=e.split("-")[0],n=e.split("-")[1];if(n){var r=data.offsets.reference,o=l(data.offsets.popper),c={y:{start:{top:r.top},end:{top:r.top+r.height-o.height}},x:{start:{left:r.left},end:{left:r.left+r.width-o.width}}},h=-1!==["bottom","top"].indexOf(t)?"x":"y";data.offsets.popper=Object.assign(o,c[h][n])}return data},n.prototype.modifiers.preventOverflow=function(data){var e=this._options.preventOverflowOrder,t=l(data.offsets.popper),n={left:function(){var e=t.left;return t.left<data.boundaries.left&&(e=Math.max(t.left,data.boundaries.left)),{left:e}},right:function(){var e=t.left;return t.right>data.boundaries.right&&(e=Math.min(t.left,data.boundaries.right-t.width)),{left:e}},top:function(){var e=t.top;return t.top<data.boundaries.top&&(e=Math.max(t.top,data.boundaries.top)),{top:e}},bottom:function(){var e=t.top;return t.bottom>data.boundaries.bottom&&(e=Math.min(t.top,data.boundaries.bottom-t.height)),{top:e}}};return e.forEach((function(e){data.offsets.popper=Object.assign(t,n[e]())})),data},n.prototype.modifiers.keepTogether=function(data){var e=l(data.offsets.popper),t=data.offsets.reference,n=Math.floor;return e.right<n(t.left)&&(data.offsets.popper.left=n(t.left)-e.width),e.left>n(t.right)&&(data.offsets.popper.left=n(t.right)),e.bottom<n(t.top)&&(data.offsets.popper.top=n(t.top)-e.height),e.top>n(t.bottom)&&(data.offsets.popper.top=n(t.bottom)),data},n.prototype.modifiers.flip=function(data){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),data;if(data.flipped&&data.placement===data._originalPlacement)return data;var e=data.placement.split("-")[0],t=o(e),n=data.placement.split("-")[1]||"",r=[];return(r="flip"===this._options.flipBehavior?[e,t]:this._options.flipBehavior).forEach(function(c,h){if(e===c&&r.length!==h+1){e=data.placement.split("-")[0],t=o(e);var f=l(data.offsets.popper),a=-1!==["right","bottom"].indexOf(e);(a&&Math.floor(data.offsets.reference[e])>Math.floor(f[t])||!a&&Math.floor(data.offsets.reference[e])<Math.floor(f[t]))&&(data.flipped=!0,data.placement=r[h+1],n&&(data.placement+="-"+n),data.offsets.popper=this._getOffsets(this._popper,this._reference,data.placement).popper,data=this.runModifiers(data,this._options.modifiers,this._flip))}}.bind(this)),data},n.prototype.modifiers.offset=function(data){var e=this._options.offset,t=data.offsets.popper;return-1!==data.placement.indexOf("left")?t.top-=e:-1!==data.placement.indexOf("right")?t.top+=e:-1!==data.placement.indexOf("top")?t.left-=e:-1!==data.placement.indexOf("bottom")&&(t.left+=e),data},n.prototype.modifiers.arrow=function(data){var e=this._options.arrowElement,t=this._options.arrowOffset;if("string"==typeof e&&(e=this._popper.querySelector(e)),!e)return data;if(!this._popper.contains(e))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),data;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),data;var n={},o=data.placement.split("-")[0],c=l(data.offsets.popper),h=data.offsets.reference,f=-1!==["left","right"].indexOf(o),d=f?"height":"width",v=f?"top":"left",m=f?"left":"top",y=f?"bottom":"right",_=r(e)[d];h[y]-_<c[v]&&(data.offsets.popper[v]-=c[v]-(h[y]-_)),h[v]+_>c[y]&&(data.offsets.popper[v]+=h[v]+_-c[y]);var x=h[v]+(t||h[d]/2-_/2)-c[v];return x=Math.max(Math.min(c[d]-_-8,x),8),n[v]=x,n[m]="",data.offsets.arrow=n,data.arrowElement=e,data},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n){n=Object(n);for(var r=Object.keys(n),o=0,l=r.length;o<l;o++){var c=r[o],desc=Object.getOwnPropertyDescriptor(n,c);void 0!==desc&&desc.enumerable&&(t[c]=n[c])}}}return t}}),n},void 0===(o="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=o)},function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),l="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],h="undefined"!=typeof MutationObserver,f=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function c(){n&&(n=!1,e()),r&&f()}function h(){l(c)}function f(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(h,t);o=e}return f}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},v=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},m=k(0,0,0,0);function y(e){return parseFloat(e)||0}function _(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+y(e["border-"+n+"-width"])}),0)}function x(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return m;var r=v(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],l=e["padding-"+o];t[o]=y(l)}return t}(r),l=o.left+o.right,c=o.top+o.bottom,h=y(r.width),f=y(r.height);if("border-box"===r.boxSizing&&(Math.round(h+l)!==t&&(h-=_(r,"left","right")+l),Math.round(f+c)!==n&&(f-=_(r,"top","bottom")+c)),!function(e){return e===v(e).document.documentElement}(e)){var d=Math.round(h+l)-t,x=Math.round(f+c)-n;1!==Math.abs(d)&&(h-=d),1!==Math.abs(x)&&(f-=x)}return k(o.left,o.top,h,f)}var w="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof v(e).SVGGraphicsElement}:function(e){return e instanceof v(e).SVGElement&&"function"==typeof e.getBBox};function S(e){return r?w(e)?function(e){var t=e.getBBox();return k(0,0,t.width,t.height)}(e):x(e):m}function k(e,t,n,r){return{x:e,y:t,width:n,height:r}}var O=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=k(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var rect=S(this.target);return this.contentRect_=rect,rect.width!==this.broadcastWidth||rect.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var rect=this.contentRect_;return this.broadcastWidth=rect.width,this.broadcastHeight=rect.height,rect},e}(),C=function(e,t){var n,r,o,l,c,h,rect,f=(r=(n=t).x,o=n.y,l=n.width,c=n.height,h="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,rect=Object.create(h.prototype),d(rect,{x:r,y:o,width:l,height:c,top:o,right:r+l,bottom:c+o,left:r}),rect);d(this,{target:e,contentRect:f})},T=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof v(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new O(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof v(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new C(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new n,A=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new T(t,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){A.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));var M=void 0!==o.ResizeObserver?o.ResizeObserver:A;t.default=M}.call(this,n(52))},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=78)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}n.d(t,"a",(function(){return r}))},78:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])};r._withStripped=!0;var o={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},l=n(0),component=Object(l.a)(o,r,[],!1,null,null,null);component.options.__file="packages/button/src/button.vue";var c=component.exports;c.install=function(e){e.component(c.name,c)};t.default=c}})},function(e,t,n){"use strict";t.__esModule=!0;var r=n(57);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.beforeEnter=function(e){(0,r.addClass)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},e.prototype.enter=function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},e.prototype.afterEnter=function(e){(0,r.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},e.prototype.beforeLeave=function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},e.prototype.leave=function(e){0!==e.scrollHeight&&((0,r.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},e.prototype.afterLeave=function(e){(0,r.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},e}();t.default={name:"ElCollapseTransition",functional:!0,render:function(e,t){var n=t.children;return e("transition",{on:new o},n)}}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isVNode=function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(0,o.hasOwn)(e,"componentOptions")};var o=n(47)},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=128)}({128:function(e,t,n){"use strict";n.r(t);var r=n(5),o=n.n(r),l=n(16),c=n.n(l),h=n(2),f=n(3),d=n(7),v=n.n(d),main={name:"ElTooltip",mixins:[o.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(f.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new v.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=c()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var data=n.data=n.data||{};return data.staticClass=this.addTooltipClass(data.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(h.on)(this.referenceElm,"mouseenter",this.show),Object(h.on)(this.referenceElm,"mouseleave",this.hide),Object(h.on)(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(h.on)(this.referenceElm,"blur",this.handleBlur),Object(h.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(h.addClass)(this.referenceElm,"focusing"):Object(h.removeClass)(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var element=null,t=0;t<e.length;t++)e[t]&&e[t].tag&&(element=e[t]);return element}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(h.off)(e,"mouseenter",this.show),Object(h.off)(e,"mouseleave",this.hide),Object(h.off)(e,"focus",this.handleFocus),Object(h.off)(e,"blur",this.handleBlur),Object(h.off)(e,"click",this.removeFocusing))},install:function(e){e.component(main.name,main)}};t.default=main},16:function(e,t){e.exports=n(116)},2:function(e,t){e.exports=n(57)},3:function(e,t){e.exports=n(47)},5:function(e,t){e.exports=n(162)},7:function(e,t){e.exports=n(2)}})},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=111)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}n.d(t,"a",(function(){return r}))},111:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)};r._withStripped=!0;var o=n(4),l={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[n.n(o).a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},c=n(0),component=Object(c.a)(l,r,[],!1,null,null,null);component.options.__file="packages/checkbox/src/checkbox-group.vue";var h=component.exports;h.install=function(e){e.component(h.name,h)};t.default=h},4:function(e,t){e.exports=n(66)}})},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var o=!1,l=function(){o||(o=!0,t&&t.apply(null,arguments))};r?e.$once("after-leave",l):e.$on("after-leave",l),setTimeout((function(){l()}),n+100)}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=99)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}n.d(t,"a",(function(){return r}))},99:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":"round","stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px"}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])};r._withStripped=!0;var o={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var style={};return style.width=this.percentage+"%",style.backgroundColor=this.getCurrentColor(this.percentage),style},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){return-1*this.perimeter*(1-this.rate)/2+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"==typeof this.color?this.color(e):"string"==typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(a,b){return a.percentage-b.percentage})),i=0;i<t.length;i++)if(t[i].percentage>e)return t[i].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,span=100/e.length;return e.map((function(e,t){return"string"==typeof e?{color:e,progress:(t+1)*span}:e}))}}},l=n(0),component=Object(l.a)(o,r,[],!1,null,null,null);component.options.__file="packages/progress/src/progress.vue";var progress=component.exports;progress.install=function(e){e.component(progress.name,progress)};t.default=progress}})},function(e,t,n){var r=n(166),o=n(116);e.exports={throttle:r,debounce:o}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=59)}([function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}n.d(t,"a",(function(){return r}))},,,function(e,t){e.exports=n(47)},function(e,t){e.exports=n(66)},function(e,t){e.exports=n(162)},function(e,t){e.exports=n(161)},,,,,function(e,t){e.exports=n(164)},function(e,t){e.exports=n(247)},function(e,t){e.exports=n(167)},,function(e,t){e.exports=n(165)},function(e,t){e.exports=n(116)},,,,function(e,t){e.exports=n(114)},function(e,t){e.exports=n(168)},function(e,t){e.exports=n(169)},,,,,,,,,function(e,t){e.exports=n(170)},,function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)};r._withStripped=!0;var o=n(4),l=n.n(o),c=n(3),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f={mixins:[l.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,o=n.valueKey;if(!this.created&&!r){if(o&&"object"===(void 0===e?"undefined":h(e))&&"object"===(void 0===t?"undefined":h(t))&&e[o]===t[o])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(a,b){if(this.isObject){var e=this.select.valueKey;return Object(c.getValueByPath)(a,e)===Object(c.getValueByPath)(b,e)}return a===b},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(c.getValueByPath)(e,n)===Object(c.getValueByPath)(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(c.escapeRegexpString)(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select.cachedOptions.indexOf(this);e>-1&&this.select.cachedOptions.splice(e,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},d=f,v=n(0),component=Object(v.a)(d,r,[],!1,null,null,null);component.options.__file="packages/select/src/option.vue";t.a=component.exports},,,function(e,t){e.exports=n(250)},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},click:function(e){e.stopPropagation()},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.navigateOptions("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{keyup:function(t){return e.debouncedOnInputChange(t)},keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],paste:function(t){return e.debouncedOnInputChange(t)},mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)};r._withStripped=!0;var o=n(4),l=n.n(o),c=n(21),h=n.n(c),f=n(6),d=n.n(f),v=n(11),m=n.n(v),y=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)};y._withStripped=!0;var _=n(5),x={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[n.n(_).a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},w=n(0),component=Object(w.a)(x,y,[],!1,null,null,null);component.options.__file="packages/select/src/select-dropdown.vue";var S=component.exports,k=n(33),O=n(36),C=n.n(O),T=n(13),E=n.n(T),A=n(16),M=n.n(A),I=n(12),D=n.n(I),P=n(15),N=n(20),L=n(31),j=n.n(L),R=n(3),F=n(22),B={mixins:[l.a,d.a,h()("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(option){return option.visible})).every((function(option){return option.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"==typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(option){option.hover=t.hoverOption===option}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var option=this.options[this.hoverIndex];!0!==option.disabled&&!0!==option.groupDisabled&&option.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}}],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(R.isIE)()&&!Object(R.isEdge)()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&e},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(option){return!option.created})).some((function(option){return option.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"}},components:{ElInput:m.a,ElSelectMenu:S,ElOption:k.a,ElTag:C.a,ElScrollbar:E.a},directives:{Clickoutside:D.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,default:function(){return Object(N.t)("el.select.placeholder")}},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},placeholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(R.valueEquals)(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(e){var t=this,text=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(text)}));else{var n=text[text.length-1]||"";this.isOnComposition=!Object(F.isKorean)(n)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!=typeof this.filterMethod&&"function"!=typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"==typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(option){var e=Array.isArray(option)&&option[0]?option[0].$el:option.$el;if(this.$refs.popper&&e){var menu=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");j()(menu,e)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(R.valueEquals)(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var option=void 0,t="[object object]"===Object.prototype.toString.call(e).toLowerCase(),n="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),i=this.cachedOptions.length-1;i>=0;i--){var o=this.cachedOptions[i];if(t?Object(R.getValueByPath)(o.value,this.valueKey)===Object(R.getValueByPath)(e,this.valueKey):o.value===e){option=o;break}}if(option)return option;var l={value:e,currentLabel:t||n||r?"":e};return this.multiple&&(l.hitState=!1),l},setSelected:function(){var e=this;if(!this.multiple){var option=this.getOption(this.value);return option.created?(this.createdLabel=option.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=option.currentLabel,this.selected=option,void(this.filterable&&(this.query=this.selectedLabel))}var t=[];Array.isArray(this.value)&&this.value.forEach((function(n){t.push(e.getOption(n))})),this.selected=t,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.menuVisibleOnFocus=!0),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var option=this.selected[this.selected.length-1];if(option)return!0===e||!1===e?(option.hitState=e,e):(option.hitState=!option.hitState,option.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,input=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],n=e.$refs.tags,r=e.initialInputHeight||40;input.style.height=0===e.selected.length?r+"px":Math.max(n?n.clientHeight+(n.clientHeight>r?6:0):0,r)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(option,e){var t=this;if(this.multiple){var n=(this.value||[]).slice(),r=this.getValueIndex(n,option.value);r>-1?n.splice(r,1):(this.multipleLimit<=0||n.length<this.multipleLimit)&&n.push(option.value),this.$emit("input",n),this.emitChange(n),option.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",option.value),this.emitChange(option.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick((function(){t.scrollToOption(option)}))},setSoftFocus:function(){this.softFocus=!0;var input=this.$refs.input||this.$refs.reference;input&&input.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var r=this.valueKey,o=-1;return e.some((function(e,i){return Object(R.getValueByPath)(e,r)===Object(R.getValueByPath)(t,r)&&(o=i,!0)})),o}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,i=this.options.length-1;i>=0;i--)if(this.options[i].created){e=!0,this.hoverIndex=i;break}if(!e)for(var t=0;t!==this.options.length;++t){var option=this.options[t];if(this.query){if(!option.disabled&&!option.groupDisabled&&option.visible){this.hoverIndex=t;break}}else if(option.itemSelected){this.hoverIndex=t;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(R.getValueByPath)(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.placeholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=M()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=M()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(P.addResizeListener)(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var input=t.$el.querySelector("input");this.initialInputHeight=input.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(P.removeResizeListener)(this.$el,this.handleResize)}},z=B,$=Object(w.a)(z,r,[],!1,null,null,null);$.options.__file="packages/select/src/select.vue";var V=$.exports;V.install=function(e){e.component(V.name,V)};t.default=V}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=52)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}n.d(t,"a",(function(){return r}))},3:function(e,t){e.exports=n(47)},33:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)};r._withStripped=!0;var o=n(4),l=n.n(o),c=n(3),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f={mixins:[l.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,o=n.valueKey;if(!this.created&&!r){if(o&&"object"===(void 0===e?"undefined":h(e))&&"object"===(void 0===t?"undefined":h(t))&&e[o]===t[o])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(a,b){if(this.isObject){var e=this.select.valueKey;return Object(c.getValueByPath)(a,e)===Object(c.getValueByPath)(b,e)}return a===b},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(c.getValueByPath)(e,n)===Object(c.getValueByPath)(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(c.escapeRegexpString)(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select.cachedOptions.indexOf(this);e>-1&&this.select.cachedOptions.splice(e,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},d=f,v=n(0),component=Object(v.a)(d,r,[],!1,null,null,null);component.options.__file="packages/select/src/option.vue";t.a=component.exports},4:function(e,t){e.exports=n(66)},52:function(e,t,n){"use strict";n.r(t);var r=n(33);r.a.install=function(e){e.component(r.a.name,r.a)},t.default=r.a}})},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=95)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}n.d(t,"a",(function(){return r}))},95:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-button-group"},[e._t("default")],2)};r._withStripped=!0;var o={name:"ElButtonGroup"},l=n(0),component=Object(l.a)(o,r,[],!1,null,null,null);component.options.__file="packages/button/src/button-group.vue";var c=component.exports;c.install=function(e){e.component(c.name,c)};t.default=c}})},function(e,t,n){e.exports=n(375)},function(e,t,n){"use strict";var r=n(376),o=n(377);function l(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=l},function(e,t){var n,r,o,l,c,h,f,d,v,m,y,_,x,w,S,k=!1;function O(){if(!k){k=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),O=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(_=/\b(iPhone|iP[ao]d)/.exec(e),x=/\b(iP[ao]d)/.exec(e),m=/Android/i.exec(e),w=/FBAN\/\w+;/i.exec(e),S=/Mobile/i.exec(e),y=!!/Win64/.exec(e),t){(n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var C=/(?:Trident\/(\d+.\d+))/.exec(e);h=C?parseFloat(C[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,o=t[3]?parseFloat(t[3]):NaN,(l=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),c=t&&t[1]?parseFloat(t[1]):NaN):c=NaN}else n=r=o=c=l=NaN;if(O){if(O[1]){var T=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);f=!T||parseFloat(T[1].replace("_","."))}else f=!1;d=!!O[2],v=!!O[3]}else f=d=v=!1}}var C={ie:function(){return O()||n},ieCompatibilityMode:function(){return O()||h>n},ie64:function(){return C.ie()&&y},firefox:function(){return O()||r},opera:function(){return O()||o},webkit:function(){return O()||l},safari:function(){return C.webkit()},chrome:function(){return O()||c},windows:function(){return O()||d},osx:function(){return O()||f},linux:function(){return O()||v},iphone:function(){return O()||_},mobile:function(){return O()||_||x||m||S},nativeApp:function(){return O()||w},android:function(){return O()||m},ipad:function(){return O()||x}};e.exports=C},function(e,t,n){"use strict";var r,o=n(378);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,l=n in document;if(!l){var element=document.createElement("div");element.setAttribute(n,"return;"),l="function"==typeof element[n]}return!l&&r&&"wheel"===e&&(l=document.implementation.hasFeature("Events.wheel","3.0")),l}},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},function(e,t,n){"use strict";t.__esModule=!0;var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=n(171),c=(r=l)&&r.__esModule?r:{default:r};var h,f=f||{};f.Dialog=function(dialog,e,t){var n=this;if(this.dialogNode=dialog,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"==typeof e?this.focusAfterClosed=document.getElementById(e):"object"===(void 0===e?"undefined":o(e))?this.focusAfterClosed=e:this.focusAfterClosed=null,"string"==typeof t?this.focusFirst=document.getElementById(t):"object"===(void 0===t?"undefined":o(t))?this.focusFirst=t:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():c.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,h=function(e){n.trapFocus(e)},this.addListeners()},f.Dialog.prototype.addListeners=function(){document.addEventListener("focus",h,!0)},f.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",h,!0)},f.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){e.focusAfterClosed.focus()}))},f.Dialog.prototype.trapFocus=function(e){c.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(c.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&c.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t.default=f.Dialog},function(e,t,n){e.exports={default:n(381),__esModule:!0}},function(e,t,n){n(382),e.exports=n(97).Object.assign},function(e,t,n){var r=n(172);r(r.S+r.F,"Object",{assign:n(385)})},function(e,t,n){var r=n(384);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(a){return e.call(t,a)};case 2:return function(a,b){return e.call(t,a,b)};case 3:return function(a,b,n){return e.call(t,a,b,n)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(67),o=n(119),l=n(179),c=n(122),h=n(180),f=n(254),d=Object.assign;e.exports=!d||n(99)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||Object.keys(d({},t)).join("")!=r}))?function(e,source){for(var t=h(e),n=arguments.length,d=1,v=l.f,m=c.f;n>d;)for(var y,_=f(arguments[d++]),x=v?o(_).concat(v(_)):o(_),w=x.length,S=0;w>S;)y=x[S++],r&&!m.call(_,y)||(t[y]=_[y]);return t}:d},function(e,t,n){var r=n(79),o=n(387),l=n(388);e.exports=function(e){return function(t,n,c){var h,f=r(t),d=o(f.length),v=l(c,d);if(e&&n!=n){for(;d>v;)if((h=f[v++])!=h)return!0}else for(;d>v;v++)if((e||v in f)&&f[v]===n)return e||v||0;return!e&&-1}}},function(e,t,n){var r=n(175),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(175),o=Math.max,l=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):l(e,t)}},function(e,t,n){e.exports={default:n(390),__esModule:!0}},function(e,t,n){n(391),n(397),e.exports=n(183).f("iterator")},function(e,t,n){"use strict";var r=n(392)(!0);n(256)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(175),o=n(174);e.exports=function(e){return function(t,n){var a,b,s=String(o(t)),i=r(n),l=s.length;return i<0||i>=l?e?"":void 0:(a=s.charCodeAt(i))<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?e?s.charAt(i):a:e?s.slice(i,i+2):b-56320+(a-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(258),o=n(118),l=n(182),c={};n(77)(c,n(80)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(c,{next:o(1,n)}),l(e,t+" Iterator")}},function(e,t,n){var r=n(78),o=n(117),l=n(119);e.exports=n(67)?Object.defineProperties:function(e,t){o(e);for(var n,c=l(t),h=c.length,i=0;h>i;)r.f(e,n=c[i++],t[n]);return e}},function(e,t,n){var r=n(58).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(68),o=n(180),l=n(176)("IE_PROTO"),c=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){n(398);for(var r=n(58),o=n(77),l=n(181),c=n(80)("toStringTag"),h="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),i=0;i<h.length;i++){var f=h[i],d=r[f],v=d&&d.prototype;v&&!v[c]&&o(v,c,f),l[f]=l.Array}},function(e,t,n){"use strict";var r=n(399),o=n(400),l=n(181),c=n(79);e.exports=n(256)(Array,"Array",(function(e,t){this._t=c(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),l.Arguments=l.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(402),__esModule:!0}},function(e,t,n){n(403),n(409),n(410),n(411),e.exports=n(97).Symbol},function(e,t,n){"use strict";var r=n(58),o=n(68),l=n(67),c=n(172),h=n(257),f=n(404).KEY,d=n(99),v=n(177),m=n(182),y=n(121),_=n(80),x=n(183),w=n(184),S=n(405),k=n(406),O=n(117),C=n(98),T=n(180),E=n(79),A=n(173),M=n(118),I=n(258),D=n(407),P=n(408),N=n(179),L=n(78),j=n(119),R=P.f,F=L.f,B=D.f,z=r.Symbol,$=r.JSON,V=$&&$.stringify,H=_("_hidden"),W=_("toPrimitive"),U={}.propertyIsEnumerable,G=v("symbol-registry"),Y=v("symbols"),K=v("op-symbols"),X=Object.prototype,Z="function"==typeof z&&!!N.f,J=r.QObject,Q=!J||!J.prototype||!J.prototype.findChild,ee=l&&d((function(){return 7!=I(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=R(X,t);r&&delete X[t],F(e,t,n),r&&e!==X&&F(X,t,r)}:F,te=function(e){var t=Y[e]=I(z.prototype);return t._k=e,t},ne=Z&&"symbol"==typeof z.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof z},re=function(e,t,n){return e===X&&re(K,t,n),O(e),t=A(t,!0),O(n),o(Y,t)?(n.enumerable?(o(e,H)&&e[H][t]&&(e[H][t]=!1),n=I(n,{enumerable:M(0,!1)})):(o(e,H)||F(e,H,M(1,{})),e[H][t]=!0),ee(e,t,n)):F(e,t,n)},ie=function(e,t){O(e);for(var n,r=S(t=E(t)),i=0,o=r.length;o>i;)re(e,n=r[i++],t[n]);return e},oe=function(e){var t=U.call(this,e=A(e,!0));return!(this===X&&o(Y,e)&&!o(K,e))&&(!(t||!o(this,e)||!o(Y,e)||o(this,H)&&this[H][e])||t)},ae=function(e,t){if(e=E(e),t=A(t,!0),e!==X||!o(Y,t)||o(K,t)){var n=R(e,t);return!n||!o(Y,t)||o(e,H)&&e[H][t]||(n.enumerable=!0),n}},se=function(e){for(var t,n=B(E(e)),r=[],i=0;n.length>i;)o(Y,t=n[i++])||t==H||t==f||r.push(t);return r},le=function(e){for(var t,n=e===X,r=B(n?K:E(e)),l=[],i=0;r.length>i;)!o(Y,t=r[i++])||n&&!o(X,t)||l.push(Y[t]);return l};Z||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor!");var e=y(arguments.length>0?arguments[0]:void 0),t=function(n){this===X&&t.call(K,n),o(this,H)&&o(this[H],e)&&(this[H][e]=!1),ee(this,e,M(1,n))};return l&&Q&&ee(X,e,{configurable:!0,set:t}),te(e)},h(z.prototype,"toString",(function(){return this._k})),P.f=ae,L.f=re,n(259).f=D.f=se,n(122).f=oe,N.f=le,l&&!n(120)&&h(X,"propertyIsEnumerable",oe,!0),x.f=function(e){return te(_(e))}),c(c.G+c.W+c.F*!Z,{Symbol:z});for(var ue="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ce=0;ue.length>ce;)_(ue[ce++]);for(var he=j(_.store),fe=0;he.length>fe;)w(he[fe++]);c(c.S+c.F*!Z,"Symbol",{for:function(e){return o(G,e+="")?G[e]:G[e]=z(e)},keyFor:function(e){if(!ne(e))throw TypeError(e+" is not a symbol!");for(var t in G)if(G[t]===e)return t},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),c(c.S+c.F*!Z,"Object",{create:function(e,t){return void 0===t?I(e):ie(I(e),t)},defineProperty:re,defineProperties:ie,getOwnPropertyDescriptor:ae,getOwnPropertyNames:se,getOwnPropertySymbols:le});var de=d((function(){N.f(1)}));c(c.S+c.F*de,"Object",{getOwnPropertySymbols:function(e){return N.f(T(e))}}),$&&c(c.S+c.F*(!Z||d((function(){var e=z();return"[null]"!=V([e])||"{}"!=V({a:e})||"{}"!=V(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(C(t)||void 0!==e)&&!ne(e))return k(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!ne(t))return t}),r[1]=t,V.apply($,r)}}),z.prototype[W]||n(77)(z.prototype,W,z.prototype.valueOf),m(z,"Symbol"),m(Math,"Math",!0),m(r.JSON,"JSON",!0)},function(e,t,n){var r=n(121)("meta"),o=n(98),l=n(68),c=n(78).f,h=0,f=Object.isExtensible||function(){return!0},d=!n(99)((function(){return f(Object.preventExtensions({}))})),v=function(e){c(e,r,{value:{i:"O"+ ++h,w:{}}})},meta=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!l(e,r)){if(!f(e))return"F";if(!t)return"E";v(e)}return e[r].i},getWeak:function(e,t){if(!l(e,r)){if(!f(e))return!0;if(!t)return!1;v(e)}return e[r].w},onFreeze:function(e){return d&&meta.NEED&&f(e)&&!l(e,r)&&v(e),e}}},function(e,t,n){var r=n(119),o=n(179),l=n(122);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var c,h=n(e),f=l.f,i=0;h.length>i;)f.call(e,c=h[i++])&&t.push(c);return t}},function(e,t,n){var r=n(255);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(79),o=n(259).f,l={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return c&&"[object Window]"==l.call(e)?function(e){try{return o(e)}catch(e){return c.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(122),o=n(118),l=n(79),c=n(173),h=n(68),f=n(251),d=Object.getOwnPropertyDescriptor;t.f=n(67)?d:function(e,t){if(e=l(e),t=c(t,!0),f)try{return d(e,t)}catch(e){}if(h(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(184)("asyncIterator")},function(e,t,n){n(184)("observable")},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=92)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=n(164)},2:function(e,t){e.exports=n(57)},21:function(e,t){e.exports=n(168)},30:function(e,t,n){"use strict";var r=n(2);t.a={bind:function(e,t,n){var o=null,l=void 0,c=function(){return n.context[t.expression].apply()},h=function(){Date.now()-l<100&&c(),clearInterval(o),o=null};Object(r.on)(e,"mousedown",(function(e){0===e.button&&(l=Date.now(),Object(r.once)(document,"mouseup",h),clearInterval(o),o=setInterval(c,100))}))}}},92:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.decrease(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.increase(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increase(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrease(t))}]}})],1)};r._withStripped=!0;var o=n(11),l=n.n(o),c=n(21),h=n.n(c),f=n(30),d={name:"ElInputNumber",mixins:[h()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:f.a},components:{ElInput:l.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);t=Math.round(t/this.step)*r*this.step/r}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,r=this.precision,o=n(t);return void 0!==r?(o>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(e),o)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"==typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),r=0;return-1!==n&&(r=t.length-n-1),r},_increase:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"==typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)}},v=n(0),component=Object(v.a)(d,r,[],!1,null,null,null);component.options.__file="packages/input-number/src/input-number.vue";var m=component.exports;m.install=function(e){e.component(m.name,m)};t.default=m}})},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="/dist/",n(n.s=58)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),l&&(d._scopeId="data-v-"+l),c?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=f):o&&(f=h?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var v=d.render;d.render=function(e,t){return f.call(t),v(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,f):[f]}return{exports:e,options:d}}n.d(t,"a",(function(){return r}))},13:function(e,t){e.exports=n(167)},17:function(e,t){e.exports=n(248)},22:function(e,t){e.exports=n(169)},26:function(e,t){e.exports=n(249)},3:function(e,t){e.exports=n(47)},31:function(e,t){e.exports=n(170)},39:function(e,t){e.exports=n(171)},51:function(e,t){e.exports=n(260)},58:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(menu,e){return n("cascader-menu",{key:e,ref:"menu",refInFor:!0,attrs:{index:e,nodes:menu}})})),1)};r._withStripped=!0;var o=n(26),l=n.n(o),c=n(13),h=n.n(c),f=n(17),d=n.n(f),v=n(51),m=n.n(v),y=n(3),_=function(e){return e.stopPropagation()},x={inject:["panel"],components:{ElCheckbox:d.a,ElRadio:m.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,r=this.isDisabled,o=this.config,l=o.multiple;!o.checkStrictly&&r||n.loading||(o.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),l){var r=!!t&&n.checked;e.handleMultiCheckChange(r)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node;return(e[t.level-1]||{}).uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,r=this.config,o=r.checkStrictly;return r.multiple?this.renderCheckbox(e):o?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,r=this.isDisabled,o={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(o.nativeOn.click=_),e("el-checkbox",l()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:r}},o]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,r=this.isDisabled;return Object(y.isEqual)(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:_}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,r=t.renderLabelFn;return e("span",{class:"el-cascader-node__label"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(e){var t=this,n=this.inActivePath,r=this.inCheckedPath,o=this.isChecked,c=this.isLeaf,h=this.isDisabled,f=this.config,d=this.nodeId,v=f.expandTrigger,m=f.checkStrictly,y=f.multiple,_=!m&&h,x={on:{}};return c?h||m||y||(x.on.click=this.handleCheckChange):"click"===v?x.on.click=this.handleExpand:(x.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},x.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),e("li",l()([{attrs:{role:"menuitem",id:d,"aria-expanded":n,tabindex:_?null:-1},class:{"el-cascader-node":!0,"is-selectable":m,"in-active-path":n,"in-checked-path":r,"is-active":o,"is-disabled":_}},x]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},w=n(0),component=Object(w.a)(x,undefined,undefined,!1,null,null,null);component.options.__file="packages/cascader-panel/src/cascader-node.vue";var S=component.exports,k=n(6),O={name:"ElCascaderMenu",mixins:[n.n(k).a],inject:["panel"],components:{ElScrollbar:h.a,CascaderNode:S},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(y.generateId)()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(t&&r)if(t.contains(e.target)){clearTimeout(n);var o=this.$el.getBoundingClientRect().left,l=e.clientX-o,c=this.$el,h=c.offsetWidth,f=c.offsetHeight,d=t.offsetTop,v=d+t.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+l+" "+d+" L"+h+" 0 V"+d+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+l+" "+v+" L"+h+" "+f+" V"+v+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var o=this.nodes.map((function(n,o){var c=n.hasChildren;return e("cascader-node",l()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+o,"aria-haspopup":c,"aria-owns":c?t:null}},r]))}));return[].concat(o,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",l()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},r]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},C=Object(w.a)(O,undefined,undefined,!1,null,null,null);C.options.__file="packages/cascader-panel/src/cascader-menu.vue";var T=C.exports,E=n(22),A=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var M=0,I=function(){function e(data,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=data,this.config=t,this.parent=n||null,this.level=this.parent?this.parent.level+1:1,this.uid=M++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,r=n.children,o=this.data[r];this.hasChildren=Array.isArray(o),this.children=(o||[]).map((function(r){return new e(r,n,t)}))},e.prototype.calculatePathNodes=function(){for(var e=[this],t=this.parent;t;)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(y.isEqual)(e,t)})):Object(y.isEqual)(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o="onParent"+Object(y.capitalize)(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[o]&&t[o].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(y.capitalize)(e);if(t){for(var r=arguments.length,o=Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];t[n]&&t[n].apply(t,o),t.emit.apply(t,[e].concat(o))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children.filter((function(e){return!e.isDisabled})),t=!!e.length&&e.every((function(e){return e.checked}));this.setCheckState(t)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,p){return e+(p.checked?1:p.indeterminate?.5:0)}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},A(e,[{key:"isDisabled",get:function(){var data=this.data,e=this.parent,t=this.config,n=t.disabled,r=t.checkStrictly;return data[n]||!r&&e&&e.isDisabled}},{key:"isLeaf",get:function(){var data=this.data,e=this.loaded,t=this.hasChildren,n=this.children,r=this.config,o=r.lazy,l=r.leaf;if(o){var c=Object(E.isDef)(data[l])?data[l]:!!e&&!n.length;return this.hasChildren=!c,c}return!t}}]),e}(),D=I;var P=function e(data,t){return data.reduce((function(n,r){return r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(e(r.children,t))),n}),[])},N=function(){function e(data,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.initNodes(data)}return e.prototype.initNodes=function(data){var e=this;data=Object(y.coerceTruthyValueToArray)(data),this.nodes=data.map((function(t){return new D(t,e.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new D(e,this.config,t);(t?t.children:this.nodes).push(n)},e.prototype.appendNodes=function(e,t){var n=this;(e=Object(y.coerceTruthyValueToArray)(e)).forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:P(this.nodes,e)},e.prototype.getNodeByValue=function(e){if(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(y.valueEquals)(t.path,e)||t.value===e}));return t&&t.length?t[0]:null}return null},e}(),L=N,j=n(9),R=n.n(j),F=n(39),B=n.n(F),z=n(31),$=n.n(z),V=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e},H=B.a.keys,W={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:y.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},U=function(e){return!e.getAttribute("aria-owns")},G=function(e,t){var n=e.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return r[Array.prototype.indexOf.call(r,e)+t]||null}return null},Y=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},K=function(e){e&&(e.focus(),!U(e)&&e.click())},X={name:"ElCascaderPanel",components:{CascaderMenu:T},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return R()(V({},W),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(e){Object(y.isEqual)(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){Object(y.isEmpty)(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(y.isEmpty)(t)?this.lazyLoad():(this.store=new L(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(y.isEqual)(e,t)||(this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this;this.getFlattedNodes(this.leafOnly).forEach((function(t){t.syncCheckState(e.checkedValue)}))},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,o=this.checkedValue;if(Object(y.isEmpty)(r))if(Object(y.isEmpty)(o))this.activePath=[],this.menus=[t.getNodes()];else{var l=n?o[0]:o,c=((this.getNodeByValue(l)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(c)}else{var h=r.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(h)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple?Object(y.coerceTruthyValueToArray)(t):[t];this.checkedNodePaths=n.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target;switch(e.keyCode){case H.up:var n=G(t,-1);K(n);break;case H.down:var r=G(t,1);K(r);break;case H.left:var o=this.$refs.menu[Y(t)-1];if(o){var l=o.$el.querySelector('.el-cascader-node[aria-expanded="true"]');K(l)}break;case H.right:var c=this.$refs.menu[Y(t)+1];if(c){var h=c.$el.querySelector('.el-cascader-node[tabindex="-1"]');K(h)}break;case H.enter:!function(e){if(e){var input=e.querySelector("input");input?input.click():U(e)&&e.click()}}(t);break;case H.esc:case H.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,r=e.level,path=n.slice(0,r-1),o=this.menus.slice(0,r);if(e.isLeaf||(path.push(e),o.push(e.children)),this.activePath=path,this.menus=o,!t){var l=path.map((function(e){return e.getValue()})),c=n.map((function(e){return e.getValue()}));Object(y.valueEquals)(l,c)||(this.$emit("active-item-change",l),this.$emit("expand-change",l))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,r=this.config;e||(e=e||{root:!0,level:0},this.store=new L([],r),this.menus=[this.store.getNodes()]),e.loading=!0;r.lazyLoad(e,(function(r){var o=e.root?null:e;if(r&&r.length&&n.store.appendNodes(r,o),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var l=n.checkedValue[n.loadCount++],c=n.config.value,h=n.config.leaf;if(Array.isArray(r)&&r.filter((function(e){return e[c]===l})).length>0){var f=n.store.getNodeByValue(l);f.data[h]||n.lazyLoad(f,(function(){n.handleExpand(f)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(r)}))},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){this.$isServer||(this.$refs.menu||[]).forEach((function(menu){var e=menu.$el;if(e){var t=e.querySelector(".el-scrollbar__wrap"),n=e.querySelector(".el-cascader-node.is-active")||e.querySelector(".el-cascader-node.in-active-path");$()(t,n)}}))},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue;return this.multiple?this.getFlattedNodes(e).filter((function(e){return e.checked})):Object(y.isEmpty)(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,r=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},Z=Object(w.a)(X,r,[],!1,null,null,null);Z.options.__file="packages/cascader-panel/src/cascader-panel.vue";var J=Z.exports;J.install=function(e){e.component(J.name,J)};t.default=J},6:function(e,t){e.exports=n(161)},9:function(e,t){e.exports=n(115)}})},function(e,t,n){(function(t){var n;"undefined"!=typeof self&&self,n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),l=n(19),c=n(45),h=n(46),f=n(47),d=n(48),v=n(49),m=n(12),y=n(32),_=n(33),x=n(31),w=n(1),S={Scope:w.Scope,create:w.create,find:w.find,query:w.query,register:w.register,Container:r.default,Format:o.default,Leaf:l.default,Embed:d.default,Scroll:c.default,Block:f.default,Inline:h.default,Text:v.default,Attributor:{Attribute:m.default,Class:y.default,Style:_.default,Store:x.default}};t.default=S},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},function(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)});Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return o(t,e),t}(Error);t.ParchmentError=l;var c,h={},f={},d={},v={};function m(e,t){var n;if(void 0===t&&(t=c.ANY),"string"==typeof e)n=v[e]||h[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=v.text;else if("number"==typeof e)e&c.LEVEL&c.BLOCK?n=v.block:e&c.LEVEL&c.INLINE&&(n=v.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=f[r[i]])break;n=n||d[e.tagName]}return null==n?null:t&c.LEVEL&n.scope&&t&c.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(c=t.Scope||(t.Scope={})),t.create=function(input,e){var t=m(input);if(null==t)throw new l("Unable to create "+input+" blot");var n=t,r=input instanceof Node||input.nodeType===Node.TEXT_NODE?input:n.create(e);return new n(r,e)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=m,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new l("Invalid definition");if("abstract"===r.blotName)throw new l("Cannot register abstract class");if(v[r.blotName||r.attrName]=r,"string"==typeof r.keyName)h[r.keyName]=r;else if(null!=r.className&&(f[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var o=Array.isArray(r.tagName)?r.tagName:[r.tagName];o.forEach((function(e){null!=d[e]&&null!=r.className||(d[e]=r)}))}return r}},function(e,t,n){var r=n(51),o=n(11),l=n(3),c=n(20),h=String.fromCharCode(0),f=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};f.prototype.insert=function(text,e){var t={};return 0===text.length?this:(t.insert=text,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},f.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},f.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},f.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=l(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},f.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},f.prototype.filter=function(e){return this.ops.filter(e)},f.prototype.forEach=function(e){this.ops.forEach(e)},f.prototype.map=function(e){return this.ops.map(e)},f.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},f.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},f.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+c.length(t):t.delete?e-t.delete:e}),0)},f.prototype.length=function(){return this.reduce((function(e,t){return e+c.length(t)}),0)},f.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=c.iterator(this.ops),o=0;o<t&&r.hasNext();){var l;o<e?l=r.next(e-o):(l=r.next(t-o),n.push(l)),o+=c.length(l)}return new f(n)},f.prototype.compose=function(e){var t=c.iterator(this.ops),n=c.iterator(e.ops),r=[],l=n.peek();if(null!=l&&"number"==typeof l.retain&&null==l.attributes){for(var h=l.retain;"insert"===t.peekType()&&t.peekLength()<=h;)h-=t.peekLength(),r.push(t.next());l.retain-h>0&&n.next(l.retain-h)}for(var d=new f(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())d.push(n.next());else if("delete"===t.peekType())d.push(t.next());else{var v=Math.min(t.peekLength(),n.peekLength()),m=t.next(v),y=n.next(v);if("number"==typeof y.retain){var _={};"number"==typeof m.retain?_.retain=v:_.insert=m.insert;var x=c.attributes.compose(m.attributes,y.attributes,"number"==typeof m.retain);if(x&&(_.attributes=x),d.push(_),!n.hasNext()&&o(d.ops[d.ops.length-1],_)){var w=new f(t.rest());return d.concat(w).chop()}}else"number"==typeof y.delete&&"number"==typeof m.retain&&d.push(y)}return d.chop()},f.prototype.concat=function(e){var t=new f(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},f.prototype.diff=function(e,t){if(this.ops===e.ops)return new f;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:h;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),l=new f,d=r(n[0],n[1],t),v=c.iterator(this.ops),m=c.iterator(e.ops);return d.forEach((function(component){for(var e=component[1].length;e>0;){var t=0;switch(component[0]){case r.INSERT:t=Math.min(m.peekLength(),e),l.push(m.next(t));break;case r.DELETE:t=Math.min(e,v.peekLength()),v.next(t),l.delete(t);break;case r.EQUAL:t=Math.min(v.peekLength(),m.peekLength(),e);var n=v.next(t),h=m.next(t);o(n.insert,h.insert)?l.retain(t,c.attributes.diff(n.attributes,h.attributes)):l.push(h).delete(t)}e-=t}})),l.chop()},f.prototype.eachLine=function(e,t){t=t||"\n";for(var n=c.iterator(this.ops),line=new f,i=0;n.hasNext();){if("insert"!==n.peekType())return;var r=n.peek(),o=c.length(r)-n.peekLength(),l="string"==typeof r.insert?r.insert.indexOf(t,o)-o:-1;if(l<0)line.push(n.next());else if(l>0)line.push(n.next(l));else{if(!1===e(line,n.next(1).attributes||{},i))return;i+=1,line=new f}}line.length()>0&&e(line,{},i)},f.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=c.iterator(this.ops),r=c.iterator(e.ops),o=new f;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var l=Math.min(n.peekLength(),r.peekLength()),h=n.next(l),d=r.next(l);if(h.delete)continue;d.delete?o.push(d):o.retain(l,c.attributes.transform(h.attributes,d.attributes,t))}else o.retain(c.length(n.next()));return o.chop()},f.prototype.transformPosition=function(e,t){t=!!t;for(var n=c.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),l=n.peekType();n.next(),"delete"!==l?("insert"===l&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=f},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},h=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!l)return!1;for(t in e);return void 0===t||n.call(e,t)},f=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(l)return l(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,l,v,m=arguments[0],i=1,y=arguments.length,_=!1;for("boolean"==typeof m&&(_=m,m=arguments[1]||{},i=2),(null==m||"object"!=typeof m&&"function"!=typeof m)&&(m={});i<y;++i)if(null!=(t=arguments[i]))for(n in t)r=d(m,n),m!==(o=d(t,n))&&(_&&o&&(h(o)||(l=c(o)))?(l?(l=!1,v=r&&c(r)?r:[]):v=r&&h(r)?r:{},f(m,{name:n,newValue:e(_,v,o)})):void 0!==o&&f(m,{name:n,newValue:o}));return m}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=m(n(3)),c=m(n(2)),h=m(n(0)),f=m(n(16)),d=m(n(6)),v=m(n(7));function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=function(e){function t(){return y(this,t),_(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return x(t,e),r(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new h.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new c.default).insert(this.value(),(0,l.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=h.default.query(e,h.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"==typeof n&&n.endsWith("\n")){var l=h.default.create(S.blotName);this.parent.insertBefore(l,0===e?this:this.next),l.insertAt(0,n.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(h.default.Embed);w.scope=h.default.Scope.BLOCK_BLOT;var S=function(e){function t(e){y(this,t);var n=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return x(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(h.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),k(t))}),new c.default).insert("\n",k(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,l){n<=0||(h.default.query(r,h.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,l):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,l),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var l=n.split("\n"),text=l.shift();text.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),text):this.children.tail.insertAt(this.children.tail.length(),text),this.cache={});var c=this;l.reduce((function(e,line){return(c=c.split(e,!0)).insertAt(0,line),line.length}),e+text.length)}}},{key:"insertBefore",value:function(e,n){var head=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),head instanceof f.default&&head.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var l=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},l}}]),t}(h.default.Block);function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,l.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:k(e.parent,t))}S.blotName="block",S.tagName="P",S.defaultChild="break",S.allowedChildren=[d.default,h.default.Embed,v.default],t.bubbleFormats=k,t.BlockEmbed=w,t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,i){var t=[],n=!0,r=!1,o=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done)&&(t.push(l.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return t}(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var c=S(n(2)),h=S(n(14)),f=S(n(8)),d=S(n(9)),v=S(n(0)),m=n(15),y=S(m),_=S(n(3)),x=S(n(10)),w=S(n(34));function S(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var C=(0,x.default)("quill"),T=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(O(this,e),this.options=E(t,r),this.container=this.options.container,null==this.container)return C.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var html=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new f.default,this.scroll=v.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new h.default(this.scroll),this.selection=new y.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(e){e===f.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(f.default.events.SCROLL_UPDATE,(function(source,e){var t=n.selection.lastRange,r=t&&0===t.length?t.index:void 0;A.call(n,(function(){return n.editor.update(null,e,r)}),source)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+html+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return l(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),x.default.level(e)}},{key:"find",value:function(e){return e.__quill||v.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&C.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(path,e){var t=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof path){var r=path.attrName||path.blotName;"string"==typeof r?this.register("formats/"+r,path,e):Object.keys(path).forEach((function(n){t.register(n,path[n],e)}))}else null==this.imports[path]||n||C.warn("Overwriting "+path+" with",e),this.imports[path]=e,(path.startsWith("blots/")||path.startsWith("formats/"))&&"abstract"!==e.blotName?v.default.register(e):path.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),l(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,source){var n=this,r=M(e,t,source),l=o(r,4);return e=l[0],t=l[1],source=l[3],A.call(this,(function(){return n.editor.deleteText(e,t)}),source,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,source=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;return A.call(this,(function(){var r=n.getSelection(!0),o=new c.default;if(null==r)return o;if(v.default.query(e,v.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,k({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,k({},e,t))}return n.setSelection(r,f.default.sources.SILENT),o}),source)}},{key:"formatLine",value:function(e,t,n,r,source){var l,c=this,h=M(e,t,n,r,source),f=o(h,4);return e=f[0],t=f[1],l=f[2],source=f[3],A.call(this,(function(){return c.editor.formatLine(e,t,l)}),source,e,0)}},{key:"formatText",value:function(e,t,n,r,source){var l,c=this,h=M(e,t,n,r,source),f=o(h,4);return e=f[0],t=f[1],l=f[2],source=f[3],A.call(this,(function(){return c.editor.formatText(e,t,l)}),source,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=M(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=M(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,embed,n){var r=this,source=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return A.call(this,(function(){return r.editor.insertEmbed(t,embed,n)}),source,t)}},{key:"insertText",value:function(e,text,t,n,source){var r,l=this,c=M(e,0,t,n,source),h=o(c,4);return e=h[0],r=h[2],source=h[3],A.call(this,(function(){return l.editor.insertText(e,text,r)}),source,e,text.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,html,source){this.clipboard.dangerouslyPasteHTML(e,html,source)}},{key:"removeFormat",value:function(e,t,source){var n=this,r=M(e,t,source),l=o(r,4);return e=l[0],t=l[1],source=l[3],A.call(this,(function(){return n.editor.removeFormat(e,t)}),source,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,source=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return A.call(this,(function(){e=new c.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),l=o.ops[o.ops.length-1];return null!=l&&"string"==typeof l.insert&&"\n"===l.insert[l.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)}),source)}},{key:"setSelection",value:function(t,n,source){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var r=M(t,n,source),l=o(r,4);t=l[0],n=l[1],source=l[3],this.selection.setRange(new m.Range(t,n),source),source!==f.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(text){var source=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API,e=(new c.default).insert(text);return this.setContents(e,source)}},{key:"update",value:function(){var source=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,e=this.scroll.update(source);return this.selection.update(source),e}},{key:"updateContents",value:function(e){var t=this,source=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return A.call(this,(function(){return e=new c.default(e),t.editor.applyDelta(e,source)}),source,!0)}}]),e}();function E(e,t){if((t=(0,_.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==T.DEFAULTS.theme){if(t.theme=T.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=w.default;var n=(0,_.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=T.import("modules/"+t);return null==n?C.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,_.default)(!0,{},T.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function A(e,source,t,n){if(this.options.strict&&!this.isEnabled()&&source===f.default.sources.USER)return new c.default;var r=null==t?null:this.getSelection(),o=this.editor.delta,l=e();if(null!=r&&(!0===t&&(t=r.index),null==n?r=I(r,l,source):0!==n&&(r=I(r,t,n,source)),this.setSelection(r,f.default.sources.SILENT)),l.length()>0){var h,d,v=[f.default.events.TEXT_CHANGE,l,o,source];(h=this.emitter).emit.apply(h,[f.default.events.EDITOR_CHANGE].concat(v)),source!==f.default.sources.SILENT&&(d=this.emitter).emit.apply(d,v)}return l}function M(e,t,n,o,source){var l={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(source=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(source=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(l=n,source=o):"string"==typeof n&&(null!=o?l[n]=o:source=n),[e,t,l,source=source||f.default.sources.API]}function I(e,t,n,source){if(null==e)return null;var r=void 0,l=void 0;if(t instanceof c.default){var h=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,source!==f.default.sources.USER)})),d=o(h,2);r=d[0],l=d[1]}else{var v=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&source===f.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),y=o(v,2);r=y[0],l=y[1]}return new m.Range(r,l-r)}T.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},T.events=f.default.events,T.sources=f.default.sources,T.version="1.3.7",T.imports={delta:c.default,parchment:v.default,"core/module":d.default,"core/theme":w.default},t.expandConfig=E,t.overload=M,t.default=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=h(n(7)),c=h(n(0));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var v=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,l){if(t.compare(this.statics.blotName,r)<0&&c.default.query(r,c.default.Scope.BLOT)){var h=this.isolate(e,n);l&&h.wrap(r,l)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,l)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(c.default.Inline);v.allowedChildren=[v,c.default.Embed,l.default],v.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default.Text);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=c(n(54));function c(e){return e&&e.__esModule?e:{default:e}}var h=(0,c(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var f=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",h.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){h.log.apply(h,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(l.default);f.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},f.sources={API:"api",SILENT:"silent",USER:"user"},t.default=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};o.DEFAULTS={},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function l(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,l=Array(n>1?n-1:0),c=1;c<n;c++)l[c-1]=arguments[c];(t=console)[e].apply(t,l)}}function c(e){return r.reduce((function(t,n){return t[n]=l.bind(console,n,e),t}),{})}l.level=c.level=function(e){o=e},t.default=c},function(e,t,n){var r=Array.prototype.slice,o=n(52),l=n(53),c=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(a,b,e){var i,t;if(h(a)||h(b))return!1;if(a.prototype!==b.prototype)return!1;if(l(a))return!!l(b)&&(a=r.call(a),b=r.call(b),c(a,b,e));if(f(a)){if(!f(b))return!1;if(a.length!==b.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==b[i])return!1;return!0}try{var n=o(a),d=o(b)}catch(e){return!1}if(n.length!=d.length)return!1;for(n.sort(),d.sort(),i=n.length-1;i>=0;i--)if(n[i]!=d[i])return!1;for(i=n.length-1;i>=0;i--)if(t=n[i],!c(a[t],b[t],e))return!1;return typeof a==typeof b}(e,t,n))};function h(e){return null==e}function f(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,i){var t=[],n=!0,r=!1,o=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done)&&(t.push(l.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return t}(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=m(n(2)),h=m(n(0)),f=m(n(4)),d=m(n(6)),v=m(n(7));function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=function(e){function t(){return y(this,t),_(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return x(t,e),t}(d.default);w.blotName="code",w.tagName="CODE";var S=function(e){function t(){return y(this,t),_(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return x(t,e),o(t,[{key:"delta",value:function(){var e=this,text=this.domNode.textContent;return text.endsWith("\n")&&(text=text.slice(0,-1)),text.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new c.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var o=this.descendant(v.default,this.length()-1),text=r(o,1)[0];null!=text&&text.deleteAt(text.length()-1,1),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,o){if(0!==n&&null!=h.default.query(r,h.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var l=this.newlineIndex(e);if(!(l<0||l>=e+n)){var c=this.newlineIndex(e,!0)+1,f=l-c+1,d=this.isolate(c,f),v=d.next;d.format(r,o),v instanceof t&&v.formatAt(0,e-c+n-f,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(v.default,e),l=r(o,2),text=l[0],c=l[1];text.insertAt(c,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(h.default.create("text","\n")),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=h.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof h.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=l(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(f.default);S.blotName="code-block",S.tagName="PRE",S.TAB=" ",t.Code=w,t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,i){var t=[],n=!0,r=!1,o=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done)&&(t.push(l.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return t}(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=k(n(2)),h=k(n(20)),f=k(n(0)),d=k(n(13)),v=k(n(24)),m=n(4),y=k(m),_=k(n(16)),x=k(n(21)),w=k(n(11)),S=k(n(3));function k(e){return e&&e.__esModule?e:{default:e}}var O=/^[ -~]*$/,C=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return l(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var l=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,x.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,x.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var text=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(text,t.attributes)}return e.push(t)}),new c.default)}(e)).reduce((function(e,c){var d=c.retain||c.delete||c.insert.length||1,v=c.attributes||{};if(null!=c.insert){if("string"==typeof c.insert){var text=c.insert;text.endsWith("\n")&&n&&(n=!1,text=text.slice(0,-1)),e>=l&&!text.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,text);var _=t.scroll.line(e),x=o(_,2),line=x[0],w=x[1],k=(0,S.default)({},(0,m.bubbleFormats)(line));if(line instanceof y.default){var O=line.descendant(f.default.Leaf,w),C=o(O,1)[0];k=(0,S.default)(k,(0,m.bubbleFormats)(C))}v=h.default.attributes.diff(k,v)||{}}else if("object"===r(c.insert)){var T=Object.keys(c.insert)[0];if(null==T)return e;t.scroll.insertAt(e,T,c.insert[T])}l+=d}return Object.keys(v).forEach((function(n){t.scroll.formatAt(e,d,n,v[n])})),e+d}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new c.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var l=n.scroll.lines(e,Math.max(t,1)),c=t;l.forEach((function(line){var t=line.length();if(line instanceof d.default){var l=e-line.offset(n.scroll),h=line.newlineIndex(l+c)-l+1;line.formatAt(l,h,o,r[o])}else line.format(o,r[o]);c-=t}))}})),this.scroll.optimize(),this.update((new c.default).retain(e).retain(t,(0,x.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])})),this.update((new c.default).retain(e).retain(t,(0,x.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,line){return e.concat(line.delta())}),new c.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(path){var e=o(path,1)[0];e instanceof y.default?n.push(e):e instanceof f.default.Leaf&&r.push(e)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(f.default.Leaf,e,t));var l=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,m.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=T((0,m.bubbleFormats)(n),t)}return t}));return S.default.apply(S.default,l)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,embed,t){return this.scroll.insertAt(e,embed,t),this.update((new c.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},embed,t)))}},{key:"insertText",value:function(e,text){var t=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return text=text.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,text),Object.keys(n).forEach((function(r){t.scroll.formatAt(e,text.length,r,n[r])})),this.update((new c.default).retain(e).insert(text,(0,x.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===y.default.blotName&&!(e.children.length>1)&&e.children.head instanceof _.default}},{key:"removeFormat",value:function(e,t){var text=this.getText(e,t),n=this.scroll.line(e+t),r=o(n,2),line=r[0],l=r[1],h=0,f=new c.default;null!=line&&(h=line instanceof d.default?line.newlineIndex(l)-l+1:line.length()-l,f=line.delta().slice(l,l+h-1).insert("\n"));var v=this.getContents(e,t+h).diff((new c.default).insert(text).concat(f)),m=(new c.default).retain(e).concat(v);return this.applyDelta(m)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(O)&&f.default.find(t[0].target)){var o=f.default.find(t[0].target),l=(0,m.bubbleFormats)(o),h=o.offset(this.scroll),d=t[0].oldValue.replace(v.default.CONTENTS,""),y=(new c.default).insert(d),_=(new c.default).insert(o.value()),x=(new c.default).retain(h).concat(y.diff(_,n));e=x.reduce((function(e,t){return t.insert?e.insert(t.insert,l):e.push(t)}),new c.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,w.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function T(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,i){var t=[],n=!0,r=!1,o=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done)&&(t.push(l.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return t}(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=d(n(0)),c=d(n(21)),h=d(n(11)),f=d(n(8));function d(e){return e&&e.__esModule?e:{default:e}}function v(e){if(Array.isArray(e)){for(var i=0,t=Array(e.length);i<e.length;i++)t[i]=e[i];return t}return Array.from(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=(0,d(n(10)).default)("quill:selection"),_=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;m(this,e),this.index=t,this.length=n},x=function(){function e(t,n){var r=this;m(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,f.default.sources.USER),1)})),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(e,t){e===f.default.events.TEXT_CHANGE&&t.length()>0&&r.update(f.default.sources.SILENT)})),this.emitter.on(f.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(f.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(f.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,o=n.startNode,l=n.startOffset,c=n.endNode,h=n.endOffset;r.setNativeRange(o,l,c,h)}})),this.update(f.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(f.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!l.default.query(e,l.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=l.default.find(n.start.node,!1);if(null==r)return;if(r instanceof l.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,l=this.scroll.leaf(e),c=r(l,2),h=c[0],f=c[1];if(null==h)return null;var d=h.position(f,!0),v=r(d,2);o=v[0],f=v[1];var m=document.createRange();if(t>0){m.setStart(o,f);var y=this.scroll.leaf(e+t),_=r(y,2);if(h=_[0],f=_[1],null==h)return null;var x=h.position(f,!0),w=r(x,2);return o=w[0],f=w[1],m.setEnd(o,f),m.getBoundingClientRect()}var S="left",rect=void 0;return o instanceof Text?(f<o.data.length?(m.setStart(o,f),m.setEnd(o,f+1)):(m.setStart(o,f-1),m.setEnd(o,f),S="right"),rect=m.getBoundingClientRect()):(rect=h.domNode.getBoundingClientRect(),f>0&&(S="right")),{bottom:rect.top+rect.height,height:rect.height,left:rect[S],right:rect[S],top:rect.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return y.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=r(e,2),o=n[0],c=n[1],h=l.default.find(o,!0),f=h.offset(t.scroll);return 0===c?f:h instanceof l.default.Container?f+h.length():f+h.index(o,c)})),c=Math.min(Math.max.apply(Math,v(o)),this.scroll.length()-1),h=Math.min.apply(Math,[c].concat(v(o)));return new _(h,c-h)}},{key:"normalizeNative",value:function(e){if(!w(this.root,e.startContainer)||!e.collapsed&&!w(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],l=this.scroll.length();return n.forEach((function(e,i){e=Math.min(l-1,e);var n,c=t.scroll.leaf(e),h=r(c,2),f=h[0],d=h[1],v=f.position(d,0!==i),m=r(v,2);n=m[0],d=m[1],o.push(n,d)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,l=this.scroll.line(Math.min(t.index,o)),c=r(l,1)[0],h=c;if(t.length>0){var f=this.scroll.line(Math.min(t.index+t.length,o));h=r(f,1)[0]}if(null!=c&&null!=h){var d=e.getBoundingClientRect();n.top<d.top?e.scrollTop-=d.top-n.top:n.bottom>d.bottom&&(e.scrollTop+=n.bottom-d.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(y.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var l=document.getSelection();if(null!=l)if(null!=e){this.hasFocus()||this.root.focus();var c=(this.getNativeRange()||{}).native;if(null==c||o||e!==c.startContainer||t!==c.startOffset||n!==c.endContainer||r!==c.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var h=document.createRange();h.setStart(e,t),h.setEnd(n,r),l.removeAllRanges(),l.addRange(h)}}else l.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],source=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"==typeof t&&(source=t,t=!1),y.info("setRange",e),null!=e){var n=this.rangeToNative(e);this.setNativeRange.apply(this,v(n).concat([t]))}else this.setNativeRange(null);this.update(source)}},{key:"update",value:function(){var source=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,e=this.lastRange,t=this.getRange(),n=r(t,2),o=n[0],l=n[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,h.default)(e,this.lastRange)){var d;!this.composing&&null!=l&&l.native.collapsed&&l.start.node!==this.cursor.textNode&&this.cursor.restore();var v,m=[f.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(e),source];(d=this.emitter).emit.apply(d,[f.default.events.EDITOR_CHANGE].concat(m)),source!==f.default.sources.SILENT&&(v=this.emitter).emit.apply(v,m)}}}]),e}();function w(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=_,t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(0);function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){return h(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=c)&&r.__esModule?r:{default:r}).default.Embed);d.blotName="break",d.tagName="BR",t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},function(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(44),c=n(30),h=n(1),f=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=d(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof h.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],l=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,l]:o instanceof t?o.descendant(e,l):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],l=r;return this.children.forEachAt(n,r,(function(n,r,c){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,l))),l-=c})),o},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],l=r[1];if(o)o.insertAt(l,t,n);else{var c=null==n?h.create("text",t):h.create(t,n);this.appendChild(c)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new h.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=h.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],l=r[1],c=[[this,e]];return o instanceof t?c.concat(o.path(l,n)):(null!=o&&c.push([o,l]),c)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,o){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=h.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(a,b){return a===b?0:a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=h.find(e.nextSibling));var r=d(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(c.default);function d(e){var t=h.find(e);if(null==t)try{t=h.create(e)}catch(n){t=h.create(h.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=f},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},function(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(12),c=n(31),h=n(17),f=n(1),d=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new c.default(n.domNode),n}return o(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=f.query(e);n instanceof l.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(h.default);t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},function(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(30),c=n(1),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=c.Scope.INLINE_BLOT,t}(l.default);t.default=h},function(e,t,n){var r=n(11),o=n(3),l={attributes:{compose:function(a,b,e){"object"!=typeof a&&(a={}),"object"!=typeof b&&(b={});var t=o(!0,{},b);for(var n in e||(t=Object.keys(t).reduce((function(e,n){return null!=t[n]&&(e[n]=t[n]),e}),{})),a)void 0!==a[n]&&void 0===b[n]&&(t[n]=a[n]);return Object.keys(t).length>0?t:void 0},diff:function(a,b){"object"!=typeof a&&(a={}),"object"!=typeof b&&(b={});var e=Object.keys(a).concat(Object.keys(b)).reduce((function(e,t){return r(a[t],b[t])||(e[t]=void 0===b[t]?null:b[t]),e}),{});return Object.keys(e).length>0?e:void 0},transform:function(a,b,e){if("object"!=typeof a)return b;if("object"==typeof b){if(!e)return b;var t=Object.keys(b).reduce((function(e,t){return void 0===a[t]&&(e[t]=b[t]),e}),{});return Object.keys(t).length>0?t:void 0}}},iterator:function(e){return new c(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function c(e){this.ops=e,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=l.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},c.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},c.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=l},function(e,n){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,r,o;try{n=Map}catch(e){n=function(){}}try{r=Set}catch(e){r=function(){}}try{o=Promise}catch(e){o=function(){}}function l(c,f,d,v,m){"object"==typeof f&&(d=f.depth,v=f.prototype,m=f.includeNonEnumerable,f=f.circular);var y=[],_=[],x=void 0!==t;return void 0===f&&(f=!0),void 0===d&&(d=1/0),function c(d,w){if(null===d)return null;if(0===w)return d;var S,k;if("object"!=typeof d)return d;if(e(d,n))S=new n;else if(e(d,r))S=new r;else if(e(d,o))S=new o((function(e,t){d.then((function(t){e(c(t,w-1))}),(function(e){t(c(e,w-1))}))}));else if(l.__isArray(d))S=[];else if(l.__isRegExp(d))S=new RegExp(d.source,h(d)),d.lastIndex&&(S.lastIndex=d.lastIndex);else if(l.__isDate(d))S=new Date(d.getTime());else{if(x&&t.isBuffer(d))return S=t.allocUnsafe?t.allocUnsafe(d.length):new t(d.length),d.copy(S),S;e(d,Error)?S=Object.create(d):void 0===v?(k=Object.getPrototypeOf(d),S=Object.create(k)):(S=Object.create(v),k=v)}if(f){var O=y.indexOf(d);if(-1!=O)return _[O];y.push(d),_.push(S)}for(var i in e(d,n)&&d.forEach((function(e,t){var n=c(t,w-1),r=c(e,w-1);S.set(n,r)})),e(d,r)&&d.forEach((function(e){var t=c(e,w-1);S.add(t)})),d){var C;k&&(C=Object.getOwnPropertyDescriptor(k,i)),C&&null==C.set||(S[i]=c(d[i],w-1))}if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(d);for(i=0;i<T.length;i++){var symbol=T[i];(!(A=Object.getOwnPropertyDescriptor(d,symbol))||A.enumerable||m)&&(S[symbol]=c(d[symbol],w-1),A.enumerable||Object.defineProperty(S,symbol,{enumerable:!1}))}}if(m){var E=Object.getOwnPropertyNames(d);for(i=0;i<E.length;i++){var A,M=E[i];(A=Object.getOwnPropertyDescriptor(d,M))&&A.enumerable||(S[M]=c(d[M],w-1),Object.defineProperty(S,M,{enumerable:!1}))}}return S}(c,d)}function c(e){return Object.prototype.toString.call(e)}function h(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return l.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},l.__objToStr=c,l.__isDate=function(e){return"object"==typeof e&&"[object Date]"===c(e)},l.__isArray=function(e){return"object"==typeof e&&"[object Array]"===c(e)},l.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===c(e)},l.__getRegExpFlags=h,l}();"object"==typeof e&&e.exports&&(e.exports=r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,i){var t=[],n=!0,r=!1,o=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done)&&(t.push(l.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return t}(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=_(n(0)),h=_(n(8)),f=n(4),d=_(f),v=_(n(16)),m=_(n(13)),y=_(n(25));function _(e){return e&&e.__esModule?e:{default:e}}function x(e){return e instanceof d.default||e instanceof f.BlockEmbed}var w=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var o=this.line(e),c=r(o,2),h=c[0],d=c[1],y=this.line(e+n),_=r(y,1)[0];if(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=_&&h!==_&&d>0){if(h instanceof f.BlockEmbed||_ instanceof f.BlockEmbed)return void this.optimize();if(h instanceof m.default){var x=h.newlineIndex(h.length(),!0);if(x>-1&&(h=h.split(x+1))===_)return void this.optimize()}else if(_ instanceof m.default){var w=_.newlineIndex(0);w>-1&&_.split(w+1)}var S=_.children.head instanceof v.default?null:_.children.head;h.moveChildren(_,S),h.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==c.default.query(n,c.default.Scope.BLOCK)){var o=c.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var embed=c.default.create(n,r);this.appendChild(embed)}else l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===c.default.Scope.INLINE_BLOT){var r=c.default.create(this.statics.defaultChild);r.appendChild(e),e=r}l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(x,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var o=[],l=r;return t.children.forEachAt(n,r,(function(t,n,r){x(t)?o.push(t):t instanceof c.default.Container&&(o=o.concat(e(t,n,l))),l-=r})),o};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(h.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var source=h.default.sources.USER;"string"==typeof e&&(source=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(h.default.events.SCROLL_BEFORE_UPDATE,source,e),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(h.default.events.SCROLL_UPDATE,source,e)}}}]),t}(c.default.Scroll);w.blotName="scroll",w.className="ql-editor",w.tagName="DIV",w.defaultChild="block",w.allowedChildren=[d.default,f.BlockEmbed,y.default],t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,i){var t=[],n=!0,r=!1,o=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done)&&(t.push(l.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return t}(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=w(n(21)),h=w(n(11)),f=w(n(3)),d=w(n(2)),v=w(n(20)),m=w(n(0)),y=w(n(5)),_=w(n(10)),x=w(n(9));function w(e){return e&&e.__esModule?e:{default:e}}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=(0,_.default)("quill:keyboard"),O=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},I),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},E),r.addBinding({key:t.keys.DELETE},{collapsed:!0},A)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},E),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},A)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},M),r.addBinding({key:t.keys.DELETE},{collapsed:!1},M),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},E),r.listen(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,null,[{key:"match",value:function(e,t){return t=N(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),l(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=N(e);if(null==r||null==r.key)return k.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,f.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var l=n.which||n.keyCode,c=(e.bindings[l]||[]).filter((function(e){return t.match(n,e)}));if(0!==c.length){var f=e.quill.getSelection();if(null!=f&&e.quill.hasFocus()){var d=e.quill.getLine(f.index),v=o(d,2),line=v[0],y=v[1],_=e.quill.getLeaf(f.index),x=o(_,2),w=x[0],S=x[1],k=0===f.length?[w,S]:e.quill.getLeaf(f.index+f.length),O=o(k,2),C=O[0],T=O[1],E=w instanceof m.default.Text?w.value().slice(0,S):"",A=C instanceof m.default.Text?C.value().slice(T):"",M={collapsed:0===f.length,empty:0===f.length&&line.length()<=1,format:e.quill.getFormat(f),offset:y,prefix:E,suffix:A};c.some((function(t){if(null!=t.collapsed&&t.collapsed!==M.collapsed)return!1;if(null!=t.empty&&t.empty!==M.empty)return!1;if(null!=t.offset&&t.offset!==M.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==M.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=M.format[e]:!1===t.format[e]?null==M.format[e]:(0,h.default)(t.format[e],M.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(M.prefix)||null!=t.suffix&&!t.suffix.test(M.suffix)||!0===t.handler.call(e,f,M))}))&&n.preventDefault()}}}}))}}]),t}(x.default);function T(e,t){var n,r=e===C.keys.LEFT?"prefix":"suffix";return S(n={key:e,shiftKey:t,altKey:null},r,/^$/),S(n,"handler",(function(n){var r=n.index;e===C.keys.RIGHT&&(r+=n.length+1);var l=this.quill.getLeaf(r);return!(o(l,1)[0]instanceof m.default.Embed&&(e===C.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index-1,y.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index+n.length+1,y.default.sources.USER),1))})),n}function E(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),line=o(n,1)[0],r={};if(0===t.offset){var l=this.quill.getLine(e.index-1),c=o(l,1)[0];if(null!=c&&c.length()>1){var h=line.formats(),f=this.quill.getFormat(e.index-1,1);r=v.default.attributes.diff(h,f)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,y.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index-d,d,r,y.default.sources.USER),this.quill.focus()}}function A(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},l=0,c=this.quill.getLine(e.index),line=o(c,1)[0];if(t.offset>=line.length()-1){var h=this.quill.getLine(e.index+1),f=o(h,1)[0];if(f){var d=line.formats(),m=this.quill.getFormat(e.index,1);r=v.default.attributes.diff(d,m)||{},l=f.length()}}this.quill.deleteText(e.index,n,y.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+l-1,n,r,y.default.sources.USER)}}function M(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=v.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,y.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,y.default.sources.USER),this.quill.setSelection(e.index,y.default.sources.SILENT),this.quill.focus()}function I(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return m.default.query(n,m.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],y.default.sources.USER))}))}function D(e){return{key:C.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=m.default.query("code-block"),r=t.index,l=t.length,c=this.quill.scroll.descendant(n,r),h=o(c,2),f=h[0],d=h[1];if(null!=f){var v=this.quill.getIndex(f),_=f.newlineIndex(d,!0)+1,x=f.newlineIndex(v+d+l),w=f.domNode.textContent.slice(_,x).split("\n");d=0,w.forEach((function(line,i){e?(f.insertAt(_+d,n.TAB),d+=n.TAB.length,0===i?r+=n.TAB.length:l+=n.TAB.length):line.startsWith(n.TAB)&&(f.deleteAt(_+d,n.TAB.length),d-=n.TAB.length,0===i?r-=n.TAB.length:l-=n.TAB.length),d+=line.length+1})),this.quill.update(y.default.sources.USER),this.quill.setSelection(r,l,y.default.sources.SILENT)}}}}function P(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],y.default.sources.USER)}}}function N(e){if("string"==typeof e||"number"==typeof e)return N({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,c.default)(e,!1)),"string"==typeof e.key)if(null!=C.keys[e.key.toUpperCase()])e.key=C.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[O]=e.shortKey,delete e.shortKey),e}C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:P("bold"),italic:P("italic"),underline:P("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",y.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",y.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",y.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,y.default.sources.USER)}},"indent code-block":D(!0),"outdent code-block":D(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,y.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new d.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,y.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,y.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,y.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),line=n[0],r=n[1],l=(0,f.default)({},line.formats(),{list:"checked"}),c=(new d.default).retain(e.index).insert("\n",l).retain(line.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(c,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),line=r[0],l=r[1],c=(new d.default).retain(e.index).insert("\n",t.format).retain(line.length()-l-1).retain(1,{header:null});this.quill.updateContents(c,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),l=o(r,2),line=l[0],c=l[1];if(c>n)return!0;var h=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":h="unchecked";break;case"[x]":h="checked";break;case"-":case"*":h="bullet";break;default:h="ordered"}this.quill.insertText(e.index," ",y.default.sources.USER),this.quill.history.cutoff();var f=(new d.default).retain(e.index-c).delete(n+1).retain(line.length()-2-c).retain(1,{list:h});this.quill.updateContents(f,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,y.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),line=n[0],r=n[1],l=(new d.default).retain(e.index+line.length()-r-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(l,y.default.sources.USER)}},"embed left":T(C.keys.LEFT,!1),"embed left shift":T(C.keys.LEFT,!0),"embed right":T(C.keys.RIGHT,!1),"embed right shift":T(C.keys.RIGHT,!0)}},t.default=C,t.SHORTKEY=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,i){var t=[],n=!0,r=!1,o=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done)&&(t.push(l.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return t}(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=f(n(0)),h=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,null,[{key:"value",value:function(){}}]),l(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,l=0;null!=r&&r.statics.scope!==c.default.Scope.BLOCK_BLOT;)l+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(l,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),o=void 0,l=void 0,f=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var d=[e,n.start.offset,n.end.offset];o=d[0],l=d[1],f=d[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var text=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof h.default?(o=this.next.domNode,this.next.insertAt(0,text),this.textNode.data=t.CONTENTS):(this.textNode.data=text,this.parent.insertBefore(c.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=l){var v=[l,f].map((function(e){return Math.max(0,Math.min(o.data.length,e-1))})),m=r(v,2);return l=m[0],f=m[1],{startNode:o,startOffset:l,endNode:o,endOffset:f}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(c.default.Embed);d.blotName="cursor",d.className="ql-cursor",d.tagName="span",d.CONTENTS="\ufeff",t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(0)),o=n(4),l=c(o);function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){return h(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);d.allowedChildren=[l.default,o.BlockEmbed,d],t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(0),h=(r=c)&&r.__esModule?r:{default:r};function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var v=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var n=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(component){return("00"+parseInt(component).toString(16)).slice(-2)})).join("")):n}}]),t}(h.default.Attributor.Style),m=new h.default.Attributor.Class("color","ql-color",{scope:h.default.Scope.INLINE}),y=new v("color","color",{scope:h.default.Scope.INLINE});t.ColorAttributor=v,t.ColorClass=m,t.ColorStyle=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(6);function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){return h(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=l(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return v(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=c)&&r.__esModule?r:{default:r}).default);function v(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}d.blotName="link",d.tagName="A",d.SANITIZED_URL="about:blank",d.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=d,t.sanitize=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=h(n(23)),c=h(n(107));function h(e){return e&&e.__esModule?e:{default:e}}var f=0;function d(element,e){element.setAttribute(e,!("true"===element.getAttribute(e)))}var v=function(){function e(select){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=select,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){t.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case l.default.keys.ENTER:t.togglePicker();break;case l.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),d(this.label,"aria-expanded"),d(this.options,"aria-hidden")}},{key:"buildItem",value:function(option){var e=this,t=document.createElement("span");return t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item"),option.hasAttribute("value")&&t.setAttribute("data-value",option.getAttribute("value")),option.textContent&&t.setAttribute("data-label",option.textContent),t.addEventListener("click",(function(){e.selectItem(t,!0)})),t.addEventListener("keydown",(function(n){switch(n.keyCode){case l.default.keys.ENTER:e.selectItem(t,!0),n.preventDefault();break;case l.default.keys.ESCAPE:e.escape(),n.preventDefault()}})),t}},{key:"buildLabel",value:function(){var label=document.createElement("span");return label.classList.add("ql-picker-label"),label.innerHTML=c.default,label.tabIndex="0",label.setAttribute("role","button"),label.setAttribute("aria-expanded","false"),this.container.appendChild(label),label}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+f,f+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(option){var n=e.buildItem(option);t.appendChild(n),!0===option.selected&&e.selectItem(n)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var option=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];option=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var t=null!=option&&option!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}]),e}();t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=k(n(0)),o=k(n(5)),l=n(4),c=k(l),h=k(n(16)),f=k(n(25)),d=k(n(24)),v=k(n(35)),m=k(n(6)),y=k(n(22)),_=k(n(7)),x=k(n(55)),w=k(n(42)),S=k(n(23));function k(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":c.default,"blots/block/embed":l.BlockEmbed,"blots/break":h.default,"blots/container":f.default,"blots/cursor":d.default,"blots/embed":v.default,"blots/inline":m.default,"blots/scroll":y.default,"blots/text":_.default,"modules/clipboard":x.default,"modules/history":w.default,"modules/keyboard":S.default}),r.default.register(c.default,h.default,d.default,m.default,y.default,_.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var l=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)l.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var c=r.create(this.statics.scope);l.wrap(c),c.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),l=this.split(e);this.parent.insertBefore(o,l)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),l=n(33),c=n(1),h=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),h=l.default.keys(this.domNode);t.concat(n).concat(h).forEach((function(t){var n=c.query(t,c.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=h},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},function(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)});function l(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){l(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(l(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},function(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)});function l(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[l(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[l(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[l(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=h(n(0)),c=h(n(7));function h(e){return e&&e.__esModule?e:{default:e}}var f="\ufeff",d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(f),n.rightGuard=document.createTextNode(f),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,text=e.data.split(f).join("");if(e===this.leftGuard)if(this.prev instanceof c.default){var r=this.prev.length();this.prev.insertAt(r,text),t={startNode:this.prev.domNode,startOffset:r+text.length}}else n=document.createTextNode(text),this.parent.insertBefore(l.default.create(n),this),t={startNode:n,startOffset:text.length};else e===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,text),t={startNode:this.next.domNode,startOffset:text.length}):(n=document.createTextNode(text),this.parent.insertBefore(l.default.create(n),this.next),t={startNode:n,startOffset:text.length}));return e.data=f,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(l.default.Embed);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,o=n(0),l=(r=o)&&r.__esModule?r:{default:r},c={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new l.default.Attributor.Attribute("align","align",c),f=new l.default.Attributor.Class("align","ql-align",c),d=new l.default.Attributor.Style("align","text-align",c);t.AlignAttribute=h,t.AlignClass=f,t.AlignStyle=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,o=n(0),l=(r=o)&&r.__esModule?r:{default:r},c=n(26),h=new l.default.Attributor.Class("background","ql-bg",{scope:l.default.Scope.INLINE}),f=new c.ColorAttributor("background","background-color",{scope:l.default.Scope.INLINE});t.BackgroundClass=h,t.BackgroundStyle=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,o=n(0),l=(r=o)&&r.__esModule?r:{default:r},c={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},h=new l.default.Attributor.Attribute("direction","dir",c),f=new l.default.Attributor.Class("direction","ql-direction",c),d=new l.default.Attributor.Style("direction","direction",c);t.DirectionAttribute=h,t.DirectionClass=f,t.DirectionStyle=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(0),h=(r=c)&&r.__esModule?r:{default:r};function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var v={scope:h.default.Scope.INLINE,whitelist:["serif","monospace"]},m=new h.default.Attributor.Class("font","ql-font",v),y=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(h.default.Attributor.Style),_=new y("font","font-family",v);t.FontStyle=_,t.FontClass=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,o=n(0),l=(r=o)&&r.__esModule?r:{default:r},c=new l.default.Attributor.Class("size","ql-size",{scope:l.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new l.default.Attributor.Style("size","font-size",{scope:l.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=c,t.SizeStyle=h},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=c(n(0)),l=c(n(5));function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t,n,source){e!==l.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&source!==l.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(source,e){if(0!==this.stack[source].length){var t=this.stack[source].pop();this.stack[e].push(t),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(t[source],l.default.sources.USER),this.ignoreChange=!1;var n=f(t[source]);this.quill.setSelection(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(c(n(9)).default);function f(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(n-=1),n}h.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=h,t.getLastChangeIndex=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=x(n(3)),c=x(n(2)),h=x(n(8)),f=x(n(23)),d=x(n(34)),v=x(n(59)),m=x(n(60)),y=x(n(28)),_=x(n(61));function x(e){return e&&e.__esModule?e:{default:e}}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function k(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var O=[!1,"center","right","justify"],C=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],T=[!1,"serif","monospace"],E=["1","2","3",!1],A=["small",!1,"large","huge"],M=function(e){function t(e,n){w(this,t);var r=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),r}return k(t,e),r(t,[{key:"addModule",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(button){(button.getAttribute("class")||"").split(/\s+/).forEach((function(e){if(e.startsWith("ql-")&&(e=e.slice("ql-".length),null!=t[e]))if("direction"===e)button.innerHTML=t[e][""]+t[e].rtl;else if("string"==typeof t[e])button.innerHTML=t[e];else{var n=button.value||"";null!=n&&t[e][n]&&(button.innerHTML=t[e][n])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(select){if(select.classList.contains("ql-align"))return null==select.querySelector("option")&&D(select,O),new m.default(select,t.align);if(select.classList.contains("ql-background")||select.classList.contains("ql-color")){var e=select.classList.contains("ql-background")?"background":"color";return null==select.querySelector("option")&&D(select,C,"background"===e?"#ffffff":"#000000"),new v.default(select,t[e])}return null==select.querySelector("option")&&(select.classList.contains("ql-font")?D(select,T):select.classList.contains("ql-header")?D(select,E):select.classList.contains("ql-size")&&D(select,A)),new y.default(select)})),this.quill.on(h.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(d.default);M.DEFAULTS=(0,l.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new c.default).retain(r.index).delete(r.length).insert({image:n.target.result}),h.default.sources.USER),e.quill.setSelection(r.index+1,h.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var I=function(e){function t(e,n){w(this,t);var r=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return k(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){f.default.match(t,"enter")?(e.save(),t.preventDefault()):f.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,h.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,h.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/),n=t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var l=o.index+o.length;this.quill.insertEmbed(l,this.root.getAttribute("data-mode"),n,h.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(l+1," ",h.default.sources.USER),this.quill.setSelection(l+2,h.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(_.default);function D(select,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var option=document.createElement("option");e===t?option.setAttribute("selected","selected"):option.setAttribute("value",e),select.appendChild(option)}))}t.BaseTooltip=I,t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),l=o[0],c=e-o[1],h=this.iterator(l);(r=h())&&c<e+t;){var f=r.length();e>c?n(r,e-c,Math.min(t,c+f-e)):n(r,0,Math.min(f,e+t-c)),c+=f}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},function(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(17),c=n(1),h={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},f=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,h),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var mark=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[c.DATA_KEY].mutations&&(e.domNode[c.DATA_KEY].mutations=[]),t&&mark(e.parent))},h=function(e){null!=e.domNode[c.DATA_KEY]&&null!=e.domNode[c.DATA_KEY].mutations&&(e instanceof l.default&&e.children.forEach(h),e.optimize(n))},f=t,i=0;f.length>0;i+=1){if(i>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach((function(e){var t=c.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(mark(c.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=c.find(e,!1);mark(t,!1),t instanceof l.default&&t.children.forEach((function(e){mark(e,!1)}))}))):"attributes"===e.type&&mark(t.prev)),mark(t))})),this.children.forEach(h),o=(f=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=c.find(e.target,!0);return null==t?null:null==t.domNode[c.DATA_KEY].mutations?(t.domNode[c.DATA_KEY].mutations=[e],t):(t.domNode[c.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[c.DATA_KEY]&&e.update(e.domNode[c.DATA_KEY].mutations||[],n)})),null!=this.domNode[c.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[c.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=c.Scope.BLOCK_BLOT,t.tagName="DIV",t}(l.default);t.default=f},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},function(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(18),c=n(1),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof l.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||c.query(r,c.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=c.Scope.INLINE_BLOT,t.tagName="SPAN",t}(l.default);t.default=h},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},function(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(18),c=n(1),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=c.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=c.query(n,c.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=c.query(r,c.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=c.query(n,c.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),l=c.create(n,r);o.parent.insertBefore(l,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=c.Scope.BLOCK_BLOT,t.tagName="P",t}(l.default);t.default=h},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},function(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)});Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},function(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(19),c=n(1),h=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var text=e.data;return text.normalize&&(text=text.normalize()),text},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=c.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=c.Scope.INLINE_BLOT,t}(l.default);t.default=h},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function r(e,t,f){if(e==t)return e?[[0,e]]:[];(f<0||e.length<f)&&(f=null);var v=l(e,t),m=e.substring(0,v);v=c(e=e.substring(v),t=t.substring(v));var y=e.substring(e.length-v),_=function(e,t){var h;if(!e)return[[1,t]];if(!t)return[[n,e]];var f=e.length>t.length?e:t,d=e.length>t.length?t:e,i=f.indexOf(d);if(-1!=i)return h=[[1,f.substring(0,i)],[0,d],[1,f.substring(i+d.length)]],e.length>t.length&&(h[0][0]=h[2][0]=n),h;if(1==d.length)return[[n,e],[1,t]];var v=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,i){for(var n,r,o,h,f=e.substring(i,i+Math.floor(e.length/4)),d=-1,v="";-1!=(d=t.indexOf(f,d+1));){var m=l(e.substring(i),t.substring(d)),y=c(e.substring(0,i),t.substring(0,d));v.length<y+m&&(v=t.substring(d-y,d)+t.substring(d,d+m),n=e.substring(0,i-y),r=e.substring(i+m),o=t.substring(0,d-y),h=t.substring(d+m))}return 2*v.length>=e.length?[n,r,o,h,v]:null}var h,f,d,v,m,y=o(n,r,Math.ceil(n.length/4)),_=o(n,r,Math.ceil(n.length/2));if(!y&&!_)return null;h=_?y&&y[4].length>_[4].length?y:_:y,e.length>t.length?(f=h[0],d=h[1],v=h[2],m=h[3]):(v=h[0],m=h[1],f=h[2],d=h[3]);var x=h[4];return[f,d,v,m,x]}(e,t);if(v){var m=v[0],y=v[1],_=v[2],x=v[3],w=v[4],S=r(m,_),k=r(y,x);return S.concat([[0,w]],k)}return function(e,t){for(var r=e.length,l=t.length,c=Math.ceil((r+l)/2),h=c,f=2*c,d=new Array(f),v=new Array(f),m=0;m<f;m++)d[m]=-1,v[m]=-1;d[h+1]=0,v[h+1]=0;for(var y=r-l,_=y%2!=0,x=0,w=0,S=0,k=0,O=0;O<c;O++){for(var C=-O+x;C<=O-w;C+=2){for(var T=h+C,E=(P=C==-O||C!=O&&d[T-1]<d[T+1]?d[T+1]:d[T-1]+1)-C;P<r&&E<l&&e.charAt(P)==t.charAt(E);)P++,E++;if(d[T]=P,P>r)w+=2;else if(E>l)x+=2;else if(_&&(I=h+y-C)>=0&&I<f&&-1!=v[I]&&P>=(M=r-v[I]))return o(e,t,P,E)}for(var A=-O+S;A<=O-k;A+=2){for(var M,I=h+A,D=(M=A==-O||A!=O&&v[I-1]<v[I+1]?v[I+1]:v[I-1]+1)-A;M<r&&D<l&&e.charAt(r-M-1)==t.charAt(l-D-1);)M++,D++;if(v[I]=M,M>r)k+=2;else if(D>l)S+=2;else if(!_){var P;if((T=h+y-A)>=0&&T<f&&-1!=d[T])if(E=h+(P=d[T])-T,P>=(M=r-M))return o(e,t,P,E)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-v),t=t.substring(0,t.length-v));return m&&_.unshift([0,m]),y&&_.push([0,y]),h(_),null!=f&&(_=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,i=0;i<e.length;i++){var o=e[i];if(o[0]===n||0===o[0]){var l=r+o[1].length;if(t===l)return[i+1,e];if(t<l){e=e.slice();var c=t-r,h=[o[0],o[1].slice(0,c)],f=[o[0],o[1].slice(c)];return e.splice(i,1,h,f),[i+1,e]}r=l}}throw new Error("cursor_pos is out of bounds!")}(e,t),o=r[1],l=r[0],c=o[l],h=o[l+1];if(null==c)return e;if(0!==c[0])return e;if(null!=h&&c[1]+h[1]===h[1]+c[1])return o.splice(l,2,h,c),d(o,l,2);if(null!=h&&0===h[1].indexOf(c[1])){o.splice(l,2,[h[0],c[1]],[0,c[1]]);var f=h[1].slice(c[1].length);return f.length>0&&o.splice(l+2,0,[h[0],f]),d(o,l,3)}return e}(_,f)),_=function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},i=2;i<e.length;i+=1)0===e[i-2][0]&&o(e[i-2][1])&&e[i-1][0]===n&&r(e[i-1][1])&&1===e[i][0]&&r(e[i][1])&&(t=!0,e[i-1][1]=e[i-2][1].slice(-1)+e[i-1][1],e[i][1]=e[i-2][1].slice(-1)+e[i][1],e[i-2][1]=e[i-2][1].slice(0,-1));if(!t)return e;var l=[];for(i=0;i<e.length;i+=1)e[i][1].length>0&&l.push(e[i]);return l}(_)}function o(e,t,n,o){var l=e.substring(0,n),c=t.substring(0,o),h=e.substring(n),f=t.substring(o),d=r(l,c),v=r(h,f);return d.concat(v)}function l(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,l=0;n<o;)e.substring(l,o)==t.substring(l,o)?l=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,l=0;n<o;)e.substring(e.length-o,e.length-l)==t.substring(t.length-o,t.length-l)?l=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function h(e){e.push([0,""]);for(var t,r=0,o=0,f=0,d="",v="";r<e.length;)switch(e[r][0]){case 1:f++,v+=e[r][1],r++;break;case n:o++,d+=e[r][1],r++;break;case 0:o+f>1?(0!==o&&0!==f&&(0!==(t=l(v,d))&&(r-o-f>0&&0==e[r-o-f-1][0]?e[r-o-f-1][1]+=v.substring(0,t):(e.splice(0,0,[0,v.substring(0,t)]),r++),v=v.substring(t),d=d.substring(t)),0!==(t=c(v,d))&&(e[r][1]=v.substring(v.length-t)+e[r][1],v=v.substring(0,v.length-t),d=d.substring(0,d.length-t))),0===o?e.splice(r-f,o+f,[1,v]):0===f?e.splice(r-o,o+f,[n,d]):e.splice(r-o-f,o+f,[n,d],[1,v]),r=r-o-f+(o?1:0)+(f?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,f=0,o=0,d="",v=""}""===e[e.length-1][1]&&e.pop();var m=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),m=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),m=!0)),r++;m&&h(e)}var f=r;function d(e,t,n){for(var i=t+n-1;i>=0&&i>=t-1;i--)if(i+1<e.length){var r=e[i],o=e[i+1];r[0]===o[1]&&e.splice(i,2,[r[0],r[1]+o[1]])}return e}f.INSERT=1,f.DELETE=n,f.EQUAL=0,e.exports=f},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(object){return"[object Arguments]"==Object.prototype.toString.call(object)}function o(object){return object&&"object"==typeof object&&"number"==typeof object.length&&Object.prototype.hasOwnProperty.call(object,"callee")&&!Object.prototype.propertyIsEnumerable.call(object,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function l(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),c.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},c.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,l=o.length,c=new Array(l);i<l;i++)c[i]=o[i].fn;return c},c.prototype.emit=function(e,t,n,o,l,c){var h=r?r+e:e;if(!this._events[h])return!1;var f,i,d=this._events[h],v=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),v){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,n),!0;case 4:return d.fn.call(d.context,t,n,o),!0;case 5:return d.fn.call(d.context,t,n,o,l),!0;case 6:return d.fn.call(d.context,t,n,o,l,c),!0}for(i=1,f=new Array(v-1);i<v;i++)f[i-1]=arguments[i];d.fn.apply(d.context,f)}else{var m,y=d.length;for(i=0;i<y;i++)switch(d[i].once&&this.removeListener(e,d[i].fn,void 0,!0),v){case 1:d[i].fn.call(d[i].context);break;case 2:d[i].fn.call(d[i].context,t);break;case 3:d[i].fn.call(d[i].context,t,n);break;case 4:d[i].fn.call(d[i].context,t,n,o);break;default:if(!f)for(m=1,f=new Array(v-1);m<v;m++)f[m-1]=arguments[m];d[i].fn.apply(d[i].context,f)}}return!0},c.prototype.on=function(e,t,n){var o=new l(t,n||this),c=r?r+e:e;return this._events[c]?this._events[c].fn?this._events[c]=[this._events[c],o]:this._events[c].push(o):(this._events[c]=o,this._eventsCount++),this},c.prototype.once=function(e,t,n){var o=new l(t,n||this,!0),c=r?r+e:e;return this._events[c]?this._events[c].fn?this._events[c]=[this._events[c],o]:this._events[c].push(o):(this._events[c]=o,this._eventsCount++),this},c.prototype.removeListener=function(e,t,n,l){var c=r?r+e:e;if(!this._events[c])return this;if(!t)return 0==--this._eventsCount?this._events=new o:delete this._events[c],this;var h=this._events[c];if(h.fn)h.fn!==t||l&&!h.once||n&&h.context!==n||(0==--this._eventsCount?this._events=new o:delete this._events[c]);else{for(var i=0,f=[],d=h.length;i<d;i++)(h[i].fn!==t||l&&!h[i].once||n&&h[i].context!==n)&&f.push(h[i]);f.length?this._events[c]=1===f.length?f[0]:f:0==--this._eventsCount?this._events=new o:delete this._events[c]}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=r,c.EventEmitter=c,void 0!==e&&(e.exports=c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,i){var t=[],n=!0,r=!1,o=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done)&&(t.push(l.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return t}(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=C(n(3)),h=C(n(2)),f=C(n(0)),d=C(n(5)),v=C(n(10)),m=C(n(9)),y=n(36),_=n(37),x=C(n(13)),w=n(26),S=n(38),k=n(39),O=n(40);function C(e){return e&&e.__esModule?e:{default:e}}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=(0,v.default)("quill:clipboard"),A="__ql-matcher",M=[[Node.TEXT_NODE,W],[Node.TEXT_NODE,V],["br",function(e,t){return j(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,$],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,function(e,t){var n={},style=e.style||{};return style.fontStyle&&"italic"===L(e).fontStyle&&(n.italic=!0),style.fontWeight&&(L(e).fontWeight.startsWith("bold")||parseInt(L(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=N(t,n)),parseFloat(style.textIndent||0)>0&&(t=(new h.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=f.default.query(e);if(null==n||"list-item"!==n.blotName||!j(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(f.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new h.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",B.bind(B,"bold")],["i",B.bind(B,"italic")],["style",function(){return new h.default}]],I=[y.AlignAttribute,S.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),D=[y.AlignStyle,_.BackgroundStyle,w.ColorStyle,S.DirectionStyle,k.FontStyle,O.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),P=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],M.concat(r.options.matchers).forEach((function(e){var t=o(e,2),l=t[0],c=t[1];(n.matchVisual||c!==H)&&r.addMatcher(l,c)})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(html){if("string"==typeof html)return this.container.innerHTML=html.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[x.default.blotName]){var text=this.container.innerText;return this.container.innerHTML="",(new h.default).insert(text,T({},x.default.blotName,e[x.default.blotName]))}var t=this.prepareMatching(),n=o(t,2),r=n[0],l=n[1],c=F(this.container,r,l);return j(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new h.default).retain(c.length()-1).delete(1))),E.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,html){var source=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),html),this.quill.setSelection(0,d.default.sources.SILENT);else{var t=this.convert(html);this.quill.updateContents((new h.default).retain(e).concat(t),source),this.quill.setSelection(e+t.length(),d.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new h.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(d.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,d.default.sources.USER),t.quill.setSelection(r.length()-n.length,d.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var l=o(r,2),c=l[0],h=l[1];switch(c){case Node.TEXT_NODE:n.push(h);break;case Node.ELEMENT_NODE:t.push(h);break;default:[].forEach.call(e.container.querySelectorAll(c),(function(e){e[A]=e[A]||[],e[A].push(h)}))}})),[t,n]}}]),t}(m.default);function N(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return N(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,c.default)({},T({},t,n),r.attributes))}),new h.default)}function L(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function j(e,text){for(var t="",i=e.ops.length-1;i>=0&&t.length<text.length;--i){var n=e.ops[i];if("string"!=typeof n.insert)break;t=n.insert+t}return t.slice(-1*text.length)===text}function R(e){if(0===e.childNodes.length)return!1;var style=L(e);return["block","list-item"].indexOf(style.display)>-1}function F(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new h.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,o){var l=F(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(l=t.reduce((function(e,t){return t(o,e)}),l),l=(o[A]||[]).reduce((function(e,t){return t(o,e)}),l)),r.concat(l)}),new h.default):new h.default}function B(e,t,n){return N(n,e,!0)}function z(e,t){var n=f.default.Attributor.Attribute.keys(e),r=f.default.Attributor.Class.keys(e),o=f.default.Attributor.Style.keys(e),l={};return n.concat(r).concat(o).forEach((function(t){var n=f.default.query(t,f.default.Scope.ATTRIBUTE);null!=n&&(l[n.attrName]=n.value(e),l[n.attrName])||(null==(n=I[t])||n.attrName!==t&&n.keyName!==t||(l[n.attrName]=n.value(e)||void 0),null==(n=D[t])||n.attrName!==t&&n.keyName!==t||(n=D[t],l[n.attrName]=n.value(e)||void 0))})),Object.keys(l).length>0&&(t=N(t,l)),t}function $(e,t){var n=f.default.query(e);if(null==n)return t;if(n.prototype instanceof f.default.Embed){var embed={},r=n.value(e);null!=r&&(embed[n.blotName]=r,t=(new h.default).insert(embed,n.formats(e)))}else"function"==typeof n.formats&&(t=N(t,n.blotName,n.formats(e)));return t}function V(e,t){return j(t,"\n")||(R(e)||t.length()>0&&e.nextSibling&&R(e.nextSibling))&&t.insert("\n"),t}function H(e,t){if(R(e)&&null!=e.nextElementSibling&&!j(t,"\n\n")){var n=e.offsetHeight+parseFloat(L(e).marginTop)+parseFloat(L(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function W(e,t){var text=e.data;if("O:P"===e.parentNode.tagName)return t.insert(text.trim());if(0===text.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!L(e.parentNode).whiteSpace.startsWith("pre")){var n=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};text=(text=text.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,n.bind(n,!0)),(null==e.previousSibling&&R(e.parentNode)||null!=e.previousSibling&&R(e.previousSibling))&&(text=text.replace(/^\s+/,n.bind(n,!1))),(null==e.nextSibling&&R(e.parentNode)||null!=e.nextSibling&&R(e.nextSibling))&&(text=text.replace(/\s+$/,n.bind(n,!1)))}return t.insert(text)}P.DEFAULTS={matchers:[],matchVisual:!0},t.default=P,t.matchAttributor=z,t.matchBlot=$,t.matchNewline=V,t.matchSpacing=H,t.matchText=W},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(6);function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){return h(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=c)&&r.__esModule?r:{default:r}).default);d.blotName="bold",d.tagName=["STRONG","B"],t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,i){var t=[],n=!0,r=!1,o=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done)&&(t.push(l.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return t}(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=v(n(2)),c=v(n(0)),h=v(n(5)),f=v(n(10)),d=v(n(9));function v(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var y=(0,f.default)("quill:toolbar"),_=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,l=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(l.options.container)){var c=document.createElement("div");w(c,l.options.container),e.container.parentNode.insertBefore(c,e.container),l.container=c}else"string"==typeof l.options.container?l.container=document.querySelector(l.options.container):l.container=l.options.container;return l.container instanceof HTMLElement?(l.container.classList.add("ql-toolbar"),l.controls=[],l.handlers={},Object.keys(l.options.handlers).forEach((function(e){l.addHandler(e,l.options.handlers[e])})),[].forEach.call(l.container.querySelectorAll("button, select"),(function(input){l.attach(input)})),l.quill.on(h.default.events.EDITOR_CHANGE,(function(e,t){e===h.default.events.SELECTION_CHANGE&&l.update(t)})),l.quill.on(h.default.events.SCROLL_OPTIMIZE,(function(){var e=l.quill.selection.getRange(),t=r(e,1)[0];l.update(t)})),l):(o=y.error("Container required for toolbar",l.options),m(l,o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(input){var e=this,t=[].find.call(input.classList,(function(e){return 0===e.indexOf("ql-")}));if(t){if(t=t.slice("ql-".length),"BUTTON"===input.tagName&&input.setAttribute("type","button"),null==this.handlers[t]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[t])return void y.warn("ignoring attaching to disabled format",t,input);if(null==c.default.query(t))return void y.warn("ignoring attaching to nonexistent format",t,input)}var n="SELECT"===input.tagName?"change":"click";input.addEventListener(n,(function(n){var o=void 0;if("SELECT"===input.tagName){if(input.selectedIndex<0)return;var f=input.options[input.selectedIndex];o=!f.hasAttribute("selected")&&(f.value||!1)}else o=!input.classList.contains("ql-active")&&(input.value||!input.hasAttribute("value")),n.preventDefault();e.quill.focus();var d=e.quill.selection.getRange(),v=r(d,1)[0];if(null!=e.handlers[t])e.handlers[t].call(e,o);else if(c.default.query(t).prototype instanceof c.default.Embed){if(!(o=prompt("Enter "+t)))return;e.quill.updateContents((new l.default).retain(v.index).delete(v.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,o)),h.default.sources.USER)}else e.quill.format(t,o,h.default.sources.USER);e.update(v)})),this.controls.push([t,input])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var o=r(n,2),l=o[0],input=o[1];if("SELECT"===input.tagName){var option=void 0;if(null==e)option=null;else if(null==t[l])option=input.querySelector("option[selected]");else if(!Array.isArray(t[l])){var c=t[l];"string"==typeof c&&(c=c.replace(/\"/g,'\\"')),option=input.querySelector('option[value="'+c+'"]')}null==option?(input.value="",input.selectedIndex=-1):option.selected=!0}else if(null==e)input.classList.remove("ql-active");else if(input.hasAttribute("value")){var h=t[l]===input.getAttribute("value")||null!=t[l]&&t[l].toString()===input.getAttribute("value")||null==t[l]&&!input.getAttribute("value");input.classList.toggle("ql-active",h)}else input.classList.toggle("ql-active",null!=t[l])}))}}]),t}(d.default);function x(e,t,n){var input=document.createElement("button");input.setAttribute("type","button"),input.classList.add("ql-"+t),null!=n&&(input.value=n),e.appendChild(input)}function w(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)x(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var input=document.createElement("select");input.classList.add("ql-"+t),n.forEach((function(e){var option=document.createElement("option");!1!==e?option.setAttribute("value",e):option.setAttribute("selected","selected"),input.appendChild(option)})),e.appendChild(input)}(n,t,r):x(n,t,r)}})),e.appendChild(n)}))}_.DEFAULTS={},_.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=c.default.query(t,c.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,h.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",h.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,h.default.sources.USER),this.quill.format("direction",e,h.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,h.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,h.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,h.default.sources.USER):this.quill.format("list","unchecked",h.default.sources.USER):this.quill.format("list",e,h.default.sources.USER)}}},t.default=_,t.addControls=w},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(28),h=function(e){function t(select,label){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,select));return e.label.innerHTML=label,e.container.classList.add("ql-color-picker"),[].slice.call(e.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(option){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,option);return e.style.backgroundColor=option.getAttribute("value")||"",e}},{key:"selectItem",value:function(e,n){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(((r=c)&&r.__esModule?r:{default:r}).default);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(28),h=function(e){function t(select,e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,select));return n.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=e[t.getAttribute("data-value")||""]})),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,n){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=c)&&r.__esModule?r:{default:r}).default);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),l=0;if(o.right>r.right&&(l=r.right-o.right,this.root.style.left=t+l+"px"),o.left<r.left&&(l=r.left-o.left,this.root.style.left=t+l+"px"),o.bottom>r.bottom){var c=o.bottom-o.top,h=e.bottom-e.top+c;this.root.style.top=n-h+"px",this.root.classList.add("ql-flip")}return l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,i){var t=[],n=!0,r=!1,o=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done)&&(t.push(l.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return t}(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=_(n(3)),h=_(n(8)),f=n(43),d=_(f),v=_(n(27)),m=n(15),y=_(n(41));function _(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var k=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(e){function t(e,n){x(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=k);var r=w(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return S(t,e),l(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),y.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),y.default),this.tooltip=new C(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(d.default);O.DEFAULTS=(0,c.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var C=function(e){function t(e,n){x(this,t);var r=w(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return S(t,e),l(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,h.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(h.default.events.SELECTION_CHANGE,(function(t,n,source){if(null!=t){if(0===t.length&&source===h.default.sources.USER){var o=e.quill.scroll.descendant(v.default,t.index),l=r(o,2),link=l[0],c=l[1];if(null!=link){e.linkRange=new m.Range(t.index-c,link.length());var f=v.default.formats(link.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(f.BaseTooltip);C.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=V(n(29)),o=n(36),l=n(38),c=n(64),h=V(n(65)),f=V(n(66)),d=n(67),v=V(d),m=n(37),y=n(26),_=n(39),x=n(40),w=V(n(56)),S=V(n(68)),k=V(n(27)),O=V(n(69)),C=V(n(70)),T=V(n(71)),E=V(n(72)),A=V(n(73)),M=n(13),I=V(M),D=V(n(74)),P=V(n(75)),N=V(n(57)),L=V(n(41)),j=V(n(28)),R=V(n(59)),F=V(n(60)),B=V(n(61)),z=V(n(108)),$=V(n(62));function V(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":m.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":_.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":m.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":_.FontStyle,"attributors/style/size":x.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":c.IndentClass,"formats/background":m.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":_.FontClass,"formats/size":x.SizeClass,"formats/blockquote":h.default,"formats/code-block":I.default,"formats/header":f.default,"formats/list":v.default,"formats/bold":w.default,"formats/code":M.Code,"formats/italic":S.default,"formats/link":k.default,"formats/script":O.default,"formats/strike":C.default,"formats/underline":T.default,"formats/image":E.default,"formats/video":A.default,"formats/list/item":d.ListItem,"modules/formula":D.default,"modules/syntax":P.default,"modules/toolbar":N.default,"themes/bubble":z.default,"themes/snow":$.default,"ui/icons":L.default,"ui/picker":j.default,"ui/icon-picker":F.default,"ui/color-picker":R.default,"ui/tooltip":B.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(0),h=(r=c)&&r.__esModule?r:{default:r};function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var v=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(h.default.Attributor.Class),m=new v("indent","ql-indent",{scope:h.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(4);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);h.blotName="blockquote",h.tagName="blockquote",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(4);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){return c(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=l)&&r.__esModule?r:{default:r}).default);f.blotName="header",f.tagName=["H1","H2","H3","H4","H5","H6"],t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=f(n(0)),c=f(n(4)),h=f(n(25));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=function(e){function t(){return d(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return m(t,e),r(t,[{key:"format",value:function(e,n){e!==_.blotName||n?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(l.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(c.default);y.blotName="list-item",y.tagName="LI";var _=function(e){function t(e){d(this,t);var n=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=l.default.find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return m(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof y)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),l=this.split(r);l.parent.insertBefore(e,l)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=l.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(h.default);_.blotName="list",_.scope=l.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[y],t.ListItem=y,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);h.blotName="italic",h.tagName=["EM","I"],t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(6);function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){return h(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):l(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=c)&&r.__esModule?r:{default:r}).default);d.blotName="script",d.tagName=["SUB","SUP"],t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);h.blotName="strike",h.tagName="S",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);h.blotName="underline",h.tagName="U",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(0),h=(r=c)&&r.__esModule?r:{default:r},f=n(27);function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=["alt","height","width"],y=function(e){function t(){return d(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){m.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=l(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return m.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,f.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(h.default.Embed);y.blotName="image",y.tagName="IMG",t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(4),h=n(27),f=(r=h)&&r.__esModule?r:{default:r};function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=["height","width"],y=function(e){function t(){return d(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){m.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=l(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return m.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return f.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(c.BlockEmbed);y.blotName="video",y.className="ql-video",y.tagName="IFRAME",t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=f(n(35)),c=f(n(5)),h=f(n(9));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=function(e){function t(){return d(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return m(t,e),r(t,null,[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(l.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var _=function(e){function t(){d(this,t);var e=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return m(t,e),r(t,null,[{key:"register",value:function(){c.default.register(y,!0)}}]),t}(h.default);t.FormulaBlot=y,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=f(n(0)),c=f(n(5)),h=f(n(9));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=function(e){function t(){return d(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return m(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var text=this.domNode.textContent;this.cachedText!==text&&((text.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(text),this.domNode.normalize(),this.attach()),this.cachedText=text)}}]),t}(f(n(13)).default);y.className="ql-syntax";var _=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),x=function(e){function t(e,n){d(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return m(t,e),r(t,null,[{key:"register",value:function(){c.default.register(_,!0),c.default.register(y,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(y).forEach((function(code){code.highlight(e.options.highlight)})),this.quill.update(c.default.sources.SILENT),null!=t&&this.quill.setSelection(t,c.default.sources.SILENT)}}}]),t}(h.default);x.DEFAULTS={highlight:null==window.hljs?null:function(text){return window.hljs.highlightAuto(text).value},interval:1e3},t.CodeBlock=y,t.CodeToken=_,t.default=x},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(object,t,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,t);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:e(r,t,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=m(n(3)),c=m(n(8)),h=n(43),f=m(h),d=n(15),v=m(n(41));function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],S=function(e){function t(e,n){y(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=w);var r=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return x(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),v.default)}}]),t}(f.default);S.DEFAULTS=(0,l.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(e){function t(e,n){y(this,t);var r=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(c.default.events.EDITOR_CHANGE,(function(e,t,n,source){if(e===c.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&source===c.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(t.index,t.length);if(1===o.length)r.position(r.quill.getBounds(t));else{var l=o[o.length-1],h=r.quill.getIndex(l),f=Math.min(l.length()-1,t.index+t.length-h),v=r.quill.getBounds(new d.Range(h,f));r.position(v)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return x(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(h.BaseTooltip);k.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=k,t.default=S},function(e,t,n){e.exports=n(63)}]).default},e.exports=n()}).call(this,n(261).Buffer)},function(e,t,n){"use strict";t.byteLength=function(e){var t=h(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,i,n=h(e),r=n[0],c=n[1],f=new l(function(e,t,n){return 3*(t+n)/4-n}(0,r,c)),d=0,v=c>0?r-4:r;for(i=0;i<v;i+=4)t=o[e.charCodeAt(i)]<<18|o[e.charCodeAt(i+1)]<<12|o[e.charCodeAt(i+2)]<<6|o[e.charCodeAt(i+3)],f[d++]=t>>16&255,f[d++]=t>>8&255,f[d++]=255&t;2===c&&(t=o[e.charCodeAt(i)]<<2|o[e.charCodeAt(i+1)]>>4,f[d++]=255&t);1===c&&(t=o[e.charCodeAt(i)]<<10|o[e.charCodeAt(i+1)]<<4|o[e.charCodeAt(i+2)]>>2,f[d++]=t>>8&255,f[d++]=255&t);return f},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,l=[],c=16383,i=0,h=n-o;i<h;i+=c)l.push(f(e,i,i+c>h?h:i+c));1===o?(t=e[n-1],l.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],l.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return l.join("")};for(var r=[],o=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,c=code.length;i<c;++i)r[i]=code[i],o[code.charCodeAt(i)]=i;function h(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function f(e,t,n){for(var o,l,output=[],i=t;i<n;i+=3)o=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),output.push(r[(l=o)>>18&63]+r[l>>12&63]+r[l>>6&63]+r[63&l]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var l,c,h=8*o-r-1,f=(1<<h)-1,d=f>>1,v=-7,i=n?o-1:0,m=n?-1:1,s=e[t+i];for(i+=m,l=s&(1<<-v)-1,s>>=-v,v+=h;v>0;l=256*l+e[t+i],i+=m,v-=8);for(c=l&(1<<-v)-1,l>>=-v,v+=r;v>0;c=256*c+e[t+i],i+=m,v-=8);if(0===l)l=1-d;else{if(l===f)return c?NaN:1/0*(s?-1:1);c+=Math.pow(2,r),l-=d}return(s?-1:1)*c*Math.pow(2,l-r)},t.write=function(e,t,n,r,o,l){var c,h,f,d=8*l-o-1,v=(1<<d)-1,m=v>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=r?0:l-1,y=r?1:-1,s=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(h=isNaN(t)?1:0,c=v):(c=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-c))<1&&(c--,f*=2),(t+=c+m>=1?rt/f:rt*Math.pow(2,1-m))*f>=2&&(c++,f/=2),c+m>=v?(h=0,c=v):c+m>=1?(h=(t*f-1)*Math.pow(2,o),c+=m):(h=t*Math.pow(2,m-1)*Math.pow(2,o),c=0));o>=8;e[n+i]=255&h,i+=y,h/=256,o-=8);for(c=c<<o|h,d+=o;d>0;e[n+i]=255&c,i+=y,c/=256,d-=8);e[n+i-y]|=128*s}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";if(n(17)){var r=n(63),o=n(11),l=n(16),c=n(9),h=n(262),f=n(421),d=n(45),v=n(94),m=n(73),y=n(39),_=n(95),x=n(55),w=n(24),S=n(263),k=n(89),O=n(88),C=n(44),T=n(92),E=n(25),A=n(42),M=n(149),I=n(91),D=n(200),P=n(65).f,N=n(150),L=n(62),j=n(13),R=n(96),F=n(146),B=n(108),z=n(151),$=n(76),V=n(107),H=n(109),W=n(185),U=n(422),G=n(23),Y=n(75),K=G.f,X=Y.f,Z=o.RangeError,J=o.TypeError,Q=o.Uint8Array,ee="ArrayBuffer",te="SharedArrayBuffer",ne="BYTES_PER_ELEMENT",re=Array.prototype,ie=f.ArrayBuffer,oe=f.DataView,ae=R(0),se=R(2),le=R(3),ue=R(4),ce=R(5),he=R(6),fe=F(!0),de=F(!1),pe=z.values,ge=z.keys,ve=z.entries,me=re.lastIndexOf,ye=re.reduce,be=re.reduceRight,_e=re.join,xe=re.sort,we=re.slice,Se=re.toString,ke=re.toLocaleString,Oe=j("iterator"),Ce=j("toStringTag"),Te=L("typed_constructor"),Ee=L("def_constructor"),Ae=h.CONSTR,Me=h.TYPED,Ie=h.VIEW,De="Wrong length!",Pe=R(1,(function(e,t){return Fe(B(e,e[Ee]),t)})),Ne=l((function(){return 1===new Q(new Uint16Array([1]).buffer)[0]})),Le=!!Q&&!!Q.prototype.set&&l((function(){new Q(1).set({})})),je=function(e,t){var n=x(e);if(n<0||n%t)throw Z("Wrong offset!");return n},Re=function(e){if(E(e)&&Me in e)return e;throw J(e+" is not a typed array!")},Fe=function(e,t){if(!E(e)||!(Te in e))throw J("It is not a typed array constructor!");return new e(t)},Be=function(e,t){return ze(B(e,e[Ee]),t)},ze=function(e,t){for(var n=0,r=t.length,o=Fe(e,r);r>n;)o[n]=t[n++];return o},$e=function(e,t,n){K(e,t,{get:function(){return this._d[n]}})},Ve=function(source){var i,e,t,n,r,o,l=A(source),c=arguments.length,h=c>1?arguments[1]:void 0,f=void 0!==h,v=N(l);if(null!=v&&!M(v)){for(o=v.call(l),t=[],i=0;!(r=o.next()).done;i++)t.push(r.value);l=t}for(f&&c>2&&(h=d(h,arguments[2],2)),i=0,e=w(l.length),n=Fe(this,e);e>i;i++)n[i]=f?h(l[i],i):l[i];return n},He=function(){for(var e=0,t=arguments.length,n=Fe(this,t);t>e;)n[e]=arguments[e++];return n},qe=!!Q&&l((function(){ke.call(new Q(1))})),We=function(){return ke.apply(qe?we.call(Re(this)):Re(this),arguments)},Ue={copyWithin:function(e,t){return U.call(Re(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ue(Re(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return W.apply(Re(this),arguments)},filter:function(e){return Be(this,se(Re(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ce(Re(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return he(Re(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){ae(Re(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return de(Re(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return fe(Re(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return _e.apply(Re(this),arguments)},lastIndexOf:function(e){return me.apply(Re(this),arguments)},map:function(e){return Pe(Re(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ye.apply(Re(this),arguments)},reduceRight:function(e){return be.apply(Re(this),arguments)},reverse:function(){for(var e,t=this,n=Re(t).length,r=Math.floor(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t},some:function(e){return le(Re(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return xe.call(Re(this),e)},subarray:function(e,t){var n=Re(this),r=n.length,o=k(e,r);return new(B(n,n[Ee]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,w((void 0===t?r:k(t,r))-o))}},Ge=function(e,t){return Be(this,we.call(Re(this),e,t))},Ye=function(e){Re(this);var t=je(arguments[1],1),n=this.length,r=A(e),o=w(r.length),l=0;if(o+t>n)throw Z(De);for(;l<o;)this[t+l]=r[l++]},Ke={entries:function(){return ve.call(Re(this))},keys:function(){return ge.call(Re(this))},values:function(){return pe.call(Re(this))}},Xe=function(e,t){return E(e)&&e[Me]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Ze=function(e,t){return Xe(e,t=O(t,!0))?m(2,e[t]):X(e,t)},Je=function(e,t,desc){return!(Xe(e,t=O(t,!0))&&E(desc)&&C(desc,"value"))||C(desc,"get")||C(desc,"set")||desc.configurable||C(desc,"writable")&&!desc.writable||C(desc,"enumerable")&&!desc.enumerable?K(e,t,desc):(e[t]=desc.value,e)};Ae||(Y.f=Ze,G.f=Je),c(c.S+c.F*!Ae,"Object",{getOwnPropertyDescriptor:Ze,defineProperty:Je}),l((function(){Se.call({})}))&&(Se=ke=function(){return _e.call(this)});var Qe=_({},Ue);_(Qe,Ke),y(Qe,Oe,Ke.values),_(Qe,{slice:Ge,set:Ye,constructor:function(){},toString:Se,toLocaleString:We}),$e(Qe,"buffer","b"),$e(Qe,"byteOffset","o"),$e(Qe,"byteLength","l"),$e(Qe,"length","e"),K(Qe,Ce,{get:function(){return this[Me]}}),e.exports=function(e,t,n,f){var d=e+((f=!!f)?"Clamped":"")+"Array",m="get"+e,_="set"+e,x=o[d],k=x||{},O=x&&D(x),C=!x||!h.ABV,A={},M=x&&x.prototype,N=function(e,n){K(e,n,{get:function(){return function(e,n){var data=e._d;return data.v[m](n*t+data.o,Ne)}(this,n)},set:function(e){return function(e,n,r){var data=e._d;f&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),data.v[_](n*t+data.o,r,Ne)}(this,n,e)},enumerable:!0})};C?(x=n((function(e,data,n,r){v(e,x,d,"_d");var o,l,c,h,f=0,m=0;if(E(data)){if(!(data instanceof ie||(h=T(data))==ee||h==te))return Me in data?ze(x,data):Ve.call(x,data);o=data,m=je(n,t);var _=data.byteLength;if(void 0===r){if(_%t)throw Z(De);if((l=_-m)<0)throw Z(De)}else if((l=w(r)*t)+m>_)throw Z(De);c=l/t}else c=S(data),o=new ie(l=c*t);for(y(e,"_d",{b:o,o:m,l:l,e:c,v:new oe(o)});f<c;)N(e,f++)})),M=x.prototype=I(Qe),y(M,"constructor",x)):l((function(){x(1)}))&&l((function(){new x(-1)}))&&V((function(e){new x,new x(null),new x(1.5),new x(e)}),!0)||(x=n((function(e,data,n,r){var o;return v(e,x,d),E(data)?data instanceof ie||(o=T(data))==ee||o==te?void 0!==r?new k(data,je(n,t),r):void 0!==n?new k(data,je(n,t)):new k(data):Me in data?ze(x,data):Ve.call(x,data):new k(S(data))})),ae(O!==Function.prototype?P(k).concat(P(O)):P(k),(function(e){e in x||y(x,e,k[e])})),x.prototype=M,r||(M.constructor=x));var L=M[Oe],j=!!L&&("values"==L.name||null==L.name),R=Ke.values;y(x,Te,!0),y(M,Me,d),y(M,Ie,!0),y(M,Ee,x),(f?new x(1)[Ce]==d:Ce in M)||K(M,Ce,{get:function(){return d}}),A[d]=x,c(c.G+c.W+c.F*(x!=k),A),c(c.S,d,{BYTES_PER_ELEMENT:t}),c(c.S+c.F*l((function(){k.of.call(x,1)})),d,{from:Ve,of:He}),ne in M||y(M,ne,t),c(c.P,d,Ue),H(d),c(c.P+c.F*Le,d,{set:Ye}),c(c.P+c.F*!j,d,Ke),r||M.toString==Se||(M.toString=Se),c(c.P+c.F*l((function(){new x(1).slice()})),d,{slice:Ge}),c(c.P+c.F*(l((function(){return[1,2].toLocaleString()!=new x([1,2]).toLocaleString()}))||!l((function(){M.toLocaleString.call([1,2])}))),d,{toLocaleString:We}),$[d]=j?L:R,r||j||y(M,Oe,R)}}else e.exports=function(){}},function(e,t,n){"use strict";var r=n(11),o=n(17),l=n(63),c=n(262),h=n(39),f=n(95),d=n(16),v=n(94),m=n(55),y=n(24),_=n(263),x=n(65).f,w=n(23).f,S=n(185),k=n(74),O="ArrayBuffer",C="DataView",T="Wrong index!",E=r.ArrayBuffer,A=r.DataView,M=r.Math,I=r.RangeError,D=r.Infinity,P=E,N=M.abs,L=M.pow,j=M.floor,R=M.log,F=M.LN2,B="buffer",z="byteLength",$="byteOffset",V=o?"_b":B,H=o?"_l":z,W=o?"_o":$;function U(e,t,n){var r,o,l,c=new Array(n),h=8*n-t-1,f=(1<<h)-1,d=f>>1,rt=23===t?L(2,-24)-L(2,-77):0,i=0,s=e<0||0===e&&1/e<0?1:0;for((e=N(e))!=e||e===D?(o=e!=e?1:0,r=f):(r=j(R(e)/F),e*(l=L(2,-r))<1&&(r--,l*=2),(e+=r+d>=1?rt/l:rt*L(2,1-d))*l>=2&&(r++,l/=2),r+d>=f?(o=0,r=f):r+d>=1?(o=(e*l-1)*L(2,t),r+=d):(o=e*L(2,d-1)*L(2,t),r=0));t>=8;c[i++]=255&o,o/=256,t-=8);for(r=r<<t|o,h+=t;h>0;c[i++]=255&r,r/=256,h-=8);return c[--i]|=128*s,c}function G(e,t,n){var r,o=8*n-t-1,l=(1<<o)-1,c=l>>1,h=o-7,i=n-1,s=e[i--],f=127&s;for(s>>=7;h>0;f=256*f+e[i],i--,h-=8);for(r=f&(1<<-h)-1,f>>=-h,h+=t;h>0;r=256*r+e[i],i--,h-=8);if(0===f)f=1-c;else{if(f===l)return r?NaN:s?-D:D;r+=L(2,t),f-=c}return(s?-1:1)*r*L(2,f-t)}function Y(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function K(e){return[255&e]}function X(e){return[255&e,e>>8&255]}function Z(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function J(e){return U(e,52,8)}function Q(e){return U(e,23,4)}function ee(e,t,n){w(e.prototype,t,{get:function(){return this[n]}})}function te(view,e,t,n){var r=_(+t);if(r+e>view[H])throw I(T);var o=view[V]._b,l=r+view[W],c=o.slice(l,l+e);return n?c:c.reverse()}function ne(view,e,t,n,r,o){var l=_(+t);if(l+e>view[H])throw I(T);for(var c=view[V]._b,h=l+view[W],f=n(+r),i=0;i<e;i++)c[h+i]=f[o?i:e-i-1]}if(c.ABV){if(!d((function(){E(1)}))||!d((function(){new E(-1)}))||d((function(){return new E,new E(1.5),new E(NaN),E.name!=O}))){for(var re,ie=(E=function(e){return v(this,E),new P(_(e))}).prototype=P.prototype,oe=x(P),ae=0;oe.length>ae;)(re=oe[ae++])in E||h(E,re,P[re]);l||(ie.constructor=E)}var view=new A(new E(2)),se=A.prototype.setInt8;view.setInt8(0,2147483648),view.setInt8(1,2147483649),!view.getInt8(0)&&view.getInt8(1)||f(A.prototype,{setInt8:function(e,t){se.call(this,e,t<<24>>24)},setUint8:function(e,t){se.call(this,e,t<<24>>24)}},!0)}else E=function(e){v(this,E,O);var t=_(e);this._b=S.call(new Array(t),0),this[H]=t},A=function(e,t,n){v(this,A,C),v(e,E,C);var r=e[H],o=m(t);if(o<0||o>r)throw I("Wrong offset!");if(o+(n=void 0===n?r-o:y(n))>r)throw I("Wrong length!");this[V]=e,this[W]=o,this[H]=n},o&&(ee(E,z,"_l"),ee(A,B,"_b"),ee(A,z,"_l"),ee(A,$,"_o")),f(A.prototype,{getInt8:function(e){return te(this,1,e)[0]<<24>>24},getUint8:function(e){return te(this,1,e)[0]},getInt16:function(e){var t=te(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=te(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Y(te(this,4,e,arguments[1]))},getUint32:function(e){return Y(te(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return G(te(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return G(te(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){ne(this,1,e,K,t)},setUint8:function(e,t){ne(this,1,e,K,t)},setInt16:function(e,t){ne(this,2,e,X,t,arguments[2])},setUint16:function(e,t){ne(this,2,e,X,t,arguments[2])},setInt32:function(e,t){ne(this,4,e,Z,t,arguments[2])},setUint32:function(e,t){ne(this,4,e,Z,t,arguments[2])},setFloat32:function(e,t){ne(this,4,e,Q,t,arguments[2])},setFloat64:function(e,t){ne(this,8,e,J,t,arguments[2])}});k(E,O),k(A,C),h(A.prototype,c.VIEW,!0),t.ArrayBuffer=E,t.DataView=A},function(e,t,n){"use strict";var r=n(42),o=n(89),l=n(24);e.exports=[].copyWithin||function(e,t){var n=r(this),c=l(n.length),h=o(e,c),f=o(t,c),d=arguments.length>2?arguments[2]:void 0,v=Math.min((void 0===d?c:o(d,c))-f,c-h),m=1;for(f<h&&h<f+v&&(m=-1,f+=v-1,h+=v-1);v-- >0;)f in n?n[h]=n[f]:delete n[h],h+=m,f+=m;return n}},function(e,t,n){var r=n(9),o=n(16),l=n(56),c=/"/g,h=function(e,t,n,r){var o=String(l(e)),h="<"+t;return""!==n&&(h+=" "+n+'="'+String(r).replace(c,"&quot;")+'"'),h+">"+o+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(h),r(r.P+r.F*o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e},l.apply(this,arguments)}function c(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},t=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(source).filter((function(e){return Object.getOwnPropertyDescriptor(source,e).enumerable})))),t.forEach((function(t){o(e,t,source[t])}))}return e}function h(source,e){if(null==source)return{};var t,i,n=function(source,e){if(null==source)return{};var t,i,n={},r=Object.keys(source);for(i=0;i<r.length;i++)t=r[i],e.indexOf(t)>=0||(n[t]=source[t]);return n}(source,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(source);for(i=0;i<r.length;i++)t=r[i],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(source,t)&&(n[t]=source[t])}return n}function f(e){return function(e){if(Array.isArray(e)){for(var i=0,t=new Array(e.length);i<e.length;i++)t[i]=e[i];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.r(t),n.d(t,"MultiDrag",(function(){return At})),n.d(t,"Sortable",(function(){return Ye})),n.d(t,"Swap",(function(){return yt}));function d(pattern){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(pattern)}var v=d(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),m=d(/Edge/i),y=d(/firefox/i),_=d(/safari/i)&&!d(/chrome/i)&&!d(/android/i),x=d(/iP(ad|od|hone)/i),w=d(/chrome/i)&&d(/android/i),S={capture:!1,passive:!1};function k(e,t,n){e.addEventListener(t,n,!v&&S)}function O(e,t,n){e.removeEventListener(t,n,!v&&S)}function C(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function T(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function E(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&C(e,t):C(e,t))||r&&e===n)return e;if(e===n)break}while(e=T(e))}return null}var A,M=/\s+/g;function I(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(M," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(M," ")}}function D(e,t,n){var style=e&&e.style;if(style){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in style||-1!==t.indexOf("webkit")||(t="-webkit-"+t),style[t]=n+("string"==typeof n?"":"px")}}function P(e,t){var n="";if("string"==typeof e)n=e;else do{var r=D(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function N(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function L(){var e=document.scrollingElement;return e||document.documentElement}function j(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var l,c,h,f,d,m,y;if(e!==window&&e!==L()?(c=(l=e.getBoundingClientRect()).top,h=l.left,f=l.bottom,d=l.right,m=l.height,y=l.width):(c=0,h=0,f=window.innerHeight,d=window.innerWidth,m=window.innerHeight,y=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!v))do{if(o&&o.getBoundingClientRect&&("none"!==D(o,"transform")||n&&"static"!==D(o,"position"))){var _=o.getBoundingClientRect();c-=_.top+parseInt(D(o,"border-top-width")),h-=_.left+parseInt(D(o,"border-left-width")),f=c+l.height,d=h+l.width;break}}while(o=o.parentNode);if(r&&e!==window){var x=P(o||e),w=x&&x.a,S=x&&x.d;x&&(f=(c/=S)+(m/=S),d=(h/=w)+(y/=w))}return{top:c,left:h,bottom:f,right:d,width:y,height:m}}}function R(e,t,n){for(var r=V(e,!0),o=j(e)[t];r;){var l=j(r)[n];if(!("top"===n||"left"===n?o>=l:o<=l))return r;if(r===L())break;r=V(r,!1)}return!1}function F(e,t,n){for(var r=0,i=0,o=e.children;i<o.length;){if("none"!==o[i].style.display&&o[i]!==Ye.ghost&&o[i]!==Ye.dragged&&E(o[i],n.draggable,e,!1)){if(r===t)return o[i];r++}i++}return null}function B(e,t){for(var n=e.lastElementChild;n&&(n===Ye.ghost||"none"===D(n,"display")||t&&!C(n,t));)n=n.previousElementSibling;return n||null}function z(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ye.clone||t&&!C(e,t)||n++;return n}function $(e){var t=0,n=0,r=L();if(e)do{var o=P(e),l=o.a,c=o.d;t+=e.scrollLeft*l,n+=e.scrollTop*c}while(e!==r&&(e=e.parentNode));return[t,n]}function V(e,t){if(!e||!e.getBoundingClientRect)return L();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=D(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return L();if(r||t)return n;r=!0}}}while(n=n.parentNode);return L()}function H(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function W(e,t){return function(){if(!A){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),A=setTimeout((function(){A=void 0}),t)}}}function U(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function G(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Y(e,rect){D(e,"position","absolute"),D(e,"top",rect.top),D(e,"left",rect.left),D(e,"width",rect.width),D(e,"height",rect.height)}function K(e){D(e,"position",""),D(e,"top",""),D(e,"left",""),D(e,"width",""),D(e,"height","")}var X="Sortable"+(new Date).getTime();function Z(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==D(e,"display")&&e!==Ye.ghost){t.push({target:e,rect:j(e)});var n=c({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=P(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var i in e)if(e.hasOwnProperty(i))for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[i][n])return Number(i);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var o=!1,l=0;t.forEach((function(e){var time=0,t=e.target,n=t.fromRect,c=j(t),h=t.prevFromRect,f=t.prevToRect,d=e.rect,v=P(t,!0);v&&(c.top-=v.f,c.left-=v.e),t.toRect=c,t.thisAnimationDuration&&H(h,c)&&!H(n,c)&&(d.top-c.top)/(d.left-c.left)==(n.top-c.top)/(n.left-c.left)&&(time=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(d,h,f,r.options)),H(c,n)||(t.prevFromRect=n,t.prevToRect=c,time||(time=r.options.animation),r.animate(t,d,c,time)),time&&(o=!0,l=Math.max(l,time),clearTimeout(t.animationResetTimer),t.animationResetTimer=setTimeout((function(){t.animationTime=0,t.prevFromRect=null,t.fromRect=null,t.prevToRect=null,t.thisAnimationDuration=null}),time),t.thisAnimationDuration=time)})),clearTimeout(e),o?e=setTimeout((function(){"function"==typeof n&&n()}),l):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){D(e,"transition",""),D(e,"transform","");var o=P(this.el),l=o&&o.a,c=o&&o.d,h=(t.left-n.left)/(l||1),f=(t.top-n.top)/(c||1);e.animatingX=!!h,e.animatingY=!!f,D(e,"transform","translate3d("+h+"px,"+f+"px,0)"),function(e){e.offsetWidth}(e),D(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),D(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){D(e,"transition",""),D(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var J=[],Q={initializeByDefault:!0},ee={mount:function(e){for(var option in Q)Q.hasOwnProperty(option)&&!(option in e)&&(e[option]=Q[option]);J.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";J.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](c({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](c({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var option in J.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var c=new r(e,t,e.options);c.sortable=e,c.options=e.options,e[o]=c,l(n,c.defaults)}})),e.options)if(e.options.hasOwnProperty(option)){var o=this.modifyOption(e,option,e.options[option]);void 0!==o&&(e.options[option]=o)}},getEventProperties:function(e,t){var n={};return J.forEach((function(r){"function"==typeof r.eventProperties&&l(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return J.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function te(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,l=e.cloneEl,h=e.toEl,f=e.fromEl,d=e.oldIndex,y=e.newIndex,_=e.oldDraggableIndex,x=e.newDraggableIndex,w=e.originalEvent,S=e.putSortable,k=e.extraEventProperties;if(t=t||n&&n[X]){var O,C=t.options,T="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||v||m?(O=document.createEvent("Event")).initEvent(r,!0,!0):O=new CustomEvent(r,{bubbles:!0,cancelable:!0}),O.to=h||n,O.from=f||n,O.item=o||n,O.clone=l,O.oldIndex=d,O.newIndex=y,O.oldDraggableIndex=_,O.newDraggableIndex=x,O.originalEvent=w,O.pullMode=S?S.lastPutMode:void 0;var E=c({},k,ee.getEventProperties(r,t));for(var option in E)O[option]=E[option];n&&n.dispatchEvent(O),C[T]&&C[T].call(t,O)}}var ne=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,data=h(n,["evt"]);ee.pluginEvent.bind(Ye)(e,t,c({dragEl:ie,parentEl:oe,ghostEl:ae,rootEl:se,nextEl:le,lastDownEl:ue,cloneEl:ce,cloneHidden:he,dragStarted:ke,putSortable:me,activeSortable:Ye.active,originalEvent:r,oldIndex:fe,oldDraggableIndex:pe,newIndex:de,newDraggableIndex:ge,hideGhostForTarget:qe,unhideGhostForTarget:We,cloneNowHidden:function(){he=!0},cloneNowShown:function(){he=!1},dispatchSortableEvent:function(e){re({sortable:t,name:e,originalEvent:r})}},data))};function re(e){te(c({putSortable:me,cloneEl:ce,targetEl:ie,rootEl:se,oldIndex:fe,oldDraggableIndex:pe,newIndex:de,newDraggableIndex:ge},e))}var ie,oe,ae,se,le,ue,ce,he,fe,de,pe,ge,ve,me,ye,be,_e,xe,we,Se,ke,Oe,Ce,Te,Ee,Ae=!1,Me=!1,Ie=[],De=!1,Pe=!1,Ne=[],Le=!1,je=[],Re="undefined"!=typeof document,Fe=x,Be=m||v?"cssFloat":"float",ze=Re&&!w&&!x&&"draggable"in document.createElement("div"),$e=function(){if(Re){if(v)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ve=function(e,t){var n=D(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=F(e,0,t),l=F(e,1,t),c=o&&D(o),h=l&&D(l),f=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+j(o).width,d=h&&parseInt(h.marginLeft)+parseInt(h.marginRight)+j(l).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&c.float&&"none"!==c.float){var v="left"===c.float?"left":"right";return!l||"both"!==h.clear&&h.clear!==v?"horizontal":"vertical"}return o&&("block"===c.display||"flex"===c.display||"table"===c.display||"grid"===c.display||f>=r&&"none"===n[Be]||l&&"none"===n[Be]&&f+d>r)?"vertical":"horizontal"},He=function(e){function t(e,n){return function(r,o,l,c){var h=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||h))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,l,c),n)(r,o,l,c);var f=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===f||e.join&&e.indexOf(f)>-1}}var n={},o=e.group;o&&"object"==r(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},qe=function(){!$e&&ae&&D(ae,"display","none")},We=function(){!$e&&ae&&D(ae,"display","")};Re&&document.addEventListener("click",(function(e){if(Me)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Me=!1,!1}),!0);var Ue=function(e){if(ie){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,o=e.clientY,Ie.some((function(e){if(!B(e)){var rect=j(e),t=e[X].options.emptyInsertThreshold,n=r>=rect.left-t&&r<=rect.right+t,c=o>=rect.top-t&&o<=rect.bottom+t;return t&&n&&c?l=e:void 0}})),l);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[X]._onDragOver(n)}}var r,o,l},Ge=function(e){ie&&ie.parentNode[X]._isOutsideThisEl(e.target)};function Ye(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=l({},t),e[X]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ve(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ye.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in ee.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in He(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&ze,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?k(e,"pointerdown",this._onTapStart):(k(e,"mousedown",this._onTapStart),k(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(k(e,"dragover",this),k(e,"dragenter",this)),Ie.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),l(this,Z())}function Ke(e,t,n,r,o,l,c,h){var f,d,y=e[X],_=y.options.onMove;return!window.CustomEvent||v||m?(f=document.createEvent("Event")).initEvent("move",!0,!0):f=new CustomEvent("move",{bubbles:!0,cancelable:!0}),f.to=t,f.from=e,f.dragged=n,f.draggedRect=r,f.related=o||t,f.relatedRect=l||j(t),f.willInsertAfter=h,f.originalEvent=c,e.dispatchEvent(f),_&&(d=_.call(y,f,c)),d}function Xe(e){e.draggable=!1}function Ze(){Le=!1}function Je(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,i=t.length,n=0;i--;)n+=t.charCodeAt(i);return n.toString(36)}function Qe(e){return setTimeout(e,0)}function et(e){return clearTimeout(e)}Ye.prototype={constructor:Ye,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Oe=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ie):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,l=e.type,c=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,h=(c||e).target,f=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||h,filter=r.filter;if(function(e){je.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&je.push(r)}}(n),!ie&&!(/mousedown|pointerdown/.test(l)&&0!==e.button||r.disabled||f.isContentEditable||(h=E(h,r.draggable,n,!1))&&h.animated||ue===h)){if(fe=z(h),pe=z(h,r.draggable),"function"==typeof filter){if(filter.call(this,e,h,this))return re({sortable:t,rootEl:f,name:"filter",targetEl:h,toEl:n,fromEl:n}),ne("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(filter&&(filter=filter.split(",").some((function(r){if(r=E(f,r.trim(),n,!1))return re({sortable:t,rootEl:r,name:"filter",targetEl:h,fromEl:n,toEl:n}),ne("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!E(f,r.handle,n,!1)||this._prepareDragStart(e,c,h)}}},_prepareDragStart:function(e,t,n){var r,o=this,l=o.el,c=o.options,h=l.ownerDocument;if(n&&!ie&&n.parentNode===l){var f=j(n);if(se=l,oe=(ie=n).parentNode,le=ie.nextSibling,ue=n,ve=c.group,Ye.dragged=ie,ye={target:ie,clientX:(t||e).clientX,clientY:(t||e).clientY},we=ye.clientX-f.left,Se=ye.clientY-f.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ie.style["will-change"]="all",r=function(){ne("delayEnded",o,{evt:e}),Ye.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!y&&o.nativeDraggable&&(ie.draggable=!0),o._triggerDragStart(e,t),re({sortable:o,name:"choose",originalEvent:e}),I(ie,c.chosenClass,!0))},c.ignore.split(",").forEach((function(e){N(ie,e.trim(),Xe)})),k(h,"dragover",Ue),k(h,"mousemove",Ue),k(h,"touchmove",Ue),k(h,"mouseup",o._onDrop),k(h,"touchend",o._onDrop),k(h,"touchcancel",o._onDrop),y&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ie.draggable=!0),ne("delayStart",this,{evt:e}),!c.delay||c.delayOnTouchOnly&&!t||this.nativeDraggable&&(m||v))r();else{if(Ye.eventCanceled)return void this._onDrop();k(h,"mouseup",o._disableDelayedDrag),k(h,"touchend",o._disableDelayedDrag),k(h,"touchcancel",o._disableDelayedDrag),k(h,"mousemove",o._delayedDragTouchMoveHandler),k(h,"touchmove",o._delayedDragTouchMoveHandler),c.supportPointer&&k(h,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,c.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ie&&Xe(ie),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;O(e,"mouseup",this._disableDelayedDrag),O(e,"touchend",this._disableDelayedDrag),O(e,"touchcancel",this._disableDelayedDrag),O(e,"mousemove",this._delayedDragTouchMoveHandler),O(e,"touchmove",this._delayedDragTouchMoveHandler),O(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?k(document,"pointermove",this._onTouchMove):k(document,t?"touchmove":"mousemove",this._onTouchMove):(k(ie,"dragend",this),k(se,"dragstart",this._onDragStart));try{document.selection?Qe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Ae=!1,se&&ie){ne("dragStarted",this,{evt:t}),this.nativeDraggable&&k(document,"dragover",Ge);var n=this.options;!e&&I(ie,n.dragClass,!1),I(ie,n.ghostClass,!0),Ye.active=this,e&&this._appendGhost(),re({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(be){this._lastX=be.clientX,this._lastY=be.clientY,qe();for(var e=document.elementFromPoint(be.clientX,be.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(be.clientX,be.clientY))!==t;)t=e;if(ie.parentNode[X]._isOutsideThisEl(e),t)do{if(t[X]){if(t[X]._onDragOver({clientX:be.clientX,clientY:be.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);We()}},_onTouchMove:function(e){if(ye){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,l=ae&&P(ae,!0),c=ae&&l&&l.a,h=ae&&l&&l.d,f=Fe&&Ee&&$(Ee),d=(o.clientX-ye.clientX+r.x)/(c||1)+(f?f[0]-Ne[0]:0)/(c||1),v=(o.clientY-ye.clientY+r.y)/(h||1)+(f?f[1]-Ne[1]:0)/(h||1);if(!Ye.active&&!Ae){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(ae){l?(l.e+=d-(_e||0),l.f+=v-(xe||0)):l={a:1,b:0,c:0,d:1,e:d,f:v};var m="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");D(ae,"webkitTransform",m),D(ae,"mozTransform",m),D(ae,"msTransform",m),D(ae,"transform",m),_e=d,xe=v,be=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ae){var e=this.options.fallbackOnBody?document.body:se,rect=j(ie,!0,Fe,!0,e),t=this.options;if(Fe){for(Ee=e;"static"===D(Ee,"position")&&"none"===D(Ee,"transform")&&Ee!==document;)Ee=Ee.parentNode;Ee!==document.body&&Ee!==document.documentElement?(Ee===document&&(Ee=L()),rect.top+=Ee.scrollTop,rect.left+=Ee.scrollLeft):Ee=L(),Ne=$(Ee)}I(ae=ie.cloneNode(!0),t.ghostClass,!1),I(ae,t.fallbackClass,!0),I(ae,t.dragClass,!0),D(ae,"transition",""),D(ae,"transform",""),D(ae,"box-sizing","border-box"),D(ae,"margin",0),D(ae,"top",rect.top),D(ae,"left",rect.left),D(ae,"width",rect.width),D(ae,"height",rect.height),D(ae,"opacity","0.8"),D(ae,"position",Fe?"absolute":"fixed"),D(ae,"zIndex","100000"),D(ae,"pointerEvents","none"),Ye.ghost=ae,e.appendChild(ae),D(ae,"transform-origin",we/parseInt(ae.style.width)*100+"% "+Se/parseInt(ae.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;ne("dragStart",this,{evt:e}),Ye.eventCanceled?this._onDrop():(ne("setupClone",this),Ye.eventCanceled||((ce=G(ie)).draggable=!1,ce.style["will-change"]="",this._hideClone(),I(ce,this.options.chosenClass,!1),Ye.clone=ce),n.cloneId=Qe((function(){ne("clone",n),Ye.eventCanceled||(n.options.removeCloneOnHide||se.insertBefore(ce,ie),n._hideClone(),re({sortable:n,name:"clone"}))})),!t&&I(ie,o.dragClass,!0),t?(Me=!0,n._loopId=setInterval(n._emulateDragOver,50)):(O(document,"mouseup",n._onDrop),O(document,"touchend",n._onDrop),O(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,ie)),k(document,"drop",n),D(ie,"transform","translateZ(0)")),Ae=!0,n._dragStartId=Qe(n._dragStarted.bind(n,t,e)),k(document,"selectstart",n),ke=!0,_&&D(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,l=this.el,h=e.target,f=this.options,d=f.group,v=Ye.active,m=ve===d,y=f.sort,_=me||v,x=this,w=!1;if(!Le){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),h=E(h,f.draggable,l,!0),H("dragOver"),Ye.eventCanceled)return w;if(ie.contains(e.target)||h.animated&&h.animatingX&&h.animatingY||x._ignoreWhileAnimating===h)return G(!1);if(Me=!1,v&&!f.disabled&&(m?y||(r=!se.contains(ie)):me===this||(this.lastPutMode=ve.checkPull(this,v,ie,e))&&d.checkPut(this,v,ie,e))){if(o="vertical"===this._getDirection(e,h),t=j(ie),H("dragOverValid"),Ye.eventCanceled)return w;if(r)return oe=se,W(),this._hideClone(),H("revert"),Ye.eventCanceled||(le?se.insertBefore(ie,le):se.appendChild(ie)),G(!0);var S=B(l,f.draggable);if(!S||function(e,t,n){var rect=j(B(n.el,n.options.draggable)),r=10;return t?e.clientX>rect.right+r||e.clientX<=rect.right&&e.clientY>rect.bottom&&e.clientX>=rect.left:e.clientX>rect.right&&e.clientY>rect.top||e.clientX<=rect.right&&e.clientY>rect.bottom+r}(e,o,this)&&!S.animated){if(S===ie)return G(!1);if(S&&l===e.target&&(h=S),h&&(n=j(h)),!1!==Ke(se,l,ie,t,h,n,e,!!h))return W(),l.appendChild(ie),oe=l,Y(),G(!0)}else if(h.parentNode===l){n=j(h);var k,O,C,T=ie.parentNode!==l,A=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,l=n?e.width:e.height,c=n?t.left:t.top,h=n?t.right:t.bottom,f=n?t.width:t.height;return r===c||o===h||r+l/2===c+f/2}(ie.animated&&ie.toRect||t,h.animated&&h.toRect||n,o),M=o?"top":"left",P=R(h,"top","top")||R(ie,"top","top"),N=P?P.scrollTop:void 0;if(Oe!==h&&(O=n[M],De=!1,Pe=!A&&f.invertSwap||T),k=function(e,t,n,r,o,l,c,h){var f=r?e.clientY:e.clientX,d=r?n.height:n.width,v=r?n.top:n.left,m=r?n.bottom:n.right,y=!1;if(!c)if(h&&Te<d*o){if(!De&&(1===Ce?f>v+d*l/2:f<m-d*l/2)&&(De=!0),De)y=!0;else if(1===Ce?f<v+Te:f>m-Te)return-Ce}else if(f>v+d*(1-o)/2&&f<m-d*(1-o)/2)return function(e){return z(ie)<z(e)?1:-1}(t);if((y=y||c)&&(f<v+d*l/2||f>m-d*l/2))return f>v+d/2?1:-1;return 0}(e,h,n,o,A?1:f.swapThreshold,null==f.invertedSwapThreshold?f.swapThreshold:f.invertedSwapThreshold,Pe,Oe===h),0!==k){var L=z(ie);do{L-=k,C=oe.children[L]}while(C&&("none"===D(C,"display")||C===ae))}if(0===k||C===h)return G(!1);Oe=h,Ce=k;var F=h.nextElementSibling,$=!1,V=Ke(se,l,ie,t,h,n,e,$=1===k);if(!1!==V)return 1!==V&&-1!==V||($=1===V),Le=!0,setTimeout(Ze,30),W(),$&&!F?l.appendChild(ie):h.parentNode.insertBefore(ie,$?F:h),P&&U(P,0,N-P.scrollTop),oe=ie.parentNode,void 0===O||Pe||(Te=Math.abs(O-j(h)[M])),Y(),G(!0)}if(l.contains(ie))return G(!1)}return!1}function H(f,d){ne(f,x,c({evt:e,isOwner:m,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:y,fromSortable:_,target:h,completed:G,onMove:function(n,r){return Ke(se,l,ie,t,n,j(n),e,r)},changed:Y},d))}function W(){H("dragOverAnimationCapture"),x.captureAnimationState(),x!==_&&_.captureAnimationState()}function G(t){return H("dragOverCompleted",{insertion:t}),t&&(m?v._hideClone():v._showClone(x),x!==_&&(I(ie,me?me.options.ghostClass:v.options.ghostClass,!1),I(ie,f.ghostClass,!0)),me!==x&&x!==Ye.active?me=x:x===Ye.active&&me&&(me=null),_===x&&(x._ignoreWhileAnimating=h),x.animateAll((function(){H("dragOverAnimationComplete"),x._ignoreWhileAnimating=null})),x!==_&&(_.animateAll(),_._ignoreWhileAnimating=null)),(h===ie&&!ie.animated||h===l&&!h.animated)&&(Oe=null),f.dragoverBubble||e.rootEl||h===document||(ie.parentNode[X]._isOutsideThisEl(e.target),!t&&Ue(e)),!f.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),w=!0}function Y(){de=z(ie),ge=z(ie,f.draggable),re({sortable:x,name:"change",toEl:l,newIndex:de,newDraggableIndex:ge,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){O(document,"mousemove",this._onTouchMove),O(document,"touchmove",this._onTouchMove),O(document,"pointermove",this._onTouchMove),O(document,"dragover",Ue),O(document,"mousemove",Ue),O(document,"touchmove",Ue)},_offUpEvents:function(){var e=this.el.ownerDocument;O(e,"mouseup",this._onDrop),O(e,"touchend",this._onDrop),O(e,"pointerup",this._onDrop),O(e,"touchcancel",this._onDrop),O(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;de=z(ie),ge=z(ie,n.draggable),ne("drop",this,{evt:e}),oe=ie&&ie.parentNode,de=z(ie),ge=z(ie,n.draggable),Ye.eventCanceled||(Ae=!1,Pe=!1,De=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),et(this.cloneId),et(this._dragStartId),this.nativeDraggable&&(O(document,"drop",this),O(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_&&D(document.body,"user-select",""),D(ie,"transform",""),e&&(ke&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),ae&&ae.parentNode&&ae.parentNode.removeChild(ae),(se===oe||me&&"clone"!==me.lastPutMode)&&ce&&ce.parentNode&&ce.parentNode.removeChild(ce),ie&&(this.nativeDraggable&&O(ie,"dragend",this),Xe(ie),ie.style["will-change"]="",ke&&!Ae&&I(ie,me?me.options.ghostClass:this.options.ghostClass,!1),I(ie,this.options.chosenClass,!1),re({sortable:this,name:"unchoose",toEl:oe,newIndex:null,newDraggableIndex:null,originalEvent:e}),se!==oe?(de>=0&&(re({rootEl:oe,name:"add",toEl:oe,fromEl:se,originalEvent:e}),re({sortable:this,name:"remove",toEl:oe,originalEvent:e}),re({rootEl:oe,name:"sort",toEl:oe,fromEl:se,originalEvent:e}),re({sortable:this,name:"sort",toEl:oe,originalEvent:e})),me&&me.save()):de!==fe&&de>=0&&(re({sortable:this,name:"update",toEl:oe,originalEvent:e}),re({sortable:this,name:"sort",toEl:oe,originalEvent:e})),Ye.active&&(null!=de&&-1!==de||(de=fe,ge=pe),re({sortable:this,name:"end",toEl:oe,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ne("nulling",this),se=ie=oe=ae=le=ce=ue=he=ye=be=ke=de=ge=fe=pe=Oe=Ce=me=ve=Ye.dragged=Ye.ghost=Ye.clone=Ye.active=null,je.forEach((function(e){e.checked=!0})),je.length=_e=xe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ie&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)E(e=n[i],o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||Je(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,i){var r=n.children[i];E(r,this.options.draggable,n,!1)&&(t[e]=r)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return E(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=ee.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&He(n)},destroy:function(){ne("destroy",this);var e=this.el;e[X]=null,O(e,"mousedown",this._onTapStart),O(e,"touchstart",this._onTapStart),O(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(O(e,"dragover",this),O(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ie.splice(Ie.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!he){if(ne("hideClone",this),Ye.eventCanceled)return;D(ce,"display","none"),this.options.removeCloneOnHide&&ce.parentNode&&ce.parentNode.removeChild(ce),he=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(he){if(ne("showClone",this),Ye.eventCanceled)return;se.contains(ie)&&!this.options.group.revertClone?se.insertBefore(ce,ie):le?se.insertBefore(ce,le):se.appendChild(ce),this.options.group.revertClone&&this.animate(ie,ce),D(ce,"display",""),he=!1}}else this._hideClone()}},Re&&k(document,"touchmove",(function(e){(Ye.active||Ae)&&e.cancelable&&e.preventDefault()})),Ye.utils={on:k,off:O,css:D,find:N,is:function(e,t){return!!E(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:W,closest:E,toggleClass:I,clone:G,index:z,nextTick:Qe,cancelNextTick:et,detectDirection:Ve,getChild:F},Ye.get=function(element){return element[X]},Ye.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ye.utils=c({},Ye.utils,e.utils)),ee.mount(e)}))},Ye.create=function(e,t){return new Ye(e,t)},Ye.version="1.10.2";var tt,nt,it,ot,at,st,lt=[],ut=!1;function ct(){lt.forEach((function(e){clearInterval(e.pid)})),lt=[]}function ht(){clearInterval(st)}var ft,pt=W((function(e,t,n,r){if(t.scroll){var o,l=(e.touches?e.touches[0]:e).clientX,c=(e.touches?e.touches[0]:e).clientY,h=t.scrollSensitivity,f=t.scrollSpeed,d=L(),v=!1;nt!==n&&(nt=n,ct(),tt=t.scroll,o=t.scrollFn,!0===tt&&(tt=V(n,!0)));var m=0,y=tt;do{var _=y,rect=j(_),x=rect.top,w=rect.bottom,S=rect.left,k=rect.right,O=rect.width,C=rect.height,T=void 0,E=void 0,A=_.scrollWidth,M=_.scrollHeight,I=D(_),P=_.scrollLeft,N=_.scrollTop;_===d?(T=O<A&&("auto"===I.overflowX||"scroll"===I.overflowX||"visible"===I.overflowX),E=C<M&&("auto"===I.overflowY||"scroll"===I.overflowY||"visible"===I.overflowY)):(T=O<A&&("auto"===I.overflowX||"scroll"===I.overflowX),E=C<M&&("auto"===I.overflowY||"scroll"===I.overflowY));var R=T&&(Math.abs(k-l)<=h&&P+O<A)-(Math.abs(S-l)<=h&&!!P),F=E&&(Math.abs(w-c)<=h&&N+C<M)-(Math.abs(x-c)<=h&&!!N);if(!lt[m])for(var i=0;i<=m;i++)lt[i]||(lt[i]={});lt[m].vx==R&&lt[m].vy==F&&lt[m].el===_||(lt[m].el=_,lt[m].vx=R,lt[m].vy=F,clearInterval(lt[m].pid),0==R&&0==F||(v=!0,lt[m].pid=setInterval(function(){r&&0===this.layer&&Ye.active._onTouchMove(at);var t=lt[this.layer].vy?lt[this.layer].vy*f:0,n=lt[this.layer].vx?lt[this.layer].vx*f:0;"function"==typeof o&&"continue"!==o.call(Ye.dragged.parentNode[X],n,t,e,at,lt[this.layer].el)||U(lt[this.layer].el,n,t)}.bind({layer:m}),24))),m++}while(t.bubbleScroll&&y!==d&&(y=V(y,!1)));ut=v}}),30),gt=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,l=e.dispatchSortableEvent,c=e.hideGhostForTarget,h=e.unhideGhostForTarget;if(t){var f=n||o;c();var d=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,v=document.elementFromPoint(d.clientX,d.clientY);h(),f&&!f.el.contains(v)&&(l("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function vt(){}function mt(){}function yt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;ft=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,l=e.changed,c=e.cancel;if(o.options.swap){var h=this.sortable.el,f=this.options;if(n&&n!==h){var d=ft;!1!==r(n)?(I(n,f.swapClass,!0),ft=n):ft=null,d&&d!==ft&&I(d,f.swapClass,!1)}l(),t(!0),c()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,o=n||this.sortable,l=this.options;ft&&I(ft,l.swapClass,!1),ft&&(l.swap||n&&n.options.swap)&&r!==ft&&(o.captureAnimationState(),o!==t&&t.captureAnimationState(),function(e,t){var n,r,o=e.parentNode,l=t.parentNode;if(!o||!l||o.isEqualNode(t)||l.isEqualNode(e))return;n=z(e),r=z(t),o.isEqualNode(l)&&n<r&&r++;o.insertBefore(t,o.children[n]),l.insertBefore(e,l.children[r])}(r,ft),o.animateAll(),o!==t&&t.animateAll())},nulling:function(){ft=null}},l(e,{pluginName:"swap",eventProperties:function(){return{swapItem:ft}}})}vt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=F(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:gt},l(vt,{pluginName:"revertOnSpill"}),mt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:gt},l(mt,{pluginName:"removeOnSpill"});var bt,_t,xt,wt,St,kt=[],Ot=[],Ct=!1,Tt=!1,Et=!1;function At(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?k(document,"pointerup",this._deselectMultiDrag):(k(document,"mouseup",this._deselectMultiDrag),k(document,"touchend",this._deselectMultiDrag)),k(document,"keydown",this._checkKeyDown),k(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var data="";kt.length&&_t===e?kt.forEach((function(e,i){data+=(i?", ":"")+e.textContent})):data=n.textContent,t.setData("Text",data)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;xt=t},delayEnded:function(){this.isMultiDrag=~kt.indexOf(xt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var i=0;i<kt.length;i++)Ot.push(G(kt[i])),Ot[i].sortableIndex=kt[i].sortableIndex,Ot[i].draggable=!1,Ot[i].style["will-change"]="",I(Ot[i],this.options.selectedClass,!1),kt[i]===xt&&I(Ot[i],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||kt.length&&_t===t&&(Mt(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Mt(!1,n),Ot.forEach((function(e){D(e,"display","")})),t(),St=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(Ot.forEach((function(e){D(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),St=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&_t&&_t.multiDrag._deselectMultiDrag(),kt.forEach((function(e){e.sortableIndex=z(e)})),kt=kt.sort((function(a,b){return a.sortableIndex-b.sortableIndex})),Et=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){kt.forEach((function(e){e!==xt&&D(e,"position","absolute")}));var r=j(xt,!1,!0,!0);kt.forEach((function(e){e!==xt&&Y(e,r)})),Tt=!0,Ct=!0}n.animateAll((function(){Tt=!1,Ct=!1,t.options.animation&&kt.forEach((function(e){K(e)})),t.options.sort&&It()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Tt&&~kt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;kt.length>1&&(kt.forEach((function(e){r.addAnimationState({target:e,rect:Tt?j(e):o}),K(e),e.fromRect=o,t.removeAnimationState(e)})),Tt=!1,function(e,t){kt.forEach((function(n,i){var r=t.children[n.sortableIndex+(e?Number(i):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,l=e.parentEl,c=e.putSortable,h=this.options;if(r){if(n&&o._hideClone(),Ct=!1,h.animation&&kt.length>1&&(Tt||!n&&!o.options.sort&&!c)){var f=j(xt,!1,!0,!0);kt.forEach((function(e){e!==xt&&(Y(e,f),l.appendChild(e))})),Tt=!0}if(!n)if(Tt||It(),kt.length>1){var d=St;o._showClone(t),o.options.animation&&!St&&d&&Ot.forEach((function(e){o.addAnimationState({target:e,rect:wt}),e.fromRect=wt,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(kt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){wt=l({},t);var o=P(xt,!0);wt.top-=o.f,wt.left-=o.e}},dragOverAnimationComplete:function(){Tt&&(Tt=!1,It())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,l=e.dispatchSortableEvent,c=e.oldIndex,h=e.putSortable,f=h||this.sortable;if(t){var d=this.options,v=r.children;if(!Et)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),I(xt,d.selectedClass,!~kt.indexOf(xt)),~kt.indexOf(xt))kt.splice(kt.indexOf(xt),1),bt=null,te({sortable:o,rootEl:n,name:"deselect",targetEl:xt,originalEvt:t});else{if(kt.push(xt),te({sortable:o,rootEl:n,name:"select",targetEl:xt,originalEvt:t}),t.shiftKey&&bt&&o.el.contains(bt)){var m,i,y=z(bt),_=z(xt);if(~y&&~_&&y!==_)for(_>y?(i=y,m=_):(i=_,m=y+1);i<m;i++)~kt.indexOf(v[i])||(I(v[i],d.selectedClass,!0),kt.push(v[i]),te({sortable:o,rootEl:n,name:"select",targetEl:v[i],originalEvt:t}))}else bt=xt;_t=f}if(Et&&this.isMultiDrag){if((r[X].options.sort||r!==n)&&kt.length>1){var x=j(xt),w=z(xt,":not(."+this.options.selectedClass+")");if(!Ct&&d.animation&&(xt.thisAnimationDuration=null),f.captureAnimationState(),!Ct&&(d.animation&&(xt.fromRect=x,kt.forEach((function(e){if(e.thisAnimationDuration=null,e!==xt){var rect=Tt?j(e):x;e.fromRect=rect,f.addAnimationState({target:e,rect:rect})}}))),It(),kt.forEach((function(e){v[w]?r.insertBefore(e,v[w]):r.appendChild(e),w++})),c===z(xt))){var S=!1;kt.forEach((function(e){e.sortableIndex===z(e)||(S=!0)})),S&&l("update")}kt.forEach((function(e){K(e)})),f.animateAll()}_t=f}(n===r||h&&"clone"!==h.lastPutMode)&&Ot.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Et=!1,Ot.length=0},destroyGlobal:function(){this._deselectMultiDrag(),O(document,"pointerup",this._deselectMultiDrag),O(document,"mouseup",this._deselectMultiDrag),O(document,"touchend",this._deselectMultiDrag),O(document,"keydown",this._checkKeyDown),O(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==Et&&Et||_t!==this.sortable||e&&E(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;kt.length;){var t=kt[0];I(t,this.options.selectedClass,!1),kt.shift(),te({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},l(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[X];t&&t.options.multiDrag&&!~kt.indexOf(e)&&(_t&&_t!==t&&(_t.multiDrag._deselectMultiDrag(),_t=t),I(e,t.options.selectedClass,!0),kt.push(e))},deselect:function(e){var t=e.parentNode[X],n=kt.indexOf(e);t&&t.options.multiDrag&&~n&&(I(e,t.options.selectedClass,!1),kt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return kt.forEach((function(r){var o;t.push({multiDragElement:r,index:r.sortableIndex}),o=Tt&&r!==xt?-1:Tt?z(r,":not(."+e.options.selectedClass+")"):z(r),n.push({multiDragElement:r,index:o})})),{items:f(kt),clones:[].concat(Ot),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Mt(e,t){Ot.forEach((function(n,i){var r=t.children[n.sortableIndex+(e?Number(i):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}function It(){kt.forEach((function(e){e!==xt&&e.parentNode&&e.parentNode.removeChild(e)}))}Ye.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?k(document,"dragover",this._handleAutoScroll):this.options.supportPointer?k(document,"pointermove",this._handleFallbackAutoScroll):t.touches?k(document,"touchmove",this._handleFallbackAutoScroll):k(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?O(document,"dragover",this._handleAutoScroll):(O(document,"pointermove",this._handleFallbackAutoScroll),O(document,"touchmove",this._handleFallbackAutoScroll),O(document,"mousemove",this._handleFallbackAutoScroll)),ht(),ct(),clearTimeout(A),A=void 0},nulling:function(){at=nt=tt=ut=st=it=ot=null,lt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(r,o);if(at=e,t||m||v||_){pt(e,this.options,l,t);var c=V(l,!0);!ut||st&&r===it&&o===ot||(st&&ht(),st=setInterval((function(){var l=V(document.elementFromPoint(r,o),!0);l!==c&&(c=l,ct()),pt(e,n.options,l,t)}),10),it=r,ot=o)}else{if(!this.options.bubbleScroll||V(l,!0)===L())return void ct();pt(e,this.options,V(l,!1),!1)}}},l(e,{pluginName:"scroll",initializeByDefault:!0})}),Ye.mount(mt,vt),t.default=Ye},function(e,t,n){"use strict";n.r(t);var r=n(69),o=n.n(r),l=n(35),c=n.n(l),h=/%[sdj%]/g;function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=1,r=t[0],o=t.length;if("function"==typeof r)return r.apply(null,t.slice(1));if("string"==typeof r){for(var l=String(r).replace(h,(function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(e){return"[Circular]"}break;default:return e}})),c=t[i];i<o;c=t[++i])l+=" "+c;return l}return r}function d(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function v(e,t,n){var r=0,o=e.length;!function l(c){if(c&&c.length)n(c);else{var h=r;r+=1,h<o?t(e[h],l):n([])}}([])}function m(e,option,t,n){if(option.first){var r=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}(e);return v(r,t,n)}var o=option.firstFields||[];!0===o&&(o=Object.keys(e));var l=Object.keys(e),c=l.length,h=0,f=[],d=function(e){f.push.apply(f,e),++h===c&&n(f)};l.forEach((function(n){var r=e[n];-1!==o.indexOf(n)?v(r,t,d):function(e,t,n){var r=[],o=0,l=e.length;function c(e){r.push.apply(r,e),++o===l&&n(r)}e.forEach((function(a){t(a,c)}))}(r,t,d)}))}function y(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function _(e,source){if(source)for(var s in source)if(source.hasOwnProperty(s)){var t=source[s];"object"===(void 0===t?"undefined":c()(t))&&"object"===c()(e[s])?e[s]=o()({},e[s],t):e[s]=t}return e}var x=function(e,t,source,n,r,o){!e.required||source.hasOwnProperty(e.field)&&!d(t,o||e.type)||n.push(f(r.messages.required,e.fullField))};var w=function(e,t,source,n,r){(/^\s+$/.test(t)||""===t)&&n.push(f(r.messages.whitespace,e.fullField))},pattern={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},S={integer:function(e){return S.number(e)&&parseInt(e,10)===e},float:function(e){return S.number(e)&&!S.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":c()(e))&&!S.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(pattern.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(pattern.url)},hex:function(e){return"string"==typeof e&&!!e.match(pattern.hex)}};var k=function(e,t,source,n,r){if(e.required&&void 0===t)x(e,t,source,n,r);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?S[o](t)||n.push(f(r.messages.types[o],e.fullField,e.type)):o&&(void 0===t?"undefined":c()(t))!==e.type&&n.push(f(r.messages.types[o],e.fullField,e.type))}};var O={required:x,whitespace:w,type:k,range:function(e,t,source,n,r){var o="number"==typeof e.len,l="number"==typeof e.min,c="number"==typeof e.max,h=t,d=null,v="number"==typeof t,m="string"==typeof t,y=Array.isArray(t);if(v?d="number":m?d="string":y&&(d="array"),!d)return!1;y&&(h=t.length),m&&(h=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?h!==e.len&&n.push(f(r.messages[d].len,e.fullField,e.len)):l&&!c&&h<e.min?n.push(f(r.messages[d].min,e.fullField,e.min)):c&&!l&&h>e.max?n.push(f(r.messages[d].max,e.fullField,e.max)):l&&c&&(h<e.min||h>e.max)&&n.push(f(r.messages[d].range,e.fullField,e.min,e.max))},enum:function(e,t,source,n,r){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&n.push(f(r.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,source,n,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||n.push(f(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||n.push(f(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};var C=function(e,t,n,source,r){var o=e.type,l=[];if(e.required||!e.required&&source.hasOwnProperty(e.field)){if(d(t,o)&&!e.required)return n();O.required(e,t,source,l,r,o),d(t,o)||O.type(e,t,source,l,r)}n(l)},T={string:function(e,t,n,source,r){var o=[];if(e.required||!e.required&&source.hasOwnProperty(e.field)){if(d(t,"string")&&!e.required)return n();O.required(e,t,source,o,r,"string"),d(t,"string")||(O.type(e,t,source,o,r),O.range(e,t,source,o,r),O.pattern(e,t,source,o,r),!0===e.whitespace&&O.whitespace(e,t,source,o,r))}n(o)},method:function(e,t,n,source,r){var o=[];if(e.required||!e.required&&source.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,source,o,r),void 0!==t&&O.type(e,t,source,o,r)}n(o)},number:function(e,t,n,source,r){var o=[];if(e.required||!e.required&&source.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,source,o,r),void 0!==t&&(O.type(e,t,source,o,r),O.range(e,t,source,o,r))}n(o)},boolean:function(e,t,n,source,r){var o=[];if(e.required||!e.required&&source.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,source,o,r),void 0!==t&&O.type(e,t,source,o,r)}n(o)},regexp:function(e,t,n,source,r){var o=[];if(e.required||!e.required&&source.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,source,o,r),d(t)||O.type(e,t,source,o,r)}n(o)},integer:function(e,t,n,source,r){var o=[];if(e.required||!e.required&&source.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,source,o,r),void 0!==t&&(O.type(e,t,source,o,r),O.range(e,t,source,o,r))}n(o)},float:function(e,t,n,source,r){var o=[];if(e.required||!e.required&&source.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,source,o,r),void 0!==t&&(O.type(e,t,source,o,r),O.range(e,t,source,o,r))}n(o)},array:function(e,t,n,source,r){var o=[];if(e.required||!e.required&&source.hasOwnProperty(e.field)){if(d(t,"array")&&!e.required)return n();O.required(e,t,source,o,r,"array"),d(t,"array")||(O.type(e,t,source,o,r),O.range(e,t,source,o,r))}n(o)},object:function(e,t,n,source,r){var o=[];if(e.required||!e.required&&source.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,source,o,r),void 0!==t&&O.type(e,t,source,o,r)}n(o)},enum:function(e,t,n,source,r){var o=[];if(e.required||!e.required&&source.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();O.required(e,t,source,o,r),t&&O.enum(e,t,source,o,r)}n(o)},pattern:function(e,t,n,source,r){var o=[];if(e.required||!e.required&&source.hasOwnProperty(e.field)){if(d(t,"string")&&!e.required)return n();O.required(e,t,source,o,r),d(t,"string")||O.pattern(e,t,source,o,r)}n(o)},date:function(e,t,n,source,r){var o=[];if(e.required||!e.required&&source.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();if(O.required(e,t,source,o,r),!d(t)){var l=void 0;l="number"==typeof t?new Date(t):t,O.type(e,l,source,o,r),l&&O.range(e,l.getTime(),source,o,r)}}n(o)},url:C,hex:C,email:C,required:function(e,t,n,source,r){var o=[],l=Array.isArray(t)?"array":void 0===t?"undefined":c()(t);O.required(e,t,source,o,r,l),n(o)}};function E(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var A=E();function M(e){this.rules=null,this._messages=A,this.define(e)}M.prototype={messages:function(e){return e&&(this._messages=_(E(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===e?"undefined":c()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],source=e,l=n,h=r;if("function"==typeof l&&(h=l,l={}),this.rules&&0!==Object.keys(this.rules).length){if(l.messages){var d=this.messages();d===A&&(d=E()),_(d,l.messages),l.messages=d}else l.messages=this.messages();var v=void 0,x=void 0,w={},S=l.keys||Object.keys(this.rules);S.forEach((function(n){v=t.rules[n],x=source[n],v.forEach((function(r){var l=r;"function"==typeof l.transform&&(source===e&&(source=o()({},source)),x=source[n]=l.transform(x)),(l="function"==typeof l?{validator:l}:o()({},l)).validator=t.getValidationMethod(l),l.field=n,l.fullField=l.fullField||n,l.type=t.getType(l),l.validator&&(w[n]=w[n]||[],w[n].push({rule:l,value:x,source:source,field:n}))}))}));var k={};m(w,l,(function(data,e){var t=data.rule,n=!("object"!==t.type&&"array"!==t.type||"object"!==c()(t.fields)&&"object"!==c()(t.defaultField));function r(e,n){return o()({},n,{fullField:t.fullField+"."+e})}function h(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],h=c;if(Array.isArray(h)||(h=[h]),h.length,h.length&&t.message&&(h=[].concat(t.message)),h=h.map(y(t)),l.first&&h.length)return k[t.field]=1,e(h);if(n){if(t.required&&!data.value)return h=t.message?[].concat(t.message).map(y(t)):l.error?[l.error(t,f(l.messages.required,t.field))]:[],e(h);var d={};if(t.defaultField)for(var v in data.value)data.value.hasOwnProperty(v)&&(d[v]=t.defaultField);for(var m in d=o()({},d,data.rule.fields))if(d.hasOwnProperty(m)){var _=Array.isArray(d[m])?d[m]:[d[m]];d[m]=_.map(r.bind(null,m))}var x=new M(d);x.messages(l.messages),data.rule.options&&(data.rule.options.messages=l.messages,data.rule.options.error=l.error),x.validate(data.value,data.rule.options||l,(function(t){e(t&&t.length?h.concat(t):t)}))}else e(h)}n=n&&(t.required||!t.required&&data.value),t.field=data.field;var d=t.validator(t,data.value,h,data.source,l);d&&d.then&&d.then((function(){return h()}),(function(e){return h(e)}))}),(function(e){O(e)}))}else h&&h();function O(e){var t,i=void 0,n=void 0,r=[],o={};for(i=0;i<e.length;i++)t=e[i],Array.isArray(t)?r=r.concat.apply(r,t):r.push(t);if(r.length)for(i=0;i<r.length;i++)o[n=r[i].field]=o[n]||[],o[n].push(r[i]);else r=null,o=null;h(r,o)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!T.hasOwnProperty(e.type))throw new Error(f("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?T.required:T[this.getType(e)]||!1}},M.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");T[e]=t},M.messages=A;t.default=M},function(e,t,n){"use strict";n(423)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},function(e,t,n){"use strict";var r=n(9),o=n(96)(5),l="find",c=!0;l in[]&&Array(1).find((function(){c=!1})),r(r.P+r.F*c,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(93)(l)},function(e,t,n){n(420)("Uint8",1,(function(e){return function(data,t,n){return e(this,data,t,n)}}))},function(e,t,n){"use strict";function r(source,e){if(null==source)return{};var t,i,n=function(source,e){if(null==source)return{};var t,i,n={},r=Object.keys(source);for(i=0;i<r.length;i++)t=r[i],e.indexOf(t)>=0||(n[t]=source[t]);return n}(source,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(source);for(i=0;i<r.length;i++)t=r[i],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(source,t)&&(n[t]=source[t])}return n}n.d(t,"a",(function(){return r}))},function(e,t,n){var r;r=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return M}});var r=n(279),o=n.n(r),l=n(370),c=n.n(l),h=n(817),f=n.n(h);function d(e){try{return document.execCommand(e)}catch(e){return!1}}var v=function(e){var t=f()(e);return d("cut"),t},m=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=f()(n);return d("copy"),n.remove(),r},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=m(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=m(e.value,t):(n=f()(e),d("copy")),n};function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}var x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,o=e.target,text=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==_(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return text?y(text,{container:r}):o?"cut"===n?v(o):y(o,{container:r}):void 0};function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function S(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,p){return k=Object.setPrototypeOf||function(e,p){return e.__proto__=p,e},k(e,p)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T(e);if(t){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function E(e,element){var t="data-clipboard-".concat(e);if(element.hasAttribute(t))return element.getAttribute(t)}var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(l,e);var t,n,r,o=O(l);function l(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(n=o.call(this)).resolveOptions(t),n.listenClick(e),n}return t=l,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===w(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=c()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",text=x({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(text?"success":"error",{action:n,text:text,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return E("action",e)}},{key:"defaultTarget",value:function(e){var t=E("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return E("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return y(e,t)}},{key:"cut",value:function(e){return v(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&S(t.prototype,n),r&&S(t,r),l}(o()),M=A},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(element,e){for(;element&&9!==element.nodeType;){if("function"==typeof element.matches&&element.matches(e))return element;element=element.parentNode}}},438:function(e,t,n){var r=n(828);function o(element,e,t,n,r){var o=l.apply(this,arguments);return element.addEventListener(t,o,r),{destroy:function(){element.removeEventListener(t,o,r)}}}function l(element,e,t,n){return function(t){t.delegateTarget=r(t.target,e),t.delegateTarget&&n.call(element,t)}}e.exports=function(e,t,n,r,l){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(element){return o(element,t,n,r,l)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(element){var e;if("SELECT"===element.nodeName)element.focus(),e=element.value;else if("INPUT"===element.nodeName||"TEXTAREA"===element.nodeName){var t=element.hasAttribute("readonly");t||element.setAttribute("readonly",""),element.select(),element.setSelectionRange(0,element.value.length),t||element.removeAttribute("readonly"),e=element.value}else{element.hasAttribute("contenteditable")&&element.focus();var n=window.getSelection(),r=document.createRange();r.selectNodeContents(element),n.removeAllRanges(),n.addRange(r),e=n.toString()}return e}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var data=[].slice.call(arguments,1),t=((this.e||(this.e={}))[e]||[]).slice(),i=0,n=t.length;i<n;i++)t[i].fn.apply(t[i].ctx,data);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,l=r.length;i<l;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=r()},function(e,t,n){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",s="week",u="month",a="year",o=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,l=/\[.*?\]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},h={padStart:c,padZoneStr:function(e){var t=Math.abs(e),n=Math.floor(t/60),r=t%60;return(e<=0?"+":"-")+c(n,2,"0")+":"+c(r,2,"0")},monthDiff:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months"),i=t-r<0,s=e.clone().add(n+(i?-1:1),"months");return Number(-(n+(t-r)/(i?r-s:s-r))||0)},absFloor:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},prettyUnit:function(o){return{M:u,y:a,w:s,d:i,h:r,m:n,s:t,ms:e}[o]||String(o||"").toLowerCase().replace(/s$/,"")},isUndefined:function(e){return void 0===e}},f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},d="en",v={};v[d]=f;var m=function(e){return e instanceof w},y=function(e,t,n){var r;if(!e)return null;if("string"==typeof e)v[e]&&(r=e),t&&(v[e]=t,r=e);else{var i=e.name;v[i]=e,r=i}return n||(d=r),r},_=function(e,t){if(m(e))return e.clone();var n=t?"string"==typeof t?{format:t}:t:{};return n.date=e,new w(n)},x=function(e,t){return _(e,{locale:t.$L})},p=h;p.parseLocale=y,p.isDayjs=m,p.wrapper=x;var w=function(){function c(e){this.parse(e)}var h=c.prototype;return h.parse=function(e){var t,n;this.$d=null===(t=e.date)?new Date(NaN):p.isUndefined(t)?new Date:t instanceof Date?t:"string"==typeof t&&/.*[^Z]$/i.test(t)&&(n=t.match(o))?new Date(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0):new Date(t),this.init(e)},h.init=function(e){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds(),this.$L=this.$L||y(e.locale,null,!0)||d},h.$utils=function(){return p},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},h.isAfter=function(e,t){return _(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<_(e)},h.year=function(){return this.$y},h.month=function(){return this.$M},h.day=function(){return this.$W},h.date=function(){return this.$D},h.hour=function(){return this.$H},h.minute=function(){return this.$m},h.second=function(){return this.$s},h.millisecond=function(){return this.$ms},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,o){var l=this,c=!!p.isUndefined(o)||o,h=p.prettyUnit(e),f=function(e,t){var n=x(new Date(l.$y,t,e),l);return c?n:n.endOf(i)},d=function(e,t){return x(l.toDate()[e].apply(l.toDate(),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},v=this.$W,m=this.$M,y=this.$D;switch(h){case a:return c?f(1,0):f(31,11);case u:return c?f(1,m):f(0,m+1);case s:var _=this.$locale().weekStart||0,w=(v<_?v+7:v)-_;return f(c?y-w:y+(6-w),m);case i:case"date":return d("setHours",0);case r:return d("setMinutes",1);case n:return d("setSeconds",2);case t:return d("setMilliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(s,o){var l,c=p.prettyUnit(s),h=(l={},l[i]="setDate",l.date="setDate",l[u]="setMonth",l[a]="setFullYear",l[r]="setHours",l[n]="setMinutes",l[t]="setSeconds",l[e]="setMilliseconds",l)[c],f=c===i?this.$D+(o-this.$W):o;return this.$d[h]&&this.$d[h](f),this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.add=function(e,o){var l,c=this;e=Number(e);var h=p.prettyUnit(o),f=function(t,n){var r=c.set("date",1).set(t,n+e);return r.set("date",Math.min(c.$D,r.daysInMonth()))},d=function(t){var n=new Date(c.$d);return n.setDate(n.getDate()+t*e),x(n,c)};if(h===u)return f(u,this.$M);if(h===a)return f(a,this.$y);if(h===i)return d(1);if(h===s)return d(7);var v=(l={},l[n]=6e4,l[r]=36e5,l[t]=1e3,l)[h]||1,m=this.valueOf()+e*v;return x(m,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=p.padZoneStr(this.$d.getTimezoneOffset()),i=this.$locale(),s=i.weekdays,u=i.months,a=function(e,t,n,r){return e&&e[t]||n[t].substr(0,r)},o=function(e){return 0===t.$H?12:p.padStart(t.$H<13?t.$H:t.$H-12,"hh"===e?2:1,"0")},c={YY:String(this.$y).slice(-2),YYYY:String(this.$y),M:String(this.$M+1),MM:p.padStart(this.$M+1,2,"0"),MMM:a(i.monthsShort,this.$M,u,3),MMMM:u[this.$M],D:String(this.$D),DD:p.padStart(this.$D,2,"0"),d:String(this.$W),dd:a(i.weekdaysMin,this.$W,s,2),ddd:a(i.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(this.$H),HH:p.padStart(this.$H,2,"0"),h:o("h"),hh:o("hh"),a:this.$H<12?"am":"pm",A:this.$H<12?"AM":"PM",m:String(this.$m),mm:p.padStart(this.$m,2,"0"),s:String(this.$s),ss:p.padStart(this.$s,2,"0"),SSS:p.padStart(this.$ms,3,"0"),Z:r};return n.replace(l,(function(e){return e.indexOf("[")>-1?e.replace(/\[|\]/g,""):c[e]||r.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(e,o,l){var c,h=p.prettyUnit(o),f=_(e),d=6e4*(f.utcOffset()-this.utcOffset()),v=this-f,m=p.monthDiff(this,f);return m=(c={},c[a]=m/12,c[u]=m,c.quarter=m/3,c[s]=(v-d)/6048e5,c[i]=(v-d)/864e5,c[r]=v/36e5,c[n]=v/6e4,c[t]=v/1e3,c)[h]||v,l?m:p.absFloor(m)},h.daysInMonth=function(){return this.endOf(u).$D},h.$locale=function(){return v[this.$L]},h.locale=function(e,t){var n=this.clone();return n.$L=y(e,t,!0),n},h.clone=function(){return x(this.toDate(),this)},h.toDate=function(){return new Date(this.$d)},h.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},h.toJSON=function(){return this.toISOString()},h.toISOString=function(){return this.$d.toISOString()},h.toObject=function(){return{years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},h.toString=function(){return this.$d.toUTCString()},c}();return _.prototype=w.prototype,_.extend=function(e,t){return e(t,w,_),_},_.locale=y,_.isDayjs=m,_.unix=function(e){return _(1e3*e)},_.en=v[d],_}()},function(e,t,n){"use strict";n.r(t),n.d(t,"set_cptable",(function(){return k})),n.d(t,"set_fs",(function(){return Fe})),n.d(t,"version",(function(){return sf})),n.d(t,"parse_xlscfb",(function(){return yc})),n.d(t,"parse_zip",(function(){return Th})),n.d(t,"read",(function(){return Nh})),n.d(t,"readFile",(function(){return Lh})),n.d(t,"readFileSync",(function(){return Lh})),n.d(t,"write",(function(){return $h})),n.d(t,"writeFile",(function(){return Hh})),n.d(t,"writeFileSync",(function(){return Hh})),n.d(t,"writeFileAsync",(function(){return Wh})),n.d(t,"writeXLSX",(function(){return zh})),n.d(t,"writeFileXLSX",(function(){return qh})),n.d(t,"utils",(function(){return of})),n.d(t,"stream",(function(){return af})),n.d(t,"SSF",(function(){return De})),n.d(t,"CFB",(function(){return je}));var r={version:"0.18.5"},o=1200,l=1252,c=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],h={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},f=function(e){-1!=c.indexOf(e)&&(l=h[0]=e)};var d=function(e){o=e,f(e)};function v(){d(1200),f(1252)}function m(data){for(var e=[],i=0,t=data.length;i<t;++i)e[i]=data.charCodeAt(i);return e}function y(data){for(var e=[],i=0;i<data.length>>1;++i)e[i]=String.fromCharCode(data.charCodeAt(2*i+1)+(data.charCodeAt(2*i)<<8));return e.join("")}var _,x=function(data){var e=data.charCodeAt(0),t=data.charCodeAt(1);return 255==e&&254==t?function(data){for(var e=[],i=0;i<data.length>>1;++i)e[i]=String.fromCharCode(data.charCodeAt(2*i)+(data.charCodeAt(2*i+1)<<8));return e.join("")}(data.slice(2)):254==e&&255==t?y(data.slice(2)):65279==e?data.slice(1):data},w=function(e){return String.fromCharCode(e)},S=function(e){return String.fromCharCode(e)};function k(e){_=e,d=function(e){o=e,f(e)},x=function(data){return 255===data.charCodeAt(0)&&254===data.charCodeAt(1)?_.utils.decode(1200,m(data.slice(2))):data},w=function(e){return 1200===o?String.fromCharCode(e):_.utils.decode(o,[255&e,e>>8])[0]},S=function(e){return _.utils.decode(l,[e])[0]},Xn()}var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function C(input){for(var e="",t=0,n=0,r=0,o=0,l=0,c=0,h=0,i=0;i<input.length;)o=(t=input.charCodeAt(i++))>>2,l=(3&t)<<4|(n=input.charCodeAt(i++))>>4,c=(15&n)<<2|(r=input.charCodeAt(i++))>>6,h=63&r,isNaN(n)?c=h=64:isNaN(r)&&(h=64),e+=O.charAt(o)+O.charAt(l)+O.charAt(c)+O.charAt(h);return e}function T(input){var e="",t=0,n=0,r=0,o=0,l=0,c=0;input=input.replace(/[^\w\+\/\=]/g,"");for(var i=0;i<input.length;)t=O.indexOf(input.charAt(i++))<<2|(o=O.indexOf(input.charAt(i++)))>>4,e+=String.fromCharCode(t),n=(15&o)<<4|(l=O.indexOf(input.charAt(i++)))>>2,64!==l&&(e+=String.fromCharCode(n)),r=(3&l)<<6|(c=O.indexOf(input.charAt(i++))),64!==c&&(e+=String.fromCharCode(r));return e}var E=function(){return"undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),A=function(){if("undefined"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function M(e){return E?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function I(e){return E?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var D=function(s){return E?A(s,"binary"):s.split("").map((function(e){return 255&e.charCodeAt(0)}))};function P(s){if("undefined"==typeof ArrayBuffer)return D(s);for(var e=new ArrayBuffer(s.length),view=new Uint8Array(e),i=0;i!=s.length;++i)view[i]=255&s.charCodeAt(i);return e}function N(data){if(Array.isArray(data))return data.map((function(e){return String.fromCharCode(e)})).join("");for(var e=[],i=0;i<data.length;++i)e[i]=String.fromCharCode(data[i]);return e.join("")}function L(data){if("undefined"==typeof ArrayBuffer)throw new Error("Unsupported");if(data instanceof ArrayBuffer)return L(new Uint8Array(data));for(var e=new Array(data.length),i=0;i<data.length;++i)e[i]=data[i];return e}var j=E?function(e){return Buffer.concat(e.map((function(e){return Buffer.isBuffer(e)?e:A(e)})))}:function(e){if("undefined"!=typeof Uint8Array){var i=0,t=0;for(i=0;i<e.length;++i)t+=e[i].length;var n=new Uint8Array(t),r=0;for(i=0,t=0;i<e.length;t+=r,++i)if(r=e[i].length,e[i]instanceof Uint8Array)n.set(e[i],t);else{if("string"==typeof e[i])throw"wtf";n.set(new Uint8Array(e[i]),t)}return n}return[].concat.apply([],e.map((function(e){return Array.isArray(e)?e:[].slice.call(e)})))};var R=/\u0000/g,F=/[\u0001-\u0006]/g;function B(e){for(var t="",i=e.length-1;i>=0;)t+=e.charAt(i--);return t}function z(e,t){var n=""+e;return n.length>=t?n:ot("0",t-n.length)+n}function V(e,t){var n=""+e;return n.length>=t?n:ot(" ",t-n.length)+n}function H(e,t){var n=""+e;return n.length>=t?n:n+ot(" ",t-n.length)}var W=Math.pow(2,32);function U(e,t){return e>W||e<-W?function(e,t){var n=""+Math.round(e);return n.length>=t?n:ot("0",t-n.length)+n}(e,t):function(e,t){var n=""+e;return n.length>=t?n:ot("0",t-n.length)+n}(Math.round(e),t)}function G(s,i){return i=i||0,s.length>=7+i&&103==(32|s.charCodeAt(i))&&101==(32|s.charCodeAt(i+1))&&110==(32|s.charCodeAt(i+2))&&101==(32|s.charCodeAt(i+3))&&114==(32|s.charCodeAt(i+4))&&97==(32|s.charCodeAt(i+5))&&108==(32|s.charCodeAt(i+6))}var Y=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],K=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];var X={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Z={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},J={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Q(e,t,n){for(var r=e<0?-1:1,o=e*r,l=0,c=1,h=0,f=1,d=0,v=0,m=Math.floor(o);d<t&&(h=(m=Math.floor(o))*c+l,v=m*d+f,!(o-m<5e-8));)o=1/(o-m),l=c,c=h,f=d,d=v;if(v>t&&(d>t?(v=f,h=l):(v=d,h=c)),!n)return[0,r*h,v];var q=Math.floor(r*h/v);return[q,r*h-q*v,v]}function ee(e,t,n){if(e>2958465||e<0)return null;var r=0|e,time=Math.floor(86400*(e-r)),o=0,l=[],c={D:r,T:time,u:86400*(e-r)-time,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(c.u)<1e-6&&(c.u=0),t&&t.date1904&&(r+=1462),c.u>.9999&&(c.u=0,86400==++time&&(c.T=time=0,++r,++c.D)),60===r)l=n?[1317,10,29]:[1900,2,29],o=3;else if(0===r)l=n?[1317,8,29]:[1900,1,0],o=6;else{r>60&&--r;var h=new Date(1900,0,1);h.setDate(h.getDate()+r-1),l=[h.getFullYear(),h.getMonth()+1,h.getDate()],o=h.getDay(),r<60&&(o=(o+6)%7),n&&(o=function(e,t){t[0]-=581;var n=e.getDay();e<60&&(n=(n+6)%7);return n}(h,l))}return c.y=l[0],c.m=l[1],c.d=l[2],c.S=time%60,time=Math.floor(time/60),c.M=time%60,time=Math.floor(time/60),c.H=time,c.q=o,c}var te=new Date(1899,11,31,0,0,0),ne=te.getTime(),re=new Date(1900,2,1,0,0,0);function ie(e,t){var n=e.getTime();return t?n-=1262304e5:e>=re&&(n+=864e5),(n-(ne+6e4*(e.getTimezoneOffset()-te.getTimezoneOffset())))/864e5}function oe(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function ae(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?function(e){var t=e<0?12:11,n=oe(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10)).length<=t?n:e.toExponential(5)}(e):10===n?e.toFixed(10).substr(0,12):function(e){var t=oe(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),oe(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}function se(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):ae(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return Ee(14,ie(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function le(e,t,n,r){var o,l="",c=0,h=0,f=n.y,d=0;switch(e){case 98:f=n.y+543;case 121:switch(t.length){case 1:case 2:o=f%100,d=2;break;default:o=f%1e4,d=4}break;case 109:switch(t.length){case 1:case 2:o=n.m,d=t.length;break;case 3:return K[n.m-1][1];case 5:return K[n.m-1][0];default:return K[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=n.d,d=t.length;break;case 3:return Y[n.q][0];default:return Y[n.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(n.H+11)%12,d=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=n.H,d=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=n.M,d=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(h=r>=2?3===r?1e3:100:1===r?10:1,(c=Math.round(h*(n.S+n.u)))>=60*h&&(c=0),"s"===t?0===c?"0":""+c/h:(l=z(c,2+r),"ss"===t?l.substr(0,2):"."+l.substr(2,t.length-1))):z(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":o=24*n.D+n.H;break;case"[m]":case"[mm]":o=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":o=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}d=3===t.length?1:2;break;case 101:o=f,d=1}return d>0?z(o,d):""}function ue(s){if(s.length<=3)return s;for(var e=s.length%3,t=s.substr(0,e);e!=s.length;e+=3)t+=(t.length>0?",":"")+s.substr(e,3);return t}var ce=/%/g;function he(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+he(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var l=Math.floor(Math.log(t)*Math.LOG10E)%o;if(l<0&&(l+=o),-1===(n=(t/Math.pow(10,l)).toPrecision(r+1+(o+l)%o)).indexOf("e")){var c=Math.floor(Math.log(t)*Math.LOG10E);for(-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(c-n.length+l):n+="E+"+(c-l);"0."===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,o)+"."+n.substr(2+o)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(o+l)%o)+"."+r.substr(l)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var fe=/# (\?+)( ?)\/( ?)(\d+)/;var de=/^#*0*\.([0#]+)/,pe=/\).*[0#]/,ge=/\(###\) ###\\?-####/;function ve(e){for(var t,n="",i=0;i!=e.length;++i)switch(t=e.charCodeAt(i)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function me(e,t){var dd=Math.pow(10,t);return""+Math.round(e*dd)/dd}function ye(e,t){var n=e-Math.floor(e),dd=Math.pow(10,t);return t<(""+Math.round(n*dd)).length?0:Math.round(n*dd)}function be(e,t,n){if(40===e.charCodeAt(0)&&!t.match(pe)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?be("n",r,n):"("+be("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return we(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(ce,""),o=t.length-r.length;return we(e,r,n*Math.pow(10,2*o))+ot("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return he(t,n);if(36===t.charCodeAt(0))return"$"+be(e,t.substr(" "==t.charAt(1)?2:1),n);var o,l,c,h,f=Math.abs(n),d=n<0?"-":"";if(t.match(/^00+$/))return d+U(f,t.length);if(t.match(/^[#?]+$/))return"0"===(o=U(n,0))&&(o=""),o.length>t.length?o:ve(t.substr(0,t.length-o.length))+o;if(l=t.match(fe))return function(e,t,n){var r=parseInt(e[4],10),o=Math.round(t*r),base=Math.floor(o/r),l=o-base*r,c=r;return n+(0===base?"":""+base)+" "+(0===l?ot(" ",e[1].length+1+e[4].length):V(l,e[1].length)+e[2]+"/"+e[3]+z(c,e[4].length))}(l,f,d);if(t.match(/^#+0+$/))return d+U(f,t.length-t.indexOf("0"));if(l=t.match(de))return o=me(n,l[1].length).replace(/^([^\.]+)$/,"$1."+ve(l[1])).replace(/\.$/,"."+ve(l[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+ot("0",ve(l[1]).length-t.length)})),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),l=t.match(/^(0*)\.(#*)$/))return d+me(f,l[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,l[1].length?"0.":".");if(l=t.match(/^#{1,3},##0(\.?)$/))return d+ue(U(f,0));if(l=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+be(e,t,-n):ue(""+(Math.floor(n)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(n,l[1].length)))+"."+z(ye(n,l[1].length),l[1].length);if(l=t.match(/^#,#*,#0/))return be(e,t.replace(/^#,#*,/,""),n);if(l=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=B(be(e,t.replace(/[\\-]/g,""),n)),c=0,B(B(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return c<o.length?o.charAt(c++):"0"===e?"0":""})));if(t.match(ge))return"("+(o=be(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var v="";if(l=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return c=Math.min(l[4].length,7),h=Q(f,Math.pow(10,c)-1,!1),o=""+d," "==(v=we("n",l[1],h[1])).charAt(v.length-1)&&(v=v.substr(0,v.length-1)+"0"),o+=v+l[2]+"/"+l[3],(v=H(h[2],c)).length<l[4].length&&(v=ve(l[4].substr(l[4].length-v.length))+v),o+=v;if(l=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return c=Math.min(Math.max(l[1].length,l[4].length),7),d+((h=Q(f,Math.pow(10,c)-1,!0))[0]||(h[1]?"":"0"))+" "+(h[1]?V(h[1],c)+l[2]+"/"+l[3]+H(h[2],c):ot(" ",2*c+1+l[2].length+l[3].length));if(l=t.match(/^[#0?]+$/))return o=U(n,0),t.length<=o.length?o:ve(t.substr(0,t.length-o.length))+o;if(l=t.match(/^([#0?]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(l[2].length,10)).replace(/([^0])0+$/,"$1"),c=o.indexOf(".");var m=t.indexOf(".")-c,y=t.length-o.length-m;return ve(t.substr(0,m)+o+t.substr(t.length-y))}if(l=t.match(/^00,000\.([#0]*0)$/))return c=ye(n,l[1].length),n<0?"-"+be(e,t,-n):ue(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?z(0,3-e.length):"")+e}))+"."+z(c,l[1].length);switch(t){case"###,##0.00":return be(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var _=ue(U(f,0));return"0"!==_?d+_:"";case"###,###.00":return be(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return be(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function _e(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+_e(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var l=Math.floor(Math.log(t)*Math.LOG10E)%o;if(l<0&&(l+=o),!(n=(t/Math.pow(10,l)).toPrecision(r+1+(o+l)%o)).match(/[Ee]/)){var c=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(c-n.length+l):n+="E+"+(c-l),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(o+l)%o)+"."+r.substr(l)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function xe(e,t,n){if(40===e.charCodeAt(0)&&!t.match(pe)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?xe("n",r,n):"("+xe("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return we(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(ce,""),o=t.length-r.length;return we(e,r,n*Math.pow(10,2*o))+ot("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return _e(t,n);if(36===t.charCodeAt(0))return"$"+xe(e,t.substr(" "==t.charAt(1)?2:1),n);var o,l,c,h,f=Math.abs(n),d=n<0?"-":"";if(t.match(/^00+$/))return d+z(f,t.length);if(t.match(/^[#?]+$/))return o=""+n,0===n&&(o=""),o.length>t.length?o:ve(t.substr(0,t.length-o.length))+o;if(l=t.match(fe))return function(e,t,n){return n+(0===t?"":""+t)+ot(" ",e[1].length+2+e[4].length)}(l,f,d);if(t.match(/^#+0+$/))return d+z(f,t.length-t.indexOf("0"));if(l=t.match(de))return o=(o=(""+n).replace(/^([^\.]+)$/,"$1."+ve(l[1])).replace(/\.$/,"."+ve(l[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+ot("0",ve(l[1]).length-t.length)})),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),l=t.match(/^(0*)\.(#*)$/))return d+(""+f).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,l[1].length?"0.":".");if(l=t.match(/^#{1,3},##0(\.?)$/))return d+ue(""+f);if(l=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+xe(e,t,-n):ue(""+n)+"."+ot("0",l[1].length);if(l=t.match(/^#,#*,#0/))return xe(e,t.replace(/^#,#*,/,""),n);if(l=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=B(xe(e,t.replace(/[\\-]/g,""),n)),c=0,B(B(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return c<o.length?o.charAt(c++):"0"===e?"0":""})));if(t.match(ge))return"("+(o=xe(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var v="";if(l=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return c=Math.min(l[4].length,7),h=Q(f,Math.pow(10,c)-1,!1),o=""+d," "==(v=we("n",l[1],h[1])).charAt(v.length-1)&&(v=v.substr(0,v.length-1)+"0"),o+=v+l[2]+"/"+l[3],(v=H(h[2],c)).length<l[4].length&&(v=ve(l[4].substr(l[4].length-v.length))+v),o+=v;if(l=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return c=Math.min(Math.max(l[1].length,l[4].length),7),d+((h=Q(f,Math.pow(10,c)-1,!0))[0]||(h[1]?"":"0"))+" "+(h[1]?V(h[1],c)+l[2]+"/"+l[3]+H(h[2],c):ot(" ",2*c+1+l[2].length+l[3].length));if(l=t.match(/^[#0?]+$/))return o=""+n,t.length<=o.length?o:ve(t.substr(0,t.length-o.length))+o;if(l=t.match(/^([#0]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(l[2].length,10)).replace(/([^0])0+$/,"$1"),c=o.indexOf(".");var m=t.indexOf(".")-c,y=t.length-o.length-m;return ve(t.substr(0,m)+o+t.substr(t.length-y))}if(l=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+xe(e,t,-n):ue(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?z(0,3-e.length):"")+e}))+"."+z(0,l[1].length);switch(t){case"###,###":case"##,###":case"#,###":var _=ue(""+f);return"0"!==_?d+_:"";default:if(t.match(/\.[0#?]*$/))return xe(e,t.slice(0,t.lastIndexOf(".")),n)+ve(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function we(e,t,n){return(0|n)===n?xe(e,t,n):be(e,t,n)}var Se=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function ke(e){for(var i=0,t="",n="";i<e.length;)switch(t=e.charAt(i)){case"G":G(e,i)&&(i+=6),i++;break;case'"':for(;34!==e.charCodeAt(++i)&&i<e.length;);++i;break;case"\\":case"_":i+=2;break;case"@":++i;break;case"B":case"b":if("1"===e.charAt(i+1)||"2"===e.charAt(i+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(i,3).toUpperCase())return!0;if("AM/PM"===e.substr(i,5).toUpperCase())return!0;if("上午/下午"===e.substr(i,5).toUpperCase())return!0;++i;break;case"[":for(n=t;"]"!==e.charAt(i++)&&i<e.length;)n+=e.charAt(i);if(n.match(Se))return!0;break;case".":case"0":case"#":for(;i<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++i))>-1||"\\"==t&&"-"==e.charAt(i+1)&&"0#".indexOf(e.charAt(i+2))>-1););break;case"?":for(;e.charAt(++i)===t;);break;case"*":++i," "!=e.charAt(i)&&"*"!=e.charAt(i)||++i;break;case"(":case")":++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;i<e.length&&"0123456789".indexOf(e.charAt(++i))>-1;);break;default:++i}return!1}var Oe=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Ce(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function Te(e,t){var n=function(e){for(var t=[],n=!1,i=0,r=0;i<e.length;++i)switch(e.charCodeAt(i)){case 34:n=!n;break;case 95:case 42:case 92:++i;break;case 59:t[t.length]=e.substr(r,i-r),r=i+1}if(t[t.length]=e.substr(r),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}(e),r=n.length,o=n[r-1].indexOf("@");if(r<4&&o>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||o>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=o>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=o>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=o>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var l=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,l];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var c=n[0].match(Oe),h=n[1].match(Oe);return Ce(t,c)?[r,n[0]]:Ce(t,h)?[r,n[1]]:[r,n[null!=c&&null!=h?2:1]]}return[r,l]}function Ee(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:X)[e])&&(r=n.table&&n.table[Z[e]]||X[Z[e]]),null==r&&(r=J[e]||"General")}if(G(r,0))return se(t,n);t instanceof Date&&(t=ie(t,n.date1904));var o=Te(r,t);if(G(o[1]))return se(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,n,r){for(var dt,o,l,c=[],h="",i=0,f="",d="t",hr="H";i<e.length;)switch(f=e.charAt(i)){case"G":if(!G(e,i))throw new Error("unrecognized character "+f+" in "+e);c[c.length]={t:"G",v:"General"},i+=7;break;case'"':for(h="";34!==(l=e.charCodeAt(++i))&&i<e.length;)h+=String.fromCharCode(l);c[c.length]={t:"t",v:h},++i;break;case"\\":var v=e.charAt(++i),m="("===v||")"===v?v:"t";c[c.length]={t:m,v:v},++i;break;case"_":c[c.length]={t:"t",v:" "},i+=2;break;case"@":c[c.length]={t:"T",v:t},++i;break;case"B":case"b":if("1"===e.charAt(i+1)||"2"===e.charAt(i+1)){if(null==dt&&null==(dt=ee(t,n,"2"===e.charAt(i+1))))return"";c[c.length]={t:"X",v:e.substr(i,2)},d=f,i+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":f=f.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==dt&&null==(dt=ee(t,n)))return"";for(h=f;++i<e.length&&e.charAt(i).toLowerCase()===f;)h+=f;"m"===f&&"h"===d.toLowerCase()&&(f="M"),"h"===f&&(f=hr),c[c.length]={t:f,v:h},d=f;break;case"A":case"a":case"上":var q={t:f,v:f};if(null==dt&&(dt=ee(t,n)),"A/P"===e.substr(i,3).toUpperCase()?(null!=dt&&(q.v=dt.H>=12?"P":"A"),q.t="T",hr="h",i+=3):"AM/PM"===e.substr(i,5).toUpperCase()?(null!=dt&&(q.v=dt.H>=12?"PM":"AM"),q.t="T",i+=5,hr="h"):"上午/下午"===e.substr(i,5).toUpperCase()?(null!=dt&&(q.v=dt.H>=12?"下午":"上午"),q.t="T",i+=5,hr="h"):(q.t="t",++i),null==dt&&"T"===q.t)return"";c[c.length]=q,d=f;break;case"[":for(h=f;"]"!==e.charAt(i++)&&i<e.length;)h+=e.charAt(i);if("]"!==h.slice(-1))throw'unterminated "[" block: |'+h+"|";if(h.match(Se)){if(null==dt&&null==(dt=ee(t,n)))return"";c[c.length]={t:"Z",v:h.toLowerCase()},d=h.charAt(1)}else h.indexOf("$")>-1&&(h=(h.match(/\$([^-\[\]]*)/)||[])[1]||"$",ke(e)||(c[c.length]={t:"t",v:h}));break;case".":if(null!=dt){for(h=f;++i<e.length&&"0"===(f=e.charAt(i));)h+=f;c[c.length]={t:"s",v:h};break}case"0":case"#":for(h=f;++i<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(i))>-1;)h+=f;c[c.length]={t:"n",v:h};break;case"?":for(h=f;e.charAt(++i)===f;)h+=f;c[c.length]={t:f,v:h},d=f;break;case"*":++i," "!=e.charAt(i)&&"*"!=e.charAt(i)||++i;break;case"(":case")":c[c.length]={t:1===r?"t":f,v:f},++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(h=f;i<e.length&&"0123456789".indexOf(e.charAt(++i))>-1;)h+=e.charAt(i);c[c.length]={t:"D",v:h};break;case" ":c[c.length]={t:f,v:f},++i;break;case"$":c[c.length]={t:"t",v:"$"},++i;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f))throw new Error("unrecognized character "+f+" in "+e);c[c.length]={t:"t",v:f},++i}var y,_=0,x=0;for(i=c.length-1,d="t";i>=0;--i)switch(c[i].t){case"h":case"H":c[i].t=hr,d="h",_<1&&(_=1);break;case"s":(y=c[i].v.match(/\.0+$/))&&(x=Math.max(x,y[0].length-1)),_<3&&(_=3);case"d":case"y":case"M":case"e":d=c[i].t;break;case"m":"s"===d&&(c[i].t="M",_<2&&(_=2));break;case"X":break;case"Z":_<1&&c[i].v.match(/[Hh]/)&&(_=1),_<2&&c[i].v.match(/[Mm]/)&&(_=2),_<3&&c[i].v.match(/[Ss]/)&&(_=3)}switch(_){case 0:break;case 1:dt.u>=.5&&(dt.u=0,++dt.S),dt.S>=60&&(dt.S=0,++dt.M),dt.M>=60&&(dt.M=0,++dt.H);break;case 2:dt.u>=.5&&(dt.u=0,++dt.S),dt.S>=60&&(dt.S=0,++dt.M)}var w,S="";for(i=0;i<c.length;++i)switch(c[i].t){case"t":case"T":case" ":case"D":break;case"X":c[i].v="",c[i].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":c[i].v=le(c[i].t.charCodeAt(0),c[i].v,dt,x),c[i].t="t";break;case"n":case"?":for(w=i+1;null!=c[w]&&("?"===(f=c[w].t)||"D"===f||(" "===f||"t"===f)&&null!=c[w+1]&&("?"===c[w+1].t||"t"===c[w+1].t&&"/"===c[w+1].v)||"("===c[i].t&&(" "===f||"n"===f||")"===f)||"t"===f&&("/"===c[w].v||" "===c[w].v&&null!=c[w+1]&&"?"==c[w+1].t));)c[i].v+=c[w].v,c[w]={v:"",t:";"},++w;S+=c[i].v,i=w-1;break;case"G":c[i].t="t",c[i].v=se(t,n)}var k,O,C="";if(S.length>0){40==S.charCodeAt(0)?(k=t<0&&45===S.charCodeAt(0)?-t:t,O=we("n",S,k)):(O=we("n",S,k=t<0&&r>1?-t:t),k<0&&c[0]&&"t"==c[0].t&&(O=O.substr(1),c[0].v="-"+c[0].v)),w=O.length-1;var T=c.length;for(i=0;i<c.length;++i)if(null!=c[i]&&"t"!=c[i].t&&c[i].v.indexOf(".")>-1){T=i;break}var E=c.length;if(T===c.length&&-1===O.indexOf("E")){for(i=c.length-1;i>=0;--i)null!=c[i]&&-1!=="n?".indexOf(c[i].t)&&(w>=c[i].v.length-1?(w-=c[i].v.length,c[i].v=O.substr(w+1,c[i].v.length)):w<0?c[i].v="":(c[i].v=O.substr(0,w+1),w=-1),c[i].t="t",E=i);w>=0&&E<c.length&&(c[E].v=O.substr(0,w+1)+c[E].v)}else if(T!==c.length&&-1===O.indexOf("E")){for(w=O.indexOf(".")-1,i=T;i>=0;--i)if(null!=c[i]&&-1!=="n?".indexOf(c[i].t)){for(o=c[i].v.indexOf(".")>-1&&i===T?c[i].v.indexOf(".")-1:c[i].v.length-1,C=c[i].v.substr(o+1);o>=0;--o)w>=0&&("0"===c[i].v.charAt(o)||"#"===c[i].v.charAt(o))&&(C=O.charAt(w--)+C);c[i].v=C,c[i].t="t",E=i}for(w>=0&&E<c.length&&(c[E].v=O.substr(0,w+1)+c[E].v),w=O.indexOf(".")+1,i=T;i<c.length;++i)if(null!=c[i]&&(-1!=="n?(".indexOf(c[i].t)||i===T)){for(o=c[i].v.indexOf(".")>-1&&i===T?c[i].v.indexOf(".")+1:0,C=c[i].v.substr(0,o);o<c[i].v.length;++o)w<O.length&&(C+=O.charAt(w++));c[i].v=C,c[i].t="t",E=i}}}for(i=0;i<c.length;++i)null!=c[i]&&"n?".indexOf(c[i].t)>-1&&(k=r>1&&t<0&&i>0&&"-"===c[i-1].v?-t:t,c[i].v=we(c[i].t,c[i].v,k),c[i].t="t");var A="";for(i=0;i!==c.length;++i)null!=c[i]&&(A+=c[i].v);return A}(o[1],t,n,o[0])}function Ae(e,t){if("number"!=typeof t){t=+t||-1;for(var i=0;i<392;++i)if(null!=X[i]){if(X[i]==e){t=i;break}}else t<0&&(t=i);t<0&&(t=391)}return X[t]=e,t}function Me(e){for(var i=0;392!=i;++i)void 0!==e[i]&&Ae(e[i],i)}function Ie(){var e;e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',X=e}var De={format:Ee,load:Ae,_table:X,load_table:Me,parse_date_code:ee,is_date:ke,get_table:function(){return De._table=X}},Pe={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Ne=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;var Le=function(){var e={};e.version="1.2.0";var t=function(){for(var e=0,table=new Array(256),t=0;256!=t;++t)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=t)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,table[t]=e;return"undefined"!=typeof Int32Array?new Int32Array(table):table}();var n=function(e){var t=0,n=0,r=0,table="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)table[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=table[t]=n>>>8^e[255&n];var o=[];for(r=1;16!=r;++r)o[r-1]="undefined"!=typeof Int32Array?table.subarray(256*r,256*r+256):table.slice(256*r,256*r+256);return o}(t),r=n[0],o=n[1],l=n[2],c=n[3],h=n[4],f=n[5],d=n[6],v=n[7],m=n[8],y=n[9],_=n[10],x=n[11],w=n[12],S=n[13],k=n[14];return e.table=t,e.bstr=function(e,n){for(var r=-1^n,i=0,o=e.length;i<o;)r=r>>>8^t[255&(r^e.charCodeAt(i++))];return~r},e.buf=function(e,n){for(var O=-1^n,C=e.length-15,i=0;i<C;)O=k[e[i++]^255&O]^S[e[i++]^O>>8&255]^w[e[i++]^O>>16&255]^x[e[i++]^O>>>24]^_[e[i++]]^y[e[i++]]^m[e[i++]]^v[e[i++]]^d[e[i++]]^f[e[i++]]^h[e[i++]]^c[e[i++]]^l[e[i++]]^o[e[i++]]^r[e[i++]]^t[e[i++]];for(C+=15;i<C;)O=O>>>8^t[255&(O^e[i++])];return~O},e.str=function(e,n){for(var r=-1^n,i=0,o=e.length,l=0,c=0;i<o;)(l=e.charCodeAt(i++))<128?r=r>>>8^t[255&(r^l)]:l<2048?r=(r=r>>>8^t[255&(r^(192|l>>6&31))])>>>8^t[255&(r^(128|63&l))]:l>=55296&&l<57344?(l=64+(1023&l),c=1023&e.charCodeAt(i++),r=(r=(r=(r=r>>>8^t[255&(r^(240|l>>8&7))])>>>8^t[255&(r^(128|l>>2&63))])>>>8^t[255&(r^(128|c>>6&15|(3&l)<<4))])>>>8^t[255&(r^(128|63&c))]):r=(r=(r=r>>>8^t[255&(r^(224|l>>12&15))])>>>8^t[255&(r^(128|l>>6&63))])>>>8^t[255&(r^(128|63&l))];return~r},e}(),je=function(){var e,t={};function n(p){if("/"==p.charAt(p.length-1))return-1===p.slice(0,-1).indexOf("/")?p:n(p.slice(0,-1));var e=p.lastIndexOf("/");return-1===e?p:p.slice(0,e+1)}function r(p){if("/"==p.charAt(p.length-1))return r(p.slice(0,-1));var e=p.lastIndexOf("/");return-1===e?p:p.slice(e+1)}function o(e,t){"string"==typeof t&&(t=new Date(t));var n=t.getHours();n=(n=n<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=(r=r<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,r)}function l(e){lr(e,0);for(var t={},n=0;e.l<=e.length-4;){var r=e.read_shift(2),o=e.read_shift(2),l=e.l+o,p={};if(21589===r)1&(n=e.read_shift(1))&&(p.mtime=e.read_shift(4)),o>5&&(2&n&&(p.atime=e.read_shift(4)),4&n&&(p.ctime=e.read_shift(4))),p.mtime&&(p.mt=new Date(1e3*p.mtime));e.l=l,t[r]=p}return t}function c(){return e||(e={})}function h(e,t){if(80==e[0]&&75==e[1])return _e(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=B(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=t&&t.root||"",data=(E&&Buffer.isBuffer(e)?e.toString("binary"):B(e)).split("\r\n"),r=0,o="";for(r=0;r<data.length;++r)if(o=data[r],/^Content-Location:/i.test(o)&&(o=o.slice(o.indexOf("file")),n||(n=o.slice(0,o.lastIndexOf("/")+1)),o.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),o.slice(0,n.length)!=n););var l=(data[1]||"").match(/boundary="(.*?)"/);if(!l)throw new Error("MAD cannot find boundary");var c="--"+(l[1]||""),h={FileIndex:[],FullPaths:[]};y(h);var f,d=0;for(r=0;r<data.length;++r){var line=data[r];line!==c&&line!==c+"--"||(d++&&Ce(h,data.slice(f,r),n),f=r)}return h}(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n,r,o,l,c,h,_=512,x=[],w=e.slice(0,512);lr(w,0);var S=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(O,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(w);switch(n=S[0]){case 3:_=512;break;case 4:_=4096;break;case 0:if(0==S[1])return _e(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==_&&lr(w=e.slice(0,_),28);var header=e.slice(0,_);!function(e,t){var n=9;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(w,n);var C=w.read_shift(4,"i");if(3===n&&0!==C)throw new Error("# Directory Sectors: Expected 0 saw "+C);w.l+=4,l=w.read_shift(4,"i"),w.l+=4,w.chk("00100000","Mini Stream Cutoff Size: "),c=w.read_shift(4,"i"),r=w.read_shift(4,"i"),h=w.read_shift(4,"i"),o=w.read_shift(4,"i");for(var q=-1,T=0;T<109&&!((q=w.read_shift(4,"i"))<0);++T)x[T]=q;var A=function(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],i=1;i<n;++i)r[i-1]=e.slice(i*t,(i+1)*t);return r[n-1]=e.slice(n*t),r}(e,_);d(h,o,A,_,x);var M=function(e,t,n,r){var o=e.length,l=[],c=[],h=[],f=[],d=r-1,i=0,v=0,m=0,y=0;for(i=0;i<o;++i)if(h=[],(m=i+t)>=o&&(m-=o),!c[m]){f=[];var _=[];for(v=m;v>=0;){_[v]=!0,c[v]=!0,h[h.length]=v,f.push(e[v]);var x=n[Math.floor(4*v/r)];if(r<4+(y=4*v&d))throw new Error("FAT boundary crossed: "+v+" 4 "+r);if(!e[x])break;if(_[v=nr(e[x],y)])break}l[m]={nodes:h,data:Mn([f])}}return l}(A,l,x,_);M[l].name="!Directory",r>0&&c!==k&&(M[c].name="!MiniFAT"),M[x[0]].name="!FAT",M.fat_addrs=x,M.ssz=_;var I=[],D=[],P=[];!function(e,t,n,r,o,l,c,h){for(var d,y=0,_=r.length?2:0,x=t[e].data,i=0,w=0;i<x.length;i+=128){var S=x.slice(i,i+128);lr(S,64),w=S.read_shift(2),d=Dn(S,0,w-_),r.push(d);var O={name:d,type:S.read_shift(1),color:S.read_shift(1),L:S.read_shift(4,"i"),R:S.read_shift(4,"i"),C:S.read_shift(4,"i"),clsid:S.read_shift(16),state:S.read_shift(4,"i"),start:0,size:0};0!==S.read_shift(2)+S.read_shift(2)+S.read_shift(2)+S.read_shift(2)&&(O.ct=m(S,S.l-8)),0!==S.read_shift(2)+S.read_shift(2)+S.read_shift(2)+S.read_shift(2)&&(O.mt=m(S,S.l-8)),O.start=S.read_shift(4,"i"),O.size=S.read_shift(4,"i"),O.size<0&&O.start<0&&(O.size=O.type=0,O.start=k,O.name=""),5===O.type?(y=O.start,o>0&&y!==k&&(t[y].name="!StreamData")):O.size>=4096?(O.storage="fat",void 0===t[O.start]&&(t[O.start]=v(n,O.start,t.fat_addrs,t.ssz)),t[O.start].name=O.name,O.content=t[O.start].data.slice(0,O.size)):(O.storage="minifat",O.size<0?O.size=0:y!==k&&O.start!==k&&t[y]&&(O.content=f(O,t[y].data,(t[h]||{}).data))),O.content&&lr(O.content,0),l[d]=O,c.push(O)}}(l,M,A,I,r,{},D,c),function(e,t,n){for(var i=0,r=0,o=0,l=0,c=0,h=n.length,f=[],q=[];i<h;++i)f[i]=q[i]=i,t[i]=n[i];for(;c<q.length;++c)r=e[i=q[c]].L,o=e[i].R,l=e[i].C,f[i]===i&&(-1!==r&&f[r]!==r&&(f[i]=f[r]),-1!==o&&f[o]!==o&&(f[i]=f[o])),-1!==l&&(f[l]=i),-1!==r&&i!=f[i]&&(f[r]=f[i],q.lastIndexOf(r)<c&&q.push(r)),-1!==o&&i!=f[i]&&(f[o]=f[i],q.lastIndexOf(o)<c&&q.push(o));for(i=1;i<h;++i)f[i]===i&&(-1!==o&&f[o]!==o?f[i]=f[o]:-1!==r&&f[r]!==r&&(f[i]=f[r]));for(i=1;i<h;++i)if(0!==e[i].type){if((c=i)!=f[c])do{c=f[c],t[i]=t[c]+"/"+t[i]}while(0!==c&&-1!==f[c]&&c!=f[c]);f[i]=-1}for(t[0]+="/",i=1;i<h;++i)2!==e[i].type&&(t[i]+="/")}(D,P,I),I.shift();var N={FileIndex:D,FullPaths:P};return t&&t.raw&&(N.raw={header:header,sectors:A}),N}function f(e,t,n){for(var r=e.start,o=e.size,l=[],c=r;n&&o>0&&c>=0;)l.push(t.slice(c*S,c*S+S)),o-=S,c=nr(n,4*c);return 0===l.length?cr(0):j(l).slice(0,e.size)}function d(e,t,n,r,o){var q=k;if(e===k){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var l=n[e],c=(r>>>2)-1;if(!l)return;for(var i=0;i<c&&(q=nr(l,4*i))!==k;++i)o.push(q);d(nr(l,r-4),t-1,n,r,o)}}function v(e,t,n,r,o){var l=[],c=[];o||(o=[]);var h=r-1,f=0,d=0;for(f=t;f>=0;){o[f]=!0,l[l.length]=f,c.push(e[f]);var v=n[Math.floor(4*f/r)];if(r<4+(d=4*f&h))throw new Error("FAT boundary crossed: "+f+" 4 "+r);if(!e[v])break;f=nr(e[v],d)}return{nodes:l,data:Mn([c])}}function m(e,t){return new Date(1e3*(er(e,t+4)/1e7*Math.pow(2,32)+er(e,t)/1e7-11644473600))}function y(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),function(e){var t="Sh33tJ5";if(je.find(e,"/"+t))return;var p=cr(4);p[0]=55,p[1]=p[3]=50,p[2]=54,e.FileIndex.push({name:t,type:2,content:p,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),_(e)}(e)}function _(e,t){y(e);for(var o=!1,s=!1,i=e.FullPaths.length-1;i>=0;--i){var l=e.FileIndex[i];switch(l.type){case 0:s?o=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:s=!0,isNaN(l.R*l.L*l.C)&&(o=!0),l.R>-1&&l.L>-1&&l.R==l.L&&(o=!0);break;default:o=!0}}if(o||t){var c=new Date(1987,1,19),h=0,f=Object.create?Object.create(null):{},data=[];for(i=0;i<e.FullPaths.length;++i)f[e.FullPaths[i]]=!0,0!==e.FileIndex[i].type&&data.push([e.FullPaths[i],e.FileIndex[i]]);for(i=0;i<data.length;++i){var d=n(data[i][0]);(s=f[d])||(data.push([d,{name:r(d).replace("/",""),type:1,clsid:N,ct:c,mt:c,content:null}]),f[d]=!0)}for(data.sort((function(e,t){return function(e,t){for(var n=e.split("/"),r=t.split("/"),i=0,o=0,l=Math.min(n.length,r.length);i<l;++i){if(o=n[i].length-r[i].length)return o;if(n[i]!=r[i])return n[i]<r[i]?-1:1}return n.length-r.length}(e[0],t[0])})),e.FullPaths=[],e.FileIndex=[],i=0;i<data.length;++i)e.FullPaths[i]=data[i][0],e.FileIndex[i]=data[i][1];for(i=0;i<data.length;++i){var v=e.FileIndex[i],m=e.FullPaths[i];if(v.name=r(m).replace("/",""),v.L=v.R=v.C=-(v.color=1),v.size=v.content?v.content.length:0,v.start=0,v.clsid=v.clsid||N,0===i)v.C=data.length>1?1:-1,v.size=0,v.type=5;else if("/"==m.slice(-1)){for(h=i+1;h<data.length&&n(e.FullPaths[h])!=m;++h);for(v.C=h>=data.length?-1:h,h=i+1;h<data.length&&n(e.FullPaths[h])!=n(m);++h);v.R=h>=data.length?-1:h,v.type=1}else n(e.FullPaths[i+1]||"")==n(m)&&(v.R=i+1),v.type=2}}}function x(e,t){var n=t||{};if("mad"==n.fileType)return function(e,t){for(var n=t||{},r=n.boundary||"SheetJS",o=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(r="------="+r).slice(2)+'"',"","",""],l=e.FullPaths[0],c=l,h=e.FileIndex[0],i=1;i<e.FullPaths.length;++i)if(c=e.FullPaths[i].slice(l.length),(h=e.FileIndex[i]).size&&h.content&&"Sh33tJ5"!=c){c=c.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(u){return"_u"+u.charCodeAt(0).toString(16)+"_"}));for(var f=h.content,d=E&&Buffer.isBuffer(f)?f.toString("binary"):B(f),v=0,m=Math.min(1024,d.length),y=0,_=0;_<=m;++_)(y=d.charCodeAt(_))>=32&&y<128&&++v;var x=v>=4*m/5;o.push(r),o.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+c),o.push("Content-Transfer-Encoding: "+(x?"quoted-printable":"base64")),o.push("Content-Type: "+Se(h,c)),o.push(""),o.push(x?Oe(d):ke(d))}return o.push(r+"--\r\n"),o.join("\r\n")}(e,n);if(_(e),"zip"===n.fileType)return function(e,t){var n=t||{},r=[],l=[],c=cr(1),h=n.compression?8:0,f=0;0;var i=0,d=0,v=0,m=0,y=e.FullPaths[0],_=y,x=e.FileIndex[0],w=[],S=0;for(i=1;i<e.FullPaths.length;++i)if(_=e.FullPaths[i].slice(y.length),(x=e.FileIndex[i]).size&&x.content&&"Sh33tJ5"!=_){var k=v,O=cr(_.length);for(d=0;d<_.length;++d)O.write_shift(1,127&_.charCodeAt(d));O=O.slice(0,O.l),w[m]=Le.buf(x.content,0);var C=x.content;8==h&&(C=z(C)),(c=cr(30)).write_shift(4,67324752),c.write_shift(2,20),c.write_shift(2,f),c.write_shift(2,h),x.mt?o(c,x.mt):c.write_shift(4,0),c.write_shift(-4,8&f?0:w[m]),c.write_shift(4,8&f?0:C.length),c.write_shift(4,8&f?0:x.content.length),c.write_shift(2,O.length),c.write_shift(2,0),v+=c.length,r.push(c),v+=O.length,r.push(O),v+=C.length,r.push(C),8&f&&((c=cr(12)).write_shift(-4,w[m]),c.write_shift(4,C.length),c.write_shift(4,x.content.length),v+=c.l,r.push(c)),(c=cr(46)).write_shift(4,33639248),c.write_shift(2,0),c.write_shift(2,20),c.write_shift(2,f),c.write_shift(2,h),c.write_shift(4,0),c.write_shift(-4,w[m]),c.write_shift(4,C.length),c.write_shift(4,x.content.length),c.write_shift(2,O.length),c.write_shift(2,0),c.write_shift(2,0),c.write_shift(2,0),c.write_shift(2,0),c.write_shift(4,0),c.write_shift(4,k),S+=c.l,l.push(c),S+=O.length,l.push(O),++m}return(c=cr(22)).write_shift(4,101010256),c.write_shift(2,0),c.write_shift(2,0),c.write_shift(2,m),c.write_shift(2,m),c.write_shift(4,S),c.write_shift(4,v),c.write_shift(2,0),j([j(r),j(l),c])}(e,n);var r=function(e){for(var t=0,n=0,i=0;i<e.FileIndex.length;++i){var r=e.FileIndex[i];if(r.content){var o=r.content.length;o>0&&(o<4096?t+=o+63>>6:n+=o+511>>9)}}for(var l=e.FullPaths.length+3>>2,c=t+127>>7,h=(t+7>>3)+n+l+c,f=h+127>>7,d=f<=109?0:Math.ceil((f-109)/127);h+f+d+127>>7>f;)d=++f<=109?0:Math.ceil((f-109)/127);var v=[1,d,f,c,l,n,t,0];return e.FileIndex[0].size=t<<6,v[7]=(e.FileIndex[0].start=v[0]+v[1]+v[2]+v[3]+v[4]+v[5])+(v[6]+7>>3),v}(e),l=cr(r[7]<<9),i=0,c=0;for(i=0;i<8;++i)l.write_shift(1,P[i]);for(i=0;i<8;++i)l.write_shift(2,0);for(l.write_shift(2,62),l.write_shift(2,3),l.write_shift(2,65534),l.write_shift(2,9),l.write_shift(2,6),i=0;i<3;++i)l.write_shift(2,0);for(l.write_shift(4,0),l.write_shift(4,r[2]),l.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),l.write_shift(4,0),l.write_shift(4,4096),l.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:k),l.write_shift(4,r[3]),l.write_shift(-4,r[1]?r[0]-1:k),l.write_shift(4,r[1]),i=0;i<109;++i)l.write_shift(-4,i<r[2]?r[1]+i:-1);if(r[1])for(c=0;c<r[1];++c){for(;i<236+127*c;++i)l.write_shift(-4,i<r[2]?r[1]+i:-1);l.write_shift(-4,c===r[1]-1?k:c+1)}var h=function(e){for(c+=e;i<c-1;++i)l.write_shift(-4,i+1);e&&(++i,l.write_shift(-4,k))};for(c=i=0,c+=r[1];i<c;++i)l.write_shift(-4,L.DIFSECT);for(c+=r[2];i<c;++i)l.write_shift(-4,L.FATSECT);h(r[3]),h(r[4]);for(var f=0,d=0,v=e.FileIndex[0];f<e.FileIndex.length;++f)(v=e.FileIndex[f]).content&&((d=v.content.length)<4096||(v.start=c,h(d+511>>9)));for(h(r[6]+7>>3);511&l.l;)l.write_shift(-4,L.ENDOFCHAIN);for(c=i=0,f=0;f<e.FileIndex.length;++f)(v=e.FileIndex[f]).content&&(!(d=v.content.length)||d>=4096||(v.start=c,h(d+63>>6)));for(;511&l.l;)l.write_shift(-4,L.ENDOFCHAIN);for(i=0;i<r[4]<<2;++i){var m=e.FullPaths[i];if(m&&0!==m.length){v=e.FileIndex[i],0===i&&(v.start=v.size?v.start-1:k);var y=0===i&&n.root||v.name;if(d=2*(y.length+1),l.write_shift(64,y,"utf16le"),l.write_shift(2,d),l.write_shift(1,v.type),l.write_shift(1,v.color),l.write_shift(-4,v.L),l.write_shift(-4,v.R),l.write_shift(-4,v.C),v.clsid)l.write_shift(16,v.clsid,"hex");else for(f=0;f<4;++f)l.write_shift(4,0);l.write_shift(4,v.state||0),l.write_shift(4,0),l.write_shift(4,0),l.write_shift(4,0),l.write_shift(4,0),l.write_shift(4,v.start),l.write_shift(4,v.size),l.write_shift(4,0)}else{for(f=0;f<17;++f)l.write_shift(4,0);for(f=0;f<3;++f)l.write_shift(4,-1);for(f=0;f<12;++f)l.write_shift(4,0)}}for(i=1;i<e.FileIndex.length;++i)if((v=e.FileIndex[i]).size>=4096)if(l.l=v.start+1<<9,E&&Buffer.isBuffer(v.content))v.content.copy(l,l.l,0,v.size),l.l+=v.size+511&-512;else{for(f=0;f<v.size;++f)l.write_shift(1,v.content[f]);for(;511&f;++f)l.write_shift(1,0)}for(i=1;i<e.FileIndex.length;++i)if((v=e.FileIndex[i]).size>0&&v.size<4096)if(E&&Buffer.isBuffer(v.content))v.content.copy(l,l.l,0,v.size),l.l+=v.size+63&-64;else{for(f=0;f<v.size;++f)l.write_shift(1,v.content[f]);for(;63&f;++f)l.write_shift(1,0)}if(E)l.l=l.length;else for(;l.l<l.length;)l.write_shift(1,0);return l}t.version="1.2.1";var w,S=64,k=-2,O="d0cf11e0a1b11ae1",P=[208,207,17,224,161,177,26,225],N="00000000000000000000000000000000",L={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:k,FREESECT:-1,HEADER_SIGNATURE:O,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:N,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function B(e){for(var t=new Array(e.length),i=0;i<e.length;++i)t[i]=String.fromCharCode(e[i]);return t.join("")}function z(e){return w?w.deflateRawSync(e):he(e)}var $=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],V=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],H=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];for(var W,U,G="undefined"!=typeof Uint8Array,Y=G?new Uint8Array(256):[],q=0;q<256;++q)Y[q]=(U=void 0,255&((U=139536&((W=q)<<1|W<<11)|558144&(W<<5|W<<15))>>16|U>>8|U));function K(e,b){var t=Y[255&e];return b<=8?t>>>8-b:(t=t<<8|Y[e>>8&255],b<=16?t>>>16-b:(t=t<<8|Y[e>>16&255])>>>24-b)}function X(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function Z(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function J(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function Q(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function ee(e,t,n){var r=7&t,o=t>>>3,l=(1<<n)-1,c=e[o]>>>r;return n<8-r?c&l:(c|=e[o+1]<<8-r,n<16-r?c&l:(c|=e[o+2]<<16-r,n<24-r?c&l:(c|=e[o+3]<<24-r)&l))}function te(e,t,n){var r=7&t,o=t>>>3;return r<=5?e[o]|=(7&n)<<r:(e[o]|=n<<r&255,e[o+1]=(7&n)>>8-r),t+3}function ne(e,t,n){return n=(1&n)<<(7&t),e[t>>>3]|=n,t+1}function re(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=n,t+8}function ie(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=255&n,e[r+2]=n>>>8,t+16}function oe(b,e){var t=b.length,n=2*t>e?2*t:e+5,i=0;if(t>=e)return b;if(E){var r=I(n);if(b.copy)b.copy(r);else for(;i<b.length;++i)r[i]=b[i];return r}if(G){var a=new Uint8Array(n);if(a.set)a.set(b);else for(;i<t;++i)a[i]=b[i];return a}return b.length=n,b}function ae(e){for(var t=new Array(e),i=0;i<e;++i)t[i]=0;return t}function se(e,t,n){var r=1,o=0,i=0,l=0,c=0,h=e.length,f=G?new Uint16Array(32):ae(32);for(i=0;i<32;++i)f[i]=0;for(i=h;i<n;++i)e[i]=0;h=e.length;var d=G?new Uint16Array(h):ae(h);for(i=0;i<h;++i)f[o=e[i]]++,r<o&&(r=o),d[i]=0;for(f[0]=0,i=1;i<=r;++i)f[i+16]=c=c+f[i-1]<<1;for(i=0;i<h;++i)0!=(c=e[i])&&(d[i]=f[c+16]++);var v=0;for(i=0;i<h;++i)if(0!=(v=e[i]))for(c=K(d[i],r)>>r-v,l=(1<<r+4-v)-1;l>=0;--l)t[c|l<<v]=15&v|i<<4;return r}var le=G?new Uint16Array(512):ae(512),ue=G?new Uint16Array(32):ae(32);if(!G){for(var i=0;i<512;++i)le[i]=0;for(i=0;i<32;++i)ue[i]=0}!function(){for(var e=[],i=0;i<32;i++)e.push(5);se(e,ue,32);var t=[];for(i=0;i<=143;i++)t.push(8);for(;i<=255;i++)t.push(9);for(;i<=279;i++)t.push(7);for(;i<=287;i++)t.push(8);se(t,le,288)}();var ce=function(){for(var e=G?new Uint8Array(32768):[],t=0,n=0;t<H.length-1;++t)for(;n<H[t+1];++n)e[n]=t;for(;n<32768;++n)e[n]=29;var r=G?new Uint8Array(259):[];for(t=0,n=0;t<V.length-1;++t)for(;n<V[t+1];++n)r[n]=t;return function(data,t){return data.length<8?function(data,e){for(var t=0;t<data.length;){var n=Math.min(65535,data.length-t),r=t+n==data.length;for(e.write_shift(1,+r),e.write_shift(2,n),e.write_shift(2,65535&~n);n-- >0;)e[e.l++]=data[t++]}return e.l}(data,t):function(data,t){for(var n=0,o=0,l=G?new Uint16Array(32768):[];o<data.length;){var c=Math.min(65535,data.length-o);if(c<10){for(7&(n=te(t,n,+!(o+c!=data.length)))&&(n+=8-(7&n)),t.l=n/8|0,t.write_shift(2,c),t.write_shift(2,65535&~c);c-- >0;)t[t.l++]=data[o++];n=8*t.l}else{n=te(t,n,+!(o+c!=data.length)+2);for(var h=0;c-- >0;){var f=data[o],d=-1,v=0;if((d=l[h=32767&(h<<5^f)])&&((d|=-32768&o)>o&&(d-=32768),d<o))for(;data[d+v]==data[o+v]&&v<250;)++v;if(v>2){(f=r[v])<=22?n=re(t,n,Y[f+1]>>1)-1:(re(t,n,3),re(t,n+=5,Y[f-23]>>5),n+=3);var m=f<8?0:f-4>>2;m>0&&(ie(t,n,v-V[f]),n+=m),f=e[o-d],n=re(t,n,Y[f]>>3),n-=3;var y=f<4?0:f-2>>1;y>0&&(ie(t,n,o-d-H[f]),n+=y);for(var q=0;q<v;++q)l[h]=32767&o,h=32767&(h<<5^data[o]),++o;c-=v-1}else f<=143?f+=48:n=ne(t,n,1),n=re(t,n,Y[f]),l[h]=32767&o,++o}n=re(t,n,0)-1}}return t.l=(n+7)/8|0,t.l}(data,t)}}();function he(data){var e=cr(50+Math.floor(1.1*data.length)),t=ce(data,e);return e.slice(0,t)}var fe=G?new Uint16Array(32768):ae(32768),de=G?new Uint16Array(32768):ae(32768),pe=G?new Uint16Array(128):ae(128),ge=1,ve=1;function me(data,e){var t=J(data,e)+257,n=J(data,e+=5)+1,r=function(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}(data,e+=5)+4;e+=4;for(var o=0,l=G?new Uint8Array(19):ae(19),c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h=1,f=G?new Uint8Array(8):ae(8),d=G?new Uint8Array(8):ae(8),v=l.length,i=0;i<r;++i)l[$[i]]=o=Z(data,e),h<o&&(h=o),f[o]++,e+=3;var m=0;for(f[0]=0,i=1;i<=h;++i)d[i]=m=m+f[i-1]<<1;for(i=0;i<v;++i)0!=(m=l[i])&&(c[i]=d[m]++);var y=0;for(i=0;i<v;++i)if(0!=(y=l[i])){m=Y[c[i]]>>8-y;for(var _=(1<<7-y)-1;_>=0;--_)pe[m|_<<y]=7&y|i<<3}var x=[];for(h=1;x.length<t+n;)switch(e+=7&(m=pe[Q(data,e)]),m>>>=3){case 16:for(o=3+X(data,e),e+=2,m=x[x.length-1];o-- >0;)x.push(m);break;case 17:for(o=3+Z(data,e),e+=3;o-- >0;)x.push(0);break;case 18:for(o=11+Q(data,e),e+=7;o-- >0;)x.push(0);break;default:x.push(m),h<m&&(h=m)}var h1=x.slice(0,t),h2=x.slice(t);for(i=t;i<286;++i)h1[i]=0;for(i=n;i<30;++i)h2[i]=0;return ge=se(h1,fe,286),ve=se(h2,de,30),e}function ye(e,t){var n=function(data,e){if(3==data[0]&&!(3&data[1]))return[M(e),2];for(var t=0,header=0,n=I(e||1<<18),r=0,o=n.length>>>0,l=0,c=0;0==(1&header);)if(header=Z(data,t),t+=3,header>>>1!=0)for(header>>1==1?(l=9,c=5):(t=me(data,t),l=ge,c=ve);;){!e&&o<r+32767&&(o=(n=oe(n,r+32767)).length);var h=ee(data,t,l),code=header>>>1==1?le[h]:fe[h];if(t+=15&code,0==((code>>>=4)>>>8&255))n[r++]=code;else{if(256==code)break;var f=(code-=257)<8?0:code-4>>2;f>5&&(f=0);var d=r+V[code];f>0&&(d+=ee(data,t,f),t+=f),h=ee(data,t,c),t+=15&(code=header>>>1==1?ue[h]:de[h]);var v=(code>>>=4)<4?0:code-2>>1,m=H[code];for(v>0&&(m+=ee(data,t,v),t+=v),!e&&o<d&&(o=(n=oe(n,d+100)).length);r<d;)n[r]=n[r-m],++r}}else{7&t&&(t+=8-(7&t));var y=data[t>>>3]|data[1+(t>>>3)]<<8;if(t+=32,y>0)for(!e&&o<r+y&&(o=(n=oe(n,r+y)).length);y-- >0;)n[r++]=data[t>>>3],t+=8}return e?[n,t+7>>>3]:[n.slice(0,r),t+7>>>3]}(e.slice(e.l||0),t);return e.l+=n[1],n[0]}function be(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function _e(e,t){var n=e;lr(n,0);var r={FileIndex:[],FullPaths:[]};y(r,{root:t.root});for(var i=n.length-4;(80!=n[i]||75!=n[i+1]||5!=n[i+2]||6!=n[i+3])&&i>=0;)--i;n.l=i+4,n.l+=4;var o=n.read_shift(2);n.l+=6;var c=n.read_shift(4);for(n.l=c,i=0;i<o;++i){n.l+=20;var h=n.read_shift(4),f=n.read_shift(4),d=n.read_shift(2),v=n.read_shift(2),m=n.read_shift(2);n.l+=8;var _=n.read_shift(4),x=l(n.slice(n.l+d,n.l+d+v));n.l+=d+v+m;var w=n.l;n.l=_+4,xe(n,h,f,r,x),n.l=w}return r}function xe(e,t,n,r,o){e.l+=2;var c=e.read_shift(2),h=e.read_shift(2),f=function(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,o=31&n,l=15&(n>>>=5);n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(l-1),r.setDate(o);var c=31&t,h=63&(t>>>=5);return t>>>=6,r.setHours(t),r.setMinutes(h),r.setSeconds(c<<1),r}(e);if(8257&c)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var d=e.read_shift(4),v=e.read_shift(4),m=e.read_shift(2),y=e.read_shift(2),_="",i=0;i<m;++i)_+=String.fromCharCode(e[e.l++]);if(y){var x=l(e.slice(e.l,e.l+y));(x[21589]||{}).mt&&(f=x[21589].mt),((o||{})[21589]||{}).mt&&(f=o[21589].mt)}e.l+=y;var data=e.slice(e.l,e.l+d);switch(h){case 8:data=function(e,t){if(!w)return ye(e,t);var n=new(0,w.InflateRaw),r=n._processChunk(e.slice(e.l),n._finishFlushFlag);return e.l+=n.bytesRead,r}(e,v);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+h)}var S=!1;8&c&&(134695760==e.read_shift(4)&&(e.read_shift(4),S=!0),d=e.read_shift(4),v=e.read_shift(4)),d!=t&&be(S,"Bad compressed size: "+t+" != "+d),v!=n&&be(S,"Bad uncompressed size: "+n+" != "+v),Te(r,_,data,{unsafe:!0,mt:f})}var we={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Se(e,t){if(e.ctype)return e.ctype;var n=e.name||"",r=n.match(/\.([^\.]+)$/);return r&&we[r[1]]||t&&(r=(n=t).match(/[\.\\]([^\.\\])+$/))&&we[r[1]]?we[r[1]]:"application/octet-stream"}function ke(e){for(var data=C(e),t=[],i=0;i<data.length;i+=76)t.push(data.slice(i,i+76));return t.join("\r\n")+"\r\n"}function Oe(text){var e=text.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)}));"\n"==(e=e.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(e="=0D"+e.slice(1));for(var t=[],n=(e=e.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),r=0;r<n.length;++r){var o=n[r];if(0!=o.length)for(var i=0;i<o.length;){var l=76,c=o.slice(i,i+l);"="==c.charAt(l-1)?l--:"="==c.charAt(l-2)?l-=2:"="==c.charAt(l-3)&&(l-=3),c=o.slice(i,i+l),(i+=l)<o.length&&(c+="="),t.push(c)}else t.push("")}return t.join("\r\n")}function Ce(e,data,t){for(var n,r="",o="",l="",c=0;c<10;++c){var line=data[c];if(!line||line.match(/^\s*$/))break;var h=line.match(/^(.*?):\s*([^\s].*)$/);if(h)switch(h[1].toLowerCase()){case"content-location":r=h[2].trim();break;case"content-type":l=h[2].trim();break;case"content-transfer-encoding":o=h[2].trim()}}switch(++c,o.toLowerCase()){case"base64":n=D(T(data.slice(c).join("")));break;case"quoted-printable":n=function(data){for(var e=[],t=0;t<data.length;++t){for(var line=data[t];t<=data.length&&"="==line.charAt(line.length-1);)line=line.slice(0,line.length-1)+data[++t];e.push(line)}for(var n=0;n<e.length;++n)e[n]=e[n].replace(/[=][0-9A-Fa-f]{2}/g,(function(e){return String.fromCharCode(parseInt(e.slice(1),16))}));return D(e.join("\r\n"))}(data.slice(c));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+o)}var f=Te(e,r.slice(t.length),n,{unsafe:!0});l&&(f.ctype=l)}function Te(e,t,content,n){var o=n&&n.unsafe;o||y(e);var l=!o&&je.find(e,t);if(!l){var c=e.FullPaths[0];t.slice(0,c.length)==c?c=t:("/"!=c.slice(-1)&&(c+="/"),c=(c+t).replace("//","/")),l={name:r(t),type:2},e.FileIndex.push(l),e.FullPaths.push(c),o||je.utils.cfb_gc(e)}return l.content=content,l.size=content?content.length:0,n&&(n.CLSID&&(l.clsid=n.CLSID),n.mt&&(l.mt=n.mt),n.ct&&(l.ct=n.ct)),l}return t.find=function(e,path){var t=e.FullPaths.map((function(e){return e.toUpperCase()})),n=t.map((function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]})),r=!1;47===path.charCodeAt(0)?(r=!0,path=t[0].slice(0,-1)+path):r=-1!==path.indexOf("/");var o=path.toUpperCase(),l=!0===r?t.indexOf(o):n.indexOf(o);if(-1!==l)return e.FileIndex[l];var c=!o.match(F);for(o=o.replace(R,""),c&&(o=o.replace(F,"!")),l=0;l<t.length;++l){if((c?t[l].replace(F,"!"):t[l]).replace(R,"")==o)return e.FileIndex[l];if((c?n[l].replace(F,"!"):n[l]).replace(R,"")==o)return e.FileIndex[l]}return null},t.read=function(t,n){var r=n&&n.type;switch(r||E&&Buffer.isBuffer(t)&&(r="buffer"),r||"base64"){case"file":return function(t,n){return c(),h(e.readFileSync(t),n)}(t,n);case"base64":return h(D(T(t)),n);case"binary":return h(D(t),n)}return h(t,n)},t.parse=h,t.write=function(t,n){var r=x(t,n);switch(n&&n.type||"buffer"){case"file":return c(),e.writeFileSync(n.filename,r),r;case"binary":return"string"==typeof r?r:B(r);case"base64":return C("string"==typeof r?r:B(r));case"buffer":if(E)return Buffer.isBuffer(r)?r:A(r);case"array":return"string"==typeof r?D(r):r}return r},t.writeFile=function(t,n,r){c();var o=x(t,r);e.writeFileSync(n,o)},t.utils={cfb_new:function(e){var t={};return y(t,e),t},cfb_add:Te,cfb_del:function(e,t){y(e);var n=je.find(e,t);if(n)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0;return!1},cfb_mov:function(e,t,n){y(e);var o=je.find(e,t);if(o)for(var l=0;l<e.FileIndex.length;++l)if(e.FileIndex[l]==o)return e.FileIndex[l].name=r(n),e.FullPaths[l]=n,!0;return!1},cfb_gc:function(e){_(e,!0)},ReadShift:ir,CheckField:sr,prep_blob:lr,bconcat:j,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");w=e}catch(e){console.error("cannot use native zlib: "+(e.message||e))}},_deflateRaw:he,_inflateRaw:ye,consts:L},t}();let Re;function Fe(e){Re=e}function Be(data){return"string"==typeof data?P(data):Array.isArray(data)?function(data){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(data)}(data):data}function ze(e,t,n){if(void 0!==Re&&Re.writeFileSync)return n?Re.writeFileSync(e,t,n):Re.writeFileSync(e,t);if("undefined"!=typeof Deno){if(n&&"string"==typeof t)switch(n){case"utf8":t=new TextEncoder(n).encode(t);break;case"binary":t=P(t);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(e,t)}var data="utf8"==n?Gt(t):t;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(data,e);if("undefined"!=typeof Blob){var r=new Blob([Be(data)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(r,e);if("undefined"!=typeof saveAs)return saveAs(r,e);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(r);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(o)}),6e4),chrome.downloads.download({url:o,filename:e,saveAs:!0});var a=document.createElement("a");if(null!=a.download)return a.download=e,a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(o)}),6e4),o}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var l=File(e);return l.open("w"),l.encoding="binary",Array.isArray(t)&&(t=N(t)),l.write(t),l.close(),t}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("cannot save file "+e)}function $e(e){for(var t=Object.keys(e),n=[],i=0;i<t.length;++i)Object.prototype.hasOwnProperty.call(e,t[i])&&n.push(t[i]);return n}function Ve(e,t){for(var n=[],r=$e(e),i=0;i!==r.length;++i)null==n[e[r[i]][t]]&&(n[e[r[i]][t]]=r[i]);return n}function He(e){for(var t=[],n=$e(e),i=0;i!==n.length;++i)t[e[n[i]]]=n[i];return t}function qe(e){for(var t=[],n=$e(e),i=0;i!==n.length;++i)t[e[n[i]]]=parseInt(n[i],10);return t}var We=new Date(1899,11,30,0,0,0);function Ue(e,t){var n=e.getTime();return t&&(n-=1263168e5),(n-(We.getTime()+6e4*(e.getTimezoneOffset()-We.getTimezoneOffset())))/864e5}var Ge=new Date,Ye=We.getTime()+6e4*(Ge.getTimezoneOffset()-We.getTimezoneOffset()),Ke=Ge.getTimezoneOffset();function Xe(e){var t=new Date;return t.setTime(24*e*60*60*1e3+Ye),t.getTimezoneOffset()!==Ke&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-Ke)),t}function Ze(s){var e=0,t=0,time=!1,n=s.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!n)throw new Error("|"+s+"| is not an ISO8601 Duration");for(var i=1;i!=n.length;++i)if(n[i]){switch(t=1,i>3&&(time=!0),n[i].slice(n[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[i].slice(n[i].length-1));case"D":t*=24;case"H":t*=60;case"M":if(!time)throw new Error("Unsupported ISO Duration Field: M");t*=60}e+=t*parseInt(n[i],10)}return e}var Je=new Date("2017-02-19T19:06:09.000Z"),Qe=isNaN(Je.getFullYear())?new Date("2/19/17"):Je,et=2017==Qe.getFullYear();function tt(e,t){var n=new Date(e);if(et)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==Qe.getFullYear()&&!isNaN(n.getFullYear())){var s=n.getFullYear();return e.indexOf(""+s)>-1||n.setFullYear(n.getFullYear()+100),n}var r=e.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+r[0],+r[1]-1,+r[2],+r[3]||0,+r[4]||0,+r[5]||0);return e.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function nt(e,t){if(E&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return Gt(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return Gt(y(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return Gt(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return Gt(new TextDecoder("utf-16be").decode(e.slice(2)))}var n={"€":"€","‚":"‚","ƒ":"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰","Š":"Š","‹":"‹","Œ":"Œ","Ž":"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™","š":"š","›":"›","œ":"œ","ž":"ž","Ÿ":"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return n[e]||e}))}catch(e){}for(var r=[],i=0;i!=e.length;++i)r.push(String.fromCharCode(e[i]));return r.join("")}function it(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=it(e[n]));return t}function ot(e,t){for(var n="";n.length<t;)n+=e;return n}function at(s){var e=Number(s);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(s))return e;var t=1,n=s.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return t*=100,""}));return isNaN(e=Number(n))?(n=n.replace(/[(](.*)[)]/,(function(e,n){return t=-t,n})),isNaN(e=Number(n))?e:e/t):e/t}var st=["january","february","march","april","may","june","july","august","september","october","november","december"];function lt(s){var e=new Date(s),t=new Date(NaN),n=e.getYear(),r=e.getMonth(),o=e.getDate();if(isNaN(o))return t;var l=s.toLowerCase();if(l.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((l=l.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==st.indexOf(l))return t}else if(l.match(/[a-z]/))return t;return n<0||n>8099?t:(r>0||o>1)&&101!=n?e:s.match(/[^-0-9:,\/\\]/)?t:e}var ut=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,n,r){if(e||"string"==typeof n)return t.split(n);for(var p=t.split(n),o=[p[0]],i=1;i<p.length;++i)o.push(r),o.push(p[i]);return o}}();function ct(data){return data?data.content&&data.type?nt(data.content,!0):data.data?x(data.data):data.asNodeBuffer&&E?x(data.asNodeBuffer().toString("binary")):data.asBinary?x(data.asBinary()):data._data&&data._data.getContent?x(nt(Array.prototype.slice.call(data._data.getContent(),0))):null:null}function ht(data){if(!data)return null;if(data.data)return m(data.data);if(data.asNodeBuffer&&E)return data.asNodeBuffer();if(data._data&&data._data.getContent){var e=data._data.getContent();return"string"==typeof e?m(e):Array.prototype.slice.call(e)}return data.content&&data.type?data.content:null}function ft(e,t){for(var n=e.FullPaths||$e(e.files),r=t.toLowerCase().replace(/[\/]/g,"\\"),g=r.replace(/\\/g,"/"),i=0;i<n.length;++i){var o=n[i].replace(/^Root Entry[\/]/,"").toLowerCase();if(r==o||g==o)return e.files?e.files[n[i]]:e.FileIndex[i]}return null}function pt(e,t){var n=ft(e,t);if(null==n)throw new Error("Cannot find file "+t+" in zip");return n}function gt(e,t,n){if(!n)return(data=pt(e,t))&&".bin"===data.name.slice(-4)?ht(data):ct(data);var data;if(!t)return null;try{return gt(e,t)}catch(e){return null}}function vt(e,t,n){if(!n)return ct(pt(e,t));if(!t)return null;try{return vt(e,t)}catch(e){return null}}function mt(e,t,n){if(!n)return ht(pt(e,t));if(!t)return null;try{return mt(e,t)}catch(e){return null}}function yt(e){for(var t=e.FullPaths||$e(e.files),n=[],i=0;i<t.length;++i)"/"!=t[i].slice(-1)&&n.push(t[i].replace(/^Root Entry[\/]/,""));return n.sort()}function bt(e,path,content){if(e.FullPaths){var t;if("string"==typeof content)return t=E?A(content):function(content){for(var e=[],t=0,n=content.length+250,r=M(content.length+255),o=0;o<content.length;++o){var l=content.charCodeAt(o);if(l<128)r[t++]=l;else if(l<2048)r[t++]=192|l>>6&31,r[t++]=128|63&l;else if(l>=55296&&l<57344){l=64+(1023&l);var c=1023&content.charCodeAt(++o);r[t++]=240|l>>8&7,r[t++]=128|l>>2&63,r[t++]=128|c>>6&15|(3&l)<<4,r[t++]=128|63&c}else r[t++]=224|l>>12&15,r[t++]=128|l>>6&63,r[t++]=128|63&l;t>n&&(e.push(r.slice(0,t)),t=0,r=M(65535),n=65530)}return e.push(r.slice(0,t)),j(e)}(content),je.utils.cfb_add(e,path,t);je.utils.cfb_add(e,path,content)}else e.file(path,content)}function _t(){return je.utils.cfb_new()}function xt(e,t){switch(t.type){case"base64":return je.read(e,{type:"base64"});case"binary":return je.read(e,{type:"binary"});case"buffer":case"array":return je.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function wt(path,base){if("/"==path.charAt(0))return path.slice(1);var e=base.split("/");"/"!=base.slice(-1)&&e.pop();for(var t=path.split("/");0!==t.length;){var n=t.shift();".."===n?e.pop():"."!==n&&e.push(n)}return e.join("/")}var St='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',kt=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Ot=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,Ct=St.match(Ot)?Ot:/<[^>]*>/g,Tt=/<\w*:/,Et=/<(\/?)\w+:/;function At(e,t,n){for(var r={},o=0,l=0;o!==e.length&&(32!==(l=e.charCodeAt(o))&&10!==l&&13!==l);++o);if(t||(r[0]=e.slice(0,o)),o===e.length)return r;var c=e.match(kt),h=0,f="",i=0,q="",d="",v=1;if(c)for(i=0;i!=c.length;++i){for(d=c[i],l=0;l!=d.length&&61!==d.charCodeAt(l);++l);for(q=d.slice(0,l).trim();32==d.charCodeAt(l+1);)++l;for(v=34==(o=d.charCodeAt(l+1))||39==o?1:0,f=d.slice(l+1+v,d.length-v),h=0;h!=q.length&&58!==q.charCodeAt(h);++h);if(h===q.length)q.indexOf("_")>0&&(q=q.slice(0,q.indexOf("_"))),r[q]=f,n||(r[q.toLowerCase()]=f);else{var m=(5===h&&"xmlns"===q.slice(0,5)?"xmlns":"")+q.slice(h+1);if(r[m]&&"ext"==q.slice(h-3,h))continue;r[m]=f,n||(r[m.toLowerCase()]=f)}}return r}function Mt(e){return e.replace(Et,"<$1")}var It={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},Dt=He(It),Pt=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function n(text){var s=text+"",i=s.indexOf("<![CDATA[");if(-1==i)return s.replace(e,(function(e,t){return It[e]||String.fromCharCode(parseInt(t,e.indexOf("x")>-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var r=s.indexOf("]]>");return n(s.slice(0,i))+s.slice(i+9,r)+n(s.slice(r+3))}}(),Nt=/[&<>'"]/g,Lt=/[\u0000-\u0008\u000b-\u001f]/g;function jt(text){return(text+"").replace(Nt,(function(e){return Dt[e]})).replace(Lt,(function(s){return"_x"+("000"+s.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function Rt(text){return jt(text).replace(/ /g,"_x0020_")}var Ft=/[\u0000-\u001f]/g;function Bt(text){return(text+"").replace(Nt,(function(e){return Dt[e]})).replace(/\n/g,"<br/>").replace(Ft,(function(s){return"&#x"+("000"+s.charCodeAt(0).toString(16)).slice(-4)+";"}))}var zt=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(n){return n.replace(e,t)}}();function $t(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Vt(e){for(var t="",i=0,n=0,r=0,o=0,l=0,c=0;i<e.length;)(n=e.charCodeAt(i++))<128?t+=String.fromCharCode(n):(r=e.charCodeAt(i++),n>191&&n<224?(l=(31&n)<<6,l|=63&r,t+=String.fromCharCode(l)):(o=e.charCodeAt(i++),n<240?t+=String.fromCharCode((15&n)<<12|(63&r)<<6|63&o):(c=((7&n)<<18|(63&r)<<12|(63&o)<<6|63&(l=e.charCodeAt(i++)))-65536,t+=String.fromCharCode(55296+(c>>>10&1023)),t+=String.fromCharCode(56320+(1023&c)))));return t}function Ht(data){var e,i,t,n=M(2*data.length),r=1,o=0,l=0;for(i=0;i<data.length;i+=r)r=1,(t=data.charCodeAt(i))<128?e=t:t<224?(e=64*(31&t)+(63&data.charCodeAt(i+1)),r=2):t<240?(e=4096*(15&t)+64*(63&data.charCodeAt(i+1))+(63&data.charCodeAt(i+2)),r=3):(r=4,e=262144*(7&t)+4096*(63&data.charCodeAt(i+1))+64*(63&data.charCodeAt(i+2))+(63&data.charCodeAt(i+3)),l=55296+((e-=65536)>>>10&1023),e=56320+(1023&e)),0!==l&&(n[o++]=255&l,n[o++]=l>>>8,l=0),n[o++]=e%256,n[o++]=e>>>8;return n.slice(0,o).toString("ucs2")}function qt(data){return A(data,"binary").toString("utf8")}var Wt="foo bar baz☃🍣",Ut=E&&(qt(Wt)==Vt(Wt)&&qt||Ht(Wt)==Vt(Wt)&&Ht)||Vt,Gt=E?function(data){return A(data,"utf8").toString("binary")}:function(e){for(var t=[],i=0,n=0,r=0;i<e.length;)switch(n=e.charCodeAt(i++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(63&n)));break;case n>=55296&&n<57344:n-=55296,r=e.charCodeAt(i++)-56320+(n<<10),t.push(String.fromCharCode(240+(r>>18&7))),t.push(String.fromCharCode(144+(r>>12&63))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(63&n)))}return t.join("")},Yt=function(){var e={};return function(t,g){var n=t+"|"+(g||"");return e[n]?e[n]:e[n]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",g||"")}}(),Kt=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}}(),Xt=function(){var e={};return function(t){return void 0!==e[t]?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),Zt=/<\/?(?:vt:)?variant>/g,Jt=/<(?:vt:)([^>]*)>([\s\S]*)</;function Qt(data,e){var t=At(data),n=data.match(Xt(t.baseType))||[],r=[];if(n.length!=t.size){if(e.WTF)throw new Error("unexpected vector length "+n.length+" != "+t.size);return r}return n.forEach((function(e){var t=e.replace(Zt,"").match(Jt);t&&r.push({v:Ut(t[2]),t:t[1]})})),r}var en=/(^\s|\s$|\n)/;function tn(e,g){return"<"+e+(g.match(en)?' xml:space="preserve"':"")+">"+g+"</"+e+">"}function nn(e){return $e(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function rn(e,g,t){return"<"+e+(null!=t?nn(t):"")+(null!=g?(g.match(en)?' xml:space="preserve"':"")+">"+g+"</"+e:"/")+">"}function on(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(e){if(t)throw e}return""}function an(e){if(E&&Buffer.isBuffer(e))return e.toString("utf8");if("string"==typeof e)return e;if("undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return Ut(N(L(e)));throw new Error("Bad input format: expected Buffer or string")}var sn=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,ln="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",un="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",cn="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",hn="http://schemas.openxmlformats.org/package/2006/content-types",fn="http://schemas.openxmlformats.org/package/2006/relationships",dn="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",pn="http://purl.org/dc/elements/1.1/",gn="http://purl.org/dc/terms/",vn="http://purl.org/dc/dcmitype/",mn="http://schemas.openxmlformats.org/officeDocument/2006/relationships",yn="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",bn="http://www.w3.org/2001/XMLSchema-instance",_n="http://www.w3.org/2001/XMLSchema",xn=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],wn="urn:schemas-microsoft-com:office:office",Sn="urn:schemas-microsoft-com:office:excel",kn="urn:schemas-microsoft-com:office:spreadsheet",On="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",Cn="http://macVmlSchemaUri",Tn="urn:schemas-microsoft-com:vml",En="http://www.w3.org/TR/REC-html40";var An=function(e){for(var t=[],i=0;i<e[0].length;++i)if(e[0][i])for(var n=0,r=e[0][i].length;n<r;n+=10240)t.push.apply(t,e[0][i].slice(n,n+10240));return t},Mn=E?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:A(e)}))):An(e)}:An,In=function(b,s,e){for(var t=[],i=s;i<e;i+=2)t.push(String.fromCharCode(Jn(b,i)));return t.join("").replace(R,"")},Dn=E?function(b,s,e){return Buffer.isBuffer(b)?b.toString("utf16le",s,e).replace(R,""):In(b,s,e)}:In,Pn=function(b,s,e){for(var t=[],i=s;i<s+e;++i)t.push(("0"+b[i].toString(16)).slice(-2));return t.join("")},Nn=E?function(b,s,e){return Buffer.isBuffer(b)?b.toString("hex",s,s+e):Pn(b,s,e)}:Pn,Ln=function(b,s,e){for(var t=[],i=s;i<e;i++)t.push(String.fromCharCode(Zn(b,i)));return t.join("")},jn=E?function(b,s,e){return Buffer.isBuffer(b)?b.toString("utf8",s,e):Ln(b,s,e)}:Ln,Rn=function(b,i){var e=er(b,i);return e>0?jn(b,i+4,i+4+e-1):""},Fn=Rn,Bn=function(b,i){var e=er(b,i);return e>0?jn(b,i+4,i+4+e-1):""},zn=Bn,$n=function(b,i){var e=2*er(b,i);return e>0?jn(b,i+4,i+4+e-1):""},Vn=$n,Hn=function(b,i){var e=er(b,i);return e>0?Dn(b,i+4,i+4+e):""},qn=Hn,Wn=function(b,i){var e=er(b,i);return e>0?jn(b,i+4,i+4+e):""},Un=Wn,Gn=function(b,e){return function(b,e){for(var s=1-2*(b[e+7]>>>7),t=((127&b[e+7])<<4)+(b[e+6]>>>4&15),n=15&b[e+6],i=5;i>=0;--i)n=256*n+b[e+i];return 2047==t?0==n?s*(1/0):NaN:(0==t?t=-1022:(t-=1023,n+=Math.pow(2,52)),s*Math.pow(2,t-52)*n)}(b,e)},Yn=Gn,Kn=function(a){return Array.isArray(a)||"undefined"!=typeof Uint8Array&&a instanceof Uint8Array};function Xn(){Dn=function(b,s,e){return _.utils.decode(1200,b.slice(s,e)).replace(R,"")},jn=function(b,s,e){return _.utils.decode(65001,b.slice(s,e))},Fn=function(b,i){var e=er(b,i);return e>0?_.utils.decode(l,b.slice(i+4,i+4+e-1)):""},zn=function(b,i){var e=er(b,i);return e>0?_.utils.decode(o,b.slice(i+4,i+4+e-1)):""},Vn=function(b,i){var e=2*er(b,i);return e>0?_.utils.decode(1200,b.slice(i+4,i+4+e-1)):""},qn=function(b,i){var e=er(b,i);return e>0?_.utils.decode(1200,b.slice(i+4,i+4+e)):""},Un=function(b,i){var e=er(b,i);return e>0?_.utils.decode(65001,b.slice(i+4,i+4+e)):""}}E&&(Fn=function(b,i){if(!Buffer.isBuffer(b))return Rn(b,i);var e=b.readUInt32LE(i);return e>0?b.toString("utf8",i+4,i+4+e-1):""},zn=function(b,i){if(!Buffer.isBuffer(b))return Bn(b,i);var e=b.readUInt32LE(i);return e>0?b.toString("utf8",i+4,i+4+e-1):""},Vn=function(b,i){if(!Buffer.isBuffer(b))return $n(b,i);var e=2*b.readUInt32LE(i);return b.toString("utf16le",i+4,i+4+e-1)},qn=function(b,i){if(!Buffer.isBuffer(b))return Hn(b,i);var e=b.readUInt32LE(i);return b.toString("utf16le",i+4,i+4+e)},Un=function(b,i){if(!Buffer.isBuffer(b))return Wn(b,i);var e=b.readUInt32LE(i);return b.toString("utf8",i+4,i+4+e)},Yn=function(b,i){return Buffer.isBuffer(b)?b.readDoubleLE(i):Gn(b,i)},Kn=function(a){return Buffer.isBuffer(a)||Array.isArray(a)||"undefined"!=typeof Uint8Array&&a instanceof Uint8Array}),void 0!==_&&Xn();var Zn=function(b,e){return b[e]},Jn=function(b,e){return 256*b[e+1]+b[e]},Qn=function(b,e){var u=256*b[e+1]+b[e];return u<32768?u:-1*(65535-u+1)},er=function(b,e){return b[e+3]*(1<<24)+(b[e+2]<<16)+(b[e+1]<<8)+b[e]},nr=function(b,e){return b[e+3]<<24|b[e+2]<<16|b[e+1]<<8|b[e]},rr=function(b,e){return b[e]<<24|b[e+1]<<16|b[e+2]<<8|b[e+3]};function ir(e,t){var n,r,l,c,i,h,f="",d=[];switch(t){case"dbcs":if(h=this.l,E&&Buffer.isBuffer(this))f=this.slice(this.l,this.l+2*e).toString("utf16le");else for(i=0;i<e;++i)f+=String.fromCharCode(Jn(this,h)),h+=2;e*=2;break;case"utf8":f=jn(this,this.l,this.l+e);break;case"utf16le":e*=2,f=Dn(this,this.l,this.l+e);break;case"wstr":if(void 0===_)return ir.call(this,e,"dbcs");f=_.utils.decode(o,this.slice(this.l,this.l+2*e)),e*=2;break;case"lpstr-ansi":f=Fn(this,this.l),e=4+er(this,this.l);break;case"lpstr-cp":f=zn(this,this.l),e=4+er(this,this.l);break;case"lpwstr":f=Vn(this,this.l),e=4+2*er(this,this.l);break;case"lpp4":e=4+er(this,this.l),f=qn(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+er(this,this.l),f=Un(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,f="";0!==(l=Zn(this,this.l+e++));)d.push(w(l));f=d.join("");break;case"_wstr":for(e=0,f="";0!==(l=Jn(this,this.l+e));)d.push(w(l)),e+=2;e+=2,f=d.join("");break;case"dbcs-cont":for(f="",h=this.l,i=0;i<e;++i){if(this.lens&&-1!==this.lens.indexOf(h))return l=Zn(this,h),this.l=h+1,c=ir.call(this,e-i,l?"dbcs-cont":"sbcs-cont"),d.join("")+c;d.push(w(Jn(this,h))),h+=2}f=d.join(""),e*=2;break;case"cpstr":if(void 0!==_){f=_.utils.decode(o,this.slice(this.l,this.l+e));break}case"sbcs-cont":for(f="",h=this.l,i=0;i!=e;++i){if(this.lens&&-1!==this.lens.indexOf(h))return l=Zn(this,h),this.l=h+1,c=ir.call(this,e-i,l?"dbcs-cont":"sbcs-cont"),d.join("")+c;d.push(w(Zn(this,h))),h+=1}f=d.join("");break;default:switch(e){case 1:return n=Zn(this,this.l),this.l++,n;case 2:return n=("i"===t?Qn:Jn)(this,this.l),this.l+=2,n;case 4:case-4:return"i"===t||0==(128&this[this.l+3])?(n=(e>0?nr:rr)(this,this.l),this.l+=4,n):(r=er(this,this.l),this.l+=4,r);case 8:case-8:if("f"===t)return r=8==e?Yn(this,this.l):Yn([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;e=8;case 16:f=Nn(this,this.l,e)}}return this.l+=e,f}var or=function(b,e,t){b[t]=255&e,b[t+1]=e>>>8&255};function ar(e,t,n){var r=0,i=0;if("dbcs"===n){for(i=0;i!=t.length;++i)or(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}else if("sbcs"===n){if(void 0!==_&&874==l)for(i=0;i!=t.length;++i){var o=_.utils.encode(l,t.charAt(i));this[this.l+i]=o[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);r=t.length}else{if("hex"===n){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}if("utf16le"===n){var c=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var h=t.charCodeAt(i);this[this.l++]=255&h,this[this.l++]=h>>8}for(;this.l<c;)this[this.l++]=0;return this}switch(e){case 1:r=1,this[this.l]=255&t;break;case 2:r=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,function(b,e,t){b[t]=255&e,b[t+1]=e>>>8&255,b[t+2]=e>>>16&255,b[t+3]=e>>>24&255}(this,t,this.l);break;case 8:if(r=8,"f"===n){!function(b,e,t){var n=(e<0||1/e==-1/0?1:0)<<7,r=0,o=0,l=n?-e:e;isFinite(l)?0==l?r=o=0:(r=Math.floor(Math.log(l)/Math.LN2),o=l*Math.pow(2,52-r),r<=-1023&&(!isFinite(o)||o<Math.pow(2,52))?r=-1022:(o-=Math.pow(2,52),r+=1023)):(r=2047,o=isNaN(e)?26985:0);for(var i=0;i<=5;++i,o/=256)b[t+i]=255&o;b[t+6]=(15&r)<<4|15&o,b[t+7]=r>>4|n}(this,t,this.l);break}case 16:break;case-4:r=4,function(b,e,t){b[t]=255&e,b[t+1]=e>>8&255,b[t+2]=e>>16&255,b[t+3]=e>>24&255}(this,t,this.l)}}return this.l+=r,this}function sr(e,t){var n=Nn(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function lr(e,t){e.l=t,e.read_shift=ir,e.chk=sr,e.write_shift=ar}function ur(e,t){e.l+=t}function cr(e){var t=M(e);return lr(t,0),t}function fr(data,e,t){if(data){var n,r,o;lr(data,data.l||0);for(var l=data.length,c=0,h=0;data.l<l;){128&(c=data.read_shift(1))&&(c=(127&c)+((127&data.read_shift(1))<<7));var f=_c[c]||_c[65535];for(o=127&(n=data.read_shift(1)),r=1;r<4&&128&n;++r)o+=(127&(n=data.read_shift(1)))<<7*r;h=data.l+o;var d=f.f&&f.f(data,o,t);if(data.l=h,e(d,f,c))return}}}function dr(){var e=[],t=E?256:2048,n=function(e){var t=cr(e);return lr(t,0),t},r=n(t),o=function(){r&&(r.length>r.l&&((r=r.slice(0,r.l)).l=r.length),r.length>0&&e.push(r),r=null)},l=function(e){return r&&e<r.length-r.l?r:(o(),r=n(Math.max(e+1,t)))};return{next:l,push:function(e){o(),null==(r=e).l&&(r.l=r.length),l(t)},end:function(){return o(),j(e)},_bufs:e}}function pr(e,t,n,r){var o,l=+t;if(!isNaN(l)){r||(r=_c[l].p||(n||[]).length||0),o=1+(l>=128?1:0)+1,r>=128&&++o,r>=16384&&++o,r>=2097152&&++o;var c=e.next(o);l<=127?c.write_shift(1,l):(c.write_shift(1,128+(127&l)),c.write_shift(1,l>>7));for(var i=0;4!=i;++i){if(!(r>=128)){c.write_shift(1,r);break}c.write_shift(1,128+(127&r)),r>>=7}r>0&&Kn(n)&&e.push(n)}}function gr(e,t,n){var r=it(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function vr(e,t,n){var r=it(e);return r.s=gr(r.s,t.s,n),r.e=gr(r.e,t.s,n),r}function mr(e,t){if(e.cRel&&e.c<0)for(e=it(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=it(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var s=Or(e);return e.cRel||null==e.cRel||(s=s.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(s=function(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(s)),s}function yr(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?mr(e.s,t.biff)+":"+mr(e.e,t.biff):(e.s.rRel?"":"$")+xr(e.s.r)+":"+(e.e.rRel?"":"$")+xr(e.e.r):(e.s.cRel?"":"$")+Sr(e.s.c)+":"+(e.e.cRel?"":"$")+Sr(e.e.c)}function _r(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function xr(e){return""+(e+1)}function wr(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),n=0,i=0;i!==t.length;++i)n=26*n+t.charCodeAt(i)-64;return n-1}function Sr(col){if(col<0)throw new Error("invalid column "+col);var s="";for(++col;col;col=Math.floor((col-1)/26))s=String.fromCharCode((col-1)%26+65)+s;return s}function kr(e){for(var t=0,n=0,i=0;i<e.length;++i){var r=e.charCodeAt(i);r>=48&&r<=57?t=10*t+(r-48):r>=65&&r<=90&&(n=26*n+(r-64))}return{c:n-1,r:t-1}}function Or(e){for(var col=e.c+1,s="";col;col=(col-1)/26|0)s=String.fromCharCode((col-1)%26+65)+s;return s+(e.r+1)}function Cr(e){var t=e.indexOf(":");return-1==t?{s:kr(e),e:kr(e)}:{s:kr(e.slice(0,t)),e:kr(e.slice(t+1))}}function Tr(e,t){return void 0===t||"number"==typeof t?Tr(e.s,e.e):("string"!=typeof e&&(e=Or(e)),"string"!=typeof t&&(t=Or(t)),e==t?e:e+":"+t)}function Er(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,i=0,r=0,o=e.length;for(n=0;i<o&&!((r=e.charCodeAt(i)-64)<1||r>26);++i)n=26*n+r;for(t.s.c=--n,n=0;i<o&&!((r=e.charCodeAt(i)-48)<0||r>9);++i)n=10*n+r;if(t.s.r=--n,i===o||10!=r)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++i,n=0;i!=o&&!((r=e.charCodeAt(i)-64)<1||r>26);++i)n=26*n+r;for(t.e.c=--n,n=0;i!=o&&!((r=e.charCodeAt(i)-48)<0||r>9);++i)n=10*n+r;return t.e.r=--n,t}function Ar(e,t){var q="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=Ee(e.z,q?Ue(t):t)}catch(e){}try{return e.w=Ee((e.XF||{}).numFmtId||(q?14:0),q?Ue(t):t)}catch(e){return""+t}}function Mr(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?vi[e.v]||e.v:Ar(e,null==t?e.v:t))}function Ir(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function Dr(e,data,t){var n=t||{},r=e?Array.isArray(e):n.dense;var o=e||(r?[]:{}),l=0,c=0;if(o&&null!=n.origin){if("number"==typeof n.origin)l=n.origin;else{var h="string"==typeof n.origin?kr(n.origin):n.origin;l=h.r,c=h.c}o["!ref"]||(o["!ref"]="A1:A1")}var f={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var d=Er(o["!ref"]);f.s.c=d.s.c,f.s.r=d.s.r,f.e.c=Math.max(f.e.c,d.e.c),f.e.r=Math.max(f.e.r,d.e.r),-1==l&&(f.e.r=l=d.e.r+1)}for(var v=0;v!=data.length;++v)if(data[v]){if(!Array.isArray(data[v]))throw new Error("aoa_to_sheet expects an array of arrays");for(var m=0;m!=data[v].length;++m)if(void 0!==data[v][m]){var y={v:data[v][m]},_=l+v,x=c+m;if(f.s.r>_&&(f.s.r=_),f.s.c>x&&(f.s.c=x),f.e.r<_&&(f.e.r=_),f.e.c<x&&(f.e.c=x),!data[v][m]||"object"!=typeof data[v][m]||Array.isArray(data[v][m])||data[v][m]instanceof Date)if(Array.isArray(y.v)&&(y.f=data[v][m][1],y.v=y.v[0]),null===y.v)if(y.f)y.t="n";else if(n.nullError)y.t="e",y.v=0;else{if(!n.sheetStubs)continue;y.t="z"}else"number"==typeof y.v?y.t="n":"boolean"==typeof y.v?y.t="b":y.v instanceof Date?(y.z=n.dateNF||X[14],n.cellDates?(y.t="d",y.w=Ee(y.z,Ue(y.v))):(y.t="n",y.v=Ue(y.v),y.w=Ee(y.z,y.v))):y.t="s";else y=data[v][m];if(r)o[_]||(o[_]=[]),o[_][x]&&o[_][x].z&&(y.z=o[_][x].z),o[_][x]=y;else{var w=Or({c:x,r:_});o[w]&&o[w].z&&(y.z=o[w].z),o[w]=y}}}return f.s.c<1e7&&(o["!ref"]=Tr(f)),o}function Pr(data,e){return Dr(null,data,e)}function Nr(e,t){return t||(t=cr(4)),t.write_shift(4,e),t}function Lr(data){var e=data.read_shift(4);return 0===e?"":data.read_shift(e,"dbcs")}function jr(data,e){var t=!1;return null==e&&(t=!0,e=cr(4+2*data.length)),e.write_shift(4,data.length),data.length>0&&e.write_shift(0,data,"dbcs"),t?e.slice(0,e.l):e}function Rr(data){return{ich:data.read_shift(2),ifnt:data.read_shift(2)}}function Fr(data,e){var t=data.l,n=data.read_shift(1),r=Lr(data),o=[],l={t:r,h:r};if(0!=(1&n)){for(var c=data.read_shift(4),i=0;i!=c;++i)o.push(Rr(data));l.r=o}else l.r=[{ich:0,ifnt:0}];return data.l=t+e,l}var Br=Fr;function zr(e,t){var n=!1;return null==t&&(n=!0,t=cr(23+4*e.t.length)),t.write_shift(1,1),jr(e.t,t),t.write_shift(4,1),function(e,t){t||(t=cr(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},t),n?t.slice(0,t.l):t}function $r(data){var col=data.read_shift(4),e=data.read_shift(2);return e+=data.read_shift(1)<<16,data.l++,{c:col,iStyleRef:e}}function Vr(e,t){return null==t&&(t=cr(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function Hr(data){var e=data.read_shift(2);return e+=data.read_shift(1)<<16,data.l++,{c:-1,iStyleRef:e}}function qr(e,t){return null==t&&(t=cr(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var Wr=Lr,Ur=jr;function Gr(data){var e=data.read_shift(4);return 0===e||4294967295===e?"":data.read_shift(e,"dbcs")}function Yr(data,e){var t=!1;return null==e&&(t=!0,e=cr(127)),e.write_shift(4,data.length>0?data.length:4294967295),data.length>0&&e.write_shift(0,data,"dbcs"),t?e.slice(0,e.l):e}var Kr=Lr,Xr=Gr,Zr=Yr;function Jr(data){var b=data.slice(data.l,data.l+4),e=1&b[0],t=2&b[0];data.l+=4;var n=0===t?Yn([0,0,0,0,252&b[0],b[1],b[2],b[3]],0):nr(b,0)>>2;return e?n/100:n}function Qr(data,e){null==e&&(e=cr(4));var t=0,n=0,r=100*data;if(data==(0|data)&&data>=-(1<<29)&&data<1<<29?n=1:r==(0|r)&&r>=-(1<<29)&&r<1<<29&&(n=1,t=1),!n)throw new Error("unsupported RkNumber "+data);e.write_shift(-4,((t?r:data)<<2)+(t+2))}function ei(data){var e={s:{},e:{}};return e.s.r=data.read_shift(4),e.e.r=data.read_shift(4),e.s.c=data.read_shift(4),e.e.c=data.read_shift(4),e}var ti=ei,ni=function(e,t){return t||(t=cr(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function ri(data){if(data.length-data.l<8)throw"XLS Xnum Buffer underflow";return data.read_shift(8,"f")}function ii(data,e){return(e||cr(8)).write_shift(8,data,"f")}function oi(e,t){if(t||(t=cr(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),e.rgb&&null==e.theme){var r=e.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}function ai(e,t){var n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}var si=80,ui=[si,81],ci={1:{n:"CodePage",t:2},2:{n:"Category",t:si},3:{n:"PresentationFormat",t:si},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:si},15:{n:"Company",t:si},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:si},27:{n:"ContentStatus",t:si},28:{n:"Language",t:si},29:{n:"Version",t:si},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},hi={1:{n:"CodePage",t:2},2:{n:"Title",t:si},3:{n:"Subject",t:si},4:{n:"Author",t:si},5:{n:"Keywords",t:si},6:{n:"Comments",t:si},7:{n:"Template",t:si},8:{n:"LastAuthor",t:si},9:{n:"RevNumber",t:si},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:si},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},fi={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},di=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function pi(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var gi=it(pi([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),vi={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},mi={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},yi={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},bi={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function _i(e,t){var n,r=function(e){for(var t=[],n=$e(e),i=0;i!==n.length;++i)null==t[e[n[i]]]&&(t[e[n[i]]]=[]),t[e[n[i]]].push(n[i]);return t}(yi),o=[];o[o.length]=St,o[o.length]=rn("Types",null,{xmlns:hn,"xmlns:xsd":_n,"xmlns:xsi":bn}),o=o.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return rn("Default",null,{Extension:e[0],ContentType:e[1]})})));var l=function(r){e[r]&&e[r].length>0&&(n=e[r][0],o[o.length]=rn("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:bi[r][t.bookType]||bi[r].xlsx}))},c=function(n){(e[n]||[]).forEach((function(e){o[o.length]=rn("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:bi[n][t.bookType]||bi[n].xlsx})}))},h=function(t){(e[t]||[]).forEach((function(e){o[o.length]=rn("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:r[t][0]})}))};return l("workbooks"),c("sheets"),c("charts"),h("themes"),["strs","styles"].forEach(l),["coreprops","extprops","custprops"].forEach(h),h("vba"),h("comments"),h("threadedcomments"),h("drawings"),c("metadata"),h("people"),o.length>2&&(o[o.length]="</Types>",o[1]=o[1].replace("/>",">")),o.join("")}var xi={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function wi(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Si(data,e){var t={"!id":{}};if(!data)return t;"/"!==e.charAt(0)&&(e="/"+e);var n={};return(data.match(Ct)||[]).forEach((function(r){var o=At(r);if("<Relationship"===o[0]){var l={};l.Type=o.Type,l.Target=o.Target,l.Id=o.Id,o.TargetMode&&(l.TargetMode=o.TargetMode);var c="External"===o.TargetMode?o.Target:wt(o.Target,e);t[c]=l,n[o.Id]=l}})),t["!id"]=n,t}function ki(e){var t=[St,rn("Relationships",null,{xmlns:fn})];return $e(e["!id"]).forEach((function(n){t[t.length]=rn("Relationship",null,e["!id"][n])})),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function Oi(e,t,n,r,o,l){if(o||(o={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,o.Id="rId"+t,o.Type=r,o.Target=n,l?o.TargetMode=l:[xi.HLINK,xi.XPATH,xi.XMISS].indexOf(o.Type)>-1&&(o.TargetMode="External"),e["!id"][o.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][o.Id]=o,e[("/"+o.Target).replace("//","/")]=o,t}function Ci(e,t,n){return[' <rdf:Description rdf:about="'+e+'">\n',' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+t+'"/>\n'," </rdf:Description>\n"].join("")}function Ti(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+r.version+"</meta:generator></office:meta></office:document-meta>"}var Ei=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],Ai=function(){for(var e=new Array(Ei.length),i=0;i<Ei.length;++i){var t=Ei[i],g="(?:"+t[0].slice(0,t[0].indexOf(":"))+":)"+t[0].slice(t[0].indexOf(":")+1);e[i]=new RegExp("<"+g+"[^>]*>([\\s\\S]*?)</"+g+">")}return e}();function Mi(data){var p={};data=Ut(data);for(var i=0;i<Ei.length;++i){var e=Ei[i],t=data.match(Ai[i]);null!=t&&t.length>0&&(p[e[1]]=Pt(t[1])),"date"===e[2]&&p[e[1]]&&(p[e[1]]=tt(p[e[1]]))}return p}function Ii(e,g,t,n,p){null==p[e]&&null!=g&&""!==g&&(p[e]=g,g=jt(g),n[n.length]=t?rn(e,g,t):tn(e,g))}function Di(e,t){var n=t||{},r=[St,rn("cp:coreProperties",null,{"xmlns:cp":ln,"xmlns:dc":pn,"xmlns:dcterms":gn,"xmlns:dcmitype":vn,"xmlns:xsi":bn})],p={};if(!e&&!n.Props)return r.join("");e&&(null!=e.CreatedDate&&Ii("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:on(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,p),null!=e.ModifiedDate&&Ii("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:on(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,p));for(var i=0;i!=Ei.length;++i){var o=Ei[i],l=n.Props&&null!=n.Props[o[1]]?n.Props[o[1]]:e?e[o[1]]:null;!0===l?l="1":!1===l?l="0":"number"==typeof l&&(l=String(l)),null!=l&&Ii(o[0],l,null,r,p)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var Pi=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Ni=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Li(e,t,n,r){var o=[];if("string"==typeof e)o=Qt(e,r);else for(var l=0;l<e.length;++l)o=o.concat(e[l].map((function(e){return{v:e}})));var c="string"==typeof t?Qt(t,r).map((function(e){return e.v})):t,h=0,f=0;if(c.length>0)for(var i=0;i!==o.length;i+=2){switch(f=+o[i+1].v,o[i].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=f,n.SheetNames=c.slice(h,h+f);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":n.NamedRanges=f,n.DefinedNames=c.slice(h,h+f);break;case"Charts":case"Diagramme":n.Chartsheets=f,n.ChartNames=c.slice(h,h+f)}h+=f}}function ji(e){var t=[],n=rn;return e||(e={}),e.Application="SheetJS",t[t.length]=St,t[t.length]=rn("Properties",null,{xmlns:cn,"xmlns:vt":yn}),Pi.forEach((function(r){if(void 0!==e[r[1]]){var o;switch(r[2]){case"string":o=jt(String(e[r[1]]));break;case"bool":o=e[r[1]]?"true":"false"}void 0!==o&&(t[t.length]=n(r[0],o))}})),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map((function(s){return"<vt:lpstr>"+jt(s)+"</vt:lpstr>"})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var Ri=/<[^>]+>[^<]*/g;function Fi(e){var t=[St,rn("Properties",null,{xmlns:un,"xmlns:vt":yn})];if(!e)return t.join("");var n=1;return $e(e).forEach((function(r){++n,t[t.length]=rn("property",function(s,e){switch(typeof s){case"string":var t=rn("vt:lpwstr",jt(s));return e&&(t=t.replace(/&quot;/g,"_x0022_")),t;case"number":return rn((0|s)==s?"vt:i4":"vt:r8",jt(String(s)));case"boolean":return rn("vt:bool",s?"true":"false")}if(s instanceof Date)return rn("vt:filetime",on(s));throw new Error("Unable to serialize "+s)}(e[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:jt(r)})})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var Bi,zi={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function $i(e,t,n){Bi||(Bi=He(zi)),e[t=Bi[t]||t]=n}function Vi(e){var t=e.read_shift(4),n=e.read_shift(4);return new Date(1e3*(n/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Hi(e,t,n){var r=e.l,o=e.read_shift(0,"lpstr-cp");if(n)for(;e.l-r&3;)++e.l;return o}function qi(e,t,n){var r=e.read_shift(0,"lpwstr");return n&&(e.l+=4-(r.length+1&3)&3),r}function Wi(e,t,n){return 31===t?qi(e):Hi(e,0,n)}function Ui(e,t,n){return Wi(e,t,!1===n?0:4)}function Gi(e){var t=e.l,n=Xi(e,81);return 0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2),[n,Xi(e,3)]}function Yi(e,t){for(var n=e.read_shift(4),r={},o=0;o!=n;++o){var l=e.read_shift(4),c=e.read_shift(4);r[l]=e.read_shift(c,1200===t?"utf16le":"utf8").replace(R,"").replace(F,"!"),1200===t&&c%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),r}function Ki(e){var t=e.read_shift(4),n=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),n}function Xi(e,t,n){var r,o=e.read_shift(2),l=n||{};if(e.l+=2,12!==t&&o!==t&&-1===ui.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&o)))throw new Error("Expected type "+t+" saw "+o);switch(12===t?o:t){case 2:return r=e.read_shift(2,"i"),l.raw||(e.l+=2),r;case 3:return r=e.read_shift(4,"i");case 11:return 0!==e.read_shift(4);case 19:return r=e.read_shift(4);case 30:return Hi(e,0,4).replace(R,"");case 31:return qi(e);case 64:return Vi(e);case 65:return Ki(e);case 71:return function(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}(e);case 80:return Ui(e,o,!l.raw).replace(R,"");case 81:return function(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return Wi(e,t,0)}(e,o).replace(R,"");case 4108:return function(e){for(var t=e.read_shift(4),n=[],i=0;i<t/2;++i)n.push(Gi(e));return n}(e);case 4126:case 4127:return 4127==o?function(e){for(var t=e.read_shift(4),n=[],i=0;i!=t;++i){var r=e.l;n[i]=e.read_shift(0,"lpwstr").replace(R,""),e.l-r&2&&(e.l+=2)}return n}(e):function(e){for(var t=e.read_shift(4),n=[],i=0;i!=t;++i)n[i]=e.read_shift(0,"lpstr-cp").replace(R,"");return n}(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+o)}}function Zi(e,t){var n=cr(4),p=cr(4);switch(n.write_shift(4,80==e?31:e),e){case 3:p.write_shift(-4,t);break;case 5:(p=cr(8)).write_shift(8,t,"f");break;case 11:p.write_shift(4,t?1:0);break;case 64:p=function(time){var e=("string"==typeof time?new Date(Date.parse(time)):time).getTime()/1e3+11644473600,t=e%Math.pow(2,32),n=(e-t)/Math.pow(2,32);n*=1e7;var r=(t*=1e7)/Math.pow(2,32)|0;r>0&&(t%=Math.pow(2,32),n+=r);var o=cr(8);return o.write_shift(4,t),o.write_shift(4,n),o}(t);break;case 31:case 80:for((p=cr(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),p.write_shift(0,t,"dbcs");p.l!=p.length;)p.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return j([n,p])}function Ji(e,t){var n=e.l,r=e.read_shift(4),o=e.read_shift(4),l=[],i=0,c=0,h=-1,f={};for(i=0;i!=o;++i){var v=e.read_shift(4),m=e.read_shift(4);l[i]=[v,m+n]}l.sort((function(e,t){return e[1]-t[1]}));var y={};for(i=0;i!=o;++i){if(e.l!==l[i][1]){var _=!0;if(i>0&&t)switch(t[l[i-1][0]].t){case 2:e.l+2===l[i][1]&&(e.l+=2,_=!1);break;case 80:case 4108:e.l<=l[i][1]&&(e.l=l[i][1],_=!1)}if((!t||0==i)&&e.l<=l[i][1]&&(_=!1,e.l=l[i][1]),_)throw new Error("Read Error: Expected address "+l[i][1]+" at "+e.l+" :"+i)}if(t){var x=t[l[i][0]];if(y[x.n]=Xi(e,x.t,{raw:!0}),"version"===x.p&&(y[x.n]=String(y[x.n]>>16)+"."+("0000"+String(65535&y[x.n])).slice(-4)),"CodePage"==x.n)switch(y[x.n]){case 0:y[x.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:d(c=y[x.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+y[x.n])}}else if(1===l[i][0]){if(c=y.CodePage=Xi(e,2),d(c),-1!==h){var w=e.l;e.l=l[h][1],f=Yi(e,c),e.l=w}}else if(0===l[i][0]){if(0===c){h=i,e.l=l[i+1][1];continue}f=Yi(e,c)}else{var S,k=f[l[i][0]];switch(e[e.l]){case 65:e.l+=4,S=Ki(e);break;case 30:case 31:e.l+=4,S=Ui(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,S=e.read_shift(4,"i");break;case 19:e.l+=4,S=e.read_shift(4);break;case 5:e.l+=4,S=e.read_shift(8,"f");break;case 11:e.l+=4,S=oo(e,4);break;case 64:e.l+=4,S=tt(Vi(e));break;default:throw new Error("unparsed value: "+e[e.l])}y[k]=S}}return e.l=n+r,y}var Qi=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function eo(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64}return-1}function to(e,t,n){var r=cr(8),o=[],l=[],c=8,i=0,h=cr(8),f=cr(8);if(h.write_shift(4,2),h.write_shift(4,1200),f.write_shift(4,1),l.push(h),o.push(f),c+=8+h.length,!t){(f=cr(8)).write_shift(4,0),o.unshift(f);var d=[cr(4)];for(d[0].write_shift(4,e.length),i=0;i<e.length;++i){var v=e[i][0];for((h=cr(8+2*(v.length+1)+(v.length%2?0:2))).write_shift(4,i+2),h.write_shift(4,v.length+1),h.write_shift(0,v,"dbcs");h.l!=h.length;)h.write_shift(1,0);d.push(h)}h=j(d),l.unshift(h),c+=8+h.length}for(i=0;i<e.length;++i)if((!t||t[e[i][0]])&&!(Qi.indexOf(e[i][0])>-1||Ni.indexOf(e[i][0])>-1)&&null!=e[i][1]){var m=e[i][1],y=0;if(t){var _=n[y=+t[e[i][0]]];if("version"==_.p&&"string"==typeof m){var x=m.split(".");m=(+x[0]<<16)+(+x[1]||0)}h=Zi(_.t,m)}else{var w=eo(m);-1==w&&(w=31,m=String(m)),h=Zi(w,m)}l.push(h),(f=cr(8)).write_shift(4,t?y:2+i),o.push(f),c+=8+h.length}var S=8*(l.length+1);for(i=0;i<l.length;++i)o[i].write_shift(4,S),S+=l[i].length;return r.write_shift(4,c),r.write_shift(4,l.length),j([r].concat(o).concat(l))}function no(e,t,n){var r=e.content;if(!r)return{};lr(r,0);var o,l,c,h,f=0;r.chk("feff","Byte Order: "),r.read_shift(2);var d=r.read_shift(4),v=r.read_shift(16);if(v!==je.utils.consts.HEADER_CLSID&&v!==n)throw new Error("Bad PropertySet CLSID "+v);if(1!==(o=r.read_shift(4))&&2!==o)throw new Error("Unrecognized #Sets: "+o);if(l=r.read_shift(16),h=r.read_shift(4),1===o&&h!==r.l)throw new Error("Length mismatch: "+h+" !== "+r.l);2===o&&(c=r.read_shift(16),f=r.read_shift(4));var m,y=Ji(r,t),_={SystemIdentifier:d};for(var x in y)_[x]=y[x];if(_.FMTID=l,1===o)return _;if(f-r.l==2&&(r.l+=2),r.l!==f)throw new Error("Length mismatch 2: "+r.l+" !== "+f);try{m=Ji(r,null)}catch(e){}for(x in m)_[x]=m[x];return _.FMTID=[l,c],_}function ro(e,t,n,r,o,l){var c=cr(o?68:48),h=[c];c.write_shift(2,65534),c.write_shift(2,0),c.write_shift(4,842412599),c.write_shift(16,je.utils.consts.HEADER_CLSID,"hex"),c.write_shift(4,o?2:1),c.write_shift(16,t,"hex"),c.write_shift(4,o?68:48);var f=to(e,n,r);if(h.push(f),o){var d=to(o,null,null);c.write_shift(16,l,"hex"),c.write_shift(4,68+f.length),h.push(d)}return j(h)}function io(e,t){return e.read_shift(t),null}function oo(e,t){return 1===e.read_shift(t)}function ao(e,t){return t||(t=cr(2)),t.write_shift(2,+!!e),t}function so(e){return e.read_shift(2,"u")}function lo(e,t){return t||(t=cr(2)),t.write_shift(2,e),t}function uo(e,t){return function(e,t,n){for(var r=[],o=e.l+t;e.l<o;)r.push(n(e,o-e.l));if(o!==e.l)throw new Error("Slurp error");return r}(e,t,so)}function co(e,t,n){return n||(n=cr(2)),n.write_shift(1,"e"==t?+e:+!!e),n.write_shift(1,"e"==t?1:0),n}function ho(e,t,n){var r=e.read_shift(n&&n.biff>=12?2:1),l="sbcs-cont",c=o;(n&&n.biff>=8&&(o=1200),n&&8!=n.biff)?12==n.biff&&(l="wstr"):e.read_shift(1)&&(l="dbcs-cont");n.biff>=2&&n.biff<=5&&(l="cpstr");var h=r?e.read_shift(r,l):"";return o=c,h}function fo(e){var t=o;o=1200;var n,r=e.read_shift(2),l=e.read_shift(1),c=4&l,h=8&l,f=1+(1&l),d=0,v={};h&&(d=e.read_shift(2)),c&&(n=e.read_shift(4));var m=2==f?"dbcs-cont":"sbcs-cont",y=0===r?"":e.read_shift(r,m);return h&&(e.l+=4*d),c&&(e.l+=n),v.t=y,h||(v.raw="<t>"+v.t+"</t>",v.r=v.t),o=t,v}function po(e){var t=e.t||"",n=cr(3);n.write_shift(2,t.length),n.write_shift(1,1);var r=cr(2*t.length);return r.write_shift(2*t.length,t,"utf16le"),j([n,r])}function go(e,t,n){if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}function vo(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):go(e,r,n)}function mo(e,t,n){if(n.biff>5)return vo(e,0,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function yo(e,t,n){return n||(n=cr(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function bo(e,t){var n=e.read_shift(16);switch(16,n){case"e0c9ea79f9bace118c8200aa004ba90b":return function(e){var t=e.read_shift(4),n=e.l,r=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(r=!0),e.l=n);var o=e.read_shift((r?t-24:t)>>1,"utf16le").replace(R,"");return r&&(e.l+=24),o}(e);case"0303000000000000c000000000000046":return function(e){for(var t=e.read_shift(2),n="";t-- >0;)n+="../";var r=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");if(0===e.read_shift(4))return n+r.replace(/\\/g,"/");var o=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");return n+e.read_shift(o>>1,"utf16le").replace(R,"")}(e);default:throw new Error("Unsupported Moniker "+n)}}function _o(e){var t=e.read_shift(4);return t>0?e.read_shift(t,"utf16le").replace(R,""):""}function xo(e,t){t||(t=cr(6+2*e.length)),t.write_shift(4,1+e.length);for(var i=0;i<e.length;++i)t.write_shift(2,e.charCodeAt(i));return t.write_shift(2,0),t}function wo(e){var t=cr(512),i=0,n=e.Target;"file://"==n.slice(0,7)&&(n=n.slice(7));var r=n.indexOf("#"),o=r>-1?31:23;switch(n.charAt(0)){case"#":o=28;break;case".":o&=-3}t.write_shift(4,2),t.write_shift(4,o);var data=[8,6815827,6619237,4849780,83];for(i=0;i<data.length;++i)t.write_shift(4,data[i]);if(28==o)xo(n=n.slice(1),t);else if(2&o){for(data="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<data.length;++i)t.write_shift(1,parseInt(data[i],16));var l=r>-1?n.slice(0,r):n;for(t.write_shift(4,2*(l.length+1)),i=0;i<l.length;++i)t.write_shift(2,l.charCodeAt(i));t.write_shift(2,0),8&o&&xo(r>-1?n.slice(r+1):"",t)}else{for(data="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),i=0;i<data.length;++i)t.write_shift(1,parseInt(data[i],16));for(var c=0;"../"==n.slice(3*c,3*c+3)||"..\\"==n.slice(3*c,3*c+3);)++c;for(t.write_shift(2,c),t.write_shift(4,n.length-3*c+1),i=0;i<n.length-3*c;++i)t.write_shift(1,255&n.charCodeAt(i+3*c));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),i=0;i<6;++i)t.write_shift(4,0)}return t.slice(0,t.l)}function So(e){return[e.read_shift(1),e.read_shift(1),e.read_shift(1),e.read_shift(1)]}function ko(e,t){var n=So(e);return n[3]=0,n}function Oo(e){return{r:e.read_shift(2),c:e.read_shift(2),ixfe:e.read_shift(2)}}function Co(e,t,n,r){return r||(r=cr(6)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n||0),r}function To(e,t,n){var r=n.biff>8?4:2;return[e.read_shift(r),e.read_shift(r,"i"),e.read_shift(r,"i")]}function Eo(e){return[e.read_shift(2),Jr(e)]}function Ao(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:n}}}function Mo(e,t){return t||(t=cr(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Io(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(1),r:t},e:{c:e.read_shift(1),r:n}}}var Do=Io;function Po(e){e.l+=4;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return e.l+=12,[n,t,r]}function No(e){e.l+=2,e.l+=e.read_shift(2)}var Lo={0:No,4:No,5:No,6:No,7:function(e){return e.l+=4,e.cf=e.read_shift(2),{}},8:No,9:No,10:No,11:No,12:No,13:function(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t},14:No,15:No,16:No,17:No,18:No,19:No,20:No,21:Po};function jo(e,t){var n={BIFFVer:0,dt:0};switch(n.BIFFVer=e.read_shift(2),(t-=2)>=2&&(n.dt=e.read_shift(2),e.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return e.read_shift(t),n}function Ro(e,t,n){var r=1536,o=16;switch(n.bookType){case"biff8":case"xla":break;case"biff5":r=1280,o=8;break;case"biff4":r=4,o=6;break;case"biff3":r=3,o=6;break;case"biff2":r=2,o=4;break;default:throw new Error("unsupported BIFF version")}var l=cr(o);return l.write_shift(2,r),l.write_shift(2,t),o>4&&l.write_shift(2,29282),o>6&&l.write_shift(2,1997),o>8&&(l.write_shift(2,49161),l.write_shift(2,1),l.write_shift(2,1798),l.write_shift(2,0)),l}function Fo(data,e){var t=!e||e.biff>=8?2:1,n=cr(8+t*data.name.length);n.write_shift(4,data.pos),n.write_shift(1,data.hs||0),n.write_shift(1,data.dt),n.write_shift(1,data.name.length),e.biff>=8&&n.write_shift(1,1),n.write_shift(t*data.name.length,data.name,e.biff<8?"sbcs":"utf16le");var r=n.slice(0,n.l);return r.l=n.l,r}function Bo(e,t,n){var r=0;n&&2==n.biff||(r=e.read_shift(2));var o=e.read_shift(2);return n&&2==n.biff&&(r=1-(o>>15),o&=32767),[{Unsynced:1&r,DyZero:(2&r)>>1,ExAsc:(4&r)>>2,ExDsc:(8&r)>>3},o]}function zo(i,e,t,n){var r=t&&5==t.biff;n||(n=cr(r?3+e.length:5+2*e.length)),n.write_shift(2,i),n.write_shift(r?1:2,e.length),r||n.write_shift(1,1),n.write_shift((r?1:2)*e.length,e,r?"sbcs":"utf16le");var o=n.length>n.l?n.slice(0,n.l):n;return null==o.l&&(o.l=o.length),o}var $o=mo;function Vo(e,t,n){var r=e.l+t,o=8!=n.biff&&n.biff?2:4,l=e.read_shift(o),c=e.read_shift(o),h=e.read_shift(2),f=e.read_shift(2);return e.l=r,{s:{r:l,c:h},e:{r:c,c:f}}}function Ho(data,e,t,n){var r=t&&5==t.biff;n||(n=cr(r?16:20)),n.write_shift(2,0),data.style?(n.write_shift(2,data.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,data.numFmtId||0),n.write_shift(2,e<<4));var o=0;return data.numFmtId>0&&r&&(o|=1024),n.write_shift(4,o),n.write_shift(4,0),r||n.write_shift(4,0),n.write_shift(2,0),n}function qo(e,t,n){var r=Oo(e);2!=n.biff&&9!=t||++e.l;var o=function(e){var t=e.read_shift(1);return 1===e.read_shift(1)?t:1===t}(e);return r.val=o,r.t=!0===o||!1===o?"b":"e",r}var Wo=function(e,t,n){return 0===t?"":mo(e,0,n)};function Uo(e,t,n){var body,r=e.read_shift(2),o={fBuiltIn:1&r,fWantAdvise:r>>>1&1,fWantPict:r>>>2&1,fOle:r>>>3&1,fOleLink:r>>>4&1,cf:r>>>5&1023,fIcon:r>>>15&1};return 14849===n.sbcch&&(body=function(e,t,n){e.l+=4,t-=4;var r=e.l+t,o=ho(e,0,n),l=e.read_shift(2);if(l!==(r-=e.l))throw new Error("Malformed AddinUdf: padding = "+r+" != "+l);return e.l+=l,o}(e,t-2,n)),o.body=body||e.read_shift(t-2),"string"==typeof body&&(o.Name=body),o}var Go=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Yo(e,t,n){var r=e.l+t,o=e.read_shift(2),l=e.read_shift(1),c=e.read_shift(1),h=e.read_shift(n&&2==n.biff?1:2),f=0;(!n||n.biff>=5)&&(5!=n.biff&&(e.l+=2),f=e.read_shift(2),5==n.biff&&(e.l+=2),e.l+=4);var d=go(e,c,n);32&o&&(d=Go[d.charCodeAt(0)]);var v=r-e.l;n&&2==n.biff&&--v;var m=r!=e.l&&0!==h&&v>0?function(e,t,n,r){var o,l=e.l+t,c=ll(e,r,n);l!==e.l&&(o=sl(e,l-e.l,c,n));return[c,o]}(e,v,n,h):[];return{chKey:l,Name:d,itab:f,rgce:m}}function Ko(e,t,n){if(n.biff<8)return function(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=ho(e,0,n);return 3==r.charCodeAt(0)?r.slice(1):r}(e,0,n);for(var r=[],o=e.l+t,l=e.read_shift(n.biff>8?4:2);0!=l--;)r.push(To(e,n.biff,n));if(e.l!=o)throw new Error("Bad ExternSheet: "+e.l+" != "+o);return r}function Xo(e,t,n){var r=Do(e,6);switch(n.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[r,vl(e,t,n)]}var Zo={8:function(e,t){var n=e.l+t;e.l+=10;var r=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var o=e.read_shift(1);return e.l+=o,e.l=n,{fmt:r}}};function Jo(e){var t=cr(24),n=kr(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(r[i],16));return j([t,wo(e[1])])}function Qo(e){var t=e[1].Tooltip,n=cr(10+2*(t.length+1));n.write_shift(2,2048);var r=kr(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var i=0;i<t.length;++i)n.write_shift(2,t.charCodeAt(i));return n.write_shift(2,0),n}function ea(e,t,n){if(!n.cellStyles)return ur(e,t);var r=n&&n.biff>=12?4:2,o=e.read_shift(r),l=e.read_shift(r),c=e.read_shift(r),h=e.read_shift(r),f=e.read_shift(2);2==r&&(e.l+=2);var d={s:o,e:l,w:c,ixfe:h,flags:f};return(n.biff>=5||!n.biff)&&(d.level=f>>8&7),d}var ta=Oo,na=uo,ra=vo;var ia=[2,3,48,49,131,139,140,245],oa=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=He({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=n||{};r.dateNF||(r.dateNF="yyyymmdd");var o=Pr(function(t,n){var r=[],o=M(1);switch(n.type){case"base64":o=D(T(t));break;case"binary":o=D(t);break;case"buffer":case"array":o=t}lr(o,0);var l=o.read_shift(1),c=!!(136&l),h=!1,f=!1;switch(l){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:h=!0,c=!0;break;case 140:f=!0;break;default:throw new Error("DBF Unsupported Version: "+l.toString(16))}var d=0,v=521;2==l&&(d=o.read_shift(2)),o.l+=3,2!=l&&(d=o.read_shift(4)),d>1048576&&(d=1e6),2!=l&&(v=o.read_shift(2));var m=o.read_shift(2),y=n.codepage||1252;2!=l&&(o.l+=16,o.read_shift(1),0!==o[o.l]&&(y=e[o[o.l]]),o.l+=1,o.l+=2),f&&(o.l+=36);for(var x=[],w={},S=Math.min(o.length,2==l?521:v-10-(h?264:0)),k=f?32:11;o.l<S&&13!=o[o.l];)switch((w={}).name=_.utils.decode(y,o.slice(o.l,o.l+k)).replace(/[\u0000\r\n].*$/g,""),o.l+=k,w.type=String.fromCharCode(o.read_shift(1)),2==l||f||(w.offset=o.read_shift(4)),w.len=o.read_shift(1),2==l&&(w.offset=o.read_shift(2)),w.dec=o.read_shift(1),w.name.length&&x.push(w),2!=l&&(o.l+=f?13:14),w.type){case"B":h&&8==w.len||!n.WTF||console.log("Skipping "+w.name+":"+w.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+w.name+":"+w.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+w.type)}if(13!==o[o.l]&&(o.l=v-1),13!==o.read_shift(1))throw new Error("DBF Terminator not found "+o.l+" "+o[o.l]);o.l=v;var O=0,C=0;for(r[0]=[],C=0;C!=x.length;++C)r[0][C]=x[C].name;for(;d-- >0;)if(42!==o[o.l])for(++o.l,r[++O]=[],C=0,C=0;C!=x.length;++C){var dd=o.slice(o.l,o.l+x[C].len);o.l+=x[C].len,lr(dd,0);var s=_.utils.decode(y,dd);switch(x[C].type){case"C":s.trim().length&&(r[O][C]=s.replace(/\s+$/,""));break;case"D":8===s.length?r[O][C]=new Date(+s.slice(0,4),+s.slice(4,6)-1,+s.slice(6,8)):r[O][C]=s;break;case"F":r[O][C]=parseFloat(s.trim());break;case"+":case"I":r[O][C]=f?2147483648^dd.read_shift(-4,"i"):dd.read_shift(4,"i");break;case"L":switch(s.trim().toUpperCase()){case"Y":case"T":r[O][C]=!0;break;case"N":case"F":r[O][C]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+s+"|")}break;case"M":if(!c)throw new Error("DBF Unexpected MEMO for type "+l.toString(16));r[O][C]="##MEMO##"+(f?parseInt(s.trim(),10):dd.read_shift(4));break;case"N":(s=s.replace(/\u0000/g,"").trim())&&"."!=s&&(r[O][C]=+s||0);break;case"@":r[O][C]=new Date(dd.read_shift(-8,"f")-621356832e5);break;case"T":r[O][C]=new Date(864e5*(dd.read_shift(4)-2440588)+dd.read_shift(4));break;case"Y":r[O][C]=dd.read_shift(4,"i")/1e4+dd.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[O][C]=-dd.read_shift(-8,"f");break;case"B":if(h&&8==x[C].len){r[O][C]=dd.read_shift(8,"f");break}case"G":case"P":dd.l+=x[C].len;break;case"0":if("_NullFlags"===x[C].name)break;default:throw new Error("DBF Unsupported data type "+x[C].type)}}else o.l+=m;if(2!=l&&o.l<o.length&&26!=o[o.l++])throw new Error("DBF EOF Marker missing "+(o.l-1)+" of "+o.length+" "+o[o.l-1].toString(16));return n&&n.sheetRows&&(r=r.slice(0,n.sheetRows)),n.DBF=x,r}(t,r),r);return o["!cols"]=r.DBF.map((function(e){return{wch:e.len,DBF:e}})),delete r.DBF,o}var r={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{return Ir(n(e,t),t)}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(e,n){var o=n||{};if(+o.codepage>=0&&d(+o.codepage),"string"==o.type)throw new Error("Cannot write DBF to JS string");var c=dr(),h=Gh(e,{header:1,raw:!0,cellDates:!0}),f=h[0],data=h.slice(1),v=e["!cols"]||[],i=0,m=0,y=0,_=1;for(i=0;i<f.length;++i)if(((v[i]||{}).DBF||{}).name)f[i]=v[i].DBF.name,++y;else if(null!=f[i]){if(++y,"number"==typeof f[i]&&(f[i]=f[i].toString(10)),"string"!=typeof f[i])throw new Error("DBF Invalid column name "+f[i]+" |"+typeof f[i]+"|");if(f.indexOf(f[i])!==i)for(m=0;m<1024;++m)if(-1==f.indexOf(f[i]+"_"+m)){f[i]+="_"+m;break}}var x=Er(e["!ref"]),w=[],S=[],k=[];for(i=0;i<=x.e.c-x.s.c;++i){var O="",C="",T=0,col=[];for(m=0;m<data.length;++m)null!=data[m][i]&&col.push(data[m][i]);if(0!=col.length&&null!=f[i]){for(m=0;m<col.length;++m){switch(typeof col[m]){case"number":C="B";break;case"string":default:C="C";break;case"boolean":C="L";break;case"object":C=col[m]instanceof Date?"D":"C"}T=Math.max(T,String(col[m]).length),O=O&&O!=C?"C":C}T>250&&(T=250),"C"==(C=((v[i]||{}).DBF||{}).type)&&v[i].DBF.len>T&&(T=v[i].DBF.len),"B"==O&&"N"==C&&(O="N",k[i]=v[i].DBF.dec,T=v[i].DBF.len),S[i]="C"==O||"N"==C?T:r[O]||0,_+=S[i],w[i]=O}else w[i]="?"}var E=c.next(32);for(E.write_shift(4,318902576),E.write_shift(4,data.length),E.write_shift(2,296+32*y),E.write_shift(2,_),i=0;i<4;++i)E.write_shift(4,0);for(E.write_shift(4,0|(+t[l]||3)<<8),i=0,m=0;i<f.length;++i)if(null!=f[i]){var A=c.next(32),M=(f[i].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);A.write_shift(1,M,"sbcs"),A.write_shift(1,"?"==w[i]?"C":w[i],"sbcs"),A.write_shift(4,m),A.write_shift(1,S[i]||r[w[i]]||0),A.write_shift(1,k[i]||0),A.write_shift(1,2),A.write_shift(4,0),A.write_shift(1,0),A.write_shift(4,0),A.write_shift(4,0),m+=S[i]||r[w[i]]||0}var I=c.next(264);for(I.write_shift(4,13),i=0;i<65;++i)I.write_shift(4,0);for(i=0;i<data.length;++i){var D=c.next(_);for(D.write_shift(1,0),m=0;m<f.length;++m)if(null!=f[m])switch(w[m]){case"L":D.write_shift(1,null==data[i][m]?63:data[i][m]?84:70);break;case"B":D.write_shift(8,data[i][m]||0,"f");break;case"N":var P="0";for("number"==typeof data[i][m]&&(P=data[i][m].toFixed(k[m]||0)),y=0;y<S[m]-P.length;++y)D.write_shift(1,32);D.write_shift(1,P,"sbcs");break;case"D":data[i][m]?(D.write_shift(4,("0000"+data[i][m].getFullYear()).slice(-4),"sbcs"),D.write_shift(2,("00"+(data[i][m].getMonth()+1)).slice(-2),"sbcs"),D.write_shift(2,("00"+data[i][m].getDate()).slice(-2),"sbcs")):D.write_shift(8,"00000000","sbcs");break;case"C":var N=String(null!=data[i][m]?data[i][m]:"").slice(0,S[m]);for(D.write_shift(1,N,"sbcs"),y=0;y<S[m]-N.length;++y)D.write_shift(1,32)}}return c.next(1).write_shift(1,26),c.end()}}}(),aa=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("N("+$e(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var r=e[n];return"number"==typeof r?S(r):r},r=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:S(r)};function o(e,o){var l,c=e.split(/[\n\r]+/),h=-1,f=-1,v=0,m=0,y=[],x=[],w=null,S={},k=[],O=[],C=[],T=0;for(+o.codepage>=0&&d(+o.codepage);v!==c.length;++v){T=0;var E,A=c[v].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(t,n),M=A.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),I=M[0];if(A.length>0)switch(I){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==M[1].charAt(0)&&x.push(A.slice(3).replace(/;;/g,";"));break;case"C":var D=!1,P=!1,N=!1,L=!1,j=-1,R=-1;for(m=1;m<M.length;++m)switch(M[m].charAt(0)){case"A":case"G":break;case"X":f=parseInt(M[m].slice(1))-1,P=!0;break;case"Y":for(h=parseInt(M[m].slice(1))-1,P||(f=0),l=y.length;l<=h;++l)y[l]=[];break;case"K":'"'===(E=M[m].slice(1)).charAt(0)?E=E.slice(1,E.length-1):"TRUE"===E?E=!0:"FALSE"===E?E=!1:isNaN(at(E))?isNaN(lt(E).getDate())||(E=tt(E)):(E=at(E),null!==w&&ke(w)&&(E=Xe(E))),void 0!==_&&"string"==typeof E&&"string"!=(o||{}).type&&(o||{}).codepage&&(E=_.utils.decode(o.codepage,E)),D=!0;break;case"E":L=!0;var F=Ls(M[m].slice(1),{r:h,c:f});y[h][f]=[y[h][f],F];break;case"S":N=!0,y[h][f]=[y[h][f],"S5S"];break;case"R":j=parseInt(M[m].slice(1))-1;break;case"C":R=parseInt(M[m].slice(1))-1;break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+A)}if(D&&(y[h][f]&&2==y[h][f].length?y[h][f][0]=E:y[h][f]=E,w=null),N){if(L)throw new Error("SYLK shared formula cannot have own formula");var B=j>-1&&y[j][R];if(!B||!B[1])throw new Error("SYLK shared formula cannot find base");y[h][f][1]=Fs(B[1],{r:h-j,c:f-R})}break;case"F":var z=0;for(m=1;m<M.length;++m)switch(M[m].charAt(0)){case"X":f=parseInt(M[m].slice(1))-1,++z;break;case"Y":for(h=parseInt(M[m].slice(1))-1,l=y.length;l<=h;++l)y[l]=[];break;case"M":T=parseInt(M[m].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":w=x[parseInt(M[m].slice(1))];break;case"W":for(C=M[m].slice(1).split(" "),l=parseInt(C[0],10);l<=parseInt(C[1],10);++l)T=parseInt(C[2],10),O[l-1]=0===T?{hidden:!0}:{wch:T},Ua(O[l-1]);break;case"C":O[f=parseInt(M[m].slice(1))-1]||(O[f]={});break;case"R":k[h=parseInt(M[m].slice(1))-1]||(k[h]={}),T>0?(k[h].hpt=T,k[h].hpx=Ya(T)):0===T&&(k[h].hidden=!0);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+A)}z<1&&(w=null);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+A)}}return k.length>0&&(S["!rows"]=k),O.length>0&&(S["!cols"]=O),o&&o.sheetRows&&(y=y.slice(0,o.sheetRows)),[y,S]}function l(e,t){var n=function(e,t){switch(t.type){case"base64":return o(T(e),t);case"binary":return o(e,t);case"buffer":return o(E&&Buffer.isBuffer(e)?e.toString("binary"):N(e),t);case"array":return o(nt(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),r=n[0],l=n[1],c=Pr(r,t);return $e(l).forEach((function(e){c[e]=l[e]})),c}function c(e,t,n,r){var o="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":o+=e.v||0,e.f&&!e.F&&(o+=";E"+Rs(e.f,{r:n,c:r}));break;case"b":o+=e.v?"TRUE":"FALSE";break;case"e":o+=e.w||e.v;break;case"d":o+='"'+(e.w||e.v)+'"';break;case"s":o+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return o}return e["|"]=254,{to_workbook:function(e,t){return Ir(l(e,t),t)},to_sheet:l,from_sheet:function(e,t){var n,r,o=["ID;PWXL;N;E"],l=[],h=Er(e["!ref"]),f=Array.isArray(e),d="\r\n";o.push("P;PGeneral"),o.push("F;P0;DG0G8;M255"),e["!cols"]&&(r=o,e["!cols"].forEach((function(col,i){var e="F;W"+(i+1)+" "+(i+1)+" ";col.hidden?e+="0":("number"!=typeof col.width||col.wpx||(col.wpx=$a(col.width)),"number"!=typeof col.wpx||col.wch||(col.wch=Va(col.wpx)),"number"==typeof col.wch&&(e+=Math.round(col.wch)))," "!=e.charAt(e.length-1)&&r.push(e)}))),e["!rows"]&&function(e,t){t.forEach((function(t,i){var n="F;";t.hidden?n+="M0;":t.hpt?n+="M"+20*t.hpt+";":t.hpx&&(n+="M"+20*Ga(t.hpx)+";"),n.length>2&&e.push(n+"R"+(i+1))}))}(o,e["!rows"]),o.push("B;Y"+(h.e.r-h.s.r+1)+";X"+(h.e.c-h.s.c+1)+";D"+[h.s.c,h.s.r,h.e.c,h.e.r].join(" "));for(var v=h.s.r;v<=h.e.r;++v)for(var m=h.s.c;m<=h.e.c;++m){var y=Or({r:v,c:m});(n=f?(e[v]||[])[m]:e[y])&&(null!=n.v||n.f&&!n.F)&&l.push(c(n,0,v,m))}return o.join(d)+d+l.join(d)+d+"E"+d}}}(),sa=function(){function e(e,t){for(var n=e.split("\n"),r=-1,o=-1,l=0,c=[];l!==n.length;++l)if("BOT"!==n[l].trim()){if(!(r<0)){for(var h=n[l].trim().split(","),f=h[0],d=h[1],data=n[++l]||"";1&(data.match(/["]/g)||[]).length&&l<n.length-1;)data+="\n"+n[++l];switch(data=data.trim(),+f){case-1:if("BOT"===data){c[++r]=[],o=0;continue}if("EOD"!==data)throw new Error("Unrecognized DIF special command "+data);break;case 0:"TRUE"===data?c[r][o]=!0:"FALSE"===data?c[r][o]=!1:isNaN(at(d))?isNaN(lt(d).getDate())?c[r][o]=d:c[r][o]=tt(d):c[r][o]=at(d),++o;break;case 1:(data=(data=data.slice(1,data.length-1)).replace(/""/g,'"'))&&data.match(/^=".*"$/)&&(data=data.slice(2,-1)),c[r][o++]=""!==data?data:null}if("EOD"===data)break}}else c[++r]=[],o=0;return t&&t.sheetRows&&(c=c.slice(0,t.sheetRows)),c}function t(t,n){return Pr(function(t,n){switch(n.type){case"base64":return e(T(t),n);case"binary":return e(t,n);case"buffer":return e(E&&Buffer.isBuffer(t)?t.toString("binary"):N(t),n);case"array":return e(nt(t),n)}throw new Error("Unrecognized type "+n.type)}(t,n),n)}return{to_workbook:function(e,n){return Ir(t(e,n),n)},to_sheet:t,from_sheet:function(){var e=function(e,t,n,r,s){e.push(t),e.push(n+","+r),e.push('"'+s.replace(/"/g,'""')+'"')},t=function(e,t,n,s){e.push(t+","+n),e.push(1==t?'"'+s.replace(/"/g,'""')+'"':s)};return function(n){var r,o=[],l=Er(n["!ref"]),c=Array.isArray(n);e(o,"TABLE",0,1,"sheetjs"),e(o,"VECTORS",0,l.e.r-l.s.r+1,""),e(o,"TUPLES",0,l.e.c-l.s.c+1,""),e(o,"DATA",0,0,"");for(var h=l.s.r;h<=l.e.r;++h){t(o,-1,0,"BOT");for(var f=l.s.c;f<=l.e.c;++f){var d=Or({r:h,c:f});if(r=c?(n[h]||[])[f]:n[d])switch(r.t){case"n":var v=r.w;v||null==r.v||(v=r.v),null==v?r.f&&!r.F?t(o,1,0,"="+r.f):t(o,1,0,""):t(o,0,v,"V");break;case"b":t(o,0,r.v?1:0,r.v?"TRUE":"FALSE");break;case"s":t(o,1,0,isNaN(r.v)?r.v:'="'+r.v+'"');break;case"d":r.w||(r.w=Ee(r.z||X[14],Ue(tt(r.v)))),t(o,0,r.w,"V");break;default:t(o,1,0,"")}else t(o,1,0,"")}}t(o,-1,0,"EOD");return o.join("\r\n")}}()}}(),la=function(){function e(s){return s.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(e,t){return Pr(function(e,t){for(var n=e.split("\n"),r=-1,o=-1,l=0,c=[];l!==n.length;++l){var h=n[l].trim().split(":");if("cell"===h[0]){var f=kr(h[1]);if(c.length<=f.r)for(r=c.length;r<=f.r;++r)c[r]||(c[r]=[]);switch(r=f.r,o=f.c,h[2]){case"t":c[r][o]=h[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n");break;case"v":c[r][o]=+h[3];break;case"vtf":var d=h[h.length-1];case"vtc":"nl"===h[3]?c[r][o]=!!+h[4]:c[r][o]=+h[4],"vtf"==h[2]&&(c[r][o]=[c[r][o],d])}}}return t&&t.sheetRows&&(c=c.slice(0,t.sheetRows)),c}(e,t),t)}var header=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),n=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",meta=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),r="--SocialCalcSpreadsheetControlSave--";function o(t){if(!t||!t["!ref"])return"";for(var n,r=[],o=[],l="",c=Cr(t["!ref"]),h=Array.isArray(t),f=c.s.r;f<=c.e.r;++f)for(var d=c.s.c;d<=c.e.c;++d)if(l=Or({r:f,c:d}),(n=h?(t[f]||[])[d]:t[l])&&null!=n.v&&"z"!==n.t){switch(o=["cell",l,"t"],n.t){case"s":case"str":o.push(e(n.v));break;case"n":n.f?(o[2]="vtf",o[3]="n",o[4]=n.v,o[5]=e(n.f)):(o[2]="v",o[3]=n.v);break;case"b":o[2]="vt"+(n.f?"f":"c"),o[3]="nl",o[4]=n.v?"1":"0",o[5]=e(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var v=Ue(tt(n.v));o[2]="vtc",o[3]="nd",o[4]=""+v,o[5]=n.w||Ee(n.z||X[14],v);break;case"e":continue}r.push(o.join(":"))}return r.push("sheet:c:"+(c.e.c-c.s.c+1)+":r:"+(c.e.r-c.s.r+1)+":tvf:1"),r.push("valueformat:1:text-wiki"),r.join("\n")}return{to_workbook:function(e,n){return Ir(t(e,n),n)},to_sheet:t,from_sheet:function(e){return[header,n,meta,n,o(e),r].join("\n")}}}(),ua=function(){function e(data,e,t,n,r){r.raw?e[t][n]=data:""===data||("TRUE"===data?e[t][n]=!0:"FALSE"===data?e[t][n]=!1:isNaN(at(data))?isNaN(lt(data).getDate())?e[t][n]=data:e[t][n]=tt(data):e[t][n]=at(data))}var t={44:",",9:"\t",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function r(e){for(var r={},o=!1,l=0,c=0;l<e.length;++l)34==(c=e.charCodeAt(l))?o=!o:!o&&c in t&&(r[c]=(r[c]||0)+1);for(l in c=[],r)Object.prototype.hasOwnProperty.call(r,l)&&c.push([r[l],l]);if(!c.length)for(l in r=n)Object.prototype.hasOwnProperty.call(r,l)&&c.push([r[l],l]);return c.sort((function(a,b){return a[0]-b[0]||n[a[1]]-n[b[1]]})),t[c.pop()[1]]||44}function o(e,t){var n=t||{},o="";var l=n.dense?[]:{},c={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(o=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(o=e.charAt(4),e=e.slice(6)):o=r(e.slice(0,1024)):o=n&&n.FS?n.FS:r(e.slice(0,1024));var h=0,f=0,d=0,v=0,m=0,y=o.charCodeAt(0),_=!1,x=0,w=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var S,k,O=null!=n.dateNF?(S=n.dateNF,k=(k="number"==typeof S?X[S]:S).replace(Ne,"(\\d+)"),new RegExp("^"+k+"$")):null;function C(){var s=e.slice(v,m),t={};if('"'==s.charAt(0)&&'"'==s.charAt(s.length-1)&&(s=s.slice(1,-1).replace(/""/g,'"')),0===s.length)t.t="z";else if(n.raw)t.t="s",t.v=s;else if(0===s.trim().length)t.t="s",t.v=s;else if(61==s.charCodeAt(0))34==s.charCodeAt(1)&&34==s.charCodeAt(s.length-1)?(t.t="s",t.v=s.slice(2,-1).replace(/""/g,'"')):1!=s.length?(t.t="n",t.f=s.slice(1)):(t.t="s",t.v=s);else if("TRUE"==s)t.t="b",t.v=!0;else if("FALSE"==s)t.t="b",t.v=!1;else if(isNaN(d=at(s)))if(!isNaN(lt(s).getDate())||O&&s.match(O)){t.z=n.dateNF||X[14];var r=0;O&&s.match(O)&&(s=function(e,t,n){var r=-1,o=-1,l=-1,c=-1,h=-1,f=-1;(t.match(Ne)||[]).forEach((function(e,i){var t=parseInt(n[i+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=t;break;case"d":l=t;break;case"h":c=t;break;case"s":f=t;break;case"m":c>=0?h=t:o=t}})),f>=0&&-1==h&&o>=0&&(h=o,o=-1);var d=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(o>=1?o:1)).slice(-2)+"-"+("00"+(l>=1?l:1)).slice(-2);7==d.length&&(d="0"+d),8==d.length&&(d="20"+d);var v=("00"+(c>=0?c:0)).slice(-2)+":"+("00"+(h>=0?h:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2);return-1==c&&-1==h&&-1==f?d:-1==r&&-1==o&&-1==l?v:d+"T"+v}(0,n.dateNF,s.match(O)||[]),r=1),n.cellDates?(t.t="d",t.v=tt(s,r)):(t.t="n",t.v=Ue(tt(s,r))),!1!==n.cellText&&(t.w=Ee(t.z,t.v instanceof Date?Ue(t.v):t.v)),n.cellNF||delete t.z}else t.t="s",t.v=s;else t.t="n",!1!==n.cellText&&(t.w=s),t.v=d;if("z"==t.t||(n.dense?(l[h]||(l[h]=[]),l[h][f]=t):l[Or({c:f,r:h})]=t),v=m+1,w=e.charCodeAt(v),c.e.c<f&&(c.e.c=f),c.e.r<h&&(c.e.r=h),x==y)++f;else if(f=0,++h,n.sheetRows&&n.sheetRows<=h)return!0}e:for(;m<e.length;++m)switch(x=e.charCodeAt(m)){case 34:34===w&&(_=!_);break;case y:case 10:case 13:if(!_&&C())break e}return m-v>0&&C(),l["!ref"]=Tr(c),l}function l(t,n){return n&&n.PRN?n.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?o(t,n):Pr(function(t,n){var r=n||{},o=[];if(!t||0===t.length)return o;for(var l=t.split(/[\r\n]/),c=l.length-1;c>=0&&0===l[c].length;)--c;for(var h=10,f=0,d=0;d<=c;++d)-1==(f=l[d].indexOf(" "))?f=l[d].length:f++,h=Math.max(h,f);for(d=0;d<=c;++d){o[d]=[];var v=0;for(e(l[d].slice(0,h).trim(),o,d,v,r),v=1;v<=(l[d].length-h)/10+1;++v)e(l[d].slice(h+10*(v-1),h+10*v).trim(),o,d,v,r)}return r.sheetRows&&(o=o.slice(0,r.sheetRows)),o}(t,n),n):o(t,n)}function c(e,t){var n="",r="string"==t.type?[0,0,0,0]:Ih(e,t);switch(t.type){case"base64":n=T(e);break;case"binary":case"string":n=e;break;case"buffer":n=65001==t.codepage?e.toString("utf8"):t.codepage&&void 0!==_?_.utils.decode(t.codepage,e):E&&Buffer.isBuffer(e)?e.toString("binary"):N(e);break;case"array":n=nt(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==r[0]&&187==r[1]&&191==r[2]?n=Ut(n.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?n=Ut(n):"binary"==t.type&&void 0!==_&&t.codepage&&(n=_.utils.decode(t.codepage,_.utils.encode(28591,n))),"socialcalc:version:"==n.slice(0,19)?la.to_sheet("string"==t.type?n:Ut(n),t):l(n,t)}return{to_workbook:function(e,t){return Ir(c(e,t),t)},to_sheet:c,from_sheet:function(e){for(var t,n=[],r=Er(e["!ref"]),o=Array.isArray(e),l=r.s.r;l<=r.e.r;++l){for(var c=[],h=r.s.c;h<=r.e.c;++h){var f=Or({r:l,c:h});if((t=o?(e[l]||[])[h]:e[f])&&null!=t.v){for(var d=(t.w||(Mr(t),t.w)||"").slice(0,10);d.length<10;)d+=" ";c.push(d+(0===h?" ":""))}else c.push(" ")}n.push(c.join(""))}return n.join("\n")}}}();var ca=function(){function e(data,e,t){if(data){lr(data,data.l||0);for(var n=t.Enum||O;data.l<data.length;){var r=data.read_shift(2),o=n[r]||n[65535],l=data.read_shift(2),c=data.l+l,h=o.f&&o.f(data,l,t);if(data.l=c,e(h,o,r))return}}}function t(t,n){if(!t)return t;var r=n||{};var s=r.dense?[]:{},o="Sheet1",l="",c=0,h={},f=[],d=[],v={s:{r:0,c:0},e:{r:0,c:0}},m=r.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=O,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:v=e;break;case 204:e&&(l=e);break;case 222:l=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||X[14],r.cellDates&&(e[1].t="d",e[1].v=Xe(e[1].v))),r.qpro&&e[3]>c&&(s["!ref"]=Tr(v),h[o]=s,f.push(o),s=r.dense?[]:{},v={s:{r:0,c:0},e:{r:0,c:0}},c=e[3],o=l||"Sheet"+(c+1),l="");var d=r.dense?(s[e[0].r]||[])[e[0].c]:s[Or(e[0])];if(d){d.t=e[1].t,d.v=e[1].v,null!=e[1].z&&(d.z=e[1].z),null!=e[1].f&&(d.f=e[1].f);break}r.dense?(s[e[0].r]||(s[e[0].r]=[]),s[e[0].r][e[0].c]=e[1]):s[Or(e[0])]=e[1]}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=C,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:o=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>c&&(s["!ref"]=Tr(v),h[o]=s,f.push(o),s=r.dense?[]:{},v={s:{r:0,c:0},e:{r:0,c:0}},c=e[3],o="Sheet"+(c+1)),m>0&&e[0].r>=m)break;r.dense?(s[e[0].r]||(s[e[0].r]=[]),s[e[0].r][e[0].c]=e[1]):s[Or(e[0])]=e[1],v.e.c<e[0].c&&(v.e.c=e[0].c),v.e.r<e[0].r&&(v.e.r=e[0].r);break;case 27:e[14e3]&&(d[e[14e3][0]]=e[14e3][1]);break;case 1537:d[e[0]]=e[1],e[0]==c&&(o=e[1])}}),r)}if(s["!ref"]=Tr(v),h[l||o]=s,f.push(l||o),!d.length)return{SheetNames:f,Sheets:h};for(var y={},_=[],i=0;i<d.length;++i)h[f[i]]?(_.push(d[i]||f[i]),y[d[i]]=h[d[i]]||h[f[i]]):(_.push(d[i]),y[d[i]]={"!ref":"A1"});return{SheetNames:_,Sheets:y}}function n(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function r(e,t,r){var o=e.l+t,l=n(e,0,r);if(l[1].t="s",20768==r.vers){e.l++;var c=e.read_shift(1);return l[1].v=e.read_shift(c,"utf8"),l}return r.qpro&&e.l++,l[1].v=e.read_shift(o-e.l,"cstr"),l}function o(e,t,s){var n=cr(7+s.length);n.write_shift(1,255),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(1,39);for(var i=0;i<n.length;++i){var r=s.charCodeAt(i);n.write_shift(1,r>=128?95:r)}return n.write_shift(1,0),n}function l(e,t,n){var r=cr(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function c(e,t,n){var r=cr(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function h(e,t,col){var n=32768&t;return t=(n?e:0)+((t&=-32769)>=8192?t-16384:t),(n?"":"$")+(col?Sr(t):xr(t))}var f={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},v=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function m(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function y(e,t,n,s){var r=cr(6+s.length);r.write_shift(2,e),r.write_shift(1,n),r.write_shift(1,t),r.write_shift(1,39);for(var i=0;i<s.length;++i){var o=s.charCodeAt(i);r.write_shift(1,o>=128?95:o)}return r.write_shift(1,0),r}function _(e,t){var n=m(e),r=e.read_shift(4),o=e.read_shift(4),l=e.read_shift(2);if(65535==l)return 0===r&&3221225472===o?(n[1].t="e",n[1].v=15):0===r&&3489660928===o?(n[1].t="e",n[1].v=42):n[1].v=0,n;var s=32768&l;return l=(32767&l)-16446,n[1].v=(1-2*s)*(o*Math.pow(2,l+32)+r*Math.pow(2,l)),n}function x(e,t,n,r){var o=cr(14);if(o.write_shift(2,e),o.write_shift(1,n),o.write_shift(1,t),0==r)return o.write_shift(4,0),o.write_shift(4,0),o.write_shift(2,65535),o;var l,s=0,c=0,h=0;return r<0&&(s=1,r=-r),c=0|Math.log2(r),0==(2147483648&(h=(r/=Math.pow(2,c-31))>>>0))&&(++c,h=(r/=2)>>>0),r-=h,h|=2147483648,h>>>=0,l=(r*=Math.pow(2,32))>>>0,o.write_shift(4,l),o.write_shift(4,h),c+=16383+(s?32768:0),o.write_shift(2,c),o}function w(e,t){var n=m(e),r=e.read_shift(8,"f");return n[1].v=r,n}function S(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function k(e,t){var n=cr(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var i=0;i<e.length;++i){var r=e.charCodeAt(i);n[n.l++]=r>127?95:r}return n[n.l++]=0,n}var O={0:{n:"BOF",f:so},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,r){var o=n(e,0,r);return o[1].v=e.read_shift(2,"i"),o}},14:{n:"NUMBER",f:function(e,t,r){var o=n(e,0,r);return o[1].v=e.read_shift(8,"f"),o}},15:{n:"LABEL",f:r},16:{n:"FORMULA",f:function(e,t,r){var o=e.l+t,l=n(e,0,r);if(l[1].v=e.read_shift(8,"f"),r.qpro)e.l=o;else{var c=e.read_shift(2);!function(e,t){lr(e,0);var n=[],r=0,o="",l="",c="",d="";for(;e.l<e.length;){var m=e[e.l++];switch(m){case 0:n.push(e.read_shift(8,"f"));break;case 1:l=h(t[0].c,e.read_shift(2),!0),o=h(t[0].r,e.read_shift(2),!1),n.push(l+o);break;case 2:var y=h(t[0].c,e.read_shift(2),!0),_=h(t[0].r,e.read_shift(2),!1);l=h(t[0].c,e.read_shift(2),!0),o=h(t[0].r,e.read_shift(2),!1),n.push(y+_+":"+l+o);break;case 3:if(e.l<e.length)return void console.error("WK1 premature formula end");break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(e.read_shift(2));break;case 6:for(var x="";m=e[e.l++];)x+=String.fromCharCode(m);n.push('"'+x.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:d=n.pop(),c=n.pop(),n.push(["AND","OR"][m-20]+"("+c+","+d+")");break;default:if(m<32&&v[m])d=n.pop(),c=n.pop(),n.push(c+v[m]+d);else{if(!f[m])return m<=7?console.error("WK1 invalid opcode "+m.toString(16)):m<=24?console.error("WK1 unsupported op "+m.toString(16)):m<=30?console.error("WK1 invalid opcode "+m.toString(16)):m<=115?console.error("WK1 unsupported function opcode "+m.toString(16)):console.error("WK1 unrecognized opcode "+m.toString(16));if(69==(r=f[m][1])&&(r=e[e.l++]),r>n.length)return void console.error("WK1 bad formula parse 0x"+m.toString(16)+":|"+n.join("|")+"|");var w=n.slice(-r);n.length-=r,n.push(f[m][0]+"("+w.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}(e.slice(e.l,e.l+c),l),e.l+=c}return l}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:r},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:S},222:{n:"SHEETNAMELP",f:function(e,t){var n=e[e.l++];n>t-1&&(n=t-1);for(var r="";r.length<n;)r+=String.fromCharCode(e[e.l++]);return r}},65535:{n:""}},C={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(e,t){var n=m(e);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}},23:{n:"NUMBER17",f:_},24:{n:"NUMBER18",f:function(e,t){var n=m(e);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64}return n[1].v=r,n}},25:{n:"FORMULA19",f:function(e,t){var n=_(e);return e.l+=t-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var n={},r=e.l+t;e.l<r;){var dt=e.read_shift(2);if(14e3==dt){for(n[dt]=[0,""],n[dt][0]=e.read_shift(2);e[e.l];)n[dt][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return n}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(e,t){var n=m(e),r=e.read_shift(4);return n[1].v=r>>6,n}},38:{n:"??"},39:{n:"NUMBER27",f:w},40:{n:"FORMULA28",f:function(e,t){var n=w(e);return e.l+=t-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:S},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,n){if(n.qpro&&!(t<21)){var r=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[r,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var n=t||{};if(+n.codepage>=0&&d(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r,h,f=dr(),v=Er(e["!ref"]),m=Array.isArray(e),y=[];wc(f,0,(r=1030,(h=cr(2)).write_shift(2,r),h)),wc(f,6,function(e){var t=cr(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(v));for(var _=Math.min(v.e.r,8191),x=v.s.r;x<=_;++x)for(var w=xr(x),S=v.s.c;S<=v.e.c;++S){x===v.s.r&&(y[S]=Sr(S));var k=y[S]+w,O=m?(e[x]||[])[S]:e[k];if(O&&"z"!=O.t)if("n"==O.t)(0|O.v)==O.v&&O.v>=-32768&&O.v<=32767?wc(f,13,l(x,S,O.v)):wc(f,14,c(x,S,O.v));else wc(f,15,o(x,S,Mr(O).slice(0,239)))}return wc(f,1),f.end()},book_to_wk3:function(e,t){var n=t||{};if(+n.codepage>=0&&d(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=dr();wc(r,0,function(e){var t=cr(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,r=0,o=0,i=0;i<e.SheetNames.length;++i){var l=e.SheetNames[i],c=e.Sheets[l];if(c&&c["!ref"]){++o;var h=Cr(c["!ref"]);n<h.e.r&&(n=h.e.r),r<h.e.c&&(r=h.e.c)}}n>8191&&(n=8191);return t.write_shift(2,n),t.write_shift(1,o),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var i=0,o=0;i<e.SheetNames.length;++i)(e.Sheets[e.SheetNames[i]]||{})["!ref"]&&wc(r,27,k(e.SheetNames[i],o++));var l=0;for(i=0;i<e.SheetNames.length;++i){var c=e.Sheets[e.SheetNames[i]];if(c&&c["!ref"]){for(var h=Er(c["!ref"]),f=Array.isArray(c),v=[],m=Math.min(h.e.r,8191),_=h.s.r;_<=m;++_)for(var w=xr(_),S=h.s.c;S<=h.e.c;++S){_===h.s.r&&(v[S]=Sr(S));var O=v[S]+w,C=f?(c[_]||[])[S]:c[O];if(C&&"z"!=C.t)if("n"==C.t)wc(r,23,x(_,S,l,C.v));else wc(r,22,y(_,S,l,Mr(C).slice(0,239)))}++l}}return wc(r,1),r.end()},to_workbook:function(e,n){switch(n.type){case"base64":return t(D(T(e)),n);case"binary":return t(D(e),n);case"buffer":case"array":return t(e,n)}throw"Unsupported type "+n.type}}}();var ha=function(){var e=Yt("t"),t=Yt("rPr");function n(n){var r=n.match(e);if(!r)return{t:"s",v:""};var o={t:"s",v:Pt(r[1])},l=n.match(t);return l&&(o.s=function(e){var t={},n=e.match(Ct),i=0,r=!1;if(n)for(;i!=n.length;++i){var o=At(n[i]);switch(o[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!o.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if("1"==o.val)break;t.cp=h[parseInt(o.val,10)];break;case"<outline":if(!o.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=o.val;break;case"<sz":t.sz=o.val;break;case"<strike":if(!o.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!o.val)break;switch(o.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting"}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if("0"==o.val)break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if("0"==o.val)break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":o.rgb&&(t.color=o.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=o.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=o.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":case"<scheme>":case"<scheme/>":case"</scheme>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":r=!0;break;case"</ext>":r=!1;break;default:if(47!==o[0].charCodeAt(1)&&!r)throw new Error("Unrecognized rich format "+o[0])}}return t}(l[1])),o}var r=/<(?:\w+:)?r>/g,o=/<\/(?:\w+:)?r>/;return function(e){return e.replace(r,"").split(o).map(n).filter((function(e){return e.v}))}}(),fa=function(){var e=/(\r\n|\n)/g;function t(t){var n=[[],t.v,[]];return t.v?(t.s&&function(e,t,n){var style=[];e.u&&style.push("text-decoration: underline;"),e.uval&&style.push("text-underline-style:"+e.uval+";"),e.sz&&style.push("font-size:"+e.sz+"pt;"),e.outline&&style.push("text-effect: outline;"),e.shadow&&style.push("text-shadow: auto;"),t.push('<span style="'+style.join("")+'">'),e.b&&(t.push("<b>"),n.push("</b>")),e.i&&(t.push("<i>"),n.push("</i>")),e.strike&&(t.push("<s>"),n.push("</s>"));var r=e.valign||"";"superscript"==r||"super"==r?r="sup":"subscript"==r&&(r="sub"),""!=r&&(t.push("<"+r+">"),n.push("</"+r+">")),n.push("</span>")}(t.s,n[0],n[2]),n[0].join("")+n[1].replace(e,"<br/>")+n[2].join("")):""}return function(e){return e.map(t).join("")}}(),da=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,pa=/<(?:\w+:)?r>/,ga=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function va(e,t){var html=!t||t.cellHTML,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=Pt(Ut(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Ut(e),html&&(n.h=Bt(n.t))):e.match(pa)&&(n.r=Ut(e),n.t=Pt(Ut((e.replace(ga,"").match(da)||[]).join("").replace(Ct,""))),html&&(n.h=fa(ha(n.r)))),n):{t:""}}var ma=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,ya=/<(?:\w+:)?(?:si|sstItem)>/g,ba=/<\/(?:\w+:)?(?:si|sstItem)>/;var _a=/^\s|\s$|[\t\n\r]/;function xa(e,t){if(!t.bookSST)return"";var n=[St];n[n.length]=rn("sst",null,{xmlns:xn[0],count:e.Count,uniqueCount:e.Unique});for(var i=0;i!=e.length;++i)if(null!=e[i]){var s=e[i],r="<si>";s.r?r+=s.r:(r+="<t",s.t||(s.t=""),s.t.match(_a)&&(r+=' xml:space="preserve"'),r+=">"+jt(s.t)+"</t>"),r+="</si>",n[n.length]=r}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}var wa=function(e,t){var n=!1;return null==t&&(n=!0,t=cr(15+4*e.t.length)),t.write_shift(1,0),jr(e.t,t),n?t.slice(0,t.l):t};function Sa(e){var t=dr();pr(t,159,function(e,t){return t||(t=cr(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var i=0;i<e.length;++i)pr(t,19,wa(e[i]));return pr(t,160),t.end()}function ka(e){if(void 0!==_)return _.utils.encode(l,e);for(var t=[],n=e.split(""),i=0;i<n.length;++i)t[i]=n[i].charCodeAt(0);return t}function Oa(e,t){var n={};return n.Major=e.read_shift(2),n.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),n}function Ca(e){for(var t=e.read_shift(4),n=e.l+t-4,r={},o=e.read_shift(4),l=[];o-- >0;)l.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(r.name=e.read_shift(0,"lpp4"),r.comps=l,e.l!=n)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+n);return r}function Ta(e){var t=function(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=Oa(e,4),t.U=Oa(e,4),t.W=Oa(e,4),t}(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function Ea(e,t){var n=e.l+t,r={};r.Flags=63&e.read_shift(4),e.l+=4,r.AlgID=e.read_shift(4);var o=!1;switch(r.AlgID){case 26126:case 26127:case 26128:o=36==r.Flags;break;case 26625:o=4==r.Flags;break;case 0:o=16==r.Flags||4==r.Flags||36==r.Flags;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!o)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=e.read_shift(4),r.KeySize=e.read_shift(4),r.ProviderType=e.read_shift(4),e.l+=8,r.CSPName=e.read_shift(n-e.l>>1,"utf16le"),e.l=n,r}function Aa(e,t){var n={},r=e.l+t;return e.l+=4,n.Salt=e.slice(e.l,e.l+16),e.l+=16,n.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),n.VerifierHash=e.slice(e.l,r),e.l=r,n}function Ma(e){if(36!=(63&e.read_shift(4)))throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4);return{t:"Std",h:Ea(e,t),v:Aa(e,e.length-e.l)}}function Ia(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Da(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var n=e.read_shift(e.length-e.l,"utf8"),r={};return n.replace(Ct,(function(e){var n=At(e);switch(Mt(n[0])){case"<?xml":case"<encryption":case"</encryption>":case"</keyEncryptors>":case"</keyEncryptor>":break;case"<keyData":t.forEach((function(e){r[e]=n[e]}));break;case"<dataIntegrity":r.encryptedHmacKey=n.encryptedHmacKey,r.encryptedHmacValue=n.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":r.encs=[];break;case"<keyEncryptor":r.uri=n.uri;break;case"<encryptedKey":r.encs.push(n);break;default:throw n[0]}})),r}function Pa(e){var t,i,n=0,r=ka(e),o=r.length+1;for((t=M(o))[0]=r.length,i=1;i!=o;++i)t[i]=r[i-1];for(i=o-1;i>=0;--i)n=((0==(16384&n)?0:1)|n<<1&32767)^t[i];return 52811^n}var Na=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],n=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(e,t){return 255&((n=e^t)/2|128*n);var n};return function(o){for(var l,c,h,f=ka(o),d=function(e){for(var r=t[e.length-1],o=104,i=e.length-1;i>=0;--i)for(var l=e[i],c=0;7!=c;++c)64&l&&(r^=n[o]),l*=2,--o;return r}(f),v=f.length,m=M(16),i=0;16!=i;++i)m[i]=0;for(1==(1&v)&&(l=d>>8,m[v]=r(e[0],l),--v,l=255&d,c=f[f.length-1],m[v]=r(c,l));v>0;)l=d>>8,m[--v]=r(f[v],l),l=255&d,m[--v]=r(f[v],l);for(v=15,h=15-f.length;h>0;)l=d>>8,m[v]=r(e[h],l),--h,l=255&d,m[--v]=r(f[v],l),--v,--h;return m}}(),La=function(e){var t=0,n=Na(e);return function(e){var r=function(e,t,n,r,o){var l,c;for(o||(o=t),r||(r=Na(e)),l=0;l!=t.length;++l)c=t[l],c=255&((c^=r[n])>>5|c<<3),o[l]=c,++n;return[o,n,r]}("",e,t,n);return t=r[1],r[0]}};function ja(e,t,n){var r=n||{};return r.Info=e.read_shift(2),e.l-=2,1===r.Info?r.Data=function(e){var t={},n=t.EncryptionVersionInfo=Oa(e,4);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}(e):r.Data=function(e,t){var n={},r=n.EncryptionVersionInfo=Oa(e,4);if(t-=4,2!=r.Minor)throw new Error("unrecognized minor version code: "+r.Minor);if(r.Major>4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);n.Flags=e.read_shift(4),t-=4;var o=e.read_shift(4);return t-=4,n.EncryptionHeader=Ea(e,o),t-=o,n.EncryptionVerifier=Aa(e,t),n}(e,t),r}var Ra=function(){function e(e,n){switch(n.type){case"base64":return t(T(e),n);case"binary":return t(e,n);case"buffer":return t(E&&Buffer.isBuffer(e)?e.toString("binary"):N(e),n);case"array":return t(nt(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n=(t||{}).dense?[]:{},r=e.match(/\\trowd.*?\\row\b/g);if(!r.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:r.length-1}};return r.forEach((function(e,t){Array.isArray(n)&&(n[t]=[]);for(var r,l=/\\\w+\b/g,c=0,h=-1;r=l.exec(e);){if("\\cell"===r[0]){var data=e.slice(c,l.lastIndex-r[0].length);if(" "==data[0]&&(data=data.slice(1)),++h,data.length){var f={v:data,t:"s"};Array.isArray(n)?n[t][h]=f:n[Or({r:t,c:h})]=f}}c=l.lastIndex}h>o.e.c&&(o.e.c=h)})),n["!ref"]=Tr(o),n}return{to_workbook:function(t,n){return Ir(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t,n=["{\\rtf1\\ansi"],r=Er(e["!ref"]),o=Array.isArray(e),l=r.s.r;l<=r.e.r;++l){n.push("\\trowd\\trautofit1");for(var c=r.s.c;c<=r.e.c;++c)n.push("\\cellx"+(c+1));for(n.push("\\pard\\intbl"),c=r.s.c;c<=r.e.c;++c){var h=Or({r:l,c:c});(t=o?(e[l]||[])[c]:e[h])&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(Mr(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function Fa(e){for(var i=0,t=1;3!=i;++i)t=256*t+(e[i]>255?255:e[i]<0?0:e[i]);return t.toString(16).toUpperCase().slice(1)}function Ba(e,t){if(0===t)return e;var n,r,o=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(t,n,r),l=Math.min(t,n,r),c=o-l;if(0===c)return[0,0,t];var h,f=0,d=o+l;switch(h=c/(d>1?2-d:d),o){case t:f=((n-r)/c+6)%6;break;case n:f=(r-t)/c+2;break;case r:f=(t-n)/c+4}return[f/6,h,d/2]}((r=(n=e).slice("#"===n[0]?1:0).slice(0,6),[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]));return o[2]=t<0?o[2]*(1+t):1-(1-o[2])*(1-t),Fa(function(e){var t,n=e[0],r=e[1],o=e[2],l=2*r*(o<.5?o:1-o),c=o-l/2,h=[c,c,c],h6=6*n;if(0!==r)switch(0|h6){case 0:case 6:t=l*h6,h[0]+=l,h[1]+=t;break;case 1:t=l*(2-h6),h[0]+=t,h[1]+=l;break;case 2:t=l*(h6-2),h[1]+=l,h[2]+=t;break;case 3:t=l*(4-h6),h[1]+=t,h[2]+=l;break;case 4:t=l*(h6-4),h[2]+=l,h[0]+=t;break;case 5:t=l*(6-h6),h[2]+=t,h[0]+=l}for(var i=0;3!=i;++i)h[i]=Math.round(255*h[i]);return h}(o))}var za=6;function $a(e){return Math.floor((e+Math.round(128/za)/256)*za)}function Va(e){return Math.floor((e-5)/za*100+.5)/100}function Ha(e){return Math.round((e*za+5)/za*256)/256}function qa(e){return Ha(Va($a(e)))}function Wa(e){var t=Math.abs(e-qa(e)),n=za;if(t>.005)for(za=1;za<15;++za)Math.abs(e-qa(e))<=t&&(t=Math.abs(e-qa(e)),n=za);za=n}function Ua(e){e.width?(e.wpx=$a(e.width),e.wch=Va(e.wpx),e.MDW=za):e.wpx?(e.wch=Va(e.wpx),e.width=Ha(e.wch),e.MDW=za):"number"==typeof e.wch&&(e.width=Ha(e.wch),e.wpx=$a(e.width),e.MDW=za),e.customWidth&&delete e.customWidth}function Ga(e){return 96*e/96}function Ya(e){return 96*e/96}var Ka={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};var Xa=["numFmtId","fillId","fontId","borderId","xfId"],Za=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];var Ja=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,r=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,o=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(data,l,c){var f,d={};return data?((f=(data=data.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(e))&&function(e,t,n){t.NumberFmt=[];for(var r=$e(X),i=0;i<r.length;++i)t.NumberFmt[r[i]]=X[r[i]];var o=e[0].match(Ct);if(o)for(i=0;i<o.length;++i){var l=At(o[i]);switch(Mt(l[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":case"</numFmt>":break;case"<numFmt":var c=Pt(Ut(l.formatCode)),h=parseInt(l.numFmtId,10);if(t.NumberFmt[h]=c,h>0){if(h>392){for(h=392;h>60&&null!=t.NumberFmt[h];--h);t.NumberFmt[h]=c}Ae(c,h)}break;default:if(n.WTF)throw new Error("unrecognized "+l[0]+" in numFmts")}}}(f,d,c),(f=data.match(r))&&function(e,t,n,r){t.Fonts=[];var o={},l=!1;(e[0].match(Ct)||[]).forEach((function(e){var c=At(e);switch(Mt(c[0])){case"<fonts":case"<fonts>":case"</fonts>":case"<font":case"<font>":case"<name/>":case"</name>":case"<sz/>":case"</sz>":case"<vertAlign/>":case"</vertAlign>":case"<family/>":case"</family>":case"<scheme/>":case"</scheme>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"</font>":case"<font/>":t.Fonts.push(o),o={};break;case"<name":c.val&&(o.name=Ut(c.val));break;case"<b":o.bold=c.val?$t(c.val):1;break;case"<b/>":o.bold=1;break;case"<i":o.italic=c.val?$t(c.val):1;break;case"<i/>":o.italic=1;break;case"<u":switch(c.val){case"none":o.underline=0;break;case"single":o.underline=1;break;case"double":o.underline=2;break;case"singleAccounting":o.underline=33;break;case"doubleAccounting":o.underline=34}break;case"<u/>":o.underline=1;break;case"<strike":o.strike=c.val?$t(c.val):1;break;case"<strike/>":o.strike=1;break;case"<outline":o.outline=c.val?$t(c.val):1;break;case"<outline/>":o.outline=1;break;case"<shadow":o.shadow=c.val?$t(c.val):1;break;case"<shadow/>":o.shadow=1;break;case"<condense":o.condense=c.val?$t(c.val):1;break;case"<condense/>":o.condense=1;break;case"<extend":o.extend=c.val?$t(c.val):1;break;case"<extend/>":o.extend=1;break;case"<sz":c.val&&(o.sz=+c.val);break;case"<vertAlign":c.val&&(o.vertAlign=c.val);break;case"<family":c.val&&(o.family=parseInt(c.val,10));break;case"<scheme":c.val&&(o.scheme=c.val);break;case"<charset":if("1"==c.val)break;c.codepage=h[parseInt(c.val,10)];break;case"<color":if(o.color||(o.color={}),c.auto&&(o.color.auto=$t(c.auto)),c.rgb)o.color.rgb=c.rgb.slice(-6);else if(c.indexed){o.color.index=parseInt(c.indexed,10);var f=gi[o.color.index];81==o.color.index&&(f=gi[1]),f||(f=gi[1]),o.color.rgb=f[0].toString(16)+f[1].toString(16)+f[2].toString(16)}else c.theme&&(o.color.theme=parseInt(c.theme,10),c.tint&&(o.color.tint=parseFloat(c.tint)),c.theme&&n.themeElements&&n.themeElements.clrScheme&&(o.color.rgb=Ba(n.themeElements.clrScheme[o.color.theme].rgb,o.color.tint||0)));break;case"<AlternateContent":case"<ext":l=!0;break;case"</AlternateContent>":case"</ext>":l=!1;break;default:if(r&&r.WTF&&!l)throw new Error("unrecognized "+c[0]+" in fonts")}}))}(f,d,l,c),(f=data.match(n))&&function(e,t,n,r){t.Fills=[];var o={},l=!1;(e[0].match(Ct)||[]).forEach((function(e){var n=At(e);switch(Mt(n[0])){case"<fills":case"<fills>":case"</fills>":case"</fill>":case"<gradientFill>":case"<patternFill/>":case"</patternFill>":case"<bgColor/>":case"</bgColor>":case"<fgColor/>":case"</fgColor>":case"<stop":case"<stop/>":case"</stop>":case"<color":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<fill>":case"<fill":case"<fill/>":o={},t.Fills.push(o);break;case"<gradientFill":case"</gradientFill>":t.Fills.push(o),o={};break;case"<patternFill":case"<patternFill>":n.patternType&&(o.patternType=n.patternType);break;case"<bgColor":o.bgColor||(o.bgColor={}),n.indexed&&(o.bgColor.indexed=parseInt(n.indexed,10)),n.theme&&(o.bgColor.theme=parseInt(n.theme,10)),n.tint&&(o.bgColor.tint=parseFloat(n.tint)),n.rgb&&(o.bgColor.rgb=n.rgb.slice(-6));break;case"<fgColor":o.fgColor||(o.fgColor={}),n.theme&&(o.fgColor.theme=parseInt(n.theme,10)),n.tint&&(o.fgColor.tint=parseFloat(n.tint)),null!=n.rgb&&(o.fgColor.rgb=n.rgb.slice(-6));break;case"<ext":l=!0;break;case"</ext>":l=!1;break;default:if(r&&r.WTF&&!l)throw new Error("unrecognized "+n[0]+" in fills")}}))}(f,d,0,c),(f=data.match(o))&&function(e,t,n,r){t.Borders=[];var o={},l=!1;(e[0].match(Ct)||[]).forEach((function(e){var n=At(e);switch(Mt(n[0])){case"<borders":case"<borders>":case"</borders>":case"</border>":case"<left/>":case"<left":case"<left>":case"</left>":case"<right/>":case"<right":case"<right>":case"</right>":case"<top/>":case"<top":case"<top>":case"</top>":case"<bottom/>":case"<bottom":case"<bottom>":case"</bottom>":case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":case"<start":case"<start>":case"<start/>":case"</start>":case"<end":case"<end>":case"<end/>":case"</end>":case"<color":case"<color>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<border":case"<border>":case"<border/>":o={},n.diagonalUp&&(o.diagonalUp=$t(n.diagonalUp)),n.diagonalDown&&(o.diagonalDown=$t(n.diagonalDown)),t.Borders.push(o);break;case"<ext":l=!0;break;case"</ext>":l=!1;break;default:if(r&&r.WTF&&!l)throw new Error("unrecognized "+n[0]+" in borders")}}))}(f,d,0,c),(f=data.match(t))&&function(e,t,n){var r;t.CellXf=[];var o=!1;(e[0].match(Ct)||[]).forEach((function(e){var l=At(e),i=0;switch(Mt(l[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":case"</xf>":case"</alignment>":case"<protection":case"</protection>":case"<protection/>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<xf":case"<xf/>":for(delete(r=l)[0],i=0;i<Xa.length;++i)r[Xa[i]]&&(r[Xa[i]]=parseInt(r[Xa[i]],10));for(i=0;i<Za.length;++i)r[Za[i]]&&(r[Za[i]]=$t(r[Za[i]]));if(t.NumberFmt&&r.numFmtId>392)for(i=392;i>60;--i)if(t.NumberFmt[r.numFmtId]==t.NumberFmt[i]){r.numFmtId=i;break}t.CellXf.push(r);break;case"<alignment":case"<alignment/>":var c={};l.vertical&&(c.vertical=l.vertical),l.horizontal&&(c.horizontal=l.horizontal),null!=l.textRotation&&(c.textRotation=l.textRotation),l.indent&&(c.indent=l.indent),l.wrapText&&(c.wrapText=$t(l.wrapText)),r.alignment=c;break;case"<AlternateContent":case"<ext":o=!0;break;case"</AlternateContent>":case"</ext>":o=!1;break;default:if(n&&n.WTF&&!o)throw new Error("unrecognized "+l[0]+" in cellXfs")}}))}(f,d,c),d):d}}();function Qa(e,t){var n,r=[St,rn("styleSheet",null,{xmlns:xn[0],"xmlns:vt":yn})];return e.SSF&&null!=(n=function(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var i=n[0];i<=n[1];++i)null!=e[i]&&(t[t.length]=rn("numFmt",null,{numFmtId:i,formatCode:jt(e[i])}))})),1===t.length?"":(t[t.length]="</numFmts>",t[0]=rn("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=function(e){var t=[];return t[t.length]=rn("cellXfs",null),e.forEach((function(e){t[t.length]=rn("xf",null,e)})),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=rn("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function es(i,e,t){t||(t=cr(6+4*e.length)),t.write_shift(2,i),jr(e,t);var n=t.length>t.l?t.slice(0,t.l):t;return null==t.l&&(t.l=t.length),n}function ts(e,t){t||(t=cr(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=cr(2));var n=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,n),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var n=0;"superscript"==e.vertAlign?n=1:"subscript"==e.vertAlign&&(n=2),t.write_shift(2,n),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),oi(e.color,t);var r=0;return"major"==e.scheme&&(r=1),"minor"==e.scheme&&(r=2),t.write_shift(1,r),jr(e.name,t),t.length>t.l?t.slice(0,t.l):t}var ns,rs=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],is=ur;function os(e,t){t||(t=cr(84)),ns||(ns=He(rs));var n=ns[e.patternType];null==n&&(n=40),t.write_shift(4,n);var r=0;if(40!=n)for(oi({auto:1},t),oi({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function as(data,e,t){t||(t=cr(16)),t.write_shift(2,e||0),t.write_shift(2,data.numFmtId||0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t}function ss(data,e){return e||(e=cr(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var ls=ur;function us(e){var t;pr(e,613,Nr(1)),pr(e,46,(t||(t=cr(51)),t.write_shift(1,0),ss(0,t),ss(0,t),ss(0,t),ss(0,t),ss(0,t),t.length>t.l?t.slice(0,t.l):t)),pr(e,614)}function cs(e){var style,t;pr(e,619,Nr(1)),pr(e,48,(style={xfId:0,builtinId:0,name:"Normal"},t||(t=cr(52)),t.write_shift(4,style.xfId),t.write_shift(2,1),t.write_shift(1,+style.builtinId),t.write_shift(1,0),Yr(style.name||"",t),t.length>t.l?t.slice(0,t.l):t)),pr(e,620)}function hs(e){pr(e,508,function(e,t,n){var r=cr(2052);return r.write_shift(4,e),Yr(t,r),Yr(n,r),r.length>r.l?r.slice(0,r.l):r}(0,"TableStyleMedium9","PivotStyleMedium4")),pr(e,509)}function fs(e,t){var n=dr();return pr(n,278),function(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var i=e[0];i<=e[1];++i)null!=t[i]&&++n})),0!=n&&(pr(e,615,Nr(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var i=n[0];i<=n[1];++i)null!=t[i]&&pr(e,44,es(i,t[i]))})),pr(e,616))}}(n,e.SSF),function(e){pr(e,611,Nr(1)),pr(e,43,ts({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),pr(e,612)}(n),function(e){pr(e,603,Nr(2)),pr(e,45,os({patternType:"none"})),pr(e,45,os({patternType:"gray125"})),pr(e,604)}(n),us(n),function(e){pr(e,626,Nr(1)),pr(e,47,as({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),pr(e,627)}(n),function(e,data){pr(e,617,Nr(data.length)),data.forEach((function(t){pr(e,47,as(t,0))})),pr(e,618)}(n,t.cellXfs),cs(n),function(e){pr(e,505,Nr(0)),pr(e,506)}(n),hs(n),pr(n,279),n.end()}var ds=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function ps(e,t,n){t.themeElements.clrScheme=[];var r={};(e[0].match(Ct)||[]).forEach((function(e){var o=At(e);switch(o[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":r.rgb=o.val;break;case"<a:sysClr":r.rgb=o.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":"/"===o[0].charAt(1)?(t.themeElements.clrScheme[ds.indexOf(o[0])]=r,r={}):r.name=o[0].slice(3,o[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+o[0]+" in clrScheme")}}))}function gs(){}function vs(){}var ms=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,ys=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,bs=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;var _s=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function xs(data,e){var t;data&&0!==data.length||(data=ws());var n={};if(!(t=data.match(_s)))throw new Error("themeElements not found in theme");return function(data,e,t){var n;e.themeElements={},[["clrScheme",ms,ps],["fontScheme",ys,gs],["fmtScheme",bs,vs]].forEach((function(r){if(!(n=data.match(r[1])))throw new Error(r[0]+" not found in themeElements");r[2](n,e,t)}))}(t[0],n,e),n.raw=data,n}function ws(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[St];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function Ss(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:case 4:e.l+=4;break;case 1:t.xclrValue=function(e,t){return ur(e,t)}(e,4);break;case 2:t.xclrValue=So(e);break;case 3:t.xclrValue=function(e){return e.read_shift(4)}(e)}return e.l+=8,t}function ks(e){var t=e.read_shift(2),n=e.read_shift(2)-4,r=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=Ss(e);break;case 6:r[1]=function(e,t){return ur(e,t)}(e,n);break;case 14:case 15:r[1]=e.read_shift(1===n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+n)}return r}function Os(){var data,e,t=dr();return pr(t,332),pr(t,334,Nr(1)),pr(t,335,((e=cr(12+2*(data={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,data.flags),e.write_shift(4,data.version),jr(data.name,e),e.slice(0,e.l))),pr(t,336),pr(t,339,function(e,t){var n=cr(8+2*t.length);return n.write_shift(4,e),jr(t,n),n.slice(0,n.l)}(1,"XLDAPR")),pr(t,52),pr(t,35,Nr(514)),pr(t,4096,Nr(0)),pr(t,4097,lo(1)),pr(t,36),pr(t,53),pr(t,340),pr(t,337,function(e,t){var n=cr(8);return n.write_shift(4,e),n.write_shift(4,t?1:0),n}(1,!0)),pr(t,51,function(e){var t=cr(4+8*e.length);t.write_shift(4,e.length);for(var i=0;i<e.length;++i)t.write_shift(4,e[i][0]),t.write_shift(4,e[i][1]);return t}([[1,0]])),pr(t,338),pr(t,333),t.end()}function Cs(){var e=[St];return e.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n <metadataTypes count="1">\n <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n </metadataTypes>\n <futureMetadata name="XLDAPR" count="1">\n <bk>\n <extLst>\n <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n </ext>\n </extLst>\n </bk>\n </futureMetadata>\n <cellMetadata count="1">\n <bk>\n <rc t="1" v="0"/>\n </bk>\n </cellMetadata>\n</metadata>'),e.join("")}var Ts=1024;function Es(e,t){for(var n=[21600,21600],r=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),o=[rn("xml",null,{"xmlns:v":Tn,"xmlns:o":wn,"xmlns:x":Sn,"xmlns:mv":Cn}).replace(/\/>/,">"),rn("o:shapelayout",rn("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),rn("v:shapetype",[rn("v:stroke",null,{joinstyle:"miter"}),rn("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:r})];Ts<1e3*e;)Ts+=1e3;return t.forEach((function(e){var t=kr(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?rn("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,l=rn("v:fill",r,n);++Ts,o=o.concat(["<v:shape"+nn({id:"_x0000_s"+Ts,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",l,rn("v:shadow",null,{on:"t",obscured:"t"}),rn("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",tn("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),tn("x:AutoFill","False"),tn("x:Row",String(t.r)),tn("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),o.push("</xml>"),o.join("")}function As(e,t,n,r){var o,l=Array.isArray(e);t.forEach((function(t){var c=kr(t.ref);if(l?(e[c.r]||(e[c.r]=[]),o=e[c.r][c.c]):o=e[t.ref],!o){o={t:"z"},l?e[c.r][c.c]=o:e[t.ref]=o;var h=Er(e["!ref"]||"BDWGO1000001:A1");h.s.r>c.r&&(h.s.r=c.r),h.e.r<c.r&&(h.e.r=c.r),h.s.c>c.c&&(h.s.c=c.c),h.e.c<c.c&&(h.e.c=c.c);var f=Tr(h);f!==e["!ref"]&&(e["!ref"]=f)}o.c||(o.c=[]);var d={a:t.author,t:t.t,r:t.r,T:n};t.h&&(d.h=t.h);for(var i=o.c.length-1;i>=0;--i){if(!n&&o.c[i].T)return;n&&!o.c[i].T&&o.c.splice(i,1)}if(n&&r)for(i=0;i<r.length;++i)if(d.a==r[i].id){d.a=r[i].name||d.a;break}o.c.push(d)}))}function Ms(data){var e=[St,rn("comments",null,{xmlns:xn[0]})],t=[];return e.push("<authors>"),data.forEach((function(n){n[1].forEach((function(n){var a=jt(n.a);-1==t.indexOf(a)&&(t.push(a),e.push("<author>"+a+"</author>")),n.T&&n.ID&&-1==t.indexOf("tc="+n.ID)&&(t.push("tc="+n.ID),e.push("<author>tc="+n.ID+"</author>"))}))})),0==t.length&&(t.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),data.forEach((function(n){var r=0,o=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?r=t.indexOf("tc="+n[1][0].ID):n[1].forEach((function(e){e.a&&(r=t.indexOf(jt(e.a))),o.push(e.t||"")})),e.push('<comment ref="'+n[0]+'" authorId="'+r+'"><text>'),o.length<=1)e.push(tn("t",jt(o[0]||"")));else{for(var l="Comment:\n "+o[0]+"\n",i=1;i<o.length;++i)l+="Reply:\n "+o[i]+"\n";e.push(tn("t",jt(l)))}e.push("</text></comment>")})),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function Is(e,t,n){var r=[St,rn("ThreadedComments",null,{xmlns:dn}).replace(/[\/]>/,">")];return e.forEach((function(e){var o="";(e[1]||[]).forEach((function(l,c){if(l.T){l.a&&-1==t.indexOf(l.a)&&t.push(l.a);var h={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==c?o=h.id:h.parentId=o,l.ID=h.id,l.a&&(h.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(l.a)).slice(-12)+"}"),r.push(rn("threadedComment",tn("text",l.t||""),h))}else delete l.ID}))})),r.push("</ThreadedComments>"),r.join("")}var Ds=Lr;function Ps(data){var e=dr(),t=[];return pr(e,628),pr(e,630),data.forEach((function(n){n[1].forEach((function(n){t.indexOf(n.a)>-1||(t.push(n.a.slice(0,54)),pr(e,632,function(data){return jr(data.slice(0,54))}(n.a)))}))})),pr(e,631),pr(e,633),data.forEach((function(n){n[1].forEach((function(r){r.iauthor=t.indexOf(r.a);var o={s:kr(n[0]),e:kr(n[0])};pr(e,635,function(data,e){return null==e&&(e=cr(36)),e.write_shift(4,data[1].iauthor),ni(data[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}([o,r])),r.t&&r.t.length>0&&pr(e,637,zr(r)),pr(e,636),delete r.iauthor}))})),pr(e,634),pr(e,629),e.end()}var Ns=["xlsb","xlsm","xlam","biff8","xla"];var Ls=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,o){var l=!1,c=!1;0==r.length?c=!0:"["==r.charAt(0)&&(c=!0,r=r.slice(1,-1)),0==o.length?l=!0:"["==o.charAt(0)&&(l=!0,o=o.slice(1,-1));var h=r.length>0?0|parseInt(r,10):0,f=o.length>0?0|parseInt(o,10):0;return l?f+=t.c:--f,c?h+=t.r:--h,n+(l?"":"$")+Sr(f)+(c?"":"$")+xr(h)}return function(r,base){return t=base,r.replace(e,n)}}(),js=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Rs=function(){return function(e,base){return e.replace(js,(function(e,t,n,r,o,l){var c=wr(r)-(n?0:base.c),h=_r(l)-(o?0:base.r);return t+"R"+(0==h?"":o?h+1:"["+h+"]")+"C"+(0==c?"":n?c+1:"["+c+"]")}))}}();function Fs(e,t){return e.replace(js,(function(e,n,r,o,l,c){return n+("$"==r?r+o:Sr(wr(o)+t.c))+("$"==l?l+c:xr(_r(c)+t.r))}))}function Bs(e,t,n){var s=Cr(t).s,r=kr(n);return Fs(e,{r:r.r-s.r,c:r.c-s.c})}function zs(e){return e.replace(/_xlfn\./g,"")}function $s(e){e.l+=1}function Vs(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function Hs(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return qs(e);12==n.biff&&(r=4)}var o=e.read_shift(r),l=e.read_shift(r),c=Vs(e,2),h=Vs(e,2);return{s:{r:o,c:c[0],cRel:c[1],rRel:c[2]},e:{r:l,c:h[0],cRel:h[1],rRel:h[2]}}}function qs(e){var t=Vs(e,2),n=Vs(e,2),r=e.read_shift(1),o=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:o,cRel:n[1],rRel:n[2]}}}function Ws(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return function(e){var t=Vs(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}(e);var r=e.read_shift(n&&12==n.biff?4:2),o=Vs(e,2);return{r:r,c:o[0],cRel:o[1],rRel:o[2]}}function Us(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function Gs(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function Ys(e){return[e.read_shift(1),e.read_shift(1)]}function Ks(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=oo(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=vi[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=ri(e);break;case 2:n[1]=mo(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function Xs(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),o=[],i=0;i!=r;++i)o.push((12==n.biff?ti:Ao)(e,8));return o}function Zs(e,t,n){var r=0,o=0;12==n.biff?(r=e.read_shift(4),o=e.read_shift(4)):(o=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--o&&(o=256));for(var i=0,l=[];i!=r&&(l[i]=[]);++i)for(var c=0;c!=o;++c)l[i][c]=Ks(e,n.biff);return l}function Js(e,t,n){return e.l+=2,[Us(e)]}function Qs(e){return e.l+=6,[]}function el(e){return e.l+=2,[so(e),1&e.read_shift(2)]}var tl=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var nl={1:{n:"PtgExp",f:function(e,t,n){return e.l++,n&&12==n.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:ur},3:{n:"PtgAdd",f:$s},4:{n:"PtgSub",f:$s},5:{n:"PtgMul",f:$s},6:{n:"PtgDiv",f:$s},7:{n:"PtgPower",f:$s},8:{n:"PtgConcat",f:$s},9:{n:"PtgLt",f:$s},10:{n:"PtgLe",f:$s},11:{n:"PtgEq",f:$s},12:{n:"PtgGe",f:$s},13:{n:"PtgGt",f:$s},14:{n:"PtgNe",f:$s},15:{n:"PtgIsect",f:$s},16:{n:"PtgUnion",f:$s},17:{n:"PtgRange",f:$s},18:{n:"PtgUplus",f:$s},19:{n:"PtgUminus",f:$s},20:{n:"PtgPercent",f:$s},21:{n:"PtgParen",f:$s},22:{n:"PtgMissArg",f:$s},23:{n:"PtgStr",f:function(e,t,n){return e.l++,ho(e,0,n)}},26:{n:"PtgSheet",f:function(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,vi[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,ri(e)}},32:{n:"PtgArray",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}},33:{n:"PtgFunc",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=e.read_shift(n&&n.biff<=3?1:2);return[Tl[o],Cl[o],r]}},34:{n:"PtgFuncVar",f:function(e,t,n){var r=e[e.l++],o=e.read_shift(1),l=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[o,(0===l[0]?Cl:Ol)[l[1]]]}},35:{n:"PtgName",f:function(e,t,n){var r=e.read_shift(1)>>>5&3,o=!n||n.biff>=8?4:2,l=e.read_shift(o);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[r,0,l]}},36:{n:"PtgRef",f:function(e,t,n){var r=(96&e[e.l])>>5;return e.l+=1,[r,Ws(e,0,n)]}},37:{n:"PtgArea",f:function(e,t,n){return[(96&e[e.l++])>>5,Hs(e,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=n&&2==n.biff?3:4,[r,e.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:ur},40:{n:"PtgMemNoMem",f:ur},41:{n:"PtgMemFunc",f:function(e,t,n){return[e.read_shift(1)>>>5&3,e.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}},43:{n:"PtgAreaErr",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}},44:{n:"PtgRefN",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=function(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return function(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,o=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==o&&n>=128&&(n-=256),{r:t,c:n,cRel:o,rRel:r}}(e);var o=e.read_shift(r>=12?4:2),l=e.read_shift(2),c=(16384&l)>>14,h=(32768&l)>>15;if(l&=16383,1==h)for(;o>524287;)o-=1048576;if(1==c)for(;l>8191;)l-=16384;return{r:o,c:l,cRel:c,rRel:h}}(e,0,n);return[r,o]}},45:{n:"PtgAreaN",f:function(e,t,n){var r=(96&e[e.l++])>>5,area=function(e,t,n){if(n.biff<8)return qs(e);var r=e.read_shift(12==n.biff?4:2),o=e.read_shift(12==n.biff?4:2),l=Vs(e,2),c=Vs(e,2);return{s:{r:r,c:l[0],cRel:l[1],rRel:l[2]},e:{r:o,c:c[0],cRel:c[1],rRel:c[2]}}}(e,0,n);return[r,area]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,n){return 5==n.biff?function(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=e.read_shift(2);return n&&5==n.biff&&(e.l+=12),[r,o,Ws(e,0,n)]}},59:{n:"PtgArea3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2,"i");if(n)switch(n.biff){case 5:e.l+=12,6;break;case 12:12}return[r,o,Hs(e,0,n)]}},60:{n:"PtgRefErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2),l=4;if(n)switch(n.biff){case 5:l=15;break;case 12:l=6}return e.l+=l,[r,o]}},61:{n:"PtgAreaErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2),l=8;if(n)switch(n.biff){case 5:e.l+=12,l=6;break;case 12:l=12}return e.l+=l,[r,o]}},255:{}},rl={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},il={1:{n:"PtgElfLel",f:el},2:{n:"PtgElfRw",f:Js},3:{n:"PtgElfCol",f:Js},6:{n:"PtgElfRwV",f:Js},7:{n:"PtgElfColV",f:Js},10:{n:"PtgElfRadical",f:Js},11:{n:"PtgElfRadicalS",f:Qs},13:{n:"PtgElfColS",f:Qs},15:{n:"PtgElfColSV",f:Qs},16:{n:"PtgElfRadicalLel",f:el},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),o=e.read_shift(2),l=e.read_shift(2);return{ixti:t,coltype:3&n,rt:tl[n>>2&31],idx:r,c:o,C:l}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},al={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}},2:{n:"PtgAttrIf",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),o=[],i=0;i<=r;++i)o.push(e.read_shift(n&&2==n.biff?1:2));return o}},8:{n:"PtgAttrGoto",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,n){e.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:Gs},33:{n:"PtgAttrBaxcel",f:Gs},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),Ys(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),Ys(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function sl(e,t,n,r){if(r.biff<8)return ur(e,t);for(var o=e.l+t,l=[],i=0;i!==n.length;++i)switch(n[i][0]){case"PtgArray":n[i][1]=Zs(e,0,r),l.push(n[i][1]);break;case"PtgMemArea":n[i][2]=Xs(e,n[i][1],r),l.push(n[i][2]);break;case"PtgExp":r&&12==r.biff&&(n[i][1][1]=e.read_shift(4),l.push(n[i][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[i][0]}return 0!==(t=o-e.l)&&l.push(ur(e,t)),l}function ll(e,t,n){for(var r,o,l=e.l+t,c=[];l!=e.l;)t=l-e.l,o=e[e.l],r=nl[o]||nl[rl[o]],24!==o&&25!==o||(r=(24===o?il:al)[e[e.l+1]]),r&&r.f?c.push([r.n,r.f(e,t,n)]):ur(e,t);return c}function cl(e){for(var t=[],i=0;i<e.length;++i){for(var n=e[i],r=[],o=0;o<n.length;++o){var l=n[o];if(l)if(2===l[0])r.push('"'+l[1].replace(/"/g,'""')+'"');else r.push(l[1]);else r.push("")}t.push(r.join(","))}return t.join(";")}var hl={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function fl(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var o="";if(n.biff>8)switch(e[r[0]][0]){case 357:return o=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return o=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(o=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?o:o+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function pl(e,t,n){var r=fl(e,t,n);return"#REF"==r?r:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(r,n)}function gl(e,t,n,r,o){var l,c,h,f,d=o&&o.biff||8,v={s:{c:0,r:0},e:{c:0,r:0}},m=[],y=0,_=0,x="";if(!e[0]||!e[0][0])return"";for(var w=-1,S="",k=0,O=e[0].length;k<O;++k){var C=e[0][k];switch(C[0]){case"PtgUminus":m.push("-"+m.pop());break;case"PtgUplus":m.push("+"+m.pop());break;case"PtgPercent":m.push(m.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=m.pop(),c=m.pop(),w>=0){switch(e[0][w][1][0]){case 0:S=ot(" ",e[0][w][1][1]);break;case 1:S=ot("\r",e[0][w][1][1]);break;default:if(S="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][w][1][0])}c+=S,w=-1}m.push(c+hl[C[0]]+l);break;case"PtgIsect":l=m.pop(),c=m.pop(),m.push(c+" "+l);break;case"PtgUnion":l=m.pop(),c=m.pop(),m.push(c+","+l);break;case"PtgRange":l=m.pop(),c=m.pop(),m.push(c+":"+l);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":h=gr(C[1][1],v,o),m.push(mr(h,d));break;case"PtgRefN":h=n?gr(C[1][1],n,o):C[1][1],m.push(mr(h,d));break;case"PtgRef3d":y=C[1][1],h=gr(C[1][2],v,o);x=pl(r,y,o);m.push(x+"!"+mr(h,d));break;case"PtgFunc":case"PtgFuncVar":var T=C[1][0],E=C[1][1];T||(T=0);var A=0==(T&=127)?[]:m.slice(-T);m.length-=T,"User"===E&&(E=A.shift()),m.push(E+"("+A.join(",")+")");break;case"PtgBool":m.push(C[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":m.push(C[1]);break;case"PtgNum":m.push(String(C[1]));break;case"PtgStr":m.push('"'+C[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":f=vr(C[1][1],n?{s:n}:v,o),m.push(yr(f,o));break;case"PtgArea":f=vr(C[1][1],v,o),m.push(yr(f,o));break;case"PtgArea3d":y=C[1][1],f=C[1][2],x=pl(r,y,o),m.push(x+"!"+yr(f,o));break;case"PtgAttrSum":m.push("SUM("+m.pop()+")");break;case"PtgName":_=C[1][2];var M=(r.names||[])[_-1]||(r[0]||[])[_],I=M?M.Name:"SH33TJSNAME"+String(_);I&&"_xlfn."==I.slice(0,6)&&!o.xlfn&&(I=I.slice(6)),m.push(I);break;case"PtgNameX":var D,P=C[1][1];if(_=C[1][2],!(o.biff<=5)){var N="";if(14849==((r[P]||[])[0]||[])[0]||(1025==((r[P]||[])[0]||[])[0]?r[P][_]&&r[P][_].itab>0&&(N=r.SheetNames[r[P][_].itab-1]+"!"):N=r.SheetNames[_-1]+"!"),r[P]&&r[P][_])N+=r[P][_].Name;else if(r[0]&&r[0][_])N+=r[0][_].Name;else{var L=(fl(r,P,o)||"").split(";;");L[_-1]?N=L[_-1]:N+="SH33TJSERRX"}m.push(N);break}P<0&&(P=-P),r[P]&&(D=r[P][_]),D||(D={Name:"SH33TJSERRY"}),m.push(D.Name);break;case"PtgParen":var j="(",rp=")";if(w>=0){switch(S="",e[0][w][1][0]){case 2:j=ot(" ",e[0][w][1][1])+j;break;case 3:j=ot("\r",e[0][w][1][1])+j;break;case 4:rp=ot(" ",e[0][w][1][1])+rp;break;case 5:rp=ot("\r",e[0][w][1][1])+rp;break;default:if(o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][w][1][0])}w=-1}m.push(j+m.pop()+rp);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":m.push("#REF!");break;case"PtgExp":h={c:C[1][1],r:C[1][0]};var q={c:n.c,r:n.r};if(r.sharedf[Or(h)]){var R=r.sharedf[Or(h)];m.push(gl(R,v,q,r,o))}else{var F=!1;for(l=0;l!=r.arrayf.length;++l)if(c=r.arrayf[l],!(h.c<c[0].s.c||h.c>c[0].e.c||h.r<c[0].s.r||h.r>c[0].e.r)){m.push(gl(c[1],v,q,r,o)),F=!0;break}F||m.push(C[1])}break;case"PtgArray":m.push("{"+cl(C[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":w=k;break;case"PtgMissArg":m.push("");break;case"PtgList":m.push("Table"+C[1].idx+"[#"+C[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(C))}if(3!=o.biff&&w>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][k][0])){var B=!0;switch((C=e[0][w])[1][0]){case 4:B=!1;case 0:S=ot(" ",C[1][1]);break;case 5:B=!1;case 1:S=ot("\r",C[1][1]);break;default:if(S="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+C[1][0])}m.push((B?S:"")+m.pop()+(B?"":S)),w=-1}}if(m.length>1&&o.WTF)throw new Error("bad formula stack");return m[0]}function vl(e,t,n){var r,o=e.l+t,l=2==n.biff?1:2,c=e.read_shift(l);if(65535==c)return[[],ur(e,t-2)];var h=ll(e,c,n);return t!==c+l&&(r=sl(e,t-c-l,h,n)),e.l=o,[h,r]}function ml(e,t,n){var r,o=e.l+t,l=e.read_shift(2),c=ll(e,l,n);return 65535==l?[[],ur(e,t-2)]:(t!==l+2&&(r=sl(e,o-l-2,c,n)),[c,r])}function yl(e,t,n){var r=e.l+t,o=Oo(e);2==n.biff&&++e.l;var l=function(e){var b;if(65535!==Jn(e,e.l+6))return[ri(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return b=1===e[e.l+2],e.l+=8,[b,"b"];case 2:return b=e[e.l+2],e.l+=8,[b,"e"];case 3:return e.l+=8,["","s"]}return[]}(e),c=e.read_shift(1);2!=n.biff&&(e.read_shift(1),n.biff>=5&&e.read_shift(4));var h=function(e,t,n){var r,o=e.l+t,l=2==n.biff?1:2,c=e.read_shift(l);if(65535==c)return[[],ur(e,t-2)];var h=ll(e,c,n);return t!==c+l&&(r=sl(e,t-c-l,h,n)),e.l=o,[h,r]}(e,r-e.l,n);return{cell:o,val:l[0],formula:h,shared:c>>3&1,tt:l[1]}}function bl(e,t,n,r,o){var l=Co(t,n,o),c=function(e){if(null==e){var t=cr(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return ii("number"==typeof e?e:0)}(e.v),h=cr(6);h.write_shift(2,33),h.write_shift(4,0);for(var f=cr(e.bf.length),i=0;i<e.bf.length;++i)f[i]=e.bf[i];return j([l,c,h,f])}function _l(data,e,t){var n=data.read_shift(4),r=ll(data,n,t),o=data.read_shift(4);return[r,o>0?sl(data,o,r,t):null]}var xl=_l,wl=_l,Sl=_l,kl=_l,Ol={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Cl={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Tl={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function El(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&61==(e=e.slice(1)).charCodeAt(0)&&(e=e.slice(1)),(e=(e=(e=e.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")}))).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function Al(e){var a=e.split(":");return[a[0].split(".")[0],a[0].split(".")[1]+(a.length>1?":"+(a[1].split(".")[1]||a[1].split(".")[0]):"")]}var Ml={},Il={},Dl="undefined"!=typeof Map;function Pl(e,t,n){var i=0,r=e.length;if(n){if(Dl?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var o=Dl?n.get(t):n[t];i<o.length;++i)if(e[o[i]].t===t)return e.Count++,o[i]}else for(;i<r;++i)if(e[i].t===t)return e.Count++,i;return e[r]={t:t},e.Count++,e.Unique++,n&&(Dl?(n.has(t)||n.set(t,[]),n.get(t).push(r)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(r))),r}function Nl(e,col){var p={min:e+1,max:e+1},t=-1;return col.MDW&&(za=col.MDW),null!=col.width?p.customWidth=1:null!=col.wpx?t=Va(col.wpx):null!=col.wch&&(t=col.wch),t>-1?(p.width=Ha(t),p.customWidth=1):null!=col.width&&(p.width=col.width),col.hidden&&(p.hidden=!0),null!=col.level&&(p.outlineLevel=p.level=col.level),p}function Ll(e,t){if(e){var defs=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(defs=[1,1,1,1,.5,.5]),null==e.left&&(e.left=defs[0]),null==e.right&&(e.right=defs[1]),null==e.top&&(e.top=defs[2]),null==e.bottom&&(e.bottom=defs[3]),null==e.header&&(e.header=defs[4]),null==e.footer&&(e.footer=defs[5])}}function jl(e,t,n){var r=n.revssf[null!=t.z?t.z:"General"],i=60,o=e.length;if(null==r&&n.ssf)for(;i<392;++i)if(null==n.ssf[i]){Ae(t.z,i),n.ssf[i]=t.z,n.revssf[t.z]=r=i;break}for(i=0;i!=o;++i)if(e[i].numFmtId===r)return i;return e[o]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function Rl(p,e,t,n,r,o){try{n.cellNF&&(p.z=X[e])}catch(e){if(n.WTF)throw e}if("z"!==p.t||n.cellStyles){if("d"===p.t&&"string"==typeof p.v&&(p.v=tt(p.v)),(!n||!1!==n.cellText)&&"z"!==p.t)try{if(null==X[e]&&Ae(Pe[e]||"General",e),"e"===p.t)p.w=p.w||vi[p.v];else if(0===e)if("n"===p.t)(0|p.v)===p.v?p.w=p.v.toString(10):p.w=ae(p.v);else if("d"===p.t){var dd=Ue(p.v);p.w=(0|dd)===dd?dd.toString(10):ae(dd)}else{if(void 0===p.v)return"";p.w=se(p.v,Il)}else"d"===p.t?p.w=Ee(e,Ue(p.v),Il):p.w=Ee(e,p.v,Il)}catch(e){if(n.WTF)throw e}if(n.cellStyles&&null!=t)try{p.s=o.Fills[t],p.s.fgColor&&p.s.fgColor.theme&&!p.s.fgColor.rgb&&(p.s.fgColor.rgb=Ba(r.themeElements.clrScheme[p.s.fgColor.theme].rgb,p.s.fgColor.tint||0),n.WTF&&(p.s.fgColor.raw_rgb=r.themeElements.clrScheme[p.s.fgColor.theme].rgb)),p.s.bgColor&&p.s.bgColor.theme&&(p.s.bgColor.rgb=Ba(r.themeElements.clrScheme[p.s.bgColor.theme].rgb,p.s.bgColor.tint||0),n.WTF&&(p.s.bgColor.raw_rgb=r.themeElements.clrScheme[p.s.bgColor.theme].rgb))}catch(e){if(n.WTF&&o.Fills)throw e}}}function Fl(e,t,i){if(e&&e["!ref"]){var n=Er(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+i+"): "+e["!ref"])}}var Bl=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,zl=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,$l=/<(?:\w:)?hyperlink [^>]*>/gm,Vl=/"(\w*:\w*)"/,Hl=/<(?:\w:)?col\b[^>]*[\/]?>/g,ql=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,Wl=/<(?:\w:)?pageMargins[^>]*\/>/g,Ul=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Gl=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Yl=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Kl(data,e,t,n,r,o,l){if(!data)return data;n||(n={"!id":{}});var s=e.dense?[]:{},c={s:{r:2e6,c:2e6},e:{r:0,c:0}},h="",f="",d=data.match(zl);d?(h=data.slice(0,d.index),f=data.slice(d.index+d[0].length)):h=f=data;var v=h.match(Ul);v?Xl(v[0],s,r,t):(v=h.match(Gl))&&function(e,body,s,t,n){Xl(e.slice(0,e.indexOf(">")),s,t,n)}(v[0],v[1],s,r,t);var m=(h.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(m>0){var y=h.slice(m,m+50).match(Vl);y&&function(e,s){var t=Er(s);t.s.r<=t.e.r&&t.s.c<=t.e.c&&t.s.r>=0&&t.s.c>=0&&(e["!ref"]=Tr(t))}(s,y[1])}var _=h.match(Yl);_&&_[1]&&function(data,e){e.Views||(e.Views=[{}]);(data.match(Ql)||[]).forEach((function(t,i){var n=At(t);e.Views[i]||(e.Views[i]={}),+n.zoomScale&&(e.Views[i].zoom=+n.zoomScale),$t(n.rightToLeft)&&(e.Views[i].RTL=!0)}))}(_[1],r);var x=[];if(e.cellStyles){var w=h.match(Hl);w&&function(e,t){for(var n=!1,r=0;r!=t.length;++r){var o=At(t[r],!0);o.hidden&&(o.hidden=$t(o.hidden));var l=parseInt(o.min,10)-1,c=parseInt(o.max,10)-1;for(o.outlineLevel&&(o.level=+o.outlineLevel||0),delete o.min,delete o.max,o.width=+o.width,!n&&o.width&&(n=!0,Wa(o.width)),Ua(o);l<=c;)e[l++]=it(o)}}(x,w)}d&&tu(d[1],s,e,c,o,l);var S=f.match(ql);S&&(s["!autofilter"]=function(data){return{ref:(data.match(/ref="([^"]*)"/)||[])[1]}}(S[0]));var k=[],O=f.match(Bl);if(O)for(m=0;m!=O.length;++m)k[m]=Er(O[m].slice(O[m].indexOf('"')+1));var C=f.match($l);C&&function(s,data,e){for(var t=Array.isArray(s),i=0;i!=data.length;++i){var n=At(Ut(data[i]),!0);if(!n.ref)return;var r=((e||{})["!id"]||[])[n.id];r?(n.Target=r.Target,n.location&&(n.Target+="#"+Pt(n.location))):(n.Target="#"+Pt(n.location),r={Target:n.Target,TargetMode:"Internal"}),n.Rel=r,n.tooltip&&(n.Tooltip=n.tooltip,delete n.tooltip);for(var o=Er(n.ref),l=o.s.r;l<=o.e.r;++l)for(var c=o.s.c;c<=o.e.c;++c){var h=Or({c:c,r:l});t?(s[l]||(s[l]=[]),s[l][c]||(s[l][c]={t:"z",v:void 0}),s[l][c].l=n):(s[h]||(s[h]={t:"z",v:void 0}),s[h].l=n)}}}(s,C,n);var T,E,A=f.match(Wl);if(A&&(s["!margins"]=(T=At(A[0]),E={},["left","right","top","bottom","header","footer"].forEach((function(e){T[e]&&(E[e]=parseFloat(T[e]))})),E)),!s["!ref"]&&c.e.c>=c.s.c&&c.e.r>=c.s.r&&(s["!ref"]=Tr(c)),e.sheetRows>0&&s["!ref"]){var M=Er(s["!ref"]);e.sheetRows<=+M.e.r&&(M.e.r=e.sheetRows-1,M.e.r>c.e.r&&(M.e.r=c.e.r),M.e.r<M.s.r&&(M.s.r=M.e.r),M.e.c>c.e.c&&(M.e.c=c.e.c),M.e.c<M.s.c&&(M.s.c=M.e.c),s["!fullref"]=s["!ref"],s["!ref"]=Tr(M))}return x.length>0&&(s["!cols"]=x),k.length>0&&(s["!merges"]=k),s}function Xl(e,s,t,n){var data=At(e);t.Sheets[n]||(t.Sheets[n]={}),data.codeName&&(t.Sheets[n].CodeName=Pt(Ut(data.codeName)))}var Zl=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Jl=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];var Ql=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function eu(e,t,n,r){if(e.c&&n["!comments"].push([t,e.c]),void 0===e.v&&"string"!=typeof e.f||"z"===e.t&&!e.f)return"";var o="",l=e.t,c=e.v;if("z"!==e.t)switch(e.t){case"b":o=e.v?"1":"0";break;case"n":o=""+e.v;break;case"e":o=vi[e.v];break;case"d":r&&r.cellDates?o=tt(e.v,-1).toISOString():((e=it(e)).t="n",o=""+(e.v=Ue(tt(e.v)))),void 0===e.z&&(e.z=X[14]);break;default:o=e.v}var h=tn("v",jt(o)),f={r:t},d=jl(r.cellXfs,e,r);switch(0!==d&&(f.s=d),e.t){case"n":case"z":break;case"d":f.t="d";break;case"b":f.t="b";break;case"e":f.t="e";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){h=tn("v",""+Pl(r.Strings,e.v,r.revStrings)),f.t="s";break}f.t="str"}if(e.t!=l&&(e.t=l,e.v=c),"string"==typeof e.f&&e.f){var v=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;h=rn("f",jt(e.f),v)+(null!=e.v?h:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(f.cm=1),rn("c",h,f)}var tu=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,o=/ref=["']([^"']*)["']/,l=Yt("v"),c=Yt("f");return function(h,s,f,d,v,m){for(var p,y,_,x,w,S=0,k="",O=[],C=[],T=0,i=0,E=0,A="",M=0,I=0,D=0,P=0,N=Array.isArray(m.CellXf),L=[],j=[],R=Array.isArray(s),F=[],B={},z=!1,$=!!f.sheetStubs,V=h.split(t),H=0,W=V.length;H!=W;++H){var U=(k=V[H].trim()).length;if(0!==U){var G=0;e:for(S=0;S<U;++S)switch(k[S]){case">":if("/"!=k[S-1]){++S;break e}if(f&&f.cellStyles){if(M=null!=(y=At(k.slice(G,S),!0)).r?parseInt(y.r,10):M+1,I=-1,f.sheetRows&&f.sheetRows<M)continue;B={},z=!1,y.ht&&(z=!0,B.hpt=parseFloat(y.ht),B.hpx=Ya(B.hpt)),"1"==y.hidden&&(z=!0,B.hidden=!0),null!=y.outlineLevel&&(z=!0,B.level=+y.outlineLevel),z&&(F[M-1]=B)}break;case"<":G=S}if(G>=S)break;if(M=null!=(y=At(k.slice(G,S),!0)).r?parseInt(y.r,10):M+1,I=-1,!(f.sheetRows&&f.sheetRows<M)){d.s.r>M-1&&(d.s.r=M-1),d.e.r<M-1&&(d.e.r=M-1),f&&f.cellStyles&&(B={},z=!1,y.ht&&(z=!0,B.hpt=parseFloat(y.ht),B.hpx=Ya(B.hpt)),"1"==y.hidden&&(z=!0,B.hidden=!0),null!=y.outlineLevel&&(z=!0,B.level=+y.outlineLevel),z&&(F[M-1]=B)),O=k.slice(S).split(e);for(var Y=0;Y!=O.length&&"<"==O[Y].trim().charAt(0);++Y);for(O=O.slice(Y),S=0;S!=O.length;++S)if(0!==(k=O[S].trim()).length){if(C=k.match(n),T=S,i=0,E=0,k="<c "+("<"==k.slice(0,1)?">":"")+k,null!=C&&2===C.length){for(T=0,A=C[1],i=0;i!=A.length&&!((E=A.charCodeAt(i)-64)<1||E>26);++i)T=26*T+E;I=--T}else++I;for(i=0;i!=k.length&&62!==k.charCodeAt(i);++i);if(++i,(y=At(k.slice(0,i),!0)).r||(y.r=Or({r:M-1,c:I})),p={t:""},null!=(C=(A=k.slice(i)).match(l))&&""!==C[1]&&(p.v=Pt(C[1])),f.cellFormula){if(null!=(C=A.match(c))&&""!==C[1]){if(p.f=Pt(Ut(C[1])).replace(/\r\n/g,"\n"),f.xlfn||(p.f=zs(p.f)),C[0].indexOf('t="array"')>-1)p.F=(A.match(o)||[])[1],p.F.indexOf(":")>-1&&L.push([Er(p.F),p.F]);else if(C[0].indexOf('t="shared"')>-1){x=At(C[0]);var K=Pt(Ut(C[1]));f.xlfn||(K=zs(K)),j[parseInt(x.si,10)]=[x,K,y.r]}}else(C=A.match(/<f[^>]*\/>/))&&j[(x=At(C[0])).si]&&(p.f=Bs(j[x.si][1],j[x.si][2],y.r));var Z=kr(y.r);for(i=0;i<L.length;++i)Z.r>=L[i][0].s.r&&Z.r<=L[i][0].e.r&&Z.c>=L[i][0].s.c&&Z.c<=L[i][0].e.c&&(p.F=L[i][1])}if(null==y.t&&void 0===p.v)if(p.f||p.F)p.v=0,p.t="n";else{if(!$)continue;p.t="z"}else p.t=y.t||"n";switch(d.s.c>I&&(d.s.c=I),d.e.c<I&&(d.e.c=I),p.t){case"n":if(""==p.v||null==p.v){if(!$)continue;p.t="z"}else p.v=parseFloat(p.v);break;case"s":if(void 0===p.v){if(!$)continue;p.t="z"}else _=Ml[parseInt(p.v,10)],p.v=_.t,p.r=_.r,f.cellHTML&&(p.h=_.h);break;case"str":p.t="s",p.v=null!=p.v?Ut(p.v):"",f.cellHTML&&(p.h=Bt(p.v));break;case"inlineStr":C=A.match(r),p.t="s",null!=C&&(_=va(C[1]))?(p.v=_.t,f.cellHTML&&(p.h=_.h)):p.v="";break;case"b":p.v=$t(p.v);break;case"d":f.cellDates?p.v=tt(p.v,1):(p.v=Ue(tt(p.v,1)),p.t="n");break;case"e":f&&!1===f.cellText||(p.w=p.v),p.v=mi[p.v]}if(D=P=0,w=null,N&&void 0!==y.s&&null!=(w=m.CellXf[y.s])&&(null!=w.numFmtId&&(D=w.numFmtId),f.cellStyles&&null!=w.fillId&&(P=w.fillId)),Rl(p,D,P,f,v,m),f.cellDates&&N&&"n"==p.t&&ke(X[D])&&(p.t="d",p.v=Xe(p.v)),y.cm&&f.xlmeta){var J=(f.xlmeta.Cell||[])[+y.cm-1];J&&"XLDAPR"==J.type&&(p.D=!0)}if(R){var Q=kr(y.r);s[Q.r]||(s[Q.r]=[]),s[Q.r][Q.c]=p}else s[y.r]=p}}}}F.length>0&&(s["!rows"]=F)}}();function nu(e,t,n,r){var o,l=[St,rn("worksheet",null,{xmlns:xn[0],"xmlns:r":mn})],s=n.SheetNames[e],c="",h=n.Sheets[s];null==h&&(h={});var f=h["!ref"]||"A1",d=Er(f);if(d.e.c>16383||d.e.r>1048575){if(t.WTF)throw new Error("Range "+f+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575),f=Tr(d)}r||(r={}),h["!comments"]=[];var v=[];!function(e,t,n,r,o){var l=!1,c={},h=null;if("xlsx"!==r.bookType&&t.vbaraw){var f=t.SheetNames[n];try{t.Workbook&&(f=t.Workbook.Sheets[n].CodeName||f)}catch(e){}l=!0,c.codeName=Gt(jt(f))}if(e&&e["!outline"]){var d={summaryBelow:1,summaryRight:1};e["!outline"].above&&(d.summaryBelow=0),e["!outline"].left&&(d.summaryRight=0),h=(h||"")+rn("outlinePr",null,d)}(l||h)&&(o[o.length]=rn("sheetPr",h,c))}(h,n,e,t,l),l[l.length]=rn("dimension",null,{ref:f}),l[l.length]=function(e,t,n,r){var o={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(o.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),rn("sheetViews",rn("sheetView",null,o),{})}(0,0,0,n),t.sheetFormat&&(l[l.length]=rn("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=h["!cols"]&&h["!cols"].length>0&&(l[l.length]=function(e,t){for(var col,n=["<cols>"],i=0;i!=t.length;++i)(col=t[i])&&(n[n.length]=rn("col",null,Nl(i,col)));return n[n.length]="</cols>",n.join("")}(0,h["!cols"])),l[o=l.length]="<sheetData/>",h["!links"]=[],null!=h["!ref"]&&(c=function(e,t,n,r){var o,l,c=[],h=[],f=Er(e["!ref"]),d="",v="",m=[],y=0,_=0,x=e["!rows"],w=Array.isArray(e),S={r:v},k=-1;for(_=f.s.c;_<=f.e.c;++_)m[_]=Sr(_);for(y=f.s.r;y<=f.e.r;++y){for(h=[],v=xr(y),_=f.s.c;_<=f.e.c;++_){o=m[_]+v;var O=w?(e[y]||[])[_]:e[o];void 0!==O&&null!=(d=eu(O,o,e,t))&&h.push(d)}(h.length>0||x&&x[y])&&(S={r:v},x&&x[y]&&((l=x[y]).hidden&&(S.hidden=1),k=-1,l.hpx?k=Ga(l.hpx):l.hpt&&(k=l.hpt),k>-1&&(S.ht=k,S.customHeight=1),l.level&&(S.outlineLevel=l.level)),c[c.length]=rn("row",h.join(""),S))}if(x)for(;y<x.length;++y)x&&x[y]&&(S={r:y+1},(l=x[y]).hidden&&(S.hidden=1),k=-1,l.hpx?k=Ga(l.hpx):l.hpt&&(k=l.hpt),k>-1&&(S.ht=k,S.customHeight=1),l.level&&(S.outlineLevel=l.level),c[c.length]=rn("row","",S));return c.join("")}(h,t,0,0),c.length>0&&(l[l.length]=c)),l.length>o+1&&(l[l.length]="</sheetData>",l[o]=l[o].replace("/>",">")),h["!protect"]&&(l[l.length]=function(e){var t={sheet:1};return Zl.forEach((function(n){null!=e[n]&&e[n]&&(t[n]="1")})),Jl.forEach((function(n){null==e[n]||e[n]||(t[n]="0")})),e.password&&(t.password=Pa(e.password).toString(16).toUpperCase()),rn("sheetProtection",null,t)}(h["!protect"])),null!=h["!autofilter"]&&(l[l.length]=function(data,e,t,n){var r="string"==typeof data.ref?data.ref:Tr(data.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var o=t.Workbook.Names,l=Cr(r);l.s.r==l.e.r&&(l.e.r=Cr(e["!ref"]).e.r,r=Tr(l));for(var i=0;i<o.length;++i){var c=o[i];if("_xlnm._FilterDatabase"==c.Name&&c.Sheet==n){c.Ref="'"+t.SheetNames[n]+"'!"+r;break}}return i==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+t.SheetNames[n]+"'!"+r}),rn("autoFilter",null,{ref:r})}(h["!autofilter"],h,n,e)),null!=h["!merges"]&&h["!merges"].length>0&&(l[l.length]=function(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',i=0;i!=e.length;++i)t+='<mergeCell ref="'+Tr(e[i])+'"/>';return t+"</mergeCells>"}(h["!merges"]));var m,y,_=-1,x=-1;return h["!links"].length>0&&(l[l.length]="<hyperlinks>",h["!links"].forEach((function(e){e[1].Target&&(m={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(x=Oi(r,-1,jt(e[1].Target).replace(/#.*$/,""),xi.HLINK),m["r:id"]="rId"+x),(_=e[1].Target.indexOf("#"))>-1&&(m.location=jt(e[1].Target.slice(_+1))),e[1].Tooltip&&(m.tooltip=jt(e[1].Tooltip)),l[l.length]=rn("hyperlink",null,m))})),l[l.length]="</hyperlinks>"),delete h["!links"],null!=h["!margins"]&&(l[l.length]=(Ll(y=h["!margins"]),rn("pageMargins",null,y))),t&&!t.ignoreEC&&null!=t.ignoreEC||(l[l.length]=tn("ignoredErrors",rn("ignoredError",null,{numberStoredAsText:1,sqref:f}))),v.length>0&&(x=Oi(r,-1,"../drawings/drawing"+(e+1)+".xml",xi.DRAW),l[l.length]=rn("drawing",null,{"r:id":"rId"+x}),h["!drawing"]=v),h["!comments"].length>0&&(x=Oi(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",xi.VML),l[l.length]=rn("legacyDrawing",null,{"r:id":"rId"+x}),h["!legacy"]=x),l.length>1&&(l[l.length]="</worksheet>",l[1]=l[1].replace("/>",">")),l.join("")}function ru(e,t,n,r){var o=function(e,t,n){var r=cr(145),o=(n["!rows"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var l=320;o.hpx?l=20*Ga(o.hpx):o.hpt&&(l=20*o.hpt),r.write_shift(2,l),r.write_shift(1,0);var c=0;o.level&&(c|=o.level),o.hidden&&(c|=16),(o.hpx||o.hpt)&&(c|=32),r.write_shift(1,c),r.write_shift(1,0);var h=0,f=r.l;r.l+=4;for(var d={r:e,c:0},i=0;i<16;++i)if(!(t.s.c>i+1<<10||t.e.c<i<<10)){for(var v=-1,m=-1,y=i<<10;y<i+1<<10;++y)d.c=y,(Array.isArray(n)?(n[d.r]||[])[d.c]:n[Or(d)])&&(v<0&&(v=y),m=y);v<0||(++h,r.write_shift(4,v),r.write_shift(4,m))}var _=r.l;return r.l=f,r.write_shift(4,h),r.l=_,r.length>r.l?r.slice(0,r.l):r}(r,n,t);(o.length>17||(t["!rows"]||[])[r])&&pr(e,0,o)}var iu=ti,ou=ni;function au(data){return[Hr(data),ri(data),"n"]}var su=ti,lu=ni;var uu=["left","right","top","bottom","header","footer"];function cu(e,t,n,r,o,l,c){if(void 0===t.v)return!1;var h="";switch(t.t){case"b":h=t.v?"1":"0";break;case"d":(t=it(t)).z=t.z||X[14],t.v=Ue(tt(t.v)),t.t="n";break;case"n":case"e":h=""+t.v;break;default:h=t.v}var f={r:n,c:r};switch(f.s=jl(o.cellXfs,t,o),t.l&&l["!links"].push([Or(f),t.l]),t.c&&l["!comments"].push([Or(f),t.c]),t.t){case"s":case"str":return o.bookSST?(h=Pl(o.Strings,t.v,o.revStrings),f.t="s",f.v=h,c?pr(e,18,function(e,t,n){return null==n&&(n=cr(8)),qr(t,n),n.write_shift(4,t.v),n}(0,f)):pr(e,7,function(e,t,n){return null==n&&(n=cr(12)),Vr(t,n),n.write_shift(4,t.v),n}(0,f))):(f.t="str",c?pr(e,17,function(e,t,n){return null==n&&(n=cr(8+4*e.v.length)),qr(t,n),jr(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,f)):pr(e,6,function(e,t,n){return null==n&&(n=cr(12+4*e.v.length)),Vr(t,n),jr(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,f))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?c?pr(e,13,function(e,t,n){return null==n&&(n=cr(8)),qr(t,n),Qr(e.v,n),n}(t,f)):pr(e,2,function(e,t,n){return null==n&&(n=cr(12)),Vr(t,n),Qr(e.v,n),n}(t,f)):c?pr(e,16,function(e,t,n){return null==n&&(n=cr(12)),qr(t,n),ii(e.v,n),n}(t,f)):pr(e,5,function(e,t,n){return null==n&&(n=cr(16)),Vr(t,n),ii(e.v,n),n}(t,f)),!0;case"b":return f.t="b",c?pr(e,15,function(e,t,n){return null==n&&(n=cr(5)),qr(t,n),n.write_shift(1,e.v?1:0),n}(t,f)):pr(e,4,function(e,t,n){return null==n&&(n=cr(9)),Vr(t,n),n.write_shift(1,e.v?1:0),n}(t,f)),!0;case"e":return f.t="e",c?pr(e,14,function(e,t,n){return null==n&&(n=cr(8)),qr(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}(t,f)):pr(e,3,function(e,t,n){return null==n&&(n=cr(9)),Vr(t,n),n.write_shift(1,e.v),n}(t,f)),!0}return c?pr(e,12,function(e,t,n){return null==n&&(n=cr(4)),qr(t,n)}(0,f)):pr(e,1,function(e,t,n){return null==n&&(n=cr(8)),Vr(t,n)}(0,f)),!0}function hu(e,t){var n,r;t&&t["!merges"]&&(pr(e,177,(n=t["!merges"].length,null==r&&(r=cr(4)),r.write_shift(4,n),r)),t["!merges"].forEach((function(t){pr(e,176,lu(t))})),pr(e,178))}function fu(e,t){t&&t["!cols"]&&(pr(e,390),t["!cols"].forEach((function(t,i){t&&pr(e,60,function(e,col,t){null==t&&(t=cr(18));var p=Nl(e,col);t.write_shift(-4,e),t.write_shift(-4,e),t.write_shift(4,256*(p.width||10)),t.write_shift(4,0);var n=0;return col.hidden&&(n|=1),"number"==typeof p.width&&(n|=2),col.level&&(n|=col.level<<8),t.write_shift(2,n),t}(i,t))})),pr(e,391))}function du(e,t){var n,r;t&&t["!ref"]&&(pr(e,648),pr(e,649,(n=Er(t["!ref"]),(r=cr(24)).write_shift(4,4),r.write_shift(4,1),ni(n,r),r)),pr(e,650))}function pu(e,t,n){t["!links"].forEach((function(t){if(t[1].Target){var r=Oi(n,-1,t[1].Target.replace(/#.*$/,""),xi.HLINK);pr(e,494,function(e,t){var n=cr(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));ni({s:kr(e[0]),e:kr(e[0])},n),Zr("rId"+t,n);var r=e[1].Target.indexOf("#");return jr((-1==r?"":e[1].Target.slice(r+1))||"",n),jr(e[1].Tooltip||"",n),jr("",n),n.slice(0,n.l)}(t,r))}})),delete t["!links"]}function gu(e,t,n){pr(e,133),pr(e,137,function(e,t,n){null==n&&(n=cr(30));var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),pr(e,138),pr(e,134)}function vu(e,t){var n,r;t["!protect"]&&pr(e,535,(n=t["!protect"],null==r&&(r=cr(66)),r.write_shift(2,n.password?Pa(n.password):0),r.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(e){e[1]?r.write_shift(4,null==n[e[0]]||n[e[0]]?0:1):r.write_shift(4,null!=n[e[0]]&&n[e[0]]?0:1)})),r))}function mu(e,t,n,r){var o=dr(),s=n.SheetNames[e],l=n.Sheets[s]||{},c=s;try{n&&n.Workbook&&(c=n.Workbook.Sheets[e].CodeName||c)}catch(e){}var h,f,d=Er(l["!ref"]||"A1");if(d.e.c>16383||d.e.r>1048575){if(t.WTF)throw new Error("Range "+(l["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575)}return l["!links"]=[],l["!comments"]=[],pr(o,129),(n.vbaraw||l["!outline"])&&pr(o,147,function(e,t,n){null==n&&(n=cr(84+4*e.length));var r=192;t&&(t.above&&(r&=-65),t.left&&(r&=-129)),n.write_shift(1,r);for(var i=1;i<3;++i)n.write_shift(1,0);return oi({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),Ur(e,n),n.slice(0,n.l)}(c,l["!outline"])),pr(o,148,ou(d)),gu(o,0,n.Workbook),fu(o,l),function(e,t,n,r){var o,l=Er(t["!ref"]||"A1"),c="",h=[];pr(e,145);var f=Array.isArray(t),d=l.e.r;t["!rows"]&&(d=Math.max(l.e.r,t["!rows"].length-1));for(var v=l.s.r;v<=d;++v){c=xr(v),ru(e,t,l,v);var m=!1;if(v<=l.e.r)for(var y=l.s.c;y<=l.e.c;++y){v===l.s.r&&(h[y]=Sr(y)),o=h[y]+c;var _=f?(t[v]||[])[y]:t[o];m=!!_&&cu(e,_,v,y,r,t,m)}}pr(e,146)}(o,l,0,t),vu(o,l),function(e,t,n,r){if(t["!autofilter"]){var data=t["!autofilter"],o="string"==typeof data.ref?data.ref:Tr(data.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var l=n.Workbook.Names,c=Cr(o);c.s.r==c.e.r&&(c.e.r=Cr(t["!ref"]).e.r,o=Tr(c));for(var i=0;i<l.length;++i){var h=l[i];if("_xlnm._FilterDatabase"==h.Name&&h.Sheet==r){h.Ref="'"+n.SheetNames[r]+"'!"+o;break}}i==l.length&&l.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+o}),pr(e,161,ni(Er(o))),pr(e,162)}}(o,l,n,e),hu(o,l),pu(o,l,r),l["!margins"]&&pr(o,476,(h=l["!margins"],null==f&&(f=cr(48)),Ll(h),uu.forEach((function(e){ii(h[e],f)})),f)),t&&!t.ignoreEC&&null!=t.ignoreEC||du(o,l),function(e,t,n,r){if(t["!comments"].length>0){var o=Oi(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",xi.VML);pr(e,551,Zr("rId"+o)),t["!legacy"]=o}}(o,l,e,r),pr(o,130),o.end()}function yu(data,e,t,n,r,o){var l=o||{"!type":"chart"};if(!data)return o;var c=0,h=0,col="A",f={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(data.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=function(data){var e,col=[],t=data.match(/^<c:numCache>/);(data.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var q=e.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);q&&(col[+q[1]]=t?+q[2]:q[2])}));var n=Pt((data.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(data.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach((function(t){e=t.replace(/<.*?>/g,"")})),[col,n,e]}(e);f.s.r=f.s.c=0,f.e.c=c,col=Sr(c),t[0].forEach((function(e,i){l[col+xr(i)]={t:"n",v:e,z:t[1]},h=i})),f.e.r<h&&(f.e.r=h),++c})),c>0&&(l["!ref"]=Tr(f)),l}var bu=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],_u=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],xu=[],wu=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Su(e,t){for(var n=0;n!=e.length;++n)for(var r=e[n],i=0;i!=t.length;++i){var o=t[i];if(null==r[o[0]])r[o[0]]=o[1];else switch(o[2]){case"bool":"string"==typeof r[o[0]]&&(r[o[0]]=$t(r[o[0]]));break;case"int":"string"==typeof r[o[0]]&&(r[o[0]]=parseInt(r[o[0]],10))}}}function ku(e,t){for(var i=0;i!=t.length;++i){var n=t[i];if(null==e[n[0]])e[n[0]]=n[1];else switch(n[2]){case"bool":"string"==typeof e[n[0]]&&(e[n[0]]=$t(e[n[0]]));break;case"int":"string"==typeof e[n[0]]&&(e[n[0]]=parseInt(e[n[0]],10))}}}function Ou(e){ku(e.WBProps,bu),ku(e.CalcPr,wu),Su(e.WBView,_u),Su(e.Sheets,xu),Il.date1904=$t(e.WBProps.date1904)}var Cu="][*?/\\".split("");function Tu(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return Cu.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}function Eu(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t,n,r,o=e.Workbook&&e.Workbook.Sheets||[];t=e.SheetNames,n=o,r=!!e.vbaraw,t.forEach((function(e,i){Tu(e);for(var o=0;o<i;++o)if(e==t[o])throw new Error("Duplicate Sheet Name: "+e);if(r){var l=n&&n[i]&&n[i].CodeName||e;if(95==l.charCodeAt(0)&&l.length>22)throw new Error("Bad Code Name: Worksheet"+l)}}));for(var i=0;i<e.SheetNames.length;++i)Fl(e.Sheets[e.SheetNames[i]],e.SheetNames[i],i)}var Au=/<\w+:workbook/;function Mu(e){var t=[St];t[t.length]=rn("workbook",null,{xmlns:xn[0],"xmlns:r":mn});var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(bu.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(r[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=rn("workbookPr",null,r);var o=e.Workbook&&e.Workbook.Sheets||[],i=0;if(o&&o[0]&&o[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&o[i]&&o[i].Hidden;++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var l={name:jt(e.SheetNames[i].slice(0,31))};if(l.sheetId=""+(i+1),l["r:id"]="rId"+(i+1),o[i])switch(o[i].Hidden){case 1:l.state="hidden";break;case 2:l.state="veryHidden"}t[t.length]=rn("sheet",null,l)}return t[t.length]="</sheets>",n&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=""+e.Sheet),e.Hidden&&(n.hidden="1"),e.Ref&&(t[t.length]=rn("definedName",jt(e.Ref),n))})),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function Iu(data,e){var t={};return data.read_shift(4),t.ArchID=data.read_shift(4),data.l+=e-8,t}function Du(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n,r,o=t.Workbook.Sheets,i=0,l=-1,c=-1;i<o.length;++i)!o[i]||!o[i].Hidden&&-1==l?l=i:1==o[i].Hidden&&-1==c&&(c=i);if(!(c>l))pr(e,135),pr(e,158,(n=l,r||(r=cr(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,n),r.write_shift(4,n),r.write_shift(1,120),r.length>r.l?r.slice(0,r.l):r)),pr(e,136)}}function Pu(e,t){var n=dr();return pr(n,131),pr(n,128,function(data,e){e||(e=cr(127));for(var i=0;4!=i;++i)e.write_shift(4,0);return jr("SheetJS",e),jr(r.version,e),jr(r.version,e),jr("7262",e),e.length>e.l?e.slice(0,e.l):e}()),pr(n,153,function(data,e){e||(e=cr(72));var t=0;return data&&data.filterPrivacy&&(t|=8),e.write_shift(4,t),e.write_shift(4,0),Ur(data&&data.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}(e.Workbook&&e.Workbook.WBProps||null)),Du(n,e),function(e,t){pr(e,143);for(var n=0;n!=t.SheetNames.length;++n){pr(e,156,(data={Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]},(r=void 0)||(r=cr(127)),r.write_shift(4,data.Hidden),r.write_shift(4,data.iTabID),Zr(data.strRelID,r),jr(data.name.slice(0,31),r),r.length>r.l?r.slice(0,r.l):r))}var data,r;pr(e,144)}(n,e),pr(n,132),n.end()}function Nu(data,e,t){return".bin"===e.slice(-4)?function(data,e){var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],r=!1;e||(e={}),e.biff=12;var o=[],l=[[]];return l.SheetNames=[],l.XTI=[],_c[16]={n:"BrtFRTArchID$",f:Iu},fr(data,(function(c,h,f){switch(f){case 156:l.SheetNames.push(c.name),t.Sheets.push(c);break;case 153:t.WBProps=c;break;case 39:null!=c.Sheet&&(e.SID=c.Sheet),c.Ref=gl(c.Ptg,0,null,l,e),delete e.SID,delete c.Ptg,o.push(c);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:l[0].length?l.push([f,c]):l[0]=[f,c],l[l.length-1].XTI=[];break;case 362:0===l.length&&(l[0]=[],l[0].XTI=[]),l[l.length-1].XTI=l[l.length-1].XTI.concat(c),l.XTI=l.XTI.concat(c);break;case 35:case 37:n.push(f),r=!0;break;case 36:case 38:n.pop(),r=!1;break;default:if(h.T);else if(!r||e.WTF&&37!=n[n.length-1]&&35!=n[n.length-1])throw new Error("Unexpected record 0x"+f.toString(16))}}),e),Ou(t),t.Names=o,t.supbooks=l,t}(data,t):function(data,e){if(!data)throw new Error("Could not find file");var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,r="xmlns",o={},l=0;if(data.replace(Ct,(function(c,h){var f=At(c);switch(Mt(f[0])){case"<?xml":case"</workbook>":case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":case"<bookViews":case"<bookViews>":case"</bookViews>":case"</workbookView>":case"<sheets":case"<sheets>":case"</sheets>":case"</sheet>":case"<functionGroups":case"<functionGroups/>":case"<functionGroup":case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":case"<definedName/>":case"</calcPr>":case"<oleSize":case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":case"<customWorkbookView":case"</customWorkbookView>":case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":case"<smartTagPr":case"<smartTagPr/>":case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":case"<webPublishing":case"<webPublishing/>":case"<fileRecoveryPr":case"<fileRecoveryPr/>":case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":case"<ArchID":case"<revisionPtr":break;case"<workbook":c.match(Au)&&(r="xmlns"+c.match(/<(\w+):/)[1]),t.xmlns=f[r];break;case"<fileVersion":delete f[0],t.AppVersion=f;break;case"<workbookPr":case"<workbookPr/>":bu.forEach((function(e){if(null!=f[e[0]])switch(e[2]){case"bool":t.WBProps[e[0]]=$t(f[e[0]]);break;case"int":t.WBProps[e[0]]=parseInt(f[e[0]],10);break;default:t.WBProps[e[0]]=f[e[0]]}})),f.codeName&&(t.WBProps.CodeName=Ut(f.codeName));break;case"<workbookView":case"<workbookView/>":delete f[0],t.WBView.push(f);break;case"<sheet":switch(f.state){case"hidden":f.Hidden=1;break;case"veryHidden":f.Hidden=2;break;default:f.Hidden=0}delete f.state,f.name=Pt(Ut(f.name)),delete f[0],t.Sheets.push(f);break;case"<definedNames>":case"<definedNames":case"<ext":case"<AlternateContent":case"<AlternateContent>":n=!0;break;case"</definedNames>":case"</ext>":case"</AlternateContent>":n=!1;break;case"<definedName":(o={}).Name=Ut(f.name),f.comment&&(o.Comment=f.comment),f.localSheetId&&(o.Sheet=+f.localSheetId),$t(f.hidden||"0")&&(o.Hidden=!0),l=h+c.length;break;case"</definedName>":o.Ref=Pt(Ut(data.slice(l,h))),t.Names.push(o);break;case"<calcPr":case"<calcPr/>":delete f[0],t.CalcPr=f;break;default:if(!n&&e.WTF)throw new Error("unrecognized "+f[0]+" in workbook")}return c})),-1===xn.indexOf(t.xmlns))throw new Error("Unknown Namespace: "+t.xmlns);return Ou(t),t}(data,t)}function Lu(data,e,t,n,r,o,l,c){return".bin"===e.slice(-4)?function(data,e,t,n,r,o,l){if(!data)return data;var c=e||{};n||(n={"!id":{}});var h,f,p,d,v,m,y,_,x,w,s=c.dense?[]:{},S={s:{r:2e6,c:2e6},e:{r:0,c:0}},k=[],O=!1,C=!1,T=[];c.biff=12,c["!row"]=0;var E=0,A=!1,M=[],I={},D=c.supbooks||r.supbooks||[[]];if(D.sharedf=I,D.arrayf=M,D.SheetNames=r.SheetNames||r.Sheets.map((function(e){return e.name})),!c.supbooks&&(c.supbooks=D,r.Names))for(var i=0;i<r.Names.length;++i)D[0][i+1]=r.Names[i];var P,N,L=[],j=[],R=!1;if(_c[16]={n:"BrtShortReal",f:au},fr(data,(function(e,F,B){if(!C)switch(B){case 148:h=e;break;case 0:f=e,c.sheetRows&&c.sheetRows<=f.r&&(C=!0),x=xr(v=f.r),c["!row"]=f.r,(e.hidden||e.hpt||null!=e.level)&&(e.hpt&&(e.hpx=Ya(e.hpt)),j[e.r]=e);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(p={t:e[2]},e[2]){case"n":p.v=e[1];break;case"s":_=Ml[e[1]],p.v=_.t,p.r=_.r;break;case"b":p.v=!!e[1];break;case"e":p.v=e[1],!1!==c.cellText&&(p.w=vi[p.v]);break;case"str":p.t="s",p.v=e[1];break;case"is":p.t="s",p.v=e[1].t}if((d=l.CellXf[e[0].iStyleRef])&&Rl(p,d.numFmtId,null,c,o,l),m=-1==e[0].c?m+1:e[0].c,c.dense?(s[v]||(s[v]=[]),s[v][m]=p):s[Sr(m)+x]=p,c.cellFormula){for(A=!1,E=0;E<M.length;++E){var z=M[E];f.r>=z[0].s.r&&f.r<=z[0].e.r&&m>=z[0].s.c&&m<=z[0].e.c&&(p.F=Tr(z[0]),A=!0)}!A&&e.length>3&&(p.f=e[3])}if(S.s.r>f.r&&(S.s.r=f.r),S.s.c>m&&(S.s.c=m),S.e.r<f.r&&(S.e.r=f.r),S.e.c<m&&(S.e.c=m),c.cellDates&&d&&"n"==p.t&&ke(X[d.numFmtId])){var $=ee(p.v);$&&(p.t="d",p.v=new Date($.y,$.m-1,$.d,$.H,$.M,$.S,$.u))}P&&("XLDAPR"==P.type&&(p.D=!0),P=void 0),N&&(N=void 0);break;case 1:case 12:if(!c.sheetStubs||O)break;p={t:"z",v:void 0},m=-1==e[0].c?m+1:e[0].c,c.dense?(s[v]||(s[v]=[]),s[v][m]=p):s[Sr(m)+x]=p,S.s.r>f.r&&(S.s.r=f.r),S.s.c>m&&(S.s.c=m),S.e.r<f.r&&(S.e.r=f.r),S.e.c<m&&(S.e.c=m),P&&("XLDAPR"==P.type&&(p.D=!0),P=void 0),N&&(N=void 0);break;case 176:T.push(e);break;case 49:P=((c.xlmeta||{}).Cell||[])[e-1];break;case 494:var V=n["!id"][e.relId];for(V?(e.Target=V.Target,e.loc&&(e.Target+="#"+e.loc),e.Rel=V):""==e.relId&&(e.Target="#"+e.loc),v=e.rfx.s.r;v<=e.rfx.e.r;++v)for(m=e.rfx.s.c;m<=e.rfx.e.c;++m)c.dense?(s[v]||(s[v]=[]),s[v][m]||(s[v][m]={t:"z",v:void 0}),s[v][m].l=e):(y=Or({c:m,r:v}),s[y]||(s[y]={t:"z",v:void 0}),s[y].l=e);break;case 426:if(!c.cellFormula)break;M.push(e),(w=c.dense?s[v][m]:s[Sr(m)+x]).f=gl(e[1],0,{r:f.r,c:m},D,c),w.F=Tr(e[0]);break;case 427:if(!c.cellFormula)break;I[Or(e[0].s)]=e[1],(w=c.dense?s[v][m]:s[Sr(m)+x]).f=gl(e[1],0,{r:f.r,c:m},D,c);break;case 60:if(!c.cellStyles)break;for(;e.e>=e.s;)L[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},R||(R=!0,Wa(e.w/256)),Ua(L[e.e+1]);break;case 161:s["!autofilter"]={ref:Tr(e)};break;case 476:s["!margins"]=e;break;case 147:r.Sheets[t]||(r.Sheets[t]={}),e.name&&(r.Sheets[t].CodeName=e.name),(e.above||e.left)&&(s["!outline"]={above:e.above,left:e.left});break;case 137:r.Views||(r.Views=[{}]),r.Views[0]||(r.Views[0]={}),e.RTL&&(r.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:O=!0;break;case 36:O=!1;break;case 37:k.push(B),O=!0;break;case 38:k.pop(),O=!1;break;default:if(F.T);else if(!O||c.WTF)throw new Error("Unexpected record 0x"+B.toString(16))}}),c),delete c.supbooks,delete c["!row"],!s["!ref"]&&(S.s.r<2e6||h&&(h.e.r>0||h.e.c>0||h.s.r>0||h.s.c>0))&&(s["!ref"]=Tr(h||S)),c.sheetRows&&s["!ref"]){var F=Er(s["!ref"]);c.sheetRows<=+F.e.r&&(F.e.r=c.sheetRows-1,F.e.r>S.e.r&&(F.e.r=S.e.r),F.e.r<F.s.r&&(F.s.r=F.e.r),F.e.c>S.e.c&&(F.e.c=S.e.c),F.e.c<F.s.c&&(F.s.c=F.e.c),s["!fullref"]=s["!ref"],s["!ref"]=Tr(F))}return T.length>0&&(s["!merges"]=T),L.length>0&&(s["!cols"]=L),j.length>0&&(s["!rows"]=j),s}(data,n,t,r,o,l,c):Kl(data,n,t,r,o,l,c)}function ju(data,e,t,n,r,o,l,c){return".bin"===e.slice(-4)?function(data,e,t,n,r){if(!data)return data;n||(n={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},o=[],l=!1;return fr(data,(function(n,c,h){switch(h){case 550:s["!rel"]=n;break;case 651:r.Sheets[t]||(r.Sheets[t]={}),n.name&&(r.Sheets[t].CodeName=n.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:l=!0;break;case 36:l=!1;break;case 37:o.push(h);break;case 38:o.pop();break;default:if(c.T>0)o.push(h);else if(c.T<0)o.pop();else if(!l||e.WTF)throw new Error("Unexpected record 0x"+h.toString(16))}}),e),n["!id"][s["!rel"]]&&(s["!drawel"]=n["!id"][s["!rel"]]),s}(data,n,t,r,o):function(data,e,t,n,r){if(!data)return data;n||(n={"!id":{}});var o,s={"!type":"chart","!drawel":null,"!rel":""},l=data.match(Ul);return l&&Xl(l[0],0,r,t),(o=data.match(/drawing r:id="(.*?)"/))&&(s["!rel"]=o[1]),n["!id"][s["!rel"]]&&(s["!drawel"]=n["!id"][s["!rel"]]),s}(data,0,t,r,o)}function Ru(data,e,t,n){return".bin"===e.slice(-4)?function(data,e,t){var n={NumberFmt:[]};for(var r in X)n.NumberFmt[r]=X[r];n.CellXf=[],n.Fonts=[];var o=[],l=!1;return fr(data,(function(r,c,h){switch(h){case 44:n.NumberFmt[r[0]]=r[1],Ae(r[1],r[0]);break;case 43:n.Fonts.push(r),null!=r.color.theme&&e&&e.themeElements&&e.themeElements.clrScheme&&(r.color.rgb=Ba(e.themeElements.clrScheme[r.color.theme].rgb,r.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:617==o[o.length-1]&&n.CellXf.push(r);break;case 35:l=!0;break;case 36:l=!1;break;case 37:o.push(h),l=!0;break;case 38:o.pop(),l=!1;break;default:if(c.T>0)o.push(h);else if(c.T<0)o.pop();else if(!l||t.WTF&&37!=o[o.length-1])throw new Error("Unexpected record 0x"+h.toString(16))}})),n}(data,t,n):Ja(data,t,n)}function Fu(data,e,t){return".bin"===e.slice(-4)?function(data,e){var s=[],t=!1;return fr(data,(function(n,r,o){switch(o){case 159:s.Count=n[0],s.Unique=n[1];break;case 19:s.push(n);break;case 160:return!0;case 35:t=!0;break;case 36:t=!1;break;default:if(r.T,!t||e.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}})),s}(data,t):function(data,e){var s=[],t="";if(!data)return s;var n=data.match(ma);if(n){t=n[2].replace(ya,"").split(ba);for(var i=0;i!=t.length;++i){var r=va(t[i].trim(),e);null!=r&&(s[s.length]=r)}n=At(n[1]),s.Count=n.count,s.Unique=n.uniqueCount}return s}(data,t)}function Bu(data,e,t){return".bin"===e.slice(-4)?function(data,e){var t=[],n=[],r={},o=!1;return fr(data,(function(l,c,h){switch(h){case 632:n.push(l);break;case 635:r=l;break;case 637:r.t=l.t,r.h=l.h,r.r=l.r;break;case 636:if(r.author=n[r.iauthor],delete r.iauthor,e.sheetRows&&r.rfx&&e.sheetRows<=r.rfx.r)break;r.t||(r.t=""),delete r.rfx,t.push(r);break;case 3072:case 37:case 38:break;case 35:o=!0;break;case 36:o=!1;break;default:if(c.T);else if(!o||e.WTF)throw new Error("Unexpected record 0x"+h.toString(16))}})),t}(data,t):function(data,e){if(data.match(/<(?:\w+:)?comments *\/>/))return[];var t=[],n=[],r=data.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);r&&r[1]&&r[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var a=e.match(/<(?:\w+:)?author[^>]*>(.*)/);a&&t.push(a[1])}}));var o=data.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return o&&o[1]&&o[1].split(/<\/\w*:?comment>/).forEach((function(r){if(""!==r&&""!==r.trim()){var o=r.match(/<(?:\w+:)?comment[^>]*>/);if(o){var l=At(o[0]),c={author:l.authorId&&t[l.authorId]||"sheetjsghost",ref:l.ref,guid:l.guid},h=kr(l.ref);if(!(e.sheetRows&&e.sheetRows<=h.r)){var f=r.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),rt=!!f&&!!f[1]&&va(f[1])||{r:"",t:"",h:""};c.r=rt.r,"<t></t>"==rt.r&&(rt.t=rt.h=""),c.t=(rt.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.cellHTML&&(c.h=rt.h),n.push(c)}}}})),n}(data,t)}function zu(data,e,t){return".bin"===e.slice(-4)?function(data,e,t){var n=[];return fr(data,(function(e,t,r){if(63===r)n.push(e);else if(!t.T)throw new Error("Unexpected record 0x"+r.toString(16))})),n}(data):function(data){var e=[];if(!data)return e;var i=1;return(data.match(Ct)||[]).forEach((function(t){var n=At(t);switch(n[0]){case"<?xml":case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete n[0],n.i?i=n.i:n.i=i,e.push(n)}})),e}(data)}function $u(data,e,t,n){if(".bin"===t.slice(-4))return function(data,e,t,n){if(!data)return data;var r=n||{},o=!1;fr(data,(function(e,t,n){switch(n){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:o=!0;break;case 36:o=!1;break;default:if(t.T);else if(!o||r.WTF)throw new Error("Unexpected record 0x"+n.toString(16))}}),r)}(data,0,0,n)}function Vu(data,e,t){return".bin"===e.slice(-4)?function(data,e,t){var n={Types:[],Cell:[],Value:[]},r=t||{},o=[],l=!1,c=2;return fr(data,(function(e,t,h){switch(h){case 335:n.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==c?n.Cell.push({type:n.Types[e[0]-1].name,index:e[1]}):0==c&&n.Value.push({type:n.Types[e[0]-1].name,index:e[1]})}));break;case 337:c=e?1:0;break;case 338:c=2;break;case 35:o.push(h),l=!0;break;case 36:o.pop(),l=!1;break;default:if(t.T);else if(!l||r.WTF&&35!=o[o.length-1])throw new Error("Unexpected record 0x"+h.toString(16))}})),n}(data,0,t):function(data,e,t){var n={Types:[],Cell:[],Value:[]};if(!data)return n;var r,o=!1,l=2;return data.replace(Ct,(function(e){var c=At(e);switch(Mt(c[0])){case"<?xml":case"<metadata":case"</metadata>":case"<metadataTypes":case"</metadataTypes>":case"</metadataType>":case"</futureMetadata>":case"<bk>":case"</bk>":case"</rc>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<metadataType":n.Types.push({name:c.name});break;case"<futureMetadata":for(var h=0;h<n.Types.length;++h)n.Types[h].name==c.name&&(r=n.Types[h]);break;case"<rc":1==l?n.Cell.push({type:n.Types[c.t-1].name,index:+c.v}):0==l&&n.Value.push({type:n.Types[c.t-1].name,index:+c.v});break;case"<cellMetadata":l=1;break;case"</cellMetadata>":case"</valueMetadata>":l=2;break;case"<valueMetadata":l=0;break;case"<ext":o=!0;break;case"</ext>":o=!1;break;case"<rvb":if(!r)break;r.offsets||(r.offsets=[]),r.offsets.push(+c.i);break;default:if(!o&&t.WTF)throw new Error("unrecognized "+c[0]+" in metadata")}return e})),n}(data,0,t)}function Hu(data,e,t,n,r){return(".bin"===e.slice(-4)?mu:nu)(data,t,n,r)}function qu(data,e,t){return(".bin"===e.slice(-4)?Ps:Ms)(data,t)}var Wu,Uu=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Gu=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Yu(e,t){var n=e.split(/\s+/),r=[];if(t||(r[0]=n[0]),1===n.length)return r;var o,l,i,c=e.match(Uu);if(c)for(i=0;i!=c.length;++i)-1===(l=(o=c[i].match(Gu))[1].indexOf(":"))?r[o[1]]=o[2].slice(1,o[2].length-1):r["xmlns:"===o[1].slice(0,6)?"xmlns"+o[1].slice(6):o[1].slice(l+1)]=o[2].slice(1,o[2].length-1);return r}function Ku(e){var t={};if(1===e.split(/\s+/).length)return t;var n,r,i,o=e.match(Uu);if(o)for(i=0;i!=o.length;++i)-1===(r=(n=o[i].match(Gu))[1].indexOf(":"))?t[n[1]]=n[2].slice(1,n[2].length-1):t["xmlns:"===n[1].slice(0,6)?"xmlns"+n[1].slice(6):n[1].slice(r+1)]=n[2].slice(1,n[2].length-1);return t}function Xu(e,t,n,r){var o=r;switch((n[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":o=$t(r);break;case"i2":case"int":o=parseInt(r,10);break;case"r4":case"float":o=parseFloat(r);break;case"date":case"dateTime.tz":o=tt(r);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+n[0])}e[Pt(t)]=o}function Zu(e,t,n){if("z"!==e.t){if(!n||!1!==n.cellText)try{"e"===e.t?e.w=e.w||vi[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=ae(e.v):e.w=se(e.v):e.w=(r=t||"General",o=e.v,"General"===(l=Wu[r]||Pt(r))?se(o):Ee(l,o))}catch(e){if(n.WTF)throw e}var r,o,l;try{var c=Wu[t]||t||"General";if(n.cellNF&&(e.z=c),n.cellDates&&"n"==e.t&&ke(c)){var h=ee(e.v);h&&(e.t="d",e.v=new Date(h.y,h.m-1,h.d,h.H,h.M,h.S,h.u))}}catch(e){if(n.WTF)throw e}}}function Ju(e,t,n){if(n.cellStyles&&t.Interior){var r=t.Interior;r.Pattern&&(r.patternType=Ka[r.Pattern]||r.Pattern)}e[t.ID]=t}function Qu(e,t,data,n,base,r,o,l,c,h){var f="General",d=n.StyleID,v={};h=h||{};var m=[],i=0;for(void 0===d&&l&&(d=l.StyleID),void 0===d&&o&&(d=o.StyleID);void 0!==r[d]&&(r[d].nf&&(f=r[d].nf),r[d].Interior&&m.push(r[d].Interior),r[d].Parent);)d=r[d].Parent;switch(data.Type){case"Boolean":n.t="b",n.v=$t(e);break;case"String":n.t="s",n.r=zt(Pt(e)),n.v=e.indexOf("<")>-1?Pt(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),n.v=(tt(e)-new Date(Date.UTC(1899,11,30)))/864e5,n.v!=n.v?n.v=Pt(e):n.v<60&&(n.v=n.v-1),f&&"General"!=f||(f="yyyy-mm-dd");case"Number":void 0===n.v&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=mi[e],!1!==h.cellText&&(n.w=e);break;default:""==e&&""==t?n.t="z":(n.t="s",n.v=zt(t||e))}if(Zu(n,f,h),!1!==h.cellFormula)if(n.Formula){var y=Pt(n.Formula);61==y.charCodeAt(0)&&(y=y.slice(1)),n.f=Ls(y,base),delete n.Formula,"RC"==n.ArrayRange?n.F=Ls("RC:RC",base):n.ArrayRange&&(n.F=Ls(n.ArrayRange,base),c.push([Er(n.F),n.F]))}else for(i=0;i<c.length;++i)base.r>=c[i][0].s.r&&base.r<=c[i][0].e.r&&base.c>=c[i][0].s.c&&base.c<=c[i][0].e.c&&(n.F=c[i][1]);h.cellStyles&&(m.forEach((function(e){!v.patternType&&e.patternType&&(v.patternType=e.patternType)})),n.s=v),void 0!==n.StyleID&&(n.ixfe=n.StyleID)}function ec(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function tc(e,t){var n=t||{};Ie();var r=x(an(e));"binary"!=n.type&&"array"!=n.type&&"base64"!=n.type||(r=void 0!==_?_.utils.decode(65001,m(r)):Ut(r));var o,l=r.slice(0,1024).toLowerCase(),c=!1;if((1023&(l=l.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&l.indexOf(","),1023&l.indexOf(";"))){var h=it(n);return h.type="string",ua.to_workbook(r,h)}if(-1==l.indexOf("<?xml")&&["html","table","head","meta","script","style","div"].forEach((function(e){l.indexOf("<"+e)>=0&&(c=!0)})),c)return function(e,t){var n=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!n||0==n.length)throw new Error("Invalid HTML: could not find <table>");if(1==n.length)return Ir(Dc(n[0],t),t);var r={SheetNames:[],Sheets:{}};return n.forEach((function(s,e){tf(r,Dc(s,t),"Sheet"+(e+1))})),r}(r,n);Wu={"General Number":"General","General Date":X[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":X[15],"Short Date":X[14],"Long Time":X[19],"Medium Time":X[18],"Short Time":X[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:X[2],Standard:X[4],Percent:X[10],Scientific:X[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var f,d=[];var v,y={},w=[],S=n.dense?[]:{},k="",O={},C={},T=Yu('<Data ss:Type="String">'),E=0,A=0,M=0,I={s:{r:2e6,c:2e6},e:{r:0,c:0}},D={},P={},N="",L=0,j=[],R={},F={},B=0,z=[],$=[],V={},H=[],W=!1,U=[],G=[],Y={},K=0,Z=0,J={Sheets:[],WBProps:{date1904:!1}},Q={};sn.lastIndex=0,r=r.replace(/<!--([\s\S]*?)-->/gm,"");for(var ee="";o=sn.exec(r);)switch(o[3]=(ee=o[3]).toLowerCase()){case"data":if("data"==ee){if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else"/"!==o[0].charAt(o[0].length-2)&&d.push([o[3],!0]);break}if(d[d.length-1][1])break;"/"===o[1]?Qu(r.slice(E,o.index),N,T,"comment"==d[d.length-1][0]?V:O,{c:A,r:M},D,H[A],C,U,n):(N="",T=Yu(o[0]),E=o.index+o[0].length);break;case"cell":if("/"===o[1])if($.length>0&&(O.c=$),(!n.sheetRows||n.sheetRows>M)&&void 0!==O.v&&(n.dense?(S[M]||(S[M]=[]),S[M][A]=O):S[Sr(A)+xr(M)]=O),O.HRef&&(O.l={Target:Pt(O.HRef)},O.HRefScreenTip&&(O.l.Tooltip=O.HRefScreenTip),delete O.HRef,delete O.HRefScreenTip),(O.MergeAcross||O.MergeDown)&&(K=A+(0|parseInt(O.MergeAcross,10)),Z=M+(0|parseInt(O.MergeDown,10)),j.push({s:{c:A,r:M},e:{c:K,r:Z}})),n.sheetStubs)if(O.MergeAcross||O.MergeDown){for(var te=A;te<=K;++te)for(var ne=M;ne<=Z;++ne)(te>A||ne>M)&&(n.dense?(S[ne]||(S[ne]=[]),S[ne][te]={t:"z"}):S[Sr(te)+xr(ne)]={t:"z"});A=K+1}else++A;else O.MergeAcross?A=K+1:++A;else(O=Ku(o[0])).Index&&(A=+O.Index-1),A<I.s.c&&(I.s.c=A),A>I.e.c&&(I.e.c=A),"/>"===o[0].slice(-2)&&++A,$=[];break;case"row":"/"===o[1]||"/>"===o[0].slice(-2)?(M<I.s.r&&(I.s.r=M),M>I.e.r&&(I.e.r=M),"/>"===o[0].slice(-2)&&(C=Yu(o[0])).Index&&(M=+C.Index-1),A=0,++M):((C=Yu(o[0])).Index&&(M=+C.Index-1),Y={},("0"==C.AutoFitHeight||C.Height)&&(Y.hpx=parseInt(C.Height,10),Y.hpt=Ga(Y.hpx),G[M]=Y),"1"==C.Hidden&&(Y.hidden=!0,G[M]=Y));break;case"worksheet":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"));w.push(k),I.s.r<=I.e.r&&I.s.c<=I.e.c&&(S["!ref"]=Tr(I),n.sheetRows&&n.sheetRows<=I.e.r&&(S["!fullref"]=S["!ref"],I.e.r=n.sheetRows-1,S["!ref"]=Tr(I))),j.length&&(S["!merges"]=j),H.length>0&&(S["!cols"]=H),G.length>0&&(S["!rows"]=G),y[k]=S}else I={s:{r:2e6,c:2e6},e:{r:0,c:0}},M=A=0,d.push([o[3],!1]),f=Yu(o[0]),k=Pt(f.Name),S=n.dense?[]:{},j=[],U=[],G=[],Q={name:k,Hidden:0},J.Sheets.push(Q);break;case"table":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else{if("/>"==o[0].slice(-2))break;d.push([o[3],!1]),H=[],W=!1}break;case"style":"/"===o[1]?Ju(D,P,n):P=Yu(o[0]);break;case"numberformat":P.nf=Pt(Yu(o[0]).Format||"General"),Wu[P.nf]&&(P.nf=Wu[P.nf]);for(var re=0;392!=re&&X[re]!=P.nf;++re);if(392==re)for(re=57;392!=re;++re)if(null==X[re]){Ae(P.nf,re);break}break;case"column":if("table"!==d[d.length-1][0])break;if((v=Yu(o[0])).Hidden&&(v.hidden=!0,delete v.Hidden),v.Width&&(v.wpx=parseInt(v.Width,10)),!W&&v.wpx>10){W=!0,za=6;for(var ie=0;ie<H.length;++ie)H[ie]&&Ua(H[ie])}W&&Ua(v),H[v.Index-1||H.length]=v;for(var i=0;i<+v.Span;++i)H[H.length]=it(v);break;case"namedrange":if("/"===o[1])break;J.Names||(J.Names=[]);var oe=At(o[0]),ae={Name:oe.Name,Ref:Ls(oe.RefersTo.slice(1),{r:0,c:0})};J.Sheets.length>0&&(ae.Sheet=J.Sheets.length-1),J.Names.push(ae);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if("/>"===o[0].slice(-2))break;"/"===o[1]?N+=r.slice(L,o.index):L=o.index+o[0].length;break;case"interior":if(!n.cellStyles)break;P.Interior=Yu(o[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===o[0].slice(-2))break;"/"===o[1]?$i(R,ee,r.slice(B,o.index)):B=o.index+o[0].length;break;case"styles":case"workbook":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else d.push([o[3],!1]);break;case"comment":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"));ec(V),$.push(V)}else d.push([o[3],!1]),V={a:(f=Yu(o[0])).Author};break;case"autofilter":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else if("/"!==o[0].charAt(o[0].length-2)){var se=Yu(o[0]);S["!autofilter"]={ref:Ls(se.Range).replace(/\$/g,"")},d.push([o[3],!0])}break;case"datavalidation":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else"/"!==o[0].charAt(o[0].length-2)&&d.push([o[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else"/"!==o[0].charAt(o[0].length-2)&&d.push([o[3],!0]);break;default:if(0==d.length&&"document"==o[3])return qc(r,n);if(0==d.length&&"uof"==o[3])return qc(r,n);var le=!0;switch(d[d.length-1][0]){case"officedocumentsettings":switch(o[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:le=!1}break;case"componentoptions":switch(o[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:le=!1}break;case"excelworkbook":switch(o[3]){case"date1904":J.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:le=!1}break;case"workbookoptions":switch(o[3]){case"owcversion":case"height":case"width":break;default:le=!1}break;case"worksheetoptions":switch(o[3]){case"visible":if("/>"===o[0].slice(-2));else if("/"===o[1])switch(r.slice(B,o.index)){case"SheetHidden":Q.Hidden=1;break;case"SheetVeryHidden":Q.Hidden=2}else B=o.index+o[0].length;break;case"header":S["!margins"]||Ll(S["!margins"]={},"xlml"),isNaN(+At(o[0]).Margin)||(S["!margins"].header=+At(o[0]).Margin);break;case"footer":S["!margins"]||Ll(S["!margins"]={},"xlml"),isNaN(+At(o[0]).Margin)||(S["!margins"].footer=+At(o[0]).Margin);break;case"pagemargins":var ue=At(o[0]);S["!margins"]||Ll(S["!margins"]={},"xlml"),isNaN(+ue.Top)||(S["!margins"].top=+ue.Top),isNaN(+ue.Left)||(S["!margins"].left=+ue.Left),isNaN(+ue.Right)||(S["!margins"].right=+ue.Right),isNaN(+ue.Bottom)||(S["!margins"].bottom=+ue.Bottom);break;case"displayrighttoleft":J.Views||(J.Views=[]),J.Views[0]||(J.Views[0]={}),J.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":S["!outline"]||(S["!outline"]={}),S["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":S["!outline"]||(S["!outline"]={}),S["!outline"].left=!0;break;default:le=!1}break;case"pivottable":case"pivotcache":switch(o[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:le=!1}break;case"pagebreaks":switch(o[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:le=!1}break;case"autofilter":switch(o[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:le=!1}break;case"querytable":switch(o[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:le=!1}break;case"datavalidation":switch(o[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:le=!1}break;case"sorting":case"conditionalformatting":switch(o[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:le=!1}break;case"mapinfo":case"schema":case"data":switch(o[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:le=!1}break;case"smarttags":break;default:le=!1}if(le)break;if(o[3].match(/!\[CDATA/))break;if(!d[d.length-1][1])throw"Unrecognized tag: "+o[3]+"|"+d.join("|");if("customdocumentproperties"===d[d.length-1][0]){if("/>"===o[0].slice(-2))break;"/"===o[1]?Xu(F,ee,z,r.slice(B,o.index)):(z=o,B=o.index+o[0].length);break}if(n.WTF)throw"Unrecognized tag: "+o[3]+"|"+d.join("|")}var ce={};return n.bookSheets||n.bookProps||(ce.Sheets=y),ce.SheetNames=w,ce.Workbook=J,ce.SSF=it(X),ce.Props=R,ce.Custprops=F,ce}function nc(data,e){switch(Sh(e=e||{}),e.type||"base64"){case"base64":return tc(T(data),e);case"binary":case"buffer":case"file":return tc(data,e);case"array":return tc(N(data),e)}}function rc(e,t){var n=[];return e.Props&&n.push(function(e,t){var n=[];return $e(zi).map((function(e){for(var i=0;i<Ei.length;++i)if(Ei[i][1]==e)return Ei[i];for(i=0;i<Pi.length;++i)if(Pi[i][1]==e)return Pi[i];throw e})).forEach((function(p){if(null!=e[p[1]]){var r=t&&t.Props&&null!=t.Props[p[1]]?t.Props[p[1]]:e[p[1]];"date"===p[2]&&(r=new Date(r).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof r?r=String(r):!0===r||!1===r?r=r?"1":"0":r instanceof Date&&(r=new Date(r).toISOString().replace(/\.\d*Z/,"")),n.push(tn(zi[p[1]]||p[1],r))}})),rn("DocumentProperties",n.join(""),{xmlns:wn})}(e.Props,t)),e.Custprops&&n.push(function(e,t){var n=["Worksheets","SheetNames"],r="CustomDocumentProperties",o=[];return e&&$e(e).forEach((function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var i=0;i<Ei.length;++i)if(t==Ei[i][1])return;for(i=0;i<Pi.length;++i)if(t==Pi[i][1])return;for(i=0;i<n.length;++i)if(t==n[i])return;var r=e[t],l="string";"number"==typeof r?(l="float",r=String(r)):!0===r||!1===r?(l="boolean",r=r?"1":"0"):r=String(r),o.push(rn(Rt(t),r,{"dt:dt":l}))}})),t&&$e(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)&&(!e||!Object.prototype.hasOwnProperty.call(e,n))){var r=t[n],l="string";"number"==typeof r?(l="float",r=String(r)):!0===r||!1===r?(l="boolean",r=r?"1":"0"):r instanceof Date?(l="dateTime.tz",r=r.toISOString()):r=String(r),o.push(rn(Rt(n),r,{"dt:dt":l}))}})),"<"+r+' xmlns="'+wn+'">'+o.join("")+"</"+r+">"}(e.Props,e.Custprops)),n.join("")}function ic(e){return rn("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Rs(e.Ref,{r:0,c:0})})}function oc(e,t,n,r,o,l,c){if(!e||null==e.v&&null==e.f)return"";var h={};if(e.f&&(h["ss:Formula"]="="+jt(Rs(e.f,c))),e.F&&e.F.slice(0,t.length)==t){var f=kr(e.F.slice(t.length+1));h["ss:ArrayRange"]="RC:R"+(f.r==c.r?"":"["+(f.r-c.r)+"]")+"C"+(f.c==c.c?"":"["+(f.c-c.c)+"]")}if(e.l&&e.l.Target&&(h["ss:HRef"]=jt(e.l.Target),e.l.Tooltip&&(h["x:HRefScreenTip"]=jt(e.l.Tooltip))),n["!merges"])for(var d=n["!merges"],v=0;v!=d.length;++v)d[v].s.c==c.c&&d[v].s.r==c.r&&(d[v].e.c>d[v].s.c&&(h["ss:MergeAcross"]=d[v].e.c-d[v].s.c),d[v].e.r>d[v].s.r&&(h["ss:MergeDown"]=d[v].e.r-d[v].s.r));var m="",p="";switch(e.t){case"z":if(!r.sheetStubs)return"";break;case"n":m="Number",p=String(e.v);break;case"b":m="Boolean",p=e.v?"1":"0";break;case"e":m="Error",p=vi[e.v];break;case"d":m="DateTime",p=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||X[14]);break;case"s":m="String",p=((e.v||"")+"").replace(Nt,(function(e){return Dt[e]})).replace(Ft,(function(s){return"&#x"+s.charCodeAt(0).toString(16).toUpperCase()+";"}))}var y=jl(r.cellXfs,e,r);h["ss:StyleID"]="s"+(21+y),h["ss:Index"]=c.c+1;var _=null!=e.v?p:"",x="z"==e.t?"":'<Data ss:Type="'+m+'">'+_+"</Data>";return(e.c||[]).length>0&&(x+=e.c.map((function(e){var t=rn("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g,"&#10;"),{xmlns:"http://www.w3.org/TR/REC-html40"});return rn("Comment",t,{"ss:Author":e.a})})).join("")),rn("Cell",x,h)}function ac(e,t){var n='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=Ya(t.hpt)),t.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(n+=' ss:Hidden="1"')),n+">"}function sc(e,t,n){var r=[],s=n.SheetNames[e],o=n.Sheets[s],l=o?function(e,t,n,r){if(!e)return"";if(!((r||{}).Workbook||{}).Names)return"";for(var o=r.Workbook.Names,l=[],i=0;i<o.length;++i){var c=o[i];c.Sheet==n&&(c.Name.match(/^_xlfn\./)||l.push(ic(c)))}return l.join("")}(o,0,e,n):"";return l.length>0&&r.push("<Names>"+l+"</Names>"),l=o?function(e,t,n,r){if(!e["!ref"])return"";var o=Er(e["!ref"]),l=e["!merges"]||[],c=0,h=[];e["!cols"]&&e["!cols"].forEach((function(e,i){Ua(e);var t=!!e.width,p=Nl(i,e),n={"ss:Index":i+1};t&&(n["ss:Width"]=$a(p.width)),e.hidden&&(n["ss:Hidden"]="1"),h.push(rn("Column",null,n))}));for(var f=Array.isArray(e),d=o.s.r;d<=o.e.r;++d){for(var v=[ac(d,(e["!rows"]||[])[d])],m=o.s.c;m<=o.e.c;++m){var y=!1;for(c=0;c!=l.length;++c)if(!(l[c].s.c>m||l[c].s.r>d||l[c].e.c<m||l[c].e.r<d)){l[c].s.c==m&&l[c].s.r==d||(y=!0);break}if(!y){var _={r:d,c:m},x=Or(_),w=f?(e[d]||[])[m]:e[x];v.push(oc(w,x,e,t,0,0,_))}}v.push("</Row>"),v.length>2&&h.push(v.join(""))}return h.join("")}(o,t):"",l.length>0&&r.push("<Table>"+l+"</Table>"),r.push(function(e,t,n,r){if(!e)return"";var o=[];if(e["!margins"]&&(o.push("<PageSetup>"),e["!margins"].header&&o.push(rn("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&o.push(rn("Footer",null,{"x:Margin":e["!margins"].footer})),o.push(rn("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),o.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)o.push(rn("Visible",1==r.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<n&&(!r.Workbook.Sheets[i]||r.Workbook.Sheets[i].Hidden);++i);i==n&&o.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&o.push("<DisplayRightToLeft/>"),e["!protect"]&&(o.push(tn("ProtectContents","True")),e["!protect"].objects&&o.push(tn("ProtectObjects","True")),e["!protect"].scenarios&&o.push(tn("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||o.push(tn("EnableSelection","UnlockedCells")):o.push(tn("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&o.push("<"+t[1]+"/>")}))),0==o.length?"":rn("WorksheetOptions",o.join(""),{xmlns:Sn})}(o,0,e,n)),r.join("")}function lc(e,t){t||(t={}),e.SSF||(e.SSF=it(X)),e.SSF&&(Ie(),Me(e.SSF),t.revssf=qe(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],jl(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(rc(e,t)),n.push(""),n.push(""),n.push("");for(var i=0;i<e.SheetNames.length;++i)n.push(rn("Worksheet",sc(i,t,e),{"ss:Name":jt(e.SheetNames[i])}));return n[2]=function(e,t){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach((function(e,t){var r=[];r.push(rn("NumberFormat",null,{"ss:Format":jt(X[e.numFmtId])}));var o={"ss:ID":"s"+(21+t)};n.push(rn("Style",r.join(""),o))})),rn("Styles",n.join(""))}(0,t),n[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],i=0;i<t.length;++i){var r=t[i];null==r.Sheet&&(r.Name.match(/^_xlfn\./)||n.push(ic(r)))}return rn("Names",n.join(""))}(e),St+rn("Workbook",n.join(""),{xmlns:kn,"xmlns:o":wn,"xmlns:x":Sn,"xmlns:ss":kn,"xmlns:dt":On,"xmlns:html":En})}function uc(e){var t={},n=e.content;if(n.l=28,t.AnsiUserType=n.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=function(e){return ai(e,1)}(n),n.length-n.l<=4)return t;var r=n.read_shift(4);return 0==r||r>40?t:(n.l-=4,t.Reserved1=n.read_shift(0,"lpstr-ansi"),n.length-n.l<=4||1907505652!==(r=n.read_shift(4))?t:(t.UnicodeClipboardFormat=function(e){return ai(e,2)}(n),0==(r=n.read_shift(4))||r>40?t:(n.l-=4,void(t.Reserved2=n.read_shift(0,"lpwstr")))))}var cc=[60,1084,2066,2165,2175];function hc(e,t,n,r,o){var l=r,c=[],h=n.slice(n.l,n.l+l);if(o&&o.enc&&o.enc.insitu&&h.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:o.enc.insitu(h)}c.push(h),n.l+=l;for(var f=Jn(n,n.l),d=xc[f],v=0;null!=d&&cc.indexOf(f)>-1;)l=Jn(n,n.l+2),v=n.l+4,2066==f?v+=4:2165!=f&&2175!=f||(v+=12),h=n.slice(v,n.l+4+l),c.push(h),n.l+=4+l,d=xc[f=Jn(n,n.l)];var b=j(c);lr(b,0);var m=0;b.lens=[];for(var y=0;y<c.length;++y)b.lens.push(m),m+=c[y].length;if(b.length<r)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+b.length+" < "+r;return t.f(b,b.length,o)}function fc(p,e,t){if("z"!==p.t&&p.XF){var n=0;try{n=p.z||p.XF.numFmtId||0,e.cellNF&&(p.z=X[n])}catch(t){if(e.WTF)throw t}if(!e||!1!==e.cellText)try{"e"===p.t?p.w=p.w||vi[p.v]:0===n||"General"==n?"n"===p.t?(0|p.v)===p.v?p.w=p.v.toString(10):p.w=ae(p.v):p.w=se(p.v):p.w=Ee(n,p.v,{date1904:!!t,dateNF:e&&e.dateNF})}catch(t){if(e.WTF)throw t}if(e.cellDates&&n&&"n"==p.t&&ke(X[n]||String(n))){var r=ee(p.v);r&&(p.t="d",p.v=new Date(r.y,r.m-1,r.d,r.H,r.M,r.S,r.u))}}}function dc(e,t,n){return{v:e,ixfe:t,t:n}}function pc(e,t){var n={opts:{}},r={};var o,l,c,h,f,v,m,y,_=t.dense?[]:{},x={},w={},S=null,k=[],O="",C={},T="",E={},A=[],M=[],I=[],D={Sheets:[],WBProps:{date1904:!1},Views:[{}]},P={},N=function(e){return e<8?gi[e]:e<64&&I[e-8]||gi[e]},L=function(e,line,t){if(!(U>1||t.sheetRows&&e.r>=t.sheetRows)){if(t.cellStyles&&line.XF&&line.XF.data&&function(e,line,t){var n,r=line.XF.data;r&&r.patternType&&t&&t.cellStyles&&(line.s={},line.s.patternType=r.patternType,(n=Fa(N(r.icvFore)))&&(line.s.fgColor={rgb:n}),(n=Fa(N(r.icvBack)))&&(line.s.bgColor={rgb:n}))}(0,line,t),delete line.ixfe,delete line.XF,o=e,T=Or(e),w&&w.s&&w.e||(w={s:{r:0,c:0},e:{r:0,c:0}}),e.r<w.s.r&&(w.s.r=e.r),e.c<w.s.c&&(w.s.c=e.c),e.r+1>w.e.r&&(w.e.r=e.r+1),e.c+1>w.e.c&&(w.e.c=e.c+1),t.cellFormula&&line.f)for(var n=0;n<A.length;++n)if(!(A[n][0].s.c>e.c||A[n][0].s.r>e.r||A[n][0].e.c<e.c||A[n][0].e.r<e.r)){line.F=Tr(A[n][0]),A[n][0].s.c==e.c&&A[n][0].s.r==e.r||delete line.f,line.f&&(line.f=""+gl(A[n][1],0,e,V,j));break}t.dense?(_[e.r]||(_[e.r]=[]),_[e.r][e.c]=line):_[T]=line}},j={enc:!1,sbcch:0,snames:[],sharedf:E,arrayf:A,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(j.password=t.password);var R=[],F=[],B=[],z=[],$=!1,V=[];V.SheetNames=j.snames,V.sharedf=j.sharedf,V.arrayf=j.arrayf,V.names=[],V.XTI=[];var H,W=0,U=0,G=0,Y=[],K=[];j.codepage=1200,d(1200);for(var Z=!1;e.l<e.length-1;){var s=e.l,J=e.read_shift(2);if(0===J&&10===W)break;var Q=e.l===e.length?0:e.read_shift(2),ee=xc[J];if(ee&&ee.f){if(t.bookSheets&&133===W&&133!==J)break;if(W=J,2===ee.r||12==ee.r){var rt=e.read_shift(2);if(Q-=2,!j.enc&&rt!==J&&((255&rt)<<8|rt>>8)!==J)throw new Error("rt mismatch: "+rt+"!="+J);12==ee.r&&(e.l+=10,Q-=10)}var te={};if(te=10===J?ee.f(e,Q,j):hc(J,ee,e,Q,j),0==U&&-1===[9,521,1033,2057].indexOf(W))continue;switch(J){case 34:n.opts.Date1904=D.WBProps.date1904=te;break;case 134:n.opts.WriteProtect=!0;break;case 47:if(j.enc||(e.l=0),j.enc=te,!t.password)throw new Error("File is password-protected");if(null==te.valid)throw new Error("Encryption scheme unsupported");if(!te.valid)throw new Error("Password is incorrect");break;case 92:j.lastuser=te;break;case 66:var ne=Number(te);switch(ne){case 21010:ne=1200;break;case 32768:ne=1e4;break;case 32769:ne=1252}d(j.codepage=ne),Z=!0;break;case 317:j.rrtabid=te;break;case 25:j.winlocked=te;break;case 439:n.opts.RefreshAll=te;break;case 12:n.opts.CalcCount=te;break;case 16:n.opts.CalcDelta=te;break;case 17:n.opts.CalcIter=te;break;case 13:n.opts.CalcMode=te;break;case 14:n.opts.CalcPrecision=te;break;case 95:n.opts.CalcSaveRecalc=te;break;case 15:j.CalcRefMode=te;break;case 2211:n.opts.FullCalc=te;break;case 129:te.fDialog&&(_["!type"]="dialog"),te.fBelow||((_["!outline"]||(_["!outline"]={})).above=!0),te.fRight||((_["!outline"]||(_["!outline"]={})).left=!0);break;case 224:M.push(te);break;case 430:V.push([te]),V[V.length-1].XTI=[];break;case 35:case 547:V[V.length-1].push(te);break;case 24:case 536:H={Name:te.Name,Ref:gl(te.rgce,0,null,V,j)},te.itab>0&&(H.Sheet=te.itab-1),V.names.push(H),V[0]||(V[0]=[],V[0].XTI=[]),V[V.length-1].push(te),"_xlnm._FilterDatabase"==te.Name&&te.itab>0&&te.rgce&&te.rgce[0]&&te.rgce[0][0]&&"PtgArea3d"==te.rgce[0][0][0]&&(K[te.itab-1]={ref:Tr(te.rgce[0][0][1][2])});break;case 22:j.ExternCount=te;break;case 23:0==V.length&&(V[0]=[],V[0].XTI=[]),V[V.length-1].XTI=V[V.length-1].XTI.concat(te),V.XTI=V.XTI.concat(te);break;case 2196:if(j.biff<8)break;null!=H&&(H.Comment=te[1]);break;case 18:_["!protect"]=te;break;case 19:0!==te&&j.WTF&&console.error("Password verifier: "+te);break;case 133:x[te.pos]=te,j.snames.push(te.name);break;case 10:if(--U)break;if(w.e){if(w.e.r>0&&w.e.c>0){if(w.e.r--,w.e.c--,_["!ref"]=Tr(w),t.sheetRows&&t.sheetRows<=w.e.r){var re=w.e.r;w.e.r=t.sheetRows-1,_["!fullref"]=_["!ref"],_["!ref"]=Tr(w),w.e.r=re}w.e.r++,w.e.c++}R.length>0&&(_["!merges"]=R),F.length>0&&(_["!objects"]=F),B.length>0&&(_["!cols"]=B),z.length>0&&(_["!rows"]=z),D.Sheets.push(P)}""===O?C=_:r[O]=_,_=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===j.biff&&(j.biff={9:2,521:3,1033:4}[J]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[te.BIFFVer]||8),j.biffguess=0==te.BIFFVer,0==te.BIFFVer&&4096==te.dt&&(j.biff=5,Z=!0,d(j.codepage=28591)),8==j.biff&&0==te.BIFFVer&&16==te.dt&&(j.biff=2),U++)break;if(_=t.dense?[]:{},j.biff<8&&!Z&&(Z=!0,d(j.codepage=t.codepage||1252)),j.biff<5||0==te.BIFFVer&&4096==te.dt){""===O&&(O="Sheet1"),w={s:{r:0,c:0},e:{r:0,c:0}};var ie={pos:e.l-Q,name:O};x[ie.pos]=ie,j.snames.push(O)}else O=(x[s]||{name:""}).name;32==te.dt&&(_["!type"]="chart"),64==te.dt&&(_["!type"]="macro"),R=[],F=[],j.arrayf=A=[],B=[],z=[],$=!1,P={Hidden:(x[s]||{hs:0}).hs,name:O};break;case 515:case 3:case 2:"chart"==_["!type"]&&(t.dense?(_[te.r]||[])[te.c]:_[Or({c:te.c,r:te.r})])&&++te.c,v={ixfe:te.ixfe,XF:M[te.ixfe]||{},v:te.val,t:"n"},G>0&&(v.z=Y[v.ixfe>>8&63]),fc(v,t,n.opts.Date1904),L({c:te.c,r:te.r},v,t);break;case 5:case 517:v={ixfe:te.ixfe,XF:M[te.ixfe],v:te.val,t:te.t},G>0&&(v.z=Y[v.ixfe>>8&63]),fc(v,t,n.opts.Date1904),L({c:te.c,r:te.r},v,t);break;case 638:v={ixfe:te.ixfe,XF:M[te.ixfe],v:te.rknum,t:"n"},G>0&&(v.z=Y[v.ixfe>>8&63]),fc(v,t,n.opts.Date1904),L({c:te.c,r:te.r},v,t);break;case 189:for(var oe=te.c;oe<=te.C;++oe){var ae=te.rkrec[oe-te.c][0];v={ixfe:ae,XF:M[ae],v:te.rkrec[oe-te.c][1],t:"n"},G>0&&(v.z=Y[v.ixfe>>8&63]),fc(v,t,n.opts.Date1904),L({c:oe,r:te.r},v,t)}break;case 6:case 518:case 1030:if("String"==te.val){S=te;break}if((v=dc(te.val,te.cell.ixfe,te.tt)).XF=M[v.ixfe],t.cellFormula){var se=te.formula;if(se&&se[0]&&se[0][0]&&"PtgExp"==se[0][0][0]){var le=se[0][0][1][0],ue=se[0][0][1][1],ce=Or({r:le,c:ue});E[ce]?v.f=""+gl(te.formula,0,te.cell,V,j):v.F=((t.dense?(_[le]||[])[ue]:_[ce])||{}).F}else v.f=""+gl(te.formula,0,te.cell,V,j)}G>0&&(v.z=Y[v.ixfe>>8&63]),fc(v,t,n.opts.Date1904),L(te.cell,v,t),S=te;break;case 7:case 519:if(!S)throw new Error("String record expects Formula");S.val=te,(v=dc(te,S.cell.ixfe,"s")).XF=M[v.ixfe],t.cellFormula&&(v.f=""+gl(S.formula,0,S.cell,V,j)),G>0&&(v.z=Y[v.ixfe>>8&63]),fc(v,t,n.opts.Date1904),L(S.cell,v,t),S=null;break;case 33:case 545:A.push(te);var he=Or(te[0].s);if(l=t.dense?(_[te[0].s.r]||[])[te[0].s.c]:_[he],t.cellFormula&&l){if(!S)break;if(!he||!l)break;l.f=""+gl(te[1],0,te[0],V,j),l.F=Tr(te[0])}break;case 1212:if(!t.cellFormula)break;if(T){if(!S)break;E[Or(S.cell)]=te[0],((l=t.dense?(_[S.cell.r]||[])[S.cell.c]:_[Or(S.cell)])||{}).f=""+gl(te[0],0,o,V,j)}break;case 253:v=dc(k[te.isst].t,te.ixfe,"s"),k[te.isst].h&&(v.h=k[te.isst].h),v.XF=M[v.ixfe],G>0&&(v.z=Y[v.ixfe>>8&63]),fc(v,t,n.opts.Date1904),L({c:te.c,r:te.r},v,t);break;case 513:t.sheetStubs&&(v={ixfe:te.ixfe,XF:M[te.ixfe],t:"z"},G>0&&(v.z=Y[v.ixfe>>8&63]),fc(v,t,n.opts.Date1904),L({c:te.c,r:te.r},v,t));break;case 190:if(t.sheetStubs)for(var fe=te.c;fe<=te.C;++fe){var de=te.ixfe[fe-te.c];v={ixfe:de,XF:M[de],t:"z"},G>0&&(v.z=Y[v.ixfe>>8&63]),fc(v,t,n.opts.Date1904),L({c:fe,r:te.r},v,t)}break;case 214:case 516:case 4:(v=dc(te.val,te.ixfe,"s")).XF=M[v.ixfe],G>0&&(v.z=Y[v.ixfe>>8&63]),fc(v,t,n.opts.Date1904),L({c:te.c,r:te.r},v,t);break;case 0:case 512:1===U&&(w=te);break;case 252:k=te;break;case 1054:if(4==j.biff){Y[G++]=te[1];for(var pe=0;pe<G+163&&X[pe]!=te[1];++pe);pe>=163&&Ae(te[1],G+163)}else Ae(te[1],te[0]);break;case 30:Y[G++]=te;for(var ge=0;ge<G+163&&X[ge]!=te;++ge);ge>=163&&Ae(te,G+163);break;case 229:R=R.concat(te);break;case 93:F[te.cmo[0]]=j.lastobj=te;break;case 438:j.lastobj.TxO=te;break;case 127:j.lastobj.ImData=te;break;case 440:for(f=te[0].s.r;f<=te[0].e.r;++f)for(h=te[0].s.c;h<=te[0].e.c;++h)(l=t.dense?(_[f]||[])[h]:_[Or({c:h,r:f})])&&(l.l=te[1]);break;case 2048:for(f=te[0].s.r;f<=te[0].e.r;++f)for(h=te[0].s.c;h<=te[0].e.c;++h)(l=t.dense?(_[f]||[])[h]:_[Or({c:h,r:f})])&&l.l&&(l.l.Tooltip=te[1]);break;case 28:if(j.biff<=5&&j.biff>=2)break;l=t.dense?(_[te[0].r]||[])[te[0].c]:_[Or(te[0])];var ve=F[te[2]];l||(t.dense?(_[te[0].r]||(_[te[0].r]=[]),l=_[te[0].r][te[0].c]={t:"z"}):l=_[Or(te[0])]={t:"z"},w.e.r=Math.max(w.e.r,te[0].r),w.s.r=Math.min(w.s.r,te[0].r),w.e.c=Math.max(w.e.c,te[0].c),w.s.c=Math.min(w.s.c,te[0].c)),l.c||(l.c=[]),c={a:te[1],t:ve.TxO.t},l.c.push(c);break;case 2173:M[te.ixfe],te.ext.forEach((function(e){e[0]}));break;case 125:if(!j.cellStyles)break;for(;te.e>=te.s;)B[te.e--]={width:te.w/256,level:te.level||0,hidden:!!(1&te.flags)},$||($=!0,Wa(te.w/256)),Ua(B[te.e+1]);break;case 520:var me={};null!=te.level&&(z[te.r]=me,me.level=te.level),te.hidden&&(z[te.r]=me,me.hidden=!0),te.hpt&&(z[te.r]=me,me.hpt=te.hpt,me.hpx=Ya(te.hpt));break;case 38:case 39:case 40:case 41:_["!margins"]||Ll(_["!margins"]={}),_["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[J]]=te;break;case 161:_["!margins"]||Ll(_["!margins"]={}),_["!margins"].header=te.header,_["!margins"].footer=te.footer;break;case 574:te.RTL&&(D.Views[0].RTL=!0);break;case 146:I=te;break;case 2198:y=te;break;case 140:m=te;break;case 442:O?P.CodeName=te||P.name:D.WBProps.CodeName=te||"ThisWorkbook"}}else ee||console.error("Missing Info for XLS Record 0x"+J.toString(16)),e.l+=Q}return n.SheetNames=$e(x).sort((function(a,b){return Number(a)-Number(b)})).map((function(e){return x[e].name})),t.bookSheets||(n.Sheets=r),!n.SheetNames.length&&C["!ref"]?(n.SheetNames.push("Sheet1"),n.Sheets&&(n.Sheets.Sheet1=C)):n.Preamble=C,n.Sheets&&K.forEach((function(e,i){n.Sheets[n.SheetNames[i]]["!autofilter"]=e})),n.Strings=k,n.SSF=it(X),j.enc&&(n.Encryption=j.enc),y&&(n.Themes=y),n.Metadata={},void 0!==m&&(n.Metadata.Country=m),V.names.length>0&&(D.Names=V.names),n.Workbook=D,n}var gc="e0859ff2f94f6810ab9108002b27b3d9",vc="02d5cdd59c2e1b10939708002b2cf9ae",mc="05d5cdd59c2e1b10939708002b2cf9ae";function yc(e,t){var n,r,o,l;if(t||(t={}),Sh(t),v(),t.codepage&&f(t.codepage),e.FullPaths){if(je.find(e,"/encryption"))throw new Error("File is password-protected");n=je.find(e,"!CompObj"),r=je.find(e,"/Workbook")||je.find(e,"/Book")}else{switch(t.type){case"base64":e=D(T(e));break;case"binary":e=D(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e))}lr(e,0),r={content:e}}if(n&&uc(n),t.bookProps&&!t.bookSheets)o={};else{var c=E?"buffer":"array";if(r&&r.content)o=pc(r.content,t);else if((l=je.find(e,"PerfectOffice_MAIN"))&&l.content)o=ca.to_workbook(l.content,(t.type=c,t));else{if(!(l=je.find(e,"NativeContent_MAIN"))||!l.content)throw(l=je.find(e,"MN0"))&&l.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");o=ca.to_workbook(l.content,(t.type=c,t))}t.bookVBA&&e.FullPaths&&je.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(o.vbaraw=function(e){var t=je.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(p,i){if("/"!==p.slice(-1)&&p.match(/_VBA_PROJECT_CUR/)){var n=p.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");je.utils.cfb_add(t,n,e.FileIndex[i].content)}})),je.write(t)}(e))}var h={};return e.FullPaths&&function(e,t,n){var r=je.find(e,"/!DocumentSummaryInformation");if(r&&r.size>0)try{var o=no(r,ci,vc);for(var l in o)t[l]=o[l]}catch(e){if(n.WTF)throw e}var c=je.find(e,"/!SummaryInformation");if(c&&c.size>0)try{var h=no(c,hi,gc);for(var s in h)null==t[s]&&(t[s]=h[s])}catch(e){if(n.WTF)throw e}t.HeadingPairs&&t.TitlesOfParts&&(Li(t.HeadingPairs,t.TitlesOfParts,t,n),delete t.HeadingPairs,delete t.TitlesOfParts)}(e,h,t),o.Props=o.Custprops=h,t.bookFiles&&(o.cfb=e),o}function bc(e,t){var n=t||{},r=je.utils.cfb_new({root:"R"}),o="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":o="/Workbook",n.biff=8;break;case"biff5":o="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return je.utils.cfb_add(r,o,Ic(e,n)),8==n.biff&&(e.Props||e.Custprops)&&function(e,t){var n,r=[],o=[],l=[],i=0,c=Ve(ci,"n"),h=Ve(hi,"n");if(e.Props)for(n=$e(e.Props),i=0;i<n.length;++i)(Object.prototype.hasOwnProperty.call(c,n[i])?r:Object.prototype.hasOwnProperty.call(h,n[i])?o:l).push([n[i],e.Props[n[i]]]);if(e.Custprops)for(n=$e(e.Custprops),i=0;i<n.length;++i)Object.prototype.hasOwnProperty.call(e.Props||{},n[i])||(Object.prototype.hasOwnProperty.call(c,n[i])?r:Object.prototype.hasOwnProperty.call(h,n[i])?o:l).push([n[i],e.Custprops[n[i]]]);var f=[];for(i=0;i<l.length;++i)Qi.indexOf(l[i][0])>-1||Ni.indexOf(l[i][0])>-1||null!=l[i][1]&&f.push(l[i]);o.length&&je.utils.cfb_add(t,"/SummaryInformation",ro(o,gc,h,hi)),(r.length||f.length)&&je.utils.cfb_add(t,"/DocumentSummaryInformation",ro(r,vc,c,ci,f.length?f:null,mc))}(e,r),8==n.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach((function(p,i){if(0!=i){var n=p.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==n.slice(-1)&&je.utils.cfb_add(e,n,t.FileIndex[i].content)}}))}(r,je.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),r}var _c={0:{f:function(data,e){var t={},n=data.l+e;t.r=data.read_shift(4),data.l+=4;var r=data.read_shift(2);data.l+=1;var o=data.read_shift(1);return data.l=n,7&o&&(t.level=7&o),16&o&&(t.hidden=!0),32&o&&(t.hpt=r/20),t}},1:{f:function(data){return[$r(data)]}},2:{f:function(data){return[$r(data),Jr(data),"n"]}},3:{f:function(data){return[$r(data),data.read_shift(1),"e"]}},4:{f:function(data){return[$r(data),data.read_shift(1),"b"]}},5:{f:function(data){return[$r(data),ri(data),"n"]}},6:{f:function(data){return[$r(data),Lr(data),"str"]}},7:{f:function(data){return[$r(data),data.read_shift(4),"s"]}},8:{f:function(data,e,t){var n=data.l+e,r=$r(data);r.r=t["!row"];var o=[r,Lr(data),"str"];if(t.cellFormula){data.l+=2;var l=wl(data,n-data.l,t);o[3]=gl(l,0,r,t.supbooks,t)}else data.l=n;return o}},9:{f:function(data,e,t){var n=data.l+e,r=$r(data);r.r=t["!row"];var o=[r,ri(data),"n"];if(t.cellFormula){data.l+=2;var l=wl(data,n-data.l,t);o[3]=gl(l,0,r,t.supbooks,t)}else data.l=n;return o}},10:{f:function(data,e,t){var n=data.l+e,r=$r(data);r.r=t["!row"];var o=[r,data.read_shift(1),"b"];if(t.cellFormula){data.l+=2;var l=wl(data,n-data.l,t);o[3]=gl(l,0,r,t.supbooks,t)}else data.l=n;return o}},11:{f:function(data,e,t){var n=data.l+e,r=$r(data);r.r=t["!row"];var o=[r,data.read_shift(1),"e"];if(t.cellFormula){data.l+=2;var l=wl(data,n-data.l,t);o[3]=gl(l,0,r,t.supbooks,t)}else data.l=n;return o}},12:{f:function(data){return[Hr(data)]}},13:{f:function(data){return[Hr(data),Jr(data),"n"]}},14:{f:function(data){return[Hr(data),data.read_shift(1),"e"]}},15:{f:function(data){return[Hr(data),data.read_shift(1),"b"]}},16:{f:au},17:{f:function(data){return[Hr(data),Lr(data),"str"]}},18:{f:function(data){return[Hr(data),data.read_shift(4),"s"]}},19:{f:Fr},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(data,e,t){var n=data.l+e;data.l+=4,data.l+=1;var r=data.read_shift(4),o=Kr(data),l=Sl(data,0,t),c=Gr(data);data.l=n;var h={Name:o,Ptg:l};return r<268435455&&(h.Sheet=r),c&&(h.Comment=c),h}},40:{},42:{},43:{f:function(data,e,t){var n={};n.sz=data.read_shift(2)/20;var r=function(data){var e=data.read_shift(1);return data.l++,{fBold:1&e,fItalic:2&e,fUnderline:4&e,fStrikeout:8&e,fOutline:16&e,fShadow:32&e,fCondense:64&e,fExtend:128&e}}(data);switch(r.fItalic&&(n.italic=1),r.fCondense&&(n.condense=1),r.fExtend&&(n.extend=1),r.fShadow&&(n.shadow=1),r.fOutline&&(n.outline=1),r.fStrikeout&&(n.strike=1),700===data.read_shift(2)&&(n.bold=1),data.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript"}var o=data.read_shift(1);0!=o&&(n.underline=o);var l=data.read_shift(1);l>0&&(n.family=l);var c=data.read_shift(1);switch(c>0&&(n.charset=c),data.l++,n.color=function(data){var e={},t=data.read_shift(1)>>>1,n=data.read_shift(1),r=data.read_shift(2,"i"),o=data.read_shift(1),l=data.read_shift(1),c=data.read_shift(1);switch(data.l++,t){case 0:e.auto=1;break;case 1:e.index=n;var h=gi[n];h&&(e.rgb=Fa(h));break;case 2:e.rgb=Fa([o,l,c]);break;case 3:e.theme=n}return 0!=r&&(e.tint=r>0?r/32767:r/32768),e}(data),data.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor"}return n.name=Lr(data),n}},44:{f:function(data,e){return[data.read_shift(2),Lr(data)]}},45:{f:is},46:{f:ls},47:{f:function(data,e){var t=data.l+e,n=data.read_shift(2),r=data.read_shift(2);return data.l=t,{ixfe:n,numFmtId:r}}},48:{},49:{f:function(data){return data.read_shift(4,"i")}},50:{},51:{f:function(data){for(var e=[],t=data.read_shift(4);t-- >0;)e.push([data.read_shift(4),data.read_shift(4)]);return e}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:ea},62:{f:function(data){return[$r(data),Fr(data),"is"]}},63:{f:function(data){var e={};e.i=data.read_shift(4);var t={};t.r=data.read_shift(4),t.c=data.read_shift(4),e.r=Or(t);var n=data.read_shift(1);return 2&n&&(e.l="1"),8&n&&(e.a="1"),e}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ur,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(data){var e=data.read_shift(2);return data.l+=28,{RTL:32&e}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(data,e){var t={},n=data[data.l];return++data.l,t.above=!(64&n),t.left=!(128&n),data.l+=18,t.name=Wr(data,e-19),t}},148:{f:iu,p:16},151:{f:function(){}},152:{},153:{f:function(data,e){var t={},n=data.read_shift(4);t.defaultThemeVersion=data.read_shift(4);var r=e>8?Lr(data):"";return r.length>0&&(t.CodeName=r),t.autoCompressPictures=!!(65536&n),t.backupFile=!!(64&n),t.checkCompatibility=!!(4096&n),t.date1904=!!(1&n),t.filterPrivacy=!!(8&n),t.hidePivotFieldList=!!(1024&n),t.promptedSolutions=!!(16&n),t.publishItems=!!(2048&n),t.refreshAllConnections=!!(262144&n),t.saveExternalLinkValues=!!(128&n),t.showBorderUnselectedTables=!!(4&n),t.showInkAnnotation=!!(32&n),t.showObjects=["all","placeholders","none"][n>>13&3],t.showPivotChartFilter=!!(32768&n),t.updateLinks=["userSet","never","always"][n>>8&3],t}},154:{},155:{},156:{f:function(data,e){var t={};return t.Hidden=data.read_shift(4),t.iTabID=data.read_shift(4),t.strRelID=Xr(data,e-8),t.name=Lr(data),t}},157:{},158:{},159:{T:1,f:function(data){return[data.read_shift(4),data.read_shift(4)]}},160:{T:-1},161:{T:1,f:ti},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:su},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(data,e){return{flags:data.read_shift(4),version:data.read_shift(4),name:Lr(data)}}},336:{T:-1},337:{f:function(data){return data.l+=4,0!=data.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Xr},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Ko},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(data,e,t){var n=data.l+e,r=ei(data),o=data.read_shift(1),l=[r];if(l[2]=o,t.cellFormula){var c=xl(data,n-data.l,t);l[1]=c}else data.l=n;return l}},427:{f:function(data,e,t){var n=data.l+e,r=[ti(data,16)];if(t.cellFormula){var o=kl(data,n-data.l,t);r[1]=o,data.l=n}else data.l=n;return r}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(data){var e={};return uu.forEach((function(t){e[t]=ri(data)})),e}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(data,e){var t=data.l+e,n=ti(data,16),r=Gr(data),o=Lr(data),l=Lr(data),c=Lr(data);data.l=t;var h={rfx:n,relId:r,loc:o,display:c};return l&&(h.Tooltip=l),h}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Xr},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Ds},633:{T:1},634:{T:-1},635:{T:1,f:function(data){var e={};e.iauthor=data.read_shift(4);var t=ti(data,16);return e.rfx=t.s,e.ref=Or(t.s),data.l+=16,e}},636:{T:-1},637:{f:Br},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(data,e){return data.l+=10,{name:Lr(data)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},xc={6:{f:yl},10:{f:io},12:{f:so},13:{f:so},14:{f:oo},15:{f:oo},16:{f:ri},17:{f:oo},18:{f:oo},19:{f:so},20:{f:Wo},21:{f:Wo},23:{f:Ko},24:{f:Yo},25:{f:oo},26:{},27:{},28:{f:function(e,t,n){return function(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),col=e.read_shift(2),o=e.read_shift(2),l=e.read_shift(2),c=mo(e,0,n);return n.biff<8&&e.read_shift(1),[{r:r,c:col},c,l,o]}}(e,0,n)}},29:{},34:{f:oo},35:{f:Uo},38:{f:ri},39:{f:ri},40:{f:ri},41:{f:ri},42:{f:oo},43:{f:oo},47:{f:function(e,t,n){var r={Type:n.biff>=8?e.read_shift(2):0};return r.Type?ja(e,t-2,r):function(e,t,n,r){var o={key:so(e),verificationBytes:so(e)};n.password&&(o.verifier=Pa(n.password)),r.valid=o.verificationBytes===o.verifier,r.valid&&(r.insitu=La(n.password))}(e,n.biff,n,r),r}},49:{f:function(e,t,n){var r={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10}return r.name=ho(e,0,n),r}},51:{f:so},60:{},61:{f:function(e){return{Pos:[e.read_shift(2),e.read_shift(2)],Dim:[e.read_shift(2),e.read_shift(2)],Flags:e.read_shift(2),CurTab:e.read_shift(2),FirstTab:e.read_shift(2),Selected:e.read_shift(2),TabRatio:e.read_shift(2)}}},64:{f:oo},65:{f:function(){}},66:{f:so},77:{},80:{},81:{},82:{},85:{f:so},89:{},90:{},91:{},92:{f:function(e,t,n){if(n.enc)return e.l+=t,"";var r=e.l,o=mo(e,0,n);return e.read_shift(t+r-e.l),o}},93:{f:function(e,t,n){if(n&&n.biff<8)return function(e,t,n){e.l+=4;var r=e.read_shift(2),o=e.read_shift(2),l=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var c=[];return c.push((Zo[r]||ur)(e,t,n)),{cmo:[o,r,l],ft:c}}(e,t,n);var r=Po(e),o=function(e,t){for(var n=e.l+t,r=[];e.l<n;){var o=e.read_shift(2);e.l-=2;try{r.push(Lo[o](e,n-e.l))}catch(t){return e.l=n,r}}return e.l!=n&&(e.l=n),r}(e,t-22,r[1]);return{cmo:r,ft:o}}},94:{},95:{f:oo},96:{},97:{},99:{f:oo},125:{f:ea},128:{f:function(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}},129:{f:function(e,t,n){var r=n&&8==n.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&r,fBelow:64&r,fRight:128&r}}},130:{f:so},131:{f:oo},132:{f:oo},133:{f:function(e,t,n){var r=e.read_shift(4),o=3&e.read_shift(1),dt=e.read_shift(1);switch(dt){case 0:dt="Worksheet";break;case 1:dt="Macrosheet";break;case 2:dt="Chartsheet";break;case 6:dt="VBAModule"}var l=ho(e,0,n);return 0===l.length&&(l="Sheet1"),{pos:r,hs:o,dt:dt,name:l}}},134:{},140:{f:function(e){var t,n=[0,0];return t=e.read_shift(2),n[0]=fi[t]||t,t=e.read_shift(2),n[1]=fi[t]||t,n}},141:{f:so},144:{},146:{f:function(e){for(var t=e.read_shift(2),n=[];t-- >0;)n.push(ko(e));return n}},151:{},152:{},153:{},154:{},155:{},156:{f:so},157:{},158:{},160:{f:na},161:{f:function(e,t){var n={};return t<32||(e.l+=16,n.header=ri(e),n.footer=ri(e),e.l+=2),n}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(e,t){for(var n=e.l+t-2,r=e.read_shift(2),col=e.read_shift(2),o=[];e.l<n;)o.push(Eo(e));if(e.l!==n)throw new Error("MulRK read error");var l=e.read_shift(2);if(o.length!=l-col+1)throw new Error("MulRK length mismatch");return{r:r,c:col,C:l,rkrec:o}}},190:{f:function(e,t){for(var n=e.l+t-2,r=e.read_shift(2),col=e.read_shift(2),o=[];e.l<n;)o.push(e.read_shift(2));if(e.l!==n)throw new Error("MulBlank read error");var l=e.read_shift(2);if(o.length!=l-col+1)throw new Error("MulBlank length mismatch");return{r:r,c:col,C:l,ixfe:o}}},193:{f:io},197:{},198:{},199:{},200:{},201:{},202:{f:oo},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:so},220:{},221:{f:oo},222:{},224:{f:function(e,t,n){var r={};return r.ifnt=e.read_shift(2),r.numFmtId=e.read_shift(2),r.flags=e.read_shift(2),r.fStyle=r.flags>>2&1,6,r.data=function(e,t,style,n){var r={},a=e.read_shift(4),b=e.read_shift(4),o=e.read_shift(4),l=e.read_shift(2);return r.patternType=di[o>>26],n.cellStyles?(r.alc=7&a,r.fWrap=a>>3&1,r.alcV=a>>4&7,r.fJustLast=a>>7&1,r.trot=a>>8&255,r.cIndent=a>>16&15,r.fShrinkToFit=a>>20&1,r.iReadOrder=a>>22&2,r.fAtrNum=a>>26&1,r.fAtrFnt=a>>27&1,r.fAtrAlc=a>>28&1,r.fAtrBdr=a>>29&1,r.fAtrPat=a>>30&1,r.fAtrProt=a>>31&1,r.dgLeft=15&b,r.dgRight=b>>4&15,r.dgTop=b>>8&15,r.dgBottom=b>>12&15,r.icvLeft=b>>16&127,r.icvRight=b>>23&127,r.grbitDiag=b>>30&3,r.icvTop=127&o,r.icvBottom=o>>7&127,r.icvDiag=o>>14&127,r.dgDiag=o>>21&15,r.icvFore=127&l,r.icvBack=l>>7&127,r.fsxButton=l>>14&1,r):r}(e,0,r.fStyle,n),r}},225:{f:function(e,t){return 0===t||e.read_shift(2),1200}},226:{f:io},227:{},229:{f:function(e,t){for(var n=[],r=e.read_shift(2);r--;)n.push(Ao(e));return n}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(e,t){for(var n=e.l+t,r=e.read_shift(4),o=e.read_shift(4),l=[],i=0;i!=o&&e.l<n;++i)l.push(fo(e));return l.Count=r,l.Unique=o,l}},253:{f:function(e){var t=Oo(e);return t.isst=e.read_shift(4),t}},255:{f:function(e,t){var n={};return n.dsst=e.read_shift(2),e.l+=t-2,n}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:uo},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:oo},353:{f:io},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(e,t,n){var r=e.l+t,o=e.read_shift(2),l=e.read_shift(2);if(n.sbcch=l,1025==l||14849==l)return[l,o];if(l<1||l>255)throw new Error("Unexpected SupBook type: "+l);for(var c=go(e,l),h=[];r>e.l;)h.push(vo(e));return[l,o,c,h]}},431:{f:oo},432:{},433:{},434:{},437:{},438:{f:function(e,t,n){var s=e.l,r="";try{e.l+=4;var o=(n.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(o)?e.l+=6:function(e){var t=e.read_shift(1);e.l++;var n=e.read_shift(2);return e.l+=2,[t,n]}(e);var l=e.read_shift(2);e.read_shift(2),so(e);var c=e.read_shift(2);e.l+=c;for(var i=1;i<e.lens.length-1;++i){if(e.l-s!=e.lens[i])throw new Error("TxO: bad continue record");var h=e[e.l];if((r+=go(e,e.lens[i+1]-e.lens[i]-1)).length>=(h?l:2*l))break}if(r.length!==l&&r.length!==2*l)throw new Error("cchText: "+l+" != "+r.length);return e.l=s+t,{t:r}}catch(n){return e.l=s+t,{t:r}}}},439:{f:oo},440:{f:function(e,t){var n=Ao(e);e.l+=16;var r=function(e,t){var n=e.l+t,r=e.read_shift(4);if(2!==r)throw new Error("Unrecognized streamVersion: "+r);var o=e.read_shift(2);e.l+=2;var l,c,h,f,d,v,m="";16&o&&(l=_o(e,e.l)),128&o&&(c=_o(e,e.l)),257==(257&o)&&(h=_o(e,e.l)),1==(257&o)&&(f=bo(e,e.l)),8&o&&(m=_o(e,e.l)),32&o&&(d=e.read_shift(16)),64&o&&(v=Vi(e)),e.l=n;var y=c||h||f||"";y&&m&&(y+="#"+m),y||(y="#"+m),2&o&&"/"==y.charAt(0)&&"/"!=y.charAt(1)&&(y="file://"+y);var _={Target:y};return d&&(_.guid=d),v&&(_.time=v),l&&(_.Tooltip=l),_}(e,t-24);return[n,r]}},441:{},442:{f:vo},443:{},444:{f:so},445:{},446:{},448:{f:io},449:{f:function(e){return e.read_shift(2),e.read_shift(4)},r:2},450:{f:io},512:{f:Vo},513:{f:ta},515:{f:function(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=Oo(e),o=ri(e);return r.val=o,r}},516:{f:function(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5),e.l;var r=Oo(e);2==n.biff&&e.l++;var o=vo(e,e.l,n);return r.val=o,r}},517:{f:qo},519:{f:ra},520:{f:function(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var n=e.read_shift(2);e.l+=4;var r=e.read_shift(1);return e.l+=3,7&r&&(t.level=7&r),32&r&&(t.hidden=!0),64&r&&(t.hpt=n/20),t}},523:{},545:{f:Xo},549:{f:Bo},566:{},574:{f:function(e,t,n){return n&&n.biff>=2&&n.biff<5?{}:{RTL:64&e.read_shift(2)}}},638:{f:function(e){var t=e.read_shift(2),col=e.read_shift(2),n=Eo(e);return{r:t,c:col,ixfe:n[0],rknum:n[1]}}},659:{},1048:{},1054:{f:function(e,t,n){return[e.read_shift(2),mo(e,0,n)]}},1084:{},1212:{f:function(e,t,n){var r=Io(e);e.l++;var o=e.read_shift(1);return[ml(e,t-=8,n),o,r]}},2048:{f:function(e,t){e.read_shift(2);var n=Ao(e),r=e.read_shift((t-10)/2,"dbcs-cont");return[n,r=r.replace(R,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:jo},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:io},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t},r:12},2173:{f:function(e,t){e.l,e.l+=2;var n=e.read_shift(2);e.l+=2;for(var r=e.read_shift(2),o=[];r-- >0;)o.push(ks(e,e.l));return{ixfe:n,ext:o}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:oo,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),o=e.read_shift(2);return[go(e,r,n),go(e,o,n)]}e.l+=t},r:12},2197:{},2198:{f:function(e,t,n){var r=e.l+t;if(124226!==e.read_shift(4))if(n.cellStyles){var o,data=e.slice(e.l);e.l=r;try{o=xt(data,{type:"array"})}catch(e){return}var l=vt(o,"theme/theme/theme1.xml",!0);if(l)return xs(l,n)}else e.l=r},r:12},2199:{},2200:{},2201:{},2202:{f:function(e){return[0!==e.read_shift(4),0!==e.read_shift(4),e.read_shift(4)]},r:12},2203:{f:io},2204:{},2205:{},2206:{},2207:{},2211:{f:function(e){var header=function(e){var rt=e.read_shift(2),t=e.read_shift(2);return e.l+=8,{type:rt,flags:t}}(e);if(2211!=header.type)throw new Error("Invalid Future Record "+header.type);return 0!==e.read_shift(4)}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:so},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(e,t,n){var r={area:!1};if(5!=n.biff)return e.l+=t,r;var o=e.read_shift(1);return e.l+=3,16&o&&(r.area=!0),r}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(e){for(var t=e.read_shift(2),n=[];t-- >0;)n.push(ko(e));return n}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Vo},1:{},2:{f:function(e){var t=Oo(e);++e.l;var n=e.read_shift(2);return t.t="n",t.val=n,t}},3:{f:function(e){var t=Oo(e);++e.l;var n=ri(e);return t.t="n",t.val=n,t}},4:{f:function(e,t,n){n.biffguess&&5==n.biff&&(n.biff=2);var r=Oo(e);++e.l;var o=mo(e,0,n);return r.t="str",r.val=o,r}},5:{f:qo},7:{f:function(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}},8:{},9:{f:jo},11:{},22:{f:so},30:{f:$o},31:{},32:{},33:{f:Xo},36:{},37:{f:Bo},50:{f:function(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}},62:{},52:{},67:{},68:{f:so},69:{},86:{},126:{},127:{f:function(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),o={fmt:t,env:n,len:r,data:e.slice(e.l,e.l+r)};return e.l+=r,o}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(e,t,n){var r=e.l+t,o=Oo(e),l=e.read_shift(2),c=go(e,l,n);return e.l=r,o.t="str",o.val=c,o}},223:{},234:{},354:{},421:{},518:{f:yl},521:{f:jo},536:{f:Yo},547:{f:Uo},561:{},579:{},1030:{f:yl},1033:{f:jo},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function wc(e,t,n,r){var o=t;if(!isNaN(o)){var l=r||(n||[]).length||0,c=e.next(4);c.write_shift(2,o),c.write_shift(2,l),l>0&&Kn(n)&&e.push(n)}}function Sc(e,t,n){return e||(e=cr(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function kc(e,t,n,r){if(null!=t.v)switch(t.t){case"d":case"n":var o="d"==t.t?Ue(tt(t.v)):t.v;return void(o==(0|o)&&o>=0&&o<65536?wc(e,2,(l=n,c=r,h=o,f=cr(9),Sc(f,l,c),f.write_shift(2,h),f)):wc(e,3,function(e,t,n){var r=cr(15);return Sc(r,e,t),r.write_shift(8,n,"f"),r}(n,r,o)));case"b":case"e":return void wc(e,5,function(e,t,n,r){var o=cr(9);return Sc(o,e,t),co(n,r||"b",o),o}(n,r,t.v,t.t));case"s":case"str":return void wc(e,4,function(e,t,n){var r=cr(8+2*n.length);return Sc(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l<r.length?r.slice(0,r.l):r}(n,r,(t.v||"").slice(0,255)))}var l,c,h,f;wc(e,1,Sc(null,n,r))}function Oc(e,t){var n=t||{};for(var r=dr(),o=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==n.sheet&&(o=i);if(0==o&&n.sheet&&e.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return wc(r,4==n.biff?1033:3==n.biff?521:9,Ro(0,16,n)),function(e,t,n,r){var o,l=Array.isArray(t),c=Er(t["!ref"]||"A1"),h="",f=[];if(c.e.c>255||c.e.r>16383){if(r.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");c.e.c=Math.min(c.e.c,255),c.e.r=Math.min(c.e.c,16383),o=Tr(c)}for(var d=c.s.r;d<=c.e.r;++d){h=xr(d);for(var v=c.s.c;v<=c.e.c;++v){d===c.s.r&&(f[v]=Sr(v)),o=f[v]+h;var m=l?(t[d]||[])[v]:t[o];m&&kc(e,m,d,v)}}}(r,e.Sheets[e.SheetNames[o]],0,n),wc(r,10),r.end()}function Cc(e,data,t){wc(e,49,function(data,e){var t=data.name||"Arial",n=e&&5==e.biff,r=cr(n?15+t.length:16+2*t.length);return r.write_shift(2,20*(data.sz||12)),r.write_shift(4,0),r.write_shift(2,400),r.write_shift(4,0),r.write_shift(2,0),r.write_shift(1,t.length),n||r.write_shift(1,1),r.write_shift((n?1:2)*t.length,t,n?"sbcs":"utf16le"),r}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}function Tc(e,t){if(t){var n=0;t.forEach((function(col,t){++n<=256&&col&&wc(e,125,function(col,e){var t=cr(12);t.write_shift(2,e),t.write_shift(2,e),t.write_shift(2,256*col.width),t.write_shift(2,0);var n=0;return col.hidden&&(n|=1),t.write_shift(1,n),n=col.level||0,t.write_shift(1,n),t.write_shift(2,0),t}(Nl(t,col),t))}))}}function Ec(e,t,n,r,o){var l=16+jl(o.cellXfs,t,o);if(null!=t.v||t.bf)if(t.bf)wc(e,6,bl(t,n,r,0,l));else switch(t.t){case"d":case"n":wc(e,515,function(e,t,n,r){var o=cr(14);return Co(e,t,r,o),ii(n,o),o}(n,r,"d"==t.t?Ue(tt(t.v)):t.v,l));break;case"b":case"e":wc(e,517,function(e,t,n,r,o,l){var c=cr(8);return Co(e,t,r,c),co(n,l,c),c}(n,r,t.v,l,0,t.t));break;case"s":case"str":if(o.bookSST)wc(e,253,function(e,t,n,r){var o=cr(10);return Co(e,t,r,o),o.write_shift(4,n),o}(n,r,Pl(o.Strings,t.v,o.revStrings),l));else wc(e,516,function(e,t,n,r,o){var l=!o||8==o.biff,c=cr(+l+8+(1+l)*n.length);return Co(e,t,r,c),c.write_shift(2,n.length),l&&c.write_shift(1,1),c.write_shift((1+l)*n.length,n,l?"utf16le":"sbcs"),c}(n,r,(t.v||"").slice(0,255),l,o));break;default:wc(e,513,Co(n,r,l))}else wc(e,513,Co(n,r,l))}function Ac(e,t,n){var r,o,l,c=dr(),s=n.SheetNames[e],h=n.Sheets[s]||{},f=(n||{}).Workbook||{},d=(f.Sheets||[])[e]||{},v=Array.isArray(h),m=8==t.biff,y="",_=[],x=Er(h["!ref"]||"A1"),w=m?65536:16384;if(x.e.c>255||x.e.r>=w){if(t.WTF)throw new Error("Range "+(h["!ref"]||"A1")+" exceeds format limit A1:IV16384");x.e.c=Math.min(x.e.c,255),x.e.r=Math.min(x.e.c,w-1)}wc(c,2057,Ro(0,16,t)),wc(c,13,lo(1)),wc(c,12,lo(100)),wc(c,15,ao(!0)),wc(c,17,ao(!1)),wc(c,16,ii(.001)),wc(c,95,ao(!0)),wc(c,42,ao(!1)),wc(c,43,ao(!1)),wc(c,130,lo(1)),wc(c,128,(o=[0,0],(l=cr(8)).write_shift(4,0),l.write_shift(2,o[0]?o[0]+1:0),l.write_shift(2,o[1]?o[1]+1:0),l)),wc(c,131,ao(!1)),wc(c,132,ao(!1)),m&&Tc(c,h["!cols"]),wc(c,512,function(e,t){var n=8!=t.biff&&t.biff?2:4,r=cr(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}(x,t)),m&&(h["!links"]=[]);for(var S=x.s.r;S<=x.e.r;++S){y=xr(S);for(var k=x.s.c;k<=x.e.c;++k){S===x.s.r&&(_[k]=Sr(k)),r=_[k]+y;var O=v?(h[S]||[])[k]:h[r];O&&(Ec(c,O,S,k,t),m&&O.l&&h["!links"].push([r,O.l]))}}var C=d.CodeName||d.name||s;return m&&wc(c,574,function(view){var e=cr(18),t=1718;return view&&view.RTL&&(t|=64),e.write_shift(2,t),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}((f.Views||[])[0])),m&&(h["!merges"]||[]).length&&wc(c,229,function(e){var t=cr(2+8*e.length);t.write_shift(2,e.length);for(var i=0;i<e.length;++i)Mo(e[i],t);return t}(h["!merges"])),m&&function(e,t){for(var n=0;n<t["!links"].length;++n){var r=t["!links"][n];wc(e,440,Jo(r)),r[1].Tooltip&&wc(e,2048,Qo(r))}delete t["!links"]}(c,h),wc(c,442,yo(C)),m&&function(e,t){var n=cr(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),wc(e,2151,n),(n=cr(39)).write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),Mo(Er(t["!ref"]||"A1"),n),n.write_shift(4,4),wc(e,2152,n)}(c,h),wc(c,10),c.end()}function Mc(e,t,n){var r,o=dr(),l=(e||{}).Workbook||{},c=l.Sheets||[],h=l.WBProps||{},f=8==n.biff,d=5==n.biff;(wc(o,2057,Ro(0,5,n)),"xla"==n.bookType&&wc(o,135),wc(o,225,f?lo(1200):null),wc(o,193,function(e,t){t||(t=cr(e));for(var n=0;n<e;++n)t.write_shift(1,0);return t}(2)),d&&wc(o,191),d&&wc(o,192),wc(o,226),wc(o,92,function(s,e){var t=!e||8==e.biff,n=cr(t?112:54);for(n.write_shift(8==e.biff?2:1,7),t&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(t?0:536870912));n.l<n.length;)n.write_shift(1,t?0:32);return n}(0,n)),wc(o,66,lo(f?1200:1252)),f&&wc(o,353,lo(0)),f&&wc(o,448),wc(o,317,function(e){for(var t=cr(2*e),i=0;i<e;++i)t.write_shift(2,i+1);return t}(e.SheetNames.length)),f&&e.vbaraw&&wc(o,211),f&&e.vbaraw)&&wc(o,442,yo(h.CodeName||"ThisWorkbook"));wc(o,156,lo(17)),wc(o,25,ao(!1)),wc(o,18,ao(!1)),wc(o,19,lo(0)),f&&wc(o,431,ao(!1)),f&&wc(o,444,lo(0)),wc(o,61,((r=cr(18)).write_shift(2,0),r.write_shift(2,0),r.write_shift(2,29280),r.write_shift(2,17600),r.write_shift(2,56),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,1),r.write_shift(2,500),r)),wc(o,64,ao(!1)),wc(o,141,lo(0)),wc(o,34,ao("true"==function(e){return e.Workbook&&e.Workbook.WBProps&&$t(e.Workbook.WBProps.date1904)?"true":"false"}(e))),wc(o,14,ao(!0)),f&&wc(o,439,ao(!1)),wc(o,218,lo(0)),Cc(o,0,n),function(e,t,n){t&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var i=r[0];i<=r[1];++i)null!=t[i]&&wc(e,1054,zo(i,t[i],n))}))}(o,e.SSF,n),function(e,t){for(var i=0;i<16;++i)wc(e,224,Ho({numFmtId:0,style:!0},0,t));t.cellXfs.forEach((function(n){wc(e,224,Ho(n,0,t))}))}(o,n),f&&wc(o,352,ao(!1));var a=o.end(),v=dr();f&&wc(v,140,function(e){return e||(e=cr(4)),e.write_shift(2,1),e.write_shift(2,1),e}()),f&&n.Strings&&function(e,t,n,r){var o=r||(n||[]).length||0;if(o<=8224)return wc(e,t,n,o);var l=t;if(!isNaN(l)){for(var c=n.parts||[],h=0,i=0,f=0;f+(c[h]||8224)<=8224;)f+=c[h]||8224,h++;var d=e.next(4);for(d.write_shift(2,l),d.write_shift(2,f),e.push(n.slice(i,i+f)),i+=f;i<o;){for((d=e.next(4)).write_shift(2,60),f=0;f+(c[h]||8224)<=8224;)f+=c[h]||8224,h++;d.write_shift(2,f),e.push(n.slice(i,i+f)),i+=f}}}(v,252,function(e,t){var header=cr(8);header.write_shift(4,e.Count),header.write_shift(4,e.Unique);for(var n=[],r=0;r<e.length;++r)n[r]=po(e[r]);var o=j([header].concat(n));return o.parts=[header.length].concat(n.map((function(e){return e.length}))),o}(n.Strings)),wc(v,10);var m=v.end(),y=dr(),_=0,x=0;for(x=0;x<e.SheetNames.length;++x)_+=(f?12:11)+(f?2:1)*e.SheetNames[x].length;var w=a.length+_+m.length;for(x=0;x<e.SheetNames.length;++x){wc(y,133,Fo({pos:w,hs:(c[x]||{}).Hidden||0,dt:0,name:e.SheetNames[x]},n)),w+=t[x].length}var b=y.end();if(_!=b.length)throw new Error("BS8 "+_+" != "+b.length);var S=[];return a.length&&S.push(a),b.length&&S.push(b),m.length&&S.push(m),j(S)}function Ic(e,t){for(var i=0;i<=e.SheetNames.length;++i){var n=e.Sheets[e.SheetNames[i]];if(n&&n["!ref"])Cr(n["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+e.SheetNames[i]+"' extends beyond column IV (255). Data may be lost.")}var r=t||{};switch(r.biff||2){case 8:case 5:return function(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=it(X)),e&&e.SSF&&(Ie(),Me(e.SSF),n.revssf=qe(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,kh(n),n.cellXfs=[],jl(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)r[r.length]=Ac(i,n,e);return r.unshift(Mc(e,r,n)),j(r)}(e,t);case 4:case 3:case 2:return Oc(e,t)}throw new Error("invalid type "+r.bookType+" for BIFF")}function Dc(e,t){var n=t||{};var r=n.dense?[]:{},o=(e=e.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!o)throw new Error("Invalid HTML: could not find <table>");var l=e.match(/<\/table/i),i=o.index,c=l&&l.index||e.length,h=ut(e.slice(i,c),/(:?<tr[^>]*>)/i,"<tr>"),f=-1,d=0,v=0,m=0,y={s:{r:1e7,c:1e7},e:{r:0,c:0}},_=[];for(i=0;i<h.length;++i){var x=h[i].trim(),w=x.slice(0,3).toLowerCase();if("<tr"!=w){if("<td"==w||"<th"==w){var S=x.split(/<\/t[dh]>/i);for(c=0;c<S.length;++c){var k=S[c].trim();if(k.match(/<t[dh]/i)){for(var O=k,C=0;"<"==O.charAt(0)&&(C=O.indexOf(">"))>-1;)O=O.slice(C+1);for(var T=0;T<_.length;++T){var E=_[T];E.s.c==d&&E.s.r<f&&f<=E.e.r&&(d=E.e.c+1,T=-1)}var A=At(k.slice(0,k.indexOf(">")));m=A.colspan?+A.colspan:1,((v=+A.rowspan)>1||m>1)&&_.push({s:{r:f,c:d},e:{r:f+(v||1)-1,c:d+m-1}});var M=A.t||A["data-t"]||"";if(O.length)if(O=Kt(O),y.s.r>f&&(y.s.r=f),y.e.r<f&&(y.e.r=f),y.s.c>d&&(y.s.c=d),y.e.c<d&&(y.e.c=d),O.length){var I={t:"s",v:O};n.raw||!O.trim().length||"s"==M||("TRUE"===O?I={t:"b",v:!0}:"FALSE"===O?I={t:"b",v:!1}:isNaN(at(O))?isNaN(lt(O).getDate())||(I={t:"d",v:tt(O)},n.cellDates||(I={t:"n",v:Ue(I.v)}),I.z=n.dateNF||X[14]):I={t:"n",v:at(O)}),n.dense?(r[f]||(r[f]=[]),r[f][d]=I):r[Or({r:f,c:d})]=I,d+=m}else d+=m;else d+=m}}}}else{if(++f,n.sheetRows&&n.sheetRows<=f){--f;break}d=0}}return r["!ref"]=Tr(y),_.length&&(r["!merges"]=_),r}function Pc(e,t,n,r){for(var o=e["!merges"]||[],l=[],c=t.s.c;c<=t.e.c;++c){for(var h=0,f=0,d=0;d<o.length;++d)if(!(o[d].s.r>n||o[d].s.c>c||o[d].e.r<n||o[d].e.c<c)){if(o[d].s.r<n||o[d].s.c<c){h=-1;break}h=o[d].e.r-o[d].s.r+1,f=o[d].e.c-o[d].s.c+1;break}if(!(h<0)){var v=Or({r:n,c:c}),m=r.dense?(e[n]||[])[c]:e[v],y=m&&null!=m.v&&(m.h||Bt(m.w||(Mr(m),m.w)||""))||"",_={};h>1&&(_.rowspan=h),f>1&&(_.colspan=f),r.editable?y='<span contenteditable="true">'+y+"</span>":m&&(_["data-t"]=m&&m.t||"z",null!=m.v&&(_["data-v"]=m.v),null!=m.z&&(_["data-z"]=m.z),m.l&&"#"!=(m.l.Target||"#").charAt(0)&&(y='<a href="'+m.l.Target+'">'+y+"</a>")),_.id=(r.id||"sjs")+"-"+v,l.push(rn("td",y,_))}}return"<tr>"+l.join("")+"</tr>"}var Nc='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Lc="</body></html>";function jc(e,t,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}function Rc(e,t){var n=t||{},header=null!=n.header?n.header:Nc,footer=null!=n.footer?n.footer:Lc,r=[header],o=Cr(e["!ref"]);n.dense=Array.isArray(e),r.push(jc(0,0,n));for(var l=o.s.r;l<=o.e.r;++l)r.push(Pc(e,o,l,n));return r.push("</table>"+footer),r.join("")}function Fc(e,table,t){var n=t||{};var r=0,o=0;if(null!=n.origin)if("number"==typeof n.origin)r=n.origin;else{var l="string"==typeof n.origin?kr(n.origin):n.origin;r=l.r,o=l.c}var c=table.getElementsByTagName("tr"),h=Math.min(n.sheetRows||1e7,c.length),f={s:{r:0,c:0},e:{r:r,c:o}};if(e["!ref"]){var d=Cr(e["!ref"]);f.s.r=Math.min(f.s.r,d.s.r),f.s.c=Math.min(f.s.c,d.s.c),f.e.r=Math.max(f.e.r,d.e.r),f.e.c=Math.max(f.e.c,d.e.c),-1==r&&(f.e.r=r=d.e.r+1)}var v=[],m=0,y=e["!rows"]||(e["!rows"]=[]),_=0,x=0,w=0,S=0,k=0,O=0;for(e["!cols"]||(e["!cols"]=[]);_<c.length&&x<h;++_){var C=c[_];if(zc(C)){if(n.display)continue;y[x]={hidden:!0}}var T=C.children;for(w=S=0;w<T.length;++w){var E=T[w];if(!n.display||!zc(E)){var A=E.hasAttribute("data-v")?E.getAttribute("data-v"):E.hasAttribute("v")?E.getAttribute("v"):Kt(E.innerHTML),M=E.getAttribute("data-z")||E.getAttribute("z");for(m=0;m<v.length;++m){var I=v[m];I.s.c==S+o&&I.s.r<x+r&&x+r<=I.e.r&&(S=I.e.c+1-o,m=-1)}O=+E.getAttribute("colspan")||1,((k=+E.getAttribute("rowspan")||1)>1||O>1)&&v.push({s:{r:x+r,c:S+o},e:{r:x+r+(k||1)-1,c:S+o+(O||1)-1}});var D={t:"s",v:A},P=E.getAttribute("data-t")||E.getAttribute("t")||"";null!=A&&(0==A.length?D.t=P||"z":n.raw||0==A.trim().length||"s"==P||("TRUE"===A?D={t:"b",v:!0}:"FALSE"===A?D={t:"b",v:!1}:isNaN(at(A))?isNaN(lt(A).getDate())||(D={t:"d",v:tt(A)},n.cellDates||(D={t:"n",v:Ue(D.v)}),D.z=n.dateNF||X[14]):D={t:"n",v:at(A)})),void 0===D.z&&null!=M&&(D.z=M);var N="",L=E.getElementsByTagName("A");if(L&&L.length)for(var j=0;j<L.length&&(!L[j].hasAttribute("href")||"#"==(N=L[j].getAttribute("href")).charAt(0));++j);N&&"#"!=N.charAt(0)&&(D.l={Target:N}),n.dense?(e[x+r]||(e[x+r]=[]),e[x+r][S+o]=D):e[Or({c:S+o,r:x+r})]=D,f.e.c<S+o&&(f.e.c=S+o),S+=O}}++x}return v.length&&(e["!merges"]=(e["!merges"]||[]).concat(v)),f.e.r=Math.max(f.e.r,x-1+r),e["!ref"]=Tr(f),x>=h&&(e["!fullref"]=Tr((f.e.r=c.length-_+x-1+r,f))),e}function Bc(table,e){return Fc((e||{}).dense?[]:{},table,e)}function zc(element){var e="",t=function(element){return element.ownerDocument.defaultView&&"function"==typeof element.ownerDocument.defaultView.getComputedStyle?element.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(element);return t&&(e=t(element).getPropertyValue("display")),e||(e=element.style&&element.style.display),"none"===e}var $c={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Vc(e,t){var n=t||{};var r,o,l,c,h,q,text,f,d=an(e),v=[],m={name:""},y="",_=0,x={},w=[],S=n.dense?[]:{},k={value:""},O="",C=0,T=[],E=-1,A=-1,M={s:{r:1e6,c:1e7},e:{r:0,c:0}},I=0,D={},P=[],N={},L=[],j=1,R=1,F=[],B={Names:[]},z={},$=["",""],V=[],H={},W="",U=0,G=!1,Y=!1,i=0;for(sn.lastIndex=0,d=d.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");h=sn.exec(d);)switch(h[3]=h[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===h[1]?(M.e.c>=M.s.c&&M.e.r>=M.s.r?S["!ref"]=Tr(M):S["!ref"]="A1:A1",n.sheetRows>0&&n.sheetRows<=M.e.r&&(S["!fullref"]=S["!ref"],M.e.r=n.sheetRows-1,S["!ref"]=Tr(M)),P.length&&(S["!merges"]=P),L.length&&(S["!rows"]=L),l.name=l["名称"]||l.name,"undefined"!=typeof JSON&&JSON.stringify(l),w.push(l.name),x[l.name]=S,Y=!1):"/"!==h[0].charAt(h[0].length-2)&&(l=At(h[0],!1),E=A=-1,M.s.r=M.s.c=1e7,M.e.r=M.e.c=0,S=n.dense?[]:{},P=[],L=[],Y=!0);break;case"table-row-group":"/"===h[1]?--I:++I;break;case"table-row":case"行":if("/"===h[1]){E+=j,j=1;break}if((c=At(h[0],!1))["行号"]?E=c["行号"]-1:-1==E&&(E=0),(j=+c["number-rows-repeated"]||1)<10)for(i=0;i<j;++i)I>0&&(L[E+i]={level:I});A=-1;break;case"covered-table-cell":"/"!==h[1]&&++A,n.sheetStubs&&(n.dense?(S[E]||(S[E]=[]),S[E][A]={t:"z"}):S[Or({r:E,c:A})]={t:"z"}),O="",T=[];break;case"table-cell":case"数据":if("/"===h[0].charAt(h[0].length-2))++A,k=At(h[0],!1),R=parseInt(k["number-columns-repeated"]||"1",10),q={t:"z",v:null},k.formula&&0!=n.cellFormula&&(q.f=El(Pt(k.formula))),"string"==(k["数据类型"]||k["value-type"])&&(q.t="s",q.v=Pt(k["string-value"]||""),n.dense?(S[E]||(S[E]=[]),S[E][A]=q):S[Or({r:E,c:A})]=q),A+=R-1;else if("/"!==h[1]){O="",C=0,T=[],R=1;var K=j?E+j-1:E;if(++A>M.e.c&&(M.e.c=A),A<M.s.c&&(M.s.c=A),E<M.s.r&&(M.s.r=E),K>M.e.r&&(M.e.r=K),V=[],H={},q={t:(k=At(h[0],!1))["数据类型"]||k["value-type"],v:null},n.cellFormula)if(k.formula&&(k.formula=Pt(k.formula)),k["number-matrix-columns-spanned"]&&k["number-matrix-rows-spanned"]&&(N={s:{r:E,c:A},e:{r:E+(parseInt(k["number-matrix-rows-spanned"],10)||0)-1,c:A+(parseInt(k["number-matrix-columns-spanned"],10)||0)-1}},q.F=Tr(N),F.push([N,q.F])),k.formula)q.f=El(k.formula);else for(i=0;i<F.length;++i)E>=F[i][0].s.r&&E<=F[i][0].e.r&&A>=F[i][0].s.c&&A<=F[i][0].e.c&&(q.F=F[i][1]);switch((k["number-columns-spanned"]||k["number-rows-spanned"])&&(N={s:{r:E,c:A},e:{r:E+(parseInt(k["number-rows-spanned"],10)||0)-1,c:A+(parseInt(k["number-columns-spanned"],10)||0)-1}},P.push(N)),k["number-columns-repeated"]&&(R=parseInt(k["number-columns-repeated"],10)),q.t){case"boolean":q.t="b",q.v=$t(k["boolean-value"]);break;case"float":case"percentage":case"currency":q.t="n",q.v=parseFloat(k.value);break;case"date":q.t="d",q.v=tt(k["date-value"]),n.cellDates||(q.t="n",q.v=Ue(q.v)),q.z="m/d/yy";break;case"time":q.t="n",q.v=Ze(k["time-value"])/86400,n.cellDates&&(q.t="d",q.v=Xe(q.v)),q.z="HH:MM:SS";break;case"number":q.t="n",q.v=parseFloat(k["数据数值"]);break;default:if("string"!==q.t&&"text"!==q.t&&q.t)throw new Error("Unsupported value type "+q.t);q.t="s",null!=k["string-value"]&&(O=Pt(k["string-value"]),T=[])}}else{if(G=!1,"s"===q.t&&(q.v=O||"",T.length&&(q.R=T),G=0==C),z.Target&&(q.l=z),V.length>0&&(q.c=V,V=[]),O&&!1!==n.cellText&&(q.w=O),G&&(q.t="z",delete q.v),(!G||n.sheetStubs)&&!(n.sheetRows&&n.sheetRows<=E))for(var X=0;X<j;++X){if(R=parseInt(k["number-columns-repeated"]||"1",10),n.dense)for(S[E+X]||(S[E+X]=[]),S[E+X][A]=0==X?q:it(q);--R>0;)S[E+X][A+R]=it(q);else for(S[Or({r:E+X,c:A})]=q;--R>0;)S[Or({r:E+X,c:A+R})]=it(q);M.e.c<=A&&(M.e.c=A)}A+=(R=parseInt(k["number-columns-repeated"]||"1",10))-1,R=0,q={},O="",T=[]}z={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===h[1]){if((r=v.pop())[0]!==h[3])throw"Bad state: "+r}else"/"!==h[0].charAt(h[0].length-2)&&v.push([h[3],!0]);break;case"annotation":if("/"===h[1]){if((r=v.pop())[0]!==h[3])throw"Bad state: "+r;H.t=O,T.length&&(H.R=T),H.a=W,V.push(H)}else"/"!==h[0].charAt(h[0].length-2)&&v.push([h[3],!1]);W="",U=0,O="",C=0,T=[];break;case"creator":"/"===h[1]?W=d.slice(U,h.index):U=h.index+h[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===h[1]){if((r=v.pop())[0]!==h[3])throw"Bad state: "+r}else"/"!==h[0].charAt(h[0].length-2)&&v.push([h[3],!1]);O="",C=0,T=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===h[1]){if(D[m.name]=y,(r=v.pop())[0]!==h[3])throw"Bad state: "+r}else"/"!==h[0].charAt(h[0].length-2)&&(y="",m=At(h[0],!1),v.push([h[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(v[v.length-1][0]){case"time-style":case"date-style":o=At(h[0],!1),y+=$c[h[3]]["long"===o.style?1:0]}break;case"text":if("/>"===h[0].slice(-2))break;if("/"===h[1])switch(v[v.length-1][0]){case"number-style":case"date-style":case"time-style":y+=d.slice(_,h.index)}else _=h.index+h[0].length;break;case"named-range":$=Al((o=At(h[0],!1))["cell-range-address"]);var Z={Name:o.name,Ref:$[0]+"!"+$[1]};Y&&(Z.Sheet=w.length),B.Names.push(Z);break;case"p":case"文本串":if(["master-styles"].indexOf(v[v.length-1][0])>-1)break;if("/"!==h[1]||k&&k["string-value"])At(h[0],!1),C=h.index+h[0].length;else{var J=(text=d.slice(C,h.index),f=void 0,f=text.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n"),[Pt(f.replace(/<[^>]*>/g,""))]);O=(O.length>0?O+"\n":"")+J[0]}break;case"database-range":if("/"===h[1])break;try{x[($=Al(At(h[0])["target-range-address"]))[0]]["!autofilter"]={ref:$[1]}}catch(e){}break;case"a":if("/"!==h[1]){if(!(z=At(h[0],!1)).href)break;z.Target=Pt(z.href),delete z.href,"#"==z.Target.charAt(0)&&z.Target.indexOf(".")>-1?($=Al(z.Target.slice(1)),z.Target="#"+$[0]+"!"+$[1]):z.Target.match(/^\.\.[\\\/]/)&&(z.Target=z.Target.slice(3))}break;default:switch(h[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(n.WTF)throw new Error(h)}}var Q={Sheets:x,SheetNames:w,Workbook:B};return n.bookSheets&&delete Q.Sheets,Q}function Hc(e,t){t=t||{},ft(e,"META-INF/manifest.xml")&&function(e,t){for(var n,r,o=an(e);n=sn.exec(o);)switch(n[3]){case"manifest":break;case"file-entry":if("/"==(r=At(n[0],!1)).path&&"application/vnd.oasis.opendocument.spreadsheet"!==r.type)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}(gt(e,"META-INF/manifest.xml"),t);var content=vt(e,"content.xml");if(!content)throw new Error("Missing content.xml in ODS / UOF file");var n=Vc(Ut(content),t);return ft(e,"meta.xml")&&(n.Props=Mi(gt(e,"meta.xml"))),n}function qc(data,e){return Vc(data,e)}var Wc=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+nn({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return St+t}}(),Uc=function(){var e=" <table:table-cell />\n",t=function(t,n,i){var r=[];r.push(' <table:table table:name="'+jt(n.SheetNames[i])+'" table:style-name="ta1">\n');var o=0,l=0,c=Cr(t["!ref"]||"A1"),h=t["!merges"]||[],f=0,d=Array.isArray(t);if(t["!cols"])for(l=0;l<=c.e.c;++l)r.push(" <table:table-column"+(t["!cols"][l]?' table:style-name="co'+t["!cols"][l].ods+'"':"")+"></table:table-column>\n");var v="",m=t["!rows"]||[];for(o=0;o<c.s.r;++o)v=m[o]?' table:style-name="ro'+m[o].ods+'"':"",r.push(" <table:table-row"+v+"></table:table-row>\n");for(;o<=c.e.r;++o){for(v=m[o]?' table:style-name="ro'+m[o].ods+'"':"",r.push(" <table:table-row"+v+">\n"),l=0;l<c.s.c;++l)r.push(e);for(;l<=c.e.c;++l){var y=!1,_={},x="";for(f=0;f!=h.length;++f)if(!(h[f].s.c>l||h[f].s.r>o||h[f].e.c<l||h[f].e.r<o)){h[f].s.c==l&&h[f].s.r==o||(y=!0),_["table:number-columns-spanned"]=h[f].e.c-h[f].s.c+1,_["table:number-rows-spanned"]=h[f].e.r-h[f].s.r+1;break}if(y)r.push(" <table:covered-table-cell/>\n");else{var w=Or({r:o,c:l}),S=d?(t[o]||[])[l]:t[w];if(S&&S.f&&(_["table:formula"]=jt(("of:="+S.f.replace(js,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),S.F&&S.F.slice(0,w.length)==w)){var k=Cr(S.F);_["table:number-matrix-columns-spanned"]=k.e.c-k.s.c+1,_["table:number-matrix-rows-spanned"]=k.e.r-k.s.r+1}if(S){switch(S.t){case"b":x=S.v?"TRUE":"FALSE",_["office:value-type"]="boolean",_["office:boolean-value"]=S.v?"true":"false";break;case"n":x=S.w||String(S.v||0),_["office:value-type"]="float",_["office:value"]=S.v||0;break;case"s":case"str":x=null==S.v?"":S.v,_["office:value-type"]="string";break;case"d":x=S.w||tt(S.v).toISOString(),_["office:value-type"]="date",_["office:date-value"]=tt(S.v).toISOString(),_["table:style-name"]="ce1";break;default:r.push(e);continue}var O=jt(x).replace(/ +/g,(function(e){return'<text:s text:c="'+e.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(S.l&&S.l.Target){var C=S.l.Target;"#"==(C="#"==C.charAt(0)?"#"+C.slice(1).replace(/\./,"!"):C).charAt(0)||C.match(/^\w+:/)||(C="../"+C),O=rn("text:a",O,{"xlink:href":C.replace(/&/g,"&amp;")})}r.push(" "+rn("table:table-cell",rn("text:p",O,{}),_)+"\n")}else r.push(e)}}r.push(" </table:table-row>\n")}return r.push(" </table:table>\n"),r.join("")};return function(e,n){var r=[St],o=nn({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),l=nn({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==n.bookType?(r.push("<office:document"+o+l+">\n"),r.push(Ti().replace(/office:document-meta/g,"office:meta"))):r.push("<office:document-content"+o+">\n"),function(e,t){e.push(" <office:automatic-styles>\n"),e.push(' <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push(' <number:month number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(' <number:day number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(" <number:year/>\n"),e.push(" </number:date-style>\n");var n=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var r=0;r<t["!cols"].length;++r)if(t["!cols"][r]){var o=t["!cols"][r];if(null==o.width&&null==o.wpx&&null==o.wch)continue;Ua(o),o.ods=n;var l=t["!cols"][r].wpx+"px";e.push(' <style:style style:name="co'+n+'" style:family="table-column">\n'),e.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+l+'"/>\n'),e.push(" </style:style>\n"),++n}}));var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var n=0;n<t["!rows"].length;++n)if(t["!rows"][n]){t["!rows"][n].ods=r;var o=t["!rows"][n].hpx+"px";e.push(' <style:style style:name="ro'+r+'" style:family="table-row">\n'),e.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+o+'"/>\n'),e.push(" </style:style>\n"),++r}})),e.push(' <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),e.push(' <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push(" </style:style>\n"),e.push(' <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),e.push(" </office:automatic-styles>\n")}(r,e),r.push(" <office:body>\n"),r.push(" <office:spreadsheet>\n");for(var i=0;i!=e.SheetNames.length;++i)r.push(t(e.Sheets[e.SheetNames[i]],e,i));return r.push(" </office:spreadsheet>\n"),r.push(" </office:body>\n"),"fods"==n.bookType?r.push("</office:document>"):r.push("</office:document-content>"),r.join("")}}();function Gc(e,t){if("fods"==t.bookType)return Uc(e,t);var n=_t(),r="",o=[],l=[];return bt(n,r="mimetype","application/vnd.oasis.opendocument.spreadsheet"),bt(n,r="content.xml",Uc(e,t)),o.push([r,"text/xml"]),l.push([r,"ContentFile"]),bt(n,r="styles.xml",Wc(e,t)),o.push([r,"text/xml"]),l.push([r,"StylesFile"]),bt(n,r="meta.xml",St+Ti()),o.push([r,"text/xml"]),l.push([r,"MetadataFile"]),bt(n,r="manifest.rdf",function(e){var base,t,n=[St];n.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var i=0;i!=e.length;++i)n.push(Ci(e[i][0],e[i][1])),n.push((base="",t=e[i][0],[' <rdf:Description rdf:about="'+base+'">\n',' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+'"/>\n'," </rdf:Description>\n"].join("")));return n.push(Ci("","Document","pkg")),n.push("</rdf:RDF>"),n.join("")}(l)),o.push([r,"application/rdf+xml"]),bt(n,r="META-INF/manifest.xml",function(e){var t=[St];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push(' <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var i=0;i<e.length;++i)t.push(' <manifest:file-entry manifest:full-path="'+e[i][0]+'" manifest:media-type="'+e[i][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}(o)),n}function Yc(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Kc(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):Ut(N(e))}function Xc(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):D(Gt(e))}function Zc(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function Jc(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function Qc(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function eh(e){var t=new Uint8Array(7);t[0]=127&e;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383)break e;if(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)break e;if(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)break e;if(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)break e;if(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103)break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function nh(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function rh(e){for(var t=[],n=[0];n[0]<e.length;){var r,o=n[0],l=Qc(e,n),c=7&l,h=0;if(0==(l=Math.floor(l/8)))break;switch(c){case 0:for(var f=n[0];e[n[0]++]>=128;);r=e.slice(f,n[0]);break;case 5:h=4,r=e.slice(n[0],n[0]+h),n[0]+=h;break;case 1:h=8,r=e.slice(n[0],n[0]+h),n[0]+=h;break;case 2:h=Qc(e,n),r=e.slice(n[0],n[0]+h),n[0]+=h;break;default:throw new Error("PB Type ".concat(c," for Field ").concat(l," at offset ").concat(o))}var d={data:r,type:c};null==t[l]?t[l]=[d]:t[l].push(d)}return t}function ih(e){var t=[];return e.forEach((function(e,n){e.forEach((function(e){e.data&&(t.push(eh(8*n+e.type)),2==e.type&&t.push(eh(e.data.length)),t.push(e.data))}))})),Zc(t)}function oh(data,e){return(null==data?void 0:data.map((function(t){return e(t.data)})))||[]}function ah(e){for(var t,n=[],r=[0];r[0]<e.length;){var o=Qc(e,r),l=rh(e.slice(r[0],r[0]+o));r[0]+=o;var c={id:nh(l[1][0].data),messages:[]};l[2].forEach((function(b){var t=rh(b.data),n=nh(t[3][0].data);c.messages.push({meta:t,data:e.slice(r[0],r[0]+n)}),r[0]+=n})),(null==(t=l[3])?void 0:t[0])&&(c.merge=nh(l[3][0].data)>>>0>0),n.push(c)}return n}function sh(e){var t=[];return e.forEach((function(e){var n=[];n[1]=[{data:eh(e.id),type:0}],n[2]=[],null!=e.merge&&(n[3]=[{data:eh(+!!e.merge),type:0}]);var r=[];e.messages.forEach((function(e){r.push(e.data),e.meta[3]=[{type:0,data:eh(e.data.length)}],n[2].push({data:ih(e.meta),type:2})}));var o=ih(n);t.push(eh(o.length)),t.push(o),r.forEach((function(e){return t.push(e)}))})),Zc(t)}function lh(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],r=Qc(t,n),o=[];n[0]<t.length;){var l=3&t[n[0]];if(0!=l){var c=0,h=0;if(1==l?(h=4+(t[n[0]]>>2&7),c=(224&t[n[0]++])<<3,c|=t[n[0]++]):(h=1+(t[n[0]++]>>2),2==l?(c=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(c=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),o=[Zc(o)],0==c)throw new Error("Invalid offset 0");if(c>o[0].length)throw new Error("Invalid offset beyond length");if(h>=c)for(o.push(o[0].slice(-c)),h-=c;h>=o[o.length-1].length;)o.push(o[o.length-1]),h-=o[o.length-1].length;o.push(o[0].slice(-c,-c+h))}else{var f=t[n[0]++]>>2;if(f<60)++f;else{var d=f-59;f=t[n[0]],d>1&&(f|=t[n[0]+1]<<8),d>2&&(f|=t[n[0]+2]<<16),d>3&&(f|=t[n[0]+3]<<24),f>>>=0,f++,n[0]+=d}o.push(t.slice(n[0],n[0]+f)),n[0]+=f}}var v=Zc(o);if(v.length!=r)throw new Error("Unexpected length: ".concat(v.length," != ").concat(r));return v}function uh(e){for(var t=[],n=0;n<e.length;){var r=e[n++],o=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(lh(r,e.slice(n,n+o))),n+=o}if(n!==e.length)throw new Error("data is not a valid framed stream!");return Zc(t)}function ch(e){for(var t=[],n=0;n<e.length;){var r=Math.min(e.length-n,268435455),o=new Uint8Array(4);t.push(o);var l=eh(r),c=l.length;t.push(l),r<=60?(c++,t.push(new Uint8Array([r-1<<2]))):r<=256?(c+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(c+=3,t.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(c+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(c+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),c+=r,o[0]=0,o[1]=255&c,o[2]=c>>8&255,o[3]=c>>16&255,n+=r}return Zc(t)}function hh(e,t,n){var r,o=Yc(e),l=o.getUint32(8,!0),c=12,h=-1,f=-1,d=NaN,v=NaN,dt=new Date(2001,0,1);switch(1&l&&(d=function(e,t){for(var n=(127&e[t+15])<<7|e[t+14]>>1,r=1&e[t+14],o=t+13;o>=t;--o)r=256*r+e[o];return(128&e[t+15]?-r:r)*Math.pow(10,n-6176)}(e,c),c+=16),2&l&&(v=o.getFloat64(c,!0),c+=8),4&l&&(dt.setTime(dt.getTime()+1e3*o.getFloat64(c,!0)),c+=8),8&l&&(f=o.getUint32(c,!0),c+=4),16&l&&(h=o.getUint32(c,!0),c+=4),e[1]){case 0:break;case 2:case 10:r={t:"n",v:d};break;case 3:r={t:"s",v:t[f]};break;case 5:r={t:"d",v:dt};break;case 6:r={t:"b",v:v>0};break;case 7:r={t:"n",v:v/86400};break;case 8:r={t:"e",v:0};break;case 9:if(!(h>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&l," : ").concat(e.slice(0,4)));r={t:"s",v:n[h]};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&l," : ").concat(e.slice(0,4)))}return r}function fh(e,t){var n=new Uint8Array(32),r=Yc(n),o=12,l=0;switch(n[0]=5,e.t){case"n":n[1]=2,function(e,t,n){var r=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,o=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(127&r)<<1;for(var i=0;o>=1;++i,o/=256)e[t+i]=255&o;e[t+15]|=n>=0?0:128}(n,o,e.v),l|=1,o+=16;break;case"b":n[1]=6,r.setFloat64(o,e.v?1:0,!0),l|=2,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,r.setUint32(o,t.indexOf(e.v),!0),l|=8,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(8,l,!0),n.slice(0,o)}function dh(e,t){var n=new Uint8Array(32),r=Yc(n),o=12,l=0;switch(n[0]=3,e.t){case"n":n[2]=2,r.setFloat64(o,e.v,!0),l|=32,o+=8;break;case"b":n[2]=6,r.setFloat64(o,e.v?1:0,!0),l|=32,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,r.setUint32(o,t.indexOf(e.v),!0),l|=16,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(4,l,!0),n.slice(0,o)}function ph(e,t,n){switch(e[0]){case 0:case 1:case 2:case 3:return function(e,t,n,r){var o,l=Yc(e),c=l.getUint32(4,!0),h=(r>1?12:8)+4*Jc(c&(r>1?3470:398)),f=-1,d=-1,v=NaN,dt=new Date(2001,0,1);switch(512&c&&(f=l.getUint32(h,!0),h+=4),h+=4*Jc(c&(r>1?12288:4096)),16&c&&(d=l.getUint32(h,!0),h+=4),32&c&&(v=l.getFloat64(h,!0),h+=8),64&c&&(dt.setTime(dt.getTime()+1e3*l.getFloat64(h,!0)),h+=8),e[2]){case 0:break;case 2:o={t:"n",v:v};break;case 3:o={t:"s",v:t[d]};break;case 5:o={t:"d",v:dt};break;case 6:o={t:"b",v:v>0};break;case 7:o={t:"n",v:v/86400};break;case 8:o={t:"e",v:0};break;case 9:if(f>-1)o={t:"s",v:n[f]};else if(d>-1)o={t:"s",v:t[d]};else{if(isNaN(v))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));o={t:"n",v:v}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return o}(e,t,n,e[0]);case 5:return hh(e,t,n);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function gh(e){return Qc(rh(e)[1][0].data)}function vh(e,t){var n=rh(t.data),r=nh(n[1][0].data),o=n[3],data=[];return(o||[]).forEach((function(t){var n=rh(t.data),o=nh(n[1][0].data)>>>0;switch(r){case 1:data[o]=Kc(n[3][0].data);break;case 8:var l=rh(e[gh(n[9][0].data)][0].data),c=e[gh(l[1][0].data)][0],h=nh(c.meta[1][0].data);if(2001!=h)throw new Error("2000 unexpected reference to ".concat(h));var f=rh(c.data);data[o]=f[3].map((function(e){return Kc(e.data)})).join("")}})),data}function mh(e,t){var n,r=rh(t.data),o=(null==(n=null==r?void 0:r[7])?void 0:n[0])?nh(r[7][0].data)>>>0>0?1:0:-1,l=oh(r[5],(function(e){return function(e,t){var n,r,o,l,c,h,f,d,v,m,y,_,x,w,S,k,O=rh(e),C=nh(O[1][0].data)>>>0,T=nh(O[2][0].data)>>>0,E=(null==(r=null==(n=O[8])?void 0:n[0])?void 0:r.data)&&nh(O[8][0].data)>0||!1;if((null==(l=null==(o=O[7])?void 0:o[0])?void 0:l.data)&&0!=t)S=null==(h=null==(c=O[7])?void 0:c[0])?void 0:h.data,k=null==(d=null==(f=O[6])?void 0:f[0])?void 0:d.data;else{if(!(null==(m=null==(v=O[4])?void 0:v[0])?void 0:m.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");S=null==(_=null==(y=O[4])?void 0:y[0])?void 0:_.data,k=null==(w=null==(x=O[3])?void 0:x[0])?void 0:w.data}for(var A=E?4:1,M=Yc(S),I=[],D=0;D<S.length/2;++D){var P=M.getUint16(2*D,!0);P<65535&&I.push([D,P])}if(I.length!=T)throw"Expected ".concat(T," cells, found ").concat(I.length);var N=[];for(D=0;D<I.length-1;++D)N[I[D][0]]=k.subarray(I[D][1]*A,I[D+1][1]*A);return I.length>=1&&(N[I[I.length-1][0]]=k.subarray(I[I.length-1][1]*A)),{R:C,cells:N}}(e,o)}));return{nrows:nh(r[4][0].data)>>>0,data:l.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(n,r){if(e[t.R][r])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(r));e[t.R][r]=n})),e}),[])}}function yh(e,t){var n={"!ref":"A1"},r=e[gh(rh(t.data)[2][0].data)],o=nh(r[0].meta[1][0].data);if(6001!=o)throw new Error("6000 unexpected reference to ".concat(o));return function(e,t,n){var r,o=rh(t.data),l={s:{r:0,c:0},e:{r:0,c:0}};if(l.e.r=(nh(o[6][0].data)>>>0)-1,l.e.r<0)throw new Error("Invalid row varint ".concat(o[6][0].data));if(l.e.c=(nh(o[7][0].data)>>>0)-1,l.e.c<0)throw new Error("Invalid col varint ".concat(o[7][0].data));n["!ref"]=Tr(l);var c=rh(o[4][0].data),h=vh(e,e[gh(c[4][0].data)][0]),f=(null==(r=c[17])?void 0:r[0])?vh(e,e[gh(c[17][0].data)][0]):[],d=rh(c[3][0].data),v=0;d[1].forEach((function(t){var r=rh(t.data),o=e[gh(r[2][0].data)][0],l=nh(o.meta[1][0].data);if(6002!=l)throw new Error("6001 unexpected reference to ".concat(l));var c=mh(0,o);c.data.forEach((function(e,t){e.forEach((function(e,r){var o=Or({r:v+t,c:r}),l=ph(e,h,f);l&&(n[o]=l)}))})),v+=c.nrows}))}(e,r[0],n),n}function bh(e,t){var n={SheetNames:[],Sheets:{}};if(oh(rh(t.data)[1],gh).forEach((function(t){e[t].forEach((function(t){if(2==nh(t.meta[1][0].data)){var r=function(e,t){var n,r=rh(t.data),o={name:(null==(n=r[1])?void 0:n[0])?Kc(r[1][0].data):"",sheets:[]};return oh(r[2],gh).forEach((function(t){e[t].forEach((function(t){6e3==nh(t.meta[1][0].data)&&o.sheets.push(yh(e,t))}))})),o}(e,t);r.sheets.forEach((function(e,t){tf(n,e,0==t?r.name:r.name+"_"+t,!0)}))}}))})),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n}function _h(e){var t,n,r,o,l={},c=[];if(e.FullPaths.forEach((function(p){if(p.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(s){if(s.name.match(/\.iwa$/)){var e,t;try{e=uh(s.content)}catch(e){return console.log("?? "+s.content.length+" "+(e.message||e))}try{t=ah(e)}catch(e){return console.log("## "+(e.message||e))}t.forEach((function(e){l[e.id]=e.messages,c.push(e.id)}))}})),!c.length)throw new Error("File has no messages");var h=(null==(o=null==(r=null==(n=null==(t=null==l?void 0:l[1])?void 0:t[0])?void 0:n.meta)?void 0:r[1])?void 0:o[0].data)&&1==nh(l[1][0].meta[1][0].data)&&l[1][0];if(h||c.forEach((function(e){l[e].forEach((function(e){if(1==nh(e.meta[1][0].data)>>>0){if(h)throw new Error("Document has multiple roots");h=e}}))})),!h)throw new Error("Cannot find Document root");return bh(l,h)}function xh(e,data,t){var n,r,o,l;if(!(null==(n=e[6])?void 0:n[0])||!(null==(r=e[7])?void 0:r[0]))throw"Mutation only works on post-BNC storages!";if((null==(l=null==(o=e[8])?void 0:o[0])?void 0:l.data)&&nh(e[8][0].data)>0||!1)throw"Math only works with normal offsets";for(var c=0,h=Yc(e[7][0].data),f=0,d=[],v=Yc(e[4][0].data),m=0,y=[],_=0;_<data.length;++_)if(null!=data[_]){var x,w;switch(h.setUint16(2*_,f,!0),v.setUint16(2*_,m,!0),typeof data[_]){case"string":x=fh({t:"s",v:data[_]},t),w=dh({t:"s",v:data[_]},t);break;case"number":x=fh({t:"n",v:data[_]},t),w=dh({t:"n",v:data[_]},t);break;case"boolean":x=fh({t:"b",v:data[_]},t),w=dh({t:"b",v:data[_]},t);break;default:throw new Error("Unsupported value "+data[_])}d.push(x),f+=x.length,y.push(w),m+=w.length,++c}else h.setUint16(2*_,65535,!0),v.setUint16(2*_,65535);for(e[2][0].data=eh(c);_<e[7][0].data.length/2;++_)h.setUint16(2*_,65535,!0),v.setUint16(2*_,65535,!0);return e[6][0].data=Zc(d),e[3][0].data=Zc(y),c}function wh(e){return function(t){for(var i=0;i!=e.length;++i){var n=e[i];void 0===t[n[0]]&&(t[n[0]]=n[1]),"n"===n[2]&&(t[n[0]]=Number(t[n[0]]))}}}function Sh(e){wh([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function kh(e){wh([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function Oh(e,path,t,n,r,o,l,c,h,f,d,v){try{o[n]=Si(vt(e,t,!0),path);var m,data=gt(e,path);switch(c){case"sheet":m=Lu(data,path,r,h,o[n],f,d,v);break;case"chart":if(!(m=ju(data,path,r,h,o[n],f))||!m["!drawel"])break;var y=wt(m["!drawel"].Target,path),_=wi(y),x=function(data,e){if(!data)return"??";var t=(data.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return e["!id"][t].Target}(vt(e,y,!0),Si(vt(e,_,!0),y)),w=wt(x,y),S=wi(w);m=yu(vt(e,w,!0),0,0,Si(vt(e,S,!0),w),0,m);break;case"macro":O=path,o[n],O.slice(-4),m={"!type":"macro"};break;case"dialog":m=function(data,e,t,n,r,o,l,c){return e.slice(-4),{"!type":"dialog"}}(0,path,0,0,o[n]);break;default:throw new Error("Unrecognized sheet type "+c)}l[n]=m;var k=[];o&&o[n]&&$e(o[n]).forEach((function(t){var r="";if(o[n][t].Type==xi.CMNT){r=wt(o[n][t].Target,path);var l=Bu(gt(e,r,!0),r,h);if(!l||!l.length)return;As(m,l,!1)}o[n][t].Type==xi.TCMNT&&(r=wt(o[n][t].Target,path),k=k.concat(function(data,e){var t=[],n=!1,r={},o=0;return data.replace(Ct,(function(l,c){var h=At(l);switch(Mt(h[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<threadedComment":r={author:h.personId,guid:h.id,ref:h.ref,T:1};break;case"</threadedComment>":null!=r.t&&t.push(r);break;case"<text>":case"<text":o=c+l.length;break;case"</text>":r.t=data.slice(o,c).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"<mentions":case"<mentions>":case"<ext":n=!0;break;case"</mentions>":case"</ext>":n=!1;break;default:if(!n&&e.WTF)throw new Error("unrecognized "+h[0]+" in threaded comments")}return l})),t}(gt(e,r,!0),h)))})),k&&k.length&&As(m,k,!0,h.people||[])}catch(e){if(h.WTF)throw e}var O}function Ch(e){return"/"==e.charAt(0)?e.slice(1):e}function Th(e,t){if(Ie(),Sh(t=t||{}),ft(e,"META-INF/manifest.xml"))return Hc(e,t);if(ft(e,"objectdata.xml"))return Hc(e,t);if(ft(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if(e.FileIndex)return _h(e);var n=je.utils.cfb_new();return yt(e).forEach((function(t){bt(n,t,mt(e,t))})),_h(n)}if(!ft(e,"[Content_Types].xml")){if(ft(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(ft(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var r,o,l=yt(e),c=function(data){var e={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!data||!data.match)return e;var t={};if((data.match(Ct)||[]).forEach((function(n){var r=At(n);switch(r[0].replace(Tt,"<")){case"<?xml":break;case"<Types":e.xmlns=r["xmlns"+(r[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":t[r.Extension]=r.ContentType;break;case"<Override":void 0!==e[yi[r.ContentType]]&&e[yi[r.ContentType]].push(r.PartName)}})),e.xmlns!==hn)throw new Error("Unknown Namespace: "+e.xmlns);return e.calcchain=e.calcchains.length>0?e.calcchains[0]:"",e.sst=e.strs.length>0?e.strs[0]:"",e.style=e.styles.length>0?e.styles[0]:"",e.defaults=t,delete e.calcchains,e}(vt(e,"[Content_Types].xml")),h=!1;if(0===c.workbooks.length&&gt(e,o="xl/workbook.xml",!0)&&c.workbooks.push(o),0===c.workbooks.length){if(!gt(e,o="xl/workbook.bin",!0))throw new Error("Could not find workbook");c.workbooks.push(o),h=!0}"bin"==c.workbooks[0].slice(-3)&&(h=!0);var f={},d={};if(!t.bookSheets&&!t.bookProps){if(Ml=[],c.sst)try{Ml=Fu(gt(e,Ch(c.sst)),c.sst,t)}catch(e){if(t.WTF)throw e}t.cellStyles&&c.themes.length&&(f=function(data,e,t){return xs(data,t)}(vt(e,c.themes[0].replace(/^\//,""),!0)||"",c.themes[0],t)),c.style&&(d=Ru(gt(e,Ch(c.style)),c.style,f,t))}c.links.map((function(link){try{Si(vt(e,wi(Ch(link))),link);return $u(gt(e,Ch(link)),0,link,t)}catch(e){}}));var v=Nu(gt(e,Ch(c.workbooks[0])),c.workbooks[0],t),m={},y="";c.coreprops.length&&((y=gt(e,Ch(c.coreprops[0]),!0))&&(m=Mi(y)),0!==c.extprops.length&&(y=gt(e,Ch(c.extprops[0]),!0))&&function(data,p,e){var q={};p||(p={}),data=Ut(data),Pi.forEach((function(e){var t=(data.match(Yt(e[0]))||[])[1];switch(e[2]){case"string":t&&(p[e[1]]=Pt(t));break;case"bool":p[e[1]]="true"===t;break;case"raw":var n=data.match(new RegExp("<"+e[0]+"[^>]*>([\\s\\S]*?)</"+e[0]+">"));n&&n.length>0&&(q[e[1]]=n[1])}})),q.HeadingPairs&&q.TitlesOfParts&&Li(q.HeadingPairs,q.TitlesOfParts,p,e)}(y,m,t));var _={};t.bookSheets&&!t.bookProps||0!==c.custprops.length&&(y=vt(e,Ch(c.custprops[0]),!0))&&(_=function(data,e){var p={},t="",n=data.match(Ri);if(n)for(var i=0;i!=n.length;++i){var r=n[i],o=At(r);switch(o[0]){case"<?xml":case"<Properties":break;case"<property":t=Pt(o.name);break;case"</property>":t=null;break;default:if(0===r.indexOf("<vt:")){var l=r.split(">"),c=l[0].slice(4),text=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":p[t]=Pt(text);break;case"bool":p[t]=$t(text);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":p[t]=parseInt(text,10);break;case"r4":case"r8":case"decimal":p[t]=parseFloat(text);break;case"filetime":case"date":p[t]=tt(text);break;default:if("/"==c.slice(-1))break;e.WTF&&"undefined"!=typeof console&&console.warn("Unexpected",r,c,l)}}else if("</"===r.slice(0,2));else if(e.WTF)throw new Error(r)}}return p}(y,t));var x={};if((t.bookSheets||t.bookProps)&&(v.Sheets?r=v.Sheets.map((function(e){return e.name})):m.Worksheets&&m.SheetNames.length>0&&(r=m.SheetNames),t.bookProps&&(x.Props=m,x.Custprops=_),t.bookSheets&&void 0!==r&&(x.SheetNames=r),t.bookSheets?x.SheetNames:t.bookProps))return x;r={};var w={};t.bookDeps&&c.calcchain&&(w=zu(gt(e,Ch(c.calcchain)),c.calcchain));var path,S,i=0,k={},O=v.Sheets;m.Worksheets=O.length,m.SheetNames=[];for(var C=0;C!=O.length;++C)m.SheetNames[C]=O[C].name;var T=h?"bin":"xml",E=c.workbooks[0].lastIndexOf("/"),A=(c.workbooks[0].slice(0,E+1)+"_rels/"+c.workbooks[0].slice(E+1)+".rels").replace(/^\//,"");ft(e,A)||(A="xl/_rels/workbook."+T+".rels");var M=Si(vt(e,A,!0),A.replace(/_rels.*/,"s5s"));(c.metadata||[]).length>=1&&(t.xlmeta=Vu(gt(e,Ch(c.metadata[0])),c.metadata[0],t)),(c.people||[]).length>=1&&(t.people=function(data,e){var t=[],n=!1;return data.replace(Ct,(function(r){var o=At(r);switch(Mt(o[0])){case"<?xml":case"<personList":case"</personList>":case"</person>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<person":t.push({name:o.displayname,id:o.id});break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&e.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return r})),t}(gt(e,Ch(c.people[0])),t)),M&&(M=function(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,(n=e["!id"][t.id].Type,xi.WS.indexOf(n)>-1?"sheet":xi.CS&&n==xi.CS?"chart":xi.DS&&n==xi.DS?"dialog":xi.MS&&n==xi.MS?"macro":n&&n.length?n:"sheet")];var n}))}catch(e){return null}return e&&0!==e.length?e:null}(M,v.Sheets));var I=gt(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(i=0;i!=m.Worksheets;++i){var D="sheet";if(M&&M[i]?(path="xl/"+M[i][1].replace(/[\/]?xl\//,""),ft(e,path)||(path=M[i][1]),ft(e,path)||(path=A.replace(/_rels\/.*$/,"")+M[i][1]),D=M[i][2]):path=(path="xl/worksheets/sheet"+(i+1-I)+"."+T).replace(/sheet0\./,"sheet."),S=path.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(i!=t.sheets)continue e;break;case"string":if(m.SheetNames[i].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var P=!1,N=0;N!=t.sheets.length;++N)"number"==typeof t.sheets[N]&&t.sheets[N]==i&&(P=1),"string"==typeof t.sheets[N]&&t.sheets[N].toLowerCase()==m.SheetNames[i].toLowerCase()&&(P=1);if(!P)continue e}}Oh(e,path,S,m.SheetNames[i],i,k,r,D,t,v,f,d)}return x={Directory:c,Workbook:v,Props:m,Custprops:_,Deps:w,Sheets:r,SheetNames:m.SheetNames,Strings:Ml,Styles:d,Themes:f,SSF:it(X)},t&&t.bookFiles&&(e.files?(x.keys=l,x.files=e.files):(x.keys=[],x.files={},e.FullPaths.forEach((function(p,t){p=p.replace(/^Root Entry[\/]/,""),x.keys.push(p),x.files[p]=e.FileIndex[t]})))),t&&t.bookVBA&&(c.vba.length>0?x.vbaraw=gt(e,Ch(c.vba[0]),!0):c.defaults&&"application/vnd.ms-office.vbaProject"===c.defaults.bin&&(x.vbaraw=gt(e,"xl/vbaProject.bin",!0))),x}function Eh(e,t){var n,r,o=t||{},l="Workbook",data=je.find(e,l);try{if(l="/!DataSpaces/Version",!(data=je.find(e,l))||!data.content)throw new Error("ECMA-376 Encrypted file missing "+l);if(n=data.content,(r={}).id=n.read_shift(0,"lpp4"),r.R=Oa(n,4),r.U=Oa(n,4),r.W=Oa(n,4),l="/!DataSpaces/DataSpaceMap",!(data=je.find(e,l))||!data.content)throw new Error("ECMA-376 Encrypted file missing "+l);var c=function(e){var t=[];e.l+=4;for(var n=e.read_shift(4);n-- >0;)t.push(Ca(e));return t}(data.content);if(1!==c.length||1!==c[0].comps.length||0!==c[0].comps[0].t||"StrongEncryptionDataSpace"!==c[0].name||"EncryptedPackage"!==c[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+l);if(l="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(data=je.find(e,l))||!data.content)throw new Error("ECMA-376 Encrypted file missing "+l);var h=function(e){var t=[];e.l+=4;for(var n=e.read_shift(4);n-- >0;)t.push(e.read_shift(0,"lpp4"));return t}(data.content);if(1!=h.length||"StrongEncryptionTransform"!=h[0])throw new Error("ECMA-376 Encrypted file bad "+l);if(l="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(data=je.find(e,l))||!data.content)throw new Error("ECMA-376 Encrypted file missing "+l);Ta(data.content)}catch(e){}if(l="/EncryptionInfo",!(data=je.find(e,l))||!data.content)throw new Error("ECMA-376 Encrypted file missing "+l);var f=function(e){var t=Oa(e);switch(t.Minor){case 2:return[t.Minor,Ma(e)];case 3:return[t.Minor,Ia()];case 4:return[t.Minor,Da(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}(data.content);if(l="/EncryptedPackage",!(data=je.find(e,l))||!data.content)throw new Error("ECMA-376 Encrypted file missing "+l);if(4==f[0]&&"undefined"!=typeof decrypt_agile)return decrypt_agile(f[1],data.content,o.password||"",o);if(2==f[0]&&"undefined"!=typeof decrypt_std76)return decrypt_std76(f[1],data.content,o.password||"",o);throw new Error("File is password-protected")}function Ah(e,t){return"ods"==t.bookType?Gc(e,t):"numbers"==t.bookType?function(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var r=Cr(n["!ref"]);r.s.r=r.s.c=0;var o=!1;r.e.c>9&&(o=!0,r.e.c=9),r.e.r>49&&(o=!0,r.e.r=49),o&&console.error("The Numbers writer is currently limited to ".concat(Tr(r)));var data=Gh(n,{range:r,header:1}),l=["~Sh33tJ5~"];data.forEach((function(e){return e.forEach((function(e){"string"==typeof e&&l.push(e)}))}));var c={},h=[],f=je.read(t.numbers,{type:"base64"});f.FileIndex.map((function(e,t){return[e,f.FullPaths[t]]})).forEach((function(e){var t=e[0],n=e[1];2==t.type&&t.name.match(/\.iwa/)&&ah(uh(t.content)).forEach((function(e){h.push(e.id),c[e.id]={deps:[],location:n,type:nh(e.messages[0].meta[1][0].data)}}))})),h.sort((function(e,t){return e-t}));var d=h.filter((function(e){return e>1})).map((function(e){return[e,eh(e)]}));f.FileIndex.map((function(e,t){return[e,f.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1],t.name.match(/\.iwa/)&&ah(uh(t.content)).forEach((function(e){e.messages.forEach((function(t){d.forEach((function(t){e.messages.some((function(e){return 11006!=nh(e.meta[1][0].data)&&function(body,e){e:for(var t=0;t<=body.length-e.length;++t){for(var n=0;n<e.length;++n)if(body[t+n]!=e[n])continue e;return!0}return!1}(e.data,t[1])}))&&c[t[0]].deps.push(e.id)}))}))}))}));for(var v,m=je.find(f,c[1].location),y=ah(uh(m.content)),_=0;_<y.length;++_){var x=y[_];1==x.id&&(v=x)}var w=gh(rh(v.messages[0].data)[1][0].data);for(y=ah(uh((m=je.find(f,c[w].location)).content)),_=0;_<y.length;++_)(x=y[_]).id==w&&(v=x);for(w=gh(rh(v.messages[0].data)[2][0].data),y=ah(uh((m=je.find(f,c[w].location)).content)),_=0;_<y.length;++_)(x=y[_]).id==w&&(v=x);for(w=gh(rh(v.messages[0].data)[2][0].data),y=ah(uh((m=je.find(f,c[w].location)).content)),_=0;_<y.length;++_)(x=y[_]).id==w&&(v=x);var S=rh(v.messages[0].data);S[6][0].data=eh(r.e.r+1),S[7][0].data=eh(r.e.c+1);for(var k=gh(S[46][0].data),O=je.find(f,c[k].location),C=ah(uh(O.content)),T=0;T<C.length&&C[T].id!=k;++T);if(C[T].id!=k)throw"Bad ColumnRowUIDMapArchive";var E=rh(C[T].messages[0].data);E[1]=[],E[2]=[],E[3]=[];for(var A=0;A<=r.e.c;++A){var M=[];M[1]=M[2]=[{type:0,data:eh(A+420690)}],E[1].push({type:2,data:ih(M)}),E[2].push({type:0,data:eh(A)}),E[3].push({type:0,data:eh(A)})}E[4]=[],E[5]=[],E[6]=[];for(var I=0;I<=r.e.r;++I)(M=[])[1]=M[2]=[{type:0,data:eh(I+726270)}],E[4].push({type:2,data:ih(M)}),E[5].push({type:0,data:eh(I)}),E[6].push({type:0,data:eh(I)});C[T].messages[0].data=ih(E),O.content=ch(sh(C)),O.size=O.content.length,delete S[46];var D=rh(S[4][0].data);D[7][0].data=eh(r.e.r+1);var P=gh(rh(D[1][0].data)[2][0].data);if((C=ah(uh((O=je.find(f,c[P].location)).content)))[0].id!=P)throw"Bad HeaderStorageBucket";var N=rh(C[0].messages[0].data);for(I=0;I<data.length;++I){var L=rh(N[2][0].data);L[1][0].data=eh(I),L[4][0].data=eh(data[I].length),N[2][I]={type:N[2][0].type,data:ih(L)}}C[0].messages[0].data=ih(N),O.content=ch(sh(C)),O.size=O.content.length;var j=gh(D[2][0].data);if((C=ah(uh((O=je.find(f,c[j].location)).content)))[0].id!=j)throw"Bad HeaderStorageBucket";for(N=rh(C[0].messages[0].data),A=0;A<=r.e.c;++A)(L=rh(N[2][0].data))[1][0].data=eh(A),L[4][0].data=eh(r.e.r+1),N[2][A]={type:N[2][0].type,data:ih(L)};C[0].messages[0].data=ih(N),O.content=ch(sh(C)),O.size=O.content.length;var R=gh(D[4][0].data);!function(){for(var e,t=je.find(f,c[R].location),n=ah(uh(t.content)),r=0;r<n.length;++r){var o=n[r];o.id==R&&(e=o)}var h=rh(e.messages[0].data);h[3]=[];var d=[];l.forEach((function(e,i){d[1]=[{type:0,data:eh(i)}],d[2]=[{type:0,data:eh(1)}],d[3]=[{type:2,data:Xc(e)}],h[3].push({type:2,data:ih(d)})})),e.messages[0].data=ih(h);var v=ch(sh(n));t.content=v,t.size=t.content.length}();var F=rh(D[3][0].data),B=F[1][0];delete F[2];var z=rh(B.data),$=gh(z[2][0].data);!function(){for(var e,t=je.find(f,c[$].location),n=ah(uh(t.content)),o=0;o<n.length;++o){var h=n[o];h.id==$&&(e=h)}var d=rh(e.messages[0].data);delete d[6],delete F[7];var v=new Uint8Array(d[5][0].data);d[5]=[];for(var m=0,y=0;y<=r.e.r;++y){var _=rh(v);m+=xh(_,data[y],l),_[1][0].data=eh(y),d[5].push({data:ih(_),type:2})}d[1]=[{type:0,data:eh(r.e.c+1)}],d[2]=[{type:0,data:eh(r.e.r+1)}],d[3]=[{type:0,data:eh(m)}],d[4]=[{type:0,data:eh(r.e.r+1)}],e.messages[0].data=ih(d);var x=ch(sh(n));t.content=x,t.size=t.content.length}(),B.data=ih(z),D[3][0].data=ih(F),S[4][0].data=ih(D),v.messages[0].data=ih(S);var V=ch(sh(y));return m.content=V,m.size=m.content.length,f}(e,t):"xlsb"==t.bookType?function(e,t){Ts=1024,e&&!e.SSF&&(e.SSF=it(X));e&&e.SSF&&(Ie(),Me(e.SSF),t.revssf=qe(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF);t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Dl?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xlsb"==t.bookType?"bin":"xml",r=Ns.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};kh(t=t||{});var l=_t(),c="",h=0;t.cellXfs=[],jl(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});if(bt(l,c="docProps/core.xml",Di(e.Props,t)),o.coreprops.push(c),Oi(t.rels,2,c,xi.CORE_PROPS),c="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var f=[],d=0;d<e.SheetNames.length;++d)2!=(e.Workbook.Sheets[d]||{}).Hidden&&f.push(e.SheetNames[d]);e.Props.SheetNames=f}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,bt(l,c,ji(e.Props)),o.extprops.push(c),Oi(t.rels,3,c,xi.EXT_PROPS),e.Custprops!==e.Props&&$e(e.Custprops||{}).length>0&&(bt(l,c="docProps/custom.xml",Fi(e.Custprops)),o.custprops.push(c),Oi(t.rels,4,c,xi.CUST_PROPS));for(h=1;h<=e.SheetNames.length;++h){var v={"!id":{}},m=e.Sheets[e.SheetNames[h-1]];(m||{})["!type"];if(bt(l,c="xl/worksheets/sheet"+h+"."+n,Hu(h-1,c,t,e,v)),o.sheets.push(c),Oi(t.wbrels,-1,"worksheets/sheet"+h+"."+n,xi.WS[0]),m){var y=m["!comments"],_=!1,x="";y&&y.length>0&&(bt(l,x="xl/comments"+h+"."+n,qu(y,x,t)),o.comments.push(x),Oi(v,-1,"../comments"+h+"."+n,xi.CMNT),_=!0),m["!legacy"]&&_&&bt(l,"xl/drawings/vmlDrawing"+h+".vml",Es(h,m["!comments"])),delete m["!comments"],delete m["!legacy"]}v["!id"].rId1&&bt(l,wi(c),ki(v))}null!=t.Strings&&t.Strings.length>0&&(bt(l,c="xl/sharedStrings."+n,function(data,e,t){return(".bin"===e.slice(-4)?Sa:xa)(data,t)}(t.Strings,c,t)),o.strs.push(c),Oi(t.wbrels,-1,"sharedStrings."+n,xi.SST));bt(l,c="xl/workbook."+n,function(e,t,n){return(".bin"===t.slice(-4)?Pu:Mu)(e,n)}(e,c,t)),o.workbooks.push(c),Oi(t.rels,1,c,xi.WB),bt(l,c="xl/theme/theme1.xml",ws(e.Themes,t)),o.themes.push(c),Oi(t.wbrels,-1,"theme/theme1.xml",xi.THEME),bt(l,c="xl/styles."+n,function(data,e,t){return(".bin"===e.slice(-4)?fs:Qa)(data,t)}(e,c,t)),o.styles.push(c),Oi(t.wbrels,-1,"styles."+n,xi.STY),e.vbaraw&&r&&(bt(l,c="xl/vbaProject.bin",e.vbaraw),o.vba.push(c),Oi(t.wbrels,-1,"vbaProject.bin",xi.VBA));return bt(l,c="xl/metadata."+n,function(e){return(".bin"===e.slice(-4)?Os:Cs)()}(c)),o.metadata.push(c),Oi(t.wbrels,-1,"metadata."+n,xi.XLMETA),bt(l,"[Content_Types].xml",_i(o,t)),bt(l,"_rels/.rels",ki(t.rels)),bt(l,"xl/_rels/workbook."+n+".rels",ki(t.wbrels)),delete t.revssf,delete t.ssf,l}(e,t):Mh(e,t)}function Mh(e,t){Ts=1024,e&&!e.SSF&&(e.SSF=it(X)),e&&e.SSF&&(Ie(),Me(e.SSF),t.revssf=qe(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Dl?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",r=Ns.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};kh(t=t||{});var l=_t(),c="",h=0;if(t.cellXfs=[],jl(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),bt(l,c="docProps/core.xml",Di(e.Props,t)),o.coreprops.push(c),Oi(t.rels,2,c,xi.CORE_PROPS),c="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var f=[],d=0;d<e.SheetNames.length;++d)2!=(e.Workbook.Sheets[d]||{}).Hidden&&f.push(e.SheetNames[d]);e.Props.SheetNames=f}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,bt(l,c,ji(e.Props)),o.extprops.push(c),Oi(t.rels,3,c,xi.EXT_PROPS),e.Custprops!==e.Props&&$e(e.Custprops||{}).length>0&&(bt(l,c="docProps/custom.xml",Fi(e.Custprops)),o.custprops.push(c),Oi(t.rels,4,c,xi.CUST_PROPS));var v=["SheetJ5"];for(t.tcid=0,h=1;h<=e.SheetNames.length;++h){var m={"!id":{}},y=e.Sheets[e.SheetNames[h-1]];(y||{})["!type"];if(bt(l,c="xl/worksheets/sheet"+h+"."+n,nu(h-1,t,e,m)),o.sheets.push(c),Oi(t.wbrels,-1,"worksheets/sheet"+h+"."+n,xi.WS[0]),y){var _=y["!comments"],x=!1,w="";if(_&&_.length>0){var S=!1;_.forEach((function(e){e[1].forEach((function(e){1==e.T&&(S=!0)}))})),S&&(bt(l,w="xl/threadedComments/threadedComment"+h+"."+n,Is(_,v,t)),o.threadedcomments.push(w),Oi(m,-1,"../threadedComments/threadedComment"+h+"."+n,xi.TCMNT)),bt(l,w="xl/comments"+h+"."+n,Ms(_)),o.comments.push(w),Oi(m,-1,"../comments"+h+"."+n,xi.CMNT),x=!0}y["!legacy"]&&x&&bt(l,"xl/drawings/vmlDrawing"+h+".vml",Es(h,y["!comments"])),delete y["!comments"],delete y["!legacy"]}m["!id"].rId1&&bt(l,wi(c),ki(m))}return null!=t.Strings&&t.Strings.length>0&&(bt(l,c="xl/sharedStrings.xml",xa(t.Strings,t)),o.strs.push(c),Oi(t.wbrels,-1,"sharedStrings.xml",xi.SST)),bt(l,c="xl/workbook.xml",Mu(e)),o.workbooks.push(c),Oi(t.rels,1,c,xi.WB),bt(l,c="xl/theme/theme1.xml",ws(e.Themes,t)),o.themes.push(c),Oi(t.wbrels,-1,"theme/theme1.xml",xi.THEME),bt(l,c="xl/styles.xml",Qa(e,t)),o.styles.push(c),Oi(t.wbrels,-1,"styles.xml",xi.STY),e.vbaraw&&r&&(bt(l,c="xl/vbaProject.bin",e.vbaraw),o.vba.push(c),Oi(t.wbrels,-1,"vbaProject.bin",xi.VBA)),bt(l,c="xl/metadata.xml",Cs()),o.metadata.push(c),Oi(t.wbrels,-1,"metadata.xml",xi.XLMETA),v.length>1&&(bt(l,c="xl/persons/person.xml",function(e){var t=[St,rn("personList",null,{xmlns:dn,"xmlns:x":xn[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,n){t.push(rn("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push("</personList>"),t.join("")}(v)),o.people.push(c),Oi(t.wbrels,-1,"persons/person.xml",xi.PEOPLE)),bt(l,"[Content_Types].xml",_i(o,t)),bt(l,"_rels/.rels",ki(t.rels)),bt(l,"xl/_rels/workbook.xml.rels",ki(t.wbrels)),delete t.revssf,delete t.ssf,l}function Ih(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=T(e.slice(0,12));break;case"binary":n=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function Dh(data,e){var i=0;e:for(;i<data.length;)switch(data.charCodeAt(i)){case 10:case 13:case 32:++i;break;case 60:return nc(data.slice(i),e);default:break e}return ua.to_workbook(data,e)}function Ph(data,e,t,n){return n?(t.type="string",ua.to_workbook(data,t)):ua.to_workbook(e,t)}function Nh(data,e){v();var t=e||{};if("undefined"!=typeof ArrayBuffer&&data instanceof ArrayBuffer)return Nh(new Uint8Array(data),((t=it(t)).type="array",t));"undefined"!=typeof Uint8Array&&data instanceof Uint8Array&&!t.type&&(t.type="undefined"!=typeof Deno?"buffer":"array");var n,r=data,o=!1;if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),Il={},t.dateNF&&(Il.dateNF=t.dateNF),t.type||(t.type=E&&Buffer.isBuffer(data)?"buffer":"base64"),"file"==t.type&&(t.type=E?"buffer":"binary",r=function(path){if(void 0!==Re)return Re.readFileSync(path);if("undefined"!=typeof Deno)return Deno.readFileSync(path);if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var e=File(path);e.open("r"),e.encoding="binary";var data=e.read();return e.close(),data}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("Cannot access file "+path)}(data),"undefined"==typeof Uint8Array||E||(t.type="array")),"string"==t.type&&(o=!0,t.type="binary",t.codepage=65001,r=function(data){return data.match(/[^\x00-\x7F]/)?Gt(data):data}(data)),"array"==t.type&&"undefined"!=typeof Uint8Array&&data instanceof Uint8Array&&"undefined"!=typeof ArrayBuffer){var l=new ArrayBuffer(3),c=new Uint8Array(l);if(c.foo="bar",!c.foo)return(t=it(t)).type="array",Nh(L(r),t)}switch((n=Ih(r,t))[0]){case 208:if(207===n[1]&&17===n[2]&&224===n[3]&&161===n[4]&&177===n[5]&&26===n[6]&&225===n[7])return function(e,t){return je.find(e,"EncryptedPackage")?Eh(e,t):yc(e,t)}(je.read(r,t),t);break;case 9:if(n[1]<=8)return yc(r,t);break;case 60:return nc(r,t);case 73:if(73===n[1]&&42===n[2]&&0===n[3])throw new Error("TIFF Image File is not a spreadsheet");if(68===n[1])return function(e,t){var n=t||{},r=!!n.WTF;n.WTF=!0;try{var o=aa.to_workbook(e,n);return n.WTF=r,o}catch(o){if(n.WTF=r,!o.message.match(/SYLK bad record ID/)&&r)throw o;return ua.to_workbook(e,t)}}(r,t);break;case 84:if(65===n[1]&&66===n[2]&&76===n[3])return sa.to_workbook(r,t);break;case 80:return 75===n[1]&&n[2]<9&&n[3]<9?function(data,e){var t=data,n=e||{};return n.type||(n.type=E&&Buffer.isBuffer(data)?"buffer":"base64"),Th(xt(t,n),n)}(r,t):Ph(data,r,t,o);case 239:return 60===n[3]?nc(r,t):Ph(data,r,t,o);case 255:if(254===n[1])return function(data,e){var t=data;return"base64"==e.type&&(t=T(t)),t=_.utils.decode(1200,t.slice(2),"str"),e.type="binary",Dh(t,e)}(r,t);if(0===n[1]&&2===n[2]&&0===n[3])return ca.to_workbook(r,t);break;case 0:if(0===n[1]){if(n[2]>=2&&0===n[3])return ca.to_workbook(r,t);if(0===n[2]&&(8===n[3]||9===n[3]))return ca.to_workbook(r,t)}break;case 3:case 131:case 139:case 140:return oa.to_workbook(r,t);case 123:if(92===n[1]&&114===n[2]&&116===n[3])return Ra.to_workbook(r,t);break;case 10:case 13:case 32:return function(data,e){var t="",n=Ih(data,e);switch(e.type){case"base64":t=T(data);break;case"binary":t=data;break;case"buffer":t=data.toString("binary");break;case"array":t=nt(data);break;default:throw new Error("Unrecognized type "+e.type)}return 239==n[0]&&187==n[1]&&191==n[2]&&(t=Ut(t)),e.type="binary",Dh(t,e)}(r,t);case 137:if(80===n[1]&&78===n[2]&&71===n[3])throw new Error("PNG Image File is not a spreadsheet")}return ia.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?oa.to_workbook(r,t):Ph(data,r,t,o)}function Lh(e,t){var n=t||{};return n.type="file",Nh(e,n)}function jh(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return ze(t.file,je.write(e,{type:E?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return je.write(e,t)}function Rh(e,t){var n={},r=E?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var o=e.FullPaths?je.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if("undefined"!=typeof Deno&&"string"==typeof o){if("binary"==t.type||"base64"==t.type)return o;o=new Uint8Array(P(o))}return t.password&&"undefined"!=typeof encrypt_agile?jh(encrypt_agile(o,t.password),t):"file"===t.type?ze(t.file,o):"string"==t.type?Ut(o):o}function Fh(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return C(Gt(r));case"binary":return Gt(r);case"string":return e;case"file":return ze(t.file,r,"utf8");case"buffer":return E?A(r,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(r):Fh(r,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function Bh(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",i=0;i<e.length;++i)n+=String.fromCharCode(e[i]);return"base64"==t.type?C(n):"string"==t.type?Ut(n):n;case"file":return ze(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function zh(e,t){v(),Eu(e);var n=it(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var r=zh(e,n);return n.type="array",P(r)}return function(e,t){var n=it(t||{});return Rh(Mh(e,n),n)}(e,n)}function $h(e,t){v(),Eu(e);var n=it(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var r=$h(e,n);return n.type="array",P(r)}var o=0;if(n.sheet&&(o="number"==typeof n.sheet?n.sheet:e.SheetNames.indexOf(n.sheet),!e.SheetNames[o]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return Fh(lc(e,n),n);case"slk":case"sylk":return Fh(aa.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"htm":case"html":return Fh(Rc(e.Sheets[e.SheetNames[o]],n),n);case"txt":return function(e,t){switch(t.type){case"base64":return C(e);case"binary":case"string":return e;case"file":return ze(t.file,e,"binary");case"buffer":return E?A(e,"binary"):e.split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}(Zh(e.Sheets[e.SheetNames[o]],n),n);case"csv":return Fh(Xh(e.Sheets[e.SheetNames[o]],n),n,"\ufeff");case"dif":return Fh(sa.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"dbf":return Bh(oa.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"prn":return Fh(ua.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"rtf":return Fh(Ra.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"eth":return Fh(la.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"fods":return Fh(Gc(e,n),n);case"wk1":return Bh(ca.sheet_to_wk1(e.Sheets[e.SheetNames[o]],n),n);case"wk3":return Bh(ca.book_to_wk3(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),Bh(Ic(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),function(e,t){var n=t||{};return jh(bc(e,n),n)}(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function(e,t){var n=it(t||{});return Rh(Ah(e,n),n)}(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function Vh(e){if(!e.bookType){var t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[e.bookType]||e.bookType}}function Hh(e,t,n){var r=n||{};return r.type="file",r.file=t,Vh(r),$h(e,r)}function qh(e,t,n){var r=n||{};return r.type="file",r.file=t,Vh(r),zh(e,r)}function Wh(e,t,n,r){var o=n||{};o.type="file",o.file=e,Vh(o),o.type="buffer";var l=r;return l instanceof Function||(l=n),Re.writeFile(e,$h(t,o),l)}function Uh(e,t,n,r,header,o,l,c){var h=xr(n),f=c.defval,d=c.raw||!Object.prototype.hasOwnProperty.call(c,"raw"),v=!0,m=1===header?[]:{};if(1!==header)if(Object.defineProperty)try{Object.defineProperty(m,"__rowNum__",{value:n,enumerable:!1})}catch(e){m.__rowNum__=n}else m.__rowNum__=n;if(!l||e[n])for(var y=t.s.c;y<=t.e.c;++y){var _=l?e[n][y]:e[r[y]+h];if(void 0!==_&&void 0!==_.t){var x=_.v;switch(_.t){case"z":if(null==x)break;continue;case"e":x=0==x?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+_.t)}if(null!=o[y]){if(null==x)if("e"==_.t&&null===x)m[o[y]]=null;else if(void 0!==f)m[o[y]]=f;else{if(!d||null!==x)continue;m[o[y]]=null}else m[o[y]]=d&&("n"!==_.t||"n"===_.t&&!1!==c.rawNumbers)?x:Mr(_,x,c);null!=x&&(v=!1)}}else{if(void 0===f)continue;null!=o[y]&&(m[o[y]]=f)}}return{row:m,isempty:v}}function Gh(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},header=0,r=1,o=[],l=0,c="",h={s:{r:0,c:0},e:{r:0,c:0}},f=t||{},d=null!=f.range?f.range:e["!ref"];switch(1===f.header?header=1:"A"===f.header?header=2:Array.isArray(f.header)?header=3:null==f.header&&(header=0),typeof d){case"string":h=Er(d);break;case"number":(h=Er(e["!ref"])).s.r=d;break;default:h=d}header>0&&(r=0);var v=xr(h.s.r),m=[],y=[],_=0,x=0,w=Array.isArray(e),S=h.s.r,k=0,O={};w&&!e[S]&&(e[S]=[]);var C=f.skipHidden&&e["!cols"]||[],T=f.skipHidden&&e["!rows"]||[];for(k=h.s.c;k<=h.e.c;++k)if(!(C[k]||{}).hidden)switch(m[k]=Sr(k),n=w?e[S][k]:e[m[k]+v],header){case 1:o[k]=k-h.s.c;break;case 2:o[k]=m[k];break;case 3:o[k]=f.header[k-h.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),c=l=Mr(n,null,f),x=O[l]||0){do{c=l+"_"+x++}while(O[c]);O[l]=x,O[c]=1}else O[l]=1;o[k]=c}for(S=h.s.r+r;S<=h.e.r;++S)if(!(T[S]||{}).hidden){var E=Uh(e,h,S,m,header,o,w,f);(!1===E.isempty||(1===header?!1!==f.blankrows:f.blankrows))&&(y[_++]=E.row)}return y.length=_,y}var Yh=/"/g;function Kh(e,t,n,r,o,l,c,h){for(var f=!0,d=[],v="",m=xr(n),y=t.s.c;y<=t.e.c;++y)if(r[y]){var _=h.dense?(e[n]||[])[y]:e[r[y]+m];if(null==_)v="";else if(null!=_.v){f=!1,v=""+(h.rawNumbers&&"n"==_.t?_.v:Mr(_,null,h));for(var i=0,x=0;i!==v.length;++i)if((x=v.charCodeAt(i))===o||x===l||34===x||h.forceQuotes){v='"'+v.replace(Yh,'""')+'"';break}"ID"==v&&(v='"ID"')}else null==_.f||_.F?v="":(f=!1,(v="="+_.f).indexOf(",")>=0&&(v='"'+v.replace(Yh,'""')+'"'));d.push(v)}return!1===h.blankrows&&f?null:d.join(c)}function Xh(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var o=Er(e["!ref"]),l=void 0!==r.FS?r.FS:",",c=l.charCodeAt(0),h=void 0!==r.RS?r.RS:"\n",f=h.charCodeAt(0),d=new RegExp(("|"==l?"\\|":l)+"+$"),v="",m=[];r.dense=Array.isArray(e);for(var y=r.skipHidden&&e["!cols"]||[],_=r.skipHidden&&e["!rows"]||[],x=o.s.c;x<=o.e.c;++x)(y[x]||{}).hidden||(m[x]=Sr(x));for(var w=0,S=o.s.r;S<=o.e.r;++S)(_[S]||{}).hidden||null!=(v=Kh(e,o,S,m,c,f,l,r))&&(r.strip&&(v=v.replace(d,"")),(v||!1!==r.blankrows)&&n.push((w++?h:"")+v));return delete r.dense,n.join("")}function Zh(e,t){t||(t={}),t.FS="\t",t.RS="\n";var s=Xh(e,t);if(void 0===_||"string"==t.type)return s;var n=_.utils.encode(1200,s,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function Jh(e,t,n){var r,o=n||{},l=+!o.skipHeader,c=e||{},h=0,f=0;if(c&&null!=o.origin)if("number"==typeof o.origin)h=o.origin;else{var d="string"==typeof o.origin?kr(o.origin):o.origin;h=d.r,f=d.c}var v={s:{c:0,r:0},e:{c:f,r:h+t.length-1+l}};if(c["!ref"]){var m=Er(c["!ref"]);v.e.c=Math.max(v.e.c,m.e.c),v.e.r=Math.max(v.e.r,m.e.r),-1==h&&(h=m.e.r+1,v.e.r=h+t.length-1+l)}else-1==h&&(h=0,v.e.r=t.length-1+l);var y=o.header||[],_=0;t.forEach((function(e,t){$e(e).forEach((function(n){-1==(_=y.indexOf(n))&&(y[_=y.length]=n);var d=e[n],v="z",m="",x=Or({c:f+_,r:h+t+l});r=Qh(c,x),!d||"object"!=typeof d||d instanceof Date?("number"==typeof d?v="n":"boolean"==typeof d?v="b":"string"==typeof d?v="s":d instanceof Date?(v="d",o.cellDates||(v="n",d=Ue(d)),m=o.dateNF||X[14]):null===d&&o.nullError&&(v="e",d=0),r?(r.t=v,r.v=d,delete r.w,delete r.R,m&&(r.z=m)):c[x]=r={t:v,v:d},m&&(r.z=m)):c[x]=d}))})),v.e.c=Math.max(v.e.c,f+y.length-1);var x=xr(h);if(l)for(_=0;_<y.length;++_)c[Sr(_+f)+x]={t:"s",v:y[_]};return c["!ref"]=Tr(v),c}function Qh(e,t,n){if("string"==typeof t){if(Array.isArray(e)){var r=kr(t);return e[r.r]||(e[r.r]=[]),e[r.r][r.c]||(e[r.r][r.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return Qh(e,Or("number"!=typeof t?t:{r:t,c:n||0}))}function ef(){return{SheetNames:[],Sheets:{}}}function tf(e,t,n,r){var i=1;if(!n)for(;i<=65535&&-1!=e.SheetNames.indexOf(n="Sheet"+i);++i,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var o=n.match(/(^.*?)(\d+)$/);i=o&&+o[2]||0;var l=o&&o[1]||n;for(++i;i<=65535&&-1!=e.SheetNames.indexOf(n=l+i);++i);}if(Tu(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function nf(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var rf,of={encode_col:Sr,encode_row:xr,encode_cell:Or,encode_range:Tr,decode_col:wr,decode_row:_r,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:kr,decode_range:Cr,format_cell:Mr,sheet_add_aoa:Dr,sheet_add_json:Jh,sheet_add_dom:Fc,aoa_to_sheet:Pr,json_to_sheet:function(e,t){return Jh(null,e,t)},table_to_sheet:Bc,table_to_book:function(table,e){return Ir(Bc(table,e),e)},sheet_to_csv:Xh,sheet_to_txt:Zh,sheet_to_json:Gh,sheet_to_html:Rc,sheet_to_formulae:function(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var o,l=Er(e["!ref"]),c="",h=[],f=[],d=Array.isArray(e);for(o=l.s.c;o<=l.e.c;++o)h[o]=Sr(o);for(var v=l.s.r;v<=l.e.r;++v)for(c=xr(v),o=l.s.c;o<=l.e.c;++o)if(n=h[o]+c,r="",void 0!==(t=d?(e[v]||[])[o]:e[n])){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}f[f.length]=n+"="+r}return f},sheet_to_row_object_array:Gh,sheet_get_cell:Qh,book_new:ef,book_append_sheet:tf,book_set_sheet_visibility:function(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=function(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:nf,cell_set_internal_link:function(e,t,n){return nf(e,"#"+t,n)},cell_add_comment:function(e,text,t){e.c||(e.c=[]),e.c.push({t:text,a:t||"SheetJS"})},sheet_set_array_formula:function(e,t,n,r){for(var o="string"!=typeof t?t:Er(t),l="string"==typeof t?t:Tr(t),c=o.s.r;c<=o.e.r;++c)for(var h=o.s.c;h<=o.e.c;++h){var f=Qh(e,c,h);f.t="n",f.F=l,delete f.v,c==o.s.r&&h==o.s.c&&(f.f=n,r&&(f.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};var af={to_json:function(e,t){var n=rf({objectMode:!0});if(null==e||null==e["!ref"])return n.push(null),n;var r={t:"n",v:0},header=0,o=1,l=[],c=0,h="",f={s:{r:0,c:0},e:{r:0,c:0}},d=t||{},v=null!=d.range?d.range:e["!ref"];switch(1===d.header?header=1:"A"===d.header?header=2:Array.isArray(d.header)&&(header=3),typeof v){case"string":f=Er(v);break;case"number":(f=Er(e["!ref"])).s.r=v;break;default:f=v}header>0&&(o=0);var m=xr(f.s.r),y=[],_=0,x=Array.isArray(e),w=f.s.r,S=0,k={};x&&!e[w]&&(e[w]=[]);var O=d.skipHidden&&e["!cols"]||[],C=d.skipHidden&&e["!rows"]||[];for(S=f.s.c;S<=f.e.c;++S)if(!(O[S]||{}).hidden)switch(y[S]=Sr(S),r=x?e[w][S]:e[y[S]+m],header){case 1:l[S]=S-f.s.c;break;case 2:l[S]=y[S];break;case 3:l[S]=d.header[S-f.s.c];break;default:if(null==r&&(r={w:"__EMPTY",t:"s"}),h=c=Mr(r,null,d),_=k[c]||0){do{h=c+"_"+_++}while(k[h]);k[c]=_,k[h]=1}else k[c]=1;l[S]=h}return w=f.s.r+o,n._read=function(){for(;w<=f.e.r;)if(!(C[w-1]||{}).hidden){var t=Uh(e,f,w,y,header,l,x,d);if(++w,!1===t.isempty||(1===header?!1!==d.blankrows:d.blankrows))return void n.push(t.row)}return n.push(null)},n},to_html:function(e,t){var n=rf(),r=t||{},header=null!=r.header?r.header:Nc,footer=null!=r.footer?r.footer:Lc;n.push(header);var o=Cr(e["!ref"]);r.dense=Array.isArray(e),n.push(jc(0,0,r));var l=o.s.r,c=!1;return n._read=function(){if(l>o.e.r)return c||(c=!0,n.push("</table>"+footer)),n.push(null);for(;l<=o.e.r;){n.push(Pc(e,o,l,r)),++l;break}},n},to_csv:function(e,t){var n=rf(),r=null==t?{}:t;if(null==e||null==e["!ref"])return n.push(null),n;var o=Er(e["!ref"]),l=void 0!==r.FS?r.FS:",",c=l.charCodeAt(0),h=void 0!==r.RS?r.RS:"\n",f=h.charCodeAt(0),d=new RegExp(("|"==l?"\\|":l)+"+$"),v="",m=[];r.dense=Array.isArray(e);for(var y=r.skipHidden&&e["!cols"]||[],_=r.skipHidden&&e["!rows"]||[],x=o.s.c;x<=o.e.c;++x)(y[x]||{}).hidden||(m[x]=Sr(x));var w=o.s.r,S=!1,k=0;return n._read=function(){if(!S)return S=!0,n.push("\ufeff");for(;w<=o.e.r;)if(++w,!(_[w-1]||{}).hidden&&null!=(v=Kh(e,o,w-1,m,c,f,l,r))&&(r.strip&&(v=v.replace(d,"")),v||!1!==r.blankrows))return n.push((k++?h:"")+v);return n.push(null)},n},set_readable:function(e){rf=e}};const sf=r.version},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(9);r(r.P,"Array",{fill:n(185)}),n(93)("fill")},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),o=n("5ca1"),l=n("2aba"),c=n("32e9"),h=n("84f2"),f=n("41a0"),d=n("7f20"),v=n("38fd"),m=n("2b4c")("iterator"),y=!([].keys&&"next"in[].keys()),_="keys",x="values",w=function(){return this};e.exports=function(e,t,n,S,k,O,C){f(n,t,S);var T,E,A,M=function(e){if(!y&&e in N)return N[e];switch(e){case _:case x:return function(){return new n(this,e)}}return function(){return new n(this,e)}},I=t+" Iterator",D=k==x,P=!1,N=e.prototype,L=N[m]||N["@@iterator"]||k&&N[k],j=L||M(k),R=k?D?M("entries"):j:void 0,F="Array"==t&&N.entries||L;if(F&&(A=v(F.call(new e)))!==Object.prototype&&A.next&&(d(A,I,!0),r||"function"==typeof A[m]||c(A,m,w)),D&&L&&L.name!==x&&(P=!0,j=function(){return L.call(this)}),r&&!C||!y&&!P&&N[m]||c(N,m,j),h[t]=j,h[I]=w,k)if(T={values:D?j:M(x),keys:O?j:M(_),entries:R},C)for(E in T)E in N||l(N,E,T[E]);else o(o.P+o.F*(y||P),t,T);return T}},"02f4":function(e,t,n){var r=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){var a,b,s=String(o(t)),i=r(n),l=s.length;return i<0||i>=l?e?"":void 0:(a=s.charCodeAt(i))<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?e?s.charAt(i):a:e?s.slice(i,i+2):b-56320+(a-55296<<10)+65536}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return r(e,o)}},1495:function(e,t,n){var r=n("86cc"),o=n("cb7c"),l=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);for(var n,c=l(t),h=c.length,i=0;h>i;)r.f(e,n=c[i++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),o=n("32e9"),l=n("79e5"),c=n("be13"),h=n("2b4c"),f=n("520a"),d=h("species"),v=!l((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),m=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var y=h(e),_=!l((function(){var t={};return t[y]=function(){return 7},7!=""[e](t)})),x=_?!l((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[d]=function(){return n}),n[y](""),!t})):void 0;if(!_||!x||"replace"===e&&!v||"split"===e&&!m){var w=/./[y],S=n(c,y,""[e],(function(e,t,n,r,o){return t.exec===f?_&&!o?{done:!0,value:w.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),k=S[0],O=S[1];r(String.prototype,e,k),o(RegExp.prototype,y,2==t?function(e,t){return O.call(e,this,t)}:function(e){return O.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),o=n("7726").document,l=r(o)&&r(o.createElement);e.exports=function(e){return l?o.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),o=n("2b4c")("toStringTag"),l="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,c;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:l?r(t):"Object"==(c=r(t))&&"function"==typeof t.callee?"Arguments":c}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),o=n("32e9"),l=n("69a8"),c=n("ca5a")("src"),h=n("fa5b"),f="toString",d=(""+h).split(f);n("8378").inspectSource=function(e){return h.call(e)},(e.exports=function(e,t,n,h){var f="function"==typeof n;f&&(l(n,"name")||o(n,"name",t)),e[t]!==n&&(f&&(l(n,c)||o(n,c,e[t]?""+e[t]:d.join(String(t)))),e===r?e[t]=n:h?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,f,(function(){return"function"==typeof this&&this[c]||h.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),o=n("1495"),l=n("e11e"),c=n("613b")("IE_PROTO"),h=function(){},f=function(){var e,iframe=n("230e")("iframe"),i=l.length;for(iframe.style.display="none",n("fab2").appendChild(iframe),iframe.src="javascript:",(e=iframe.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),f=e.F;i--;)delete f.prototype[l[i]];return f()};e.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=r(e),n=new h,h.prototype=null,n[c]=e):n=f(),void 0===t?n:o(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),o=n("ca5a"),l=n("7726").Symbol,c="function"==typeof l;(e.exports=function(e){return r[e]||(r[e]=c&&l[e]||(c?l:o)("Symbol."+e))}).store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),o=n("d2c8"),l="includes";r(r.P+r.F*n("5147")(l),"String",{includes:function(e){return!!~o(this,e,l).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var r=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(object,e,t){return r.f(object,e,o(1,t))}:function(object,e,t){return object[e]=t,object}},"38fd":function(e,t,n){var r=n("69a8"),o=n("4bf8"),l=n("613b")("IE_PROTO"),c=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),o=n("4630"),l=n("7f20"),c={};n("32e9")(c,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(c,{next:o(1,n)}),l(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),o=n("0d58");n("5eda")("keys",(function(){return function(e){return o(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},"520a":function(e,t,n){"use strict";var r,o,l=n("0bfb"),c=RegExp.prototype.exec,h=String.prototype.replace,f=c,d=(r=/a/,o=/b*/g,c.call(r,"a"),c.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),v=void 0!==/()??/.exec("")[1];(d||v)&&(f=function(e){var t,n,r,i,o=this;return v&&(n=new RegExp("^"+o.source+"$(?!\\s)",l.call(o))),d&&(t=o.lastIndex),r=c.call(o,e),d&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),v&&r&&r.length>1&&h.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=f},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),o=n("7726"),l="__core-js_shared__",c=o[l]||(o[l]={});(e.exports=function(e,t){return c[e]||(c[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var r=n("7726"),o=n("8378"),l=n("32e9"),c=n("2aba"),h=n("9b43"),f=function(e,t,source){var n,d,v,m,y=e&f.F,_=e&f.G,x=e&f.S,w=e&f.P,S=e&f.B,k=_?r:x?r[t]||(r[t]={}):(r[t]||{}).prototype,O=_?o:o[t]||(o[t]={}),C=O.prototype||(O.prototype={});for(n in _&&(source=t),source)v=((d=!y&&k&&void 0!==k[n])?k:source)[n],m=S&&d?h(v,r):w&&"function"==typeof v?h(Function.call,v):v,k&&c(k,n,v,e&f.U),O[n]!=v&&l(O,n,m),w&&C[n]!=v&&(C[n]=v)};r.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f},"5eda":function(e,t,n){var r=n("5ca1"),o=n("8378"),l=n("79e5");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],c={};c[e]=t(n),r(r.S+r.F*l((function(){n(1)})),"Object",c)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var l=n.call(e,t);if("object"!=typeof l)throw new TypeError("RegExp exec method returned something other than an Object or null");return l}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"613b":function(e,t,n){var r=n("5537")("keys"),o=n("ca5a");e.exports=function(e){return r[e]||(r[e]=o(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var r=n("5ca1"),o=n("c366")(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),o=n("be13");e.exports=function(e){return r(o(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var r=n("9e1e"),o=n("0d58"),l=n("2621"),c=n("52a7"),h=n("4bf8"),f=n("626a"),d=Object.assign;e.exports=!d||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||Object.keys(d({},t)).join("")!=r}))?function(e,source){for(var t=h(e),n=arguments.length,d=1,v=l.f,m=c.f;n>d;)for(var y,_=f(arguments[d++]),x=v?o(_).concat(v(_)):o(_),w=x.length,S=0;w>S;)y=x[S++],r&&!m.call(_,y)||(t[y]=_[y]);return t}:d},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),o=Math.max,l=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):l(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,o=n("69a8"),l=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,l)&&r(e,l,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),o=n("c69a"),l=n("6a99"),c=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=l(t,!0),r(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(a){return e.call(t,a)};case 2:return function(a,b){return e.call(t,a,b)};case 3:return function(a,b,n){return e.call(t,a,b,n)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),o=Array.prototype;null==o[r]&&n("32e9")(o,r,{}),e.exports=function(e){o[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,t){e.exports=n(424)},a481:function(e,t,n){"use strict";var r=n("cb7c"),o=n("4bf8"),l=n("9def"),c=n("4588"),h=n("0390"),f=n("5f1b"),d=Math.max,v=Math.min,m=Math.floor,y=/\$([$&`']|\d\d?|<[^>]*>)/g,_=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(e,t,n,x){return[function(r,o){var l=e(this),c=null==r?void 0:r[t];return void 0!==c?c.call(r,l,o):n.call(String(l),r,o)},function(e,t){var o=x(n,e,this,t);if(o.done)return o.value;var m=r(e),y=String(this),_="function"==typeof t;_||(t=String(t));var S=m.global;if(S){var k=m.unicode;m.lastIndex=0}for(var O=[];;){var C=f(m,y);if(null===C)break;if(O.push(C),!S)break;""===String(C[0])&&(m.lastIndex=h(y,l(m.lastIndex),k))}for(var T,E="",A=0,i=0;i<O.length;i++){C=O[i];for(var M=String(C[0]),I=d(v(c(C.index),y.length),0),D=[],P=1;P<C.length;P++)D.push(void 0===(T=C[P])?T:String(T));var N=C.groups;if(_){var L=[M].concat(D,I,y);void 0!==N&&L.push(N);var j=String(t.apply(void 0,L))}else j=w(M,y,I,D,N,t);I>=A&&(E+=y.slice(A,I)+j,A=I+M.length)}return E+y.slice(A)}];function w(e,t,r,l,c,h){var f=r+e.length,d=l.length,v=_;return void 0!==c&&(c=o(c),v=y),n.call(h,v,(function(n,o){var h;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(f);case"<":h=c[o.slice(1,-1)];break;default:var v=+o;if(0===v)return n;if(v>d){var y=m(v/10);return 0===y?n:y<=d?void 0===l[y-1]?o.charAt(1):l[y-1]+o.charAt(1):n}h=l[v-1]}return void 0===h?"":h}))}}))},aae3:function(e,t,n){var r=n("d3f4"),o=n("2d95"),l=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[l])?!!t:"RegExp"==o(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),o=n("0d58"),l=n("2aba"),c=n("7726"),h=n("32e9"),f=n("84f2"),d=n("2b4c"),v=d("iterator"),m=d("toStringTag"),y=f.Array,_={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},x=o(_),i=0;i<x.length;i++){var w,S=x[i],k=_[S],O=c[S],C=O&&O.prototype;if(C&&(C[v]||h(C,v,y),C[m]||h(C,m,S),f[S]=y,k))for(w in r)C[w]||l(C,w,r[w],!0)}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),o=n("9def"),l=n("77f1");e.exports=function(e){return function(t,n,c){var h,f=r(t),d=o(f.length),v=l(c,d);if(e&&n!=n){for(;d>v;)if((h=f[v++])!=h)return!0}else for(;d>v;v++)if((e||v in f)&&f[v]===n)return e||v||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return f}));n("a481");var r="undefined"!=typeof window?window.console:e.console;var o,l,c=/-(\w)/g,h=(o=function(e){return e.replace(c,(function(e,t){return t?t.toUpperCase():""}))},l=Object.create(null),function(e){return l[e]||(l[e]=o(e))});function f(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function d(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}e.exports=g},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),o=n("d53b"),l=n("84f2"),c=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=c(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),l.Arguments=l.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var r=n("69a8"),o=n("6821"),l=n("c366")(!1),c=n("613b")("IE_PROTO");e.exports=function(object,e){var t,n=o(object),i=0,h=[];for(t in n)t!=c&&r(n,t)&&h.push(t);for(;e.length>i;)r(n,t=e[i++])&&(~l(h,t)||h.push(t));return h}},d2c8:function(e,t,n){var r=n("aae3"),o=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var r=n("5ca1"),o=n("9def"),l=n("d2c8"),c="startsWith",h="".startsWith;r(r.P+r.F*n("5147")(c),"String",{startsWith:function(e){var t=l(this,e,c),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return h?h.call(t,r,n):t.slice(n,n+r.length)===r}})},f6fd:function(e,t){!function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(t){var i,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(t.stack)||[!1])[1];for(i in n)if(n[i].src==e||"interactive"==n[i].readyState)return n[i];return null}}})}(document)},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!=typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function l(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function c(e,i){return function(e){if(Array.isArray(e))return e}(e)||function(e,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,o=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done)&&(t.push(l.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return t}}(e,i)||l(e,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n("6762"),n("2fdb");function h(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var f=n("a352"),d=n.n(f),v=n("c649");function m(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function y(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),m.call(t,e,n)}}function _(e){return["transition-group","TransitionGroup"].includes(e)}function x(slot,e,t){return slot[t]||(e[t]?e[t]():void 0)}var w=["Start","Add","Remove","Update","End"],S=["Choose","Unchoose","Sort","Filter","Clone"],k=["Move"].concat(w,S).map((function(e){return"on"+e})),O=null,C={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=function(e){if(!e||1!==e.length)return!1;var t=c(e,1)[0].componentOptions;return!!t&&_(t.tag)}(t);var n=function(e,slot,t){var n=0,r=0,header=x(slot,t,"header");header&&(n=header.length,e=e?[].concat(h(header),h(e)):h(header));var footer=x(slot,t,"footer");return footer&&(r=footer.length,e=e?[].concat(h(e),h(footer)):h(footer)),{children:e,headerOffset:n,footerOffset:r}}(t,this.$slots,this.$scopedSlots),r=n.children,o=n.headerOffset,l=n.footerOffset;this.headerOffset=o,this.footerOffset=l;var f=function(e,t){var n=null,r=function(e,t){n=function(object,e,t){return void 0===t||((object=object||{})[e]=t),object}(n,e,t)};if(r("attrs",Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{})),!t)return n;var o=t.on,l=t.props,c=t.attrs;return r("on",o),r("props",l),Object.assign(n.attrs,c),n}(this.$attrs,this.componentData);return e(this.getTag(),f,r)},created:function(){null!==this.list&&null!==this.value&&v.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&v.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&v.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};w.forEach((function(n){t["on"+n]=y.call(e,n)})),S.forEach((function(n){t["on"+n]=m.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(v.a)(n)]=e.$attrs[n],t}),{}),r=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new d.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(v.a)(t);-1===k.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=function(e,t,n,r){if(!e)return[];var o=e.map((function(e){return e.elm})),l=t.length-r,c=h(t).map((function(e,t){return t>=l?o.length:o.indexOf(e)}));return n?c.filter((function(e){return-1!==e})):c}(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=function(e,element){return e.map((function(e){return e.elm})).indexOf(element)}(this.getChildrenNodes()||[],e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&_(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=h(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,h(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,component=this.getUnderlyingPotencialDraggableComponent(t);if(!component)return{component:component};var r=component.realList,o={list:r,component:component};if(t!==n&&r&&component.getUnderlyingVm){var l=component.getUnderlyingVm(n);if(l)return Object.assign(l,o)}return o},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[e].data=null;var t=this.getComponent();t.children=[],t.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),O=e.item},onDragAdd:function(e){var element=e.item._underlying_vm_;if(void 0!==element){Object(v.d)(e.item);var t=this.getVmIndex(e.newIndex);this.spliceList(t,0,element),this.computeIndexes();var n={element:element,newIndex:t};this.emitChanges({added:n})}},onDragRemove:function(e){if(Object(v.c)(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(v.d)(e.clone)},onDragUpdate:function(e){Object(v.d)(e.item),Object(v.c)(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=h(t.to.children).filter((function(e){return"none"!==e.style.display})),r=n.indexOf(t.related),o=e.component.getVmIndex(r);return-1!==n.indexOf(O)||!t.willInsertAfter?o:o+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),o=this.context,l=this.computeFutureIndex(r,e);return Object.assign(o,{futureIndex:l}),n(Object.assign({},e,{relatedContext:r,draggedContext:o}),t)},onDragEnd:function(){this.computeIndexes(),O=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",C);var T=C;t.default=T}}).default},function(e,t,n){"use strict";n.d(t,"a",(function(){return Zv}));var r={};n.r(r),n.d(r,"updateProps",(function(){return ds})),n.d(r,"initProps",(function(){return ps})),n.d(r,"removeElement",(function(){return vs})),n.d(r,"removeElementWithFadeOut",(function(){return ys})),n.d(r,"isElementRemoved",(function(){return gs})),n.d(r,"extendShape",(function(){return Nd})),n.d(r,"extendPath",(function(){return jd})),n.d(r,"registerShape",(function(){return Rd})),n.d(r,"getShapeClass",(function(){return Fd})),n.d(r,"makePath",(function(){return Bd})),n.d(r,"makeImage",(function(){return zd})),n.d(r,"mergePath",(function(){return Vd})),n.d(r,"resizePath",(function(){return Hd})),n.d(r,"subPixelOptimizeLine",(function(){return qd})),n.d(r,"subPixelOptimizeRect",(function(){return Wd})),n.d(r,"subPixelOptimize",(function(){return Ud})),n.d(r,"getTransform",(function(){return Gd})),n.d(r,"applyTransform",(function(){return Yd})),n.d(r,"transformDirection",(function(){return Kd})),n.d(r,"groupTransition",(function(){return Zd})),n.d(r,"clipPointsByRect",(function(){return Jd})),n.d(r,"clipRectByRect",(function(){return Qd})),n.d(r,"createIcon",(function(){return ep})),n.d(r,"linePolygonIntersect",(function(){return tp})),n.d(r,"lineLineIntersect",(function(){return np})),n.d(r,"setTooltipConfig",(function(){return op})),n.d(r,"traverseElements",(function(){return sp})),n.d(r,"Group",(function(){return qn})),n.d(r,"Image",(function(){return Bo})),n.d(r,"Text",(function(){return ua})),n.d(r,"Circle",(function(){return Ef})),n.d(r,"Ellipse",(function(){return If})),n.d(r,"Sector",(function(){return Gf})),n.d(r,"Ring",(function(){return Xf})),n.d(r,"Polygon",(function(){return ed})),n.d(r,"Polyline",(function(){return id})),n.d(r,"Rect",(function(){return Go})),n.d(r,"Line",(function(){return ld})),n.d(r,"BezierCurve",(function(){return pd})),n.d(r,"Arc",(function(){return md})),n.d(r,"IncrementalDisplayable",(function(){return Md})),n.d(r,"CompoundPath",(function(){return bd})),n.d(r,"LinearGradient",(function(){return xd})),n.d(r,"RadialGradient",(function(){return wd})),n.d(r,"BoundingRect",(function(){return _e})),n.d(r,"OrientedBoundingRect",(function(){return Td})),n.d(r,"Point",(function(){return he})),n.d(r,"Path",(function(){return Do}));var o=function(e,b){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(e[p]=b[p])},o(e,b)};function l(e,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function t(){this.constructor=e}o(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)}Object.create;Object.create;var c=n(3),h=n(0);function f(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function d(e,t){return e[0]=t[0],e[1]=t[1],e}function v(e){return[e[0],e[1]]}function m(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function y(e,t,n,a){return e[0]=t[0]+n[0]*a,e[1]=t[1]+n[1]*a,e}function sub(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function _(e){return Math.sqrt(x(e))}function x(e){return e[0]*e[0]+e[1]*e[1]}function w(e,t,s){return e[0]=t[0]*s,e[1]=t[1]*s,e}function S(e,t){var n=_(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function k(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var O=k;var C=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function T(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function E(e,t,n){var r=t[0],o=t[1];return e[0]=n[0]*r+n[2]*o+n[4],e[1]=n[1]*r+n[3]*o+n[5],e}function A(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function M(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var I=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},D=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new I(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,o=n-this._x,l=r-this._y;this._x=n,this._y=r,t.drift(o,l,e),this.handler.dispatchToElement(new I(t,e),"drag",e.event);var c=this.handler.findHover(n,r,t).target,h=this._dropTarget;this._dropTarget=c,t!==c&&(h&&c!==h&&this.handler.dispatchToElement(new I(h,e),"dragleave",e.event),c&&c!==h&&this.handler.dispatchToElement(new I(c,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new I(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new I(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),P=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var l=this._$eventProcessor;null!=t&&l&&l.normalizeQuery&&(t=l.normalizeQuery(t)),o[e]||(o[e]=[]);for(var i=0;i<o[e].length;i++)if(o[e][i].h===n)return this;var c={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},h=o[e].length-1,f=o[e][h];return f&&f.callAtLast?o[e].splice(h,0,c):o[e].push(c),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],o=this._$eventProcessor;if(r)for(var l=t.length,c=r.length,i=0;i<c;i++){var h=r[i];if(!o||!o.filter||null==h.query||o.filter(e,h.query))switch(l){case 0:h.h.call(h.ctx);break;case 1:h.h.call(h.ctx,t[0]);break;case 2:h.h.call(h.ctx,t[0],t[1]);break;default:h.h.apply(h.ctx,t)}}return o&&o.afterTrigger&&o.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],o=this._$eventProcessor;if(r)for(var l=t.length,c=t[l-1],h=r.length,i=0;i<h;i++){var f=r[i];if(!o||!o.filter||null==f.query||o.filter(e,f.query))switch(l){case 0:f.h.call(c);break;case 1:f.h.call(c,t[0]);break;case 2:f.h.call(c,t[0],t[1]);break;default:f.h.apply(c,t.slice(1,l-1))}}return o&&o.afterTrigger&&o.afterTrigger(e),this},e}(),N=P,L=Math.log(2);function j(e,t,n,r,o,l){var c=r+"-"+o,h=e.length;if(l.hasOwnProperty(c))return l[c];if(1===t){var f=Math.round(Math.log((1<<h)-1&~o)/L);return e[n][f]}for(var d=r|1<<n,v=n+1;r&1<<v;)v++;for(var m=0,y=0,_=0;y<h;y++){var x=1<<y;x&o||(m+=(_%2?-1:1)*e[n][y]*j(e,t-1,v,d,o|x,l),_++)}return l[c]=m,m}function R(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},o=j(n,8,0,0,0,r);if(0!==o){for(var l=[],i=0;i<8;i++)for(var c=0;c<8;c++)null==l[c]&&(l[c]=0),l[c]+=((i+c)%2?-1:1)*j(n,7,0===i?1:0,1<<i,1<<c,r)/o*t[i];return function(e,t,n){var r=t*l[6]+n*l[7]+1;e[0]=(t*l[0]+n*l[1]+l[2])/r,e[1]=(t*l[3]+n*l[4]+l[5])/r}}}var F=[];function B(e,t,n,r,o){if(t.getBoundingClientRect&&c.a.domSupported&&!z(t)){var l=t.___zrEVENTSAVED||(t.___zrEVENTSAVED={}),h=function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],o=["top","bottom"],i=0;i<4;i++){var marker=document.createElement("div"),l=i%2,c=(i>>1)%2;marker.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",o[c]+":0",r[1-l]+":auto",o[1-c]+":auto",""].join("!important;"),e.appendChild(marker),n.push(marker)}return n}(t,l),f=function(e,t,n){for(var r=n?"invTrans":"trans",o=t[r],l=t.srcCoords,c=[],h=[],f=!0,i=0;i<4;i++){var rect=e[i].getBoundingClientRect(),d=2*i,v=rect.left,m=rect.top;c.push(v,m),f=f&&l&&v===l[d]&&m===l[d+1],h.push(e[i].offsetLeft,e[i].offsetTop)}return f&&o?o:(t.srcCoords=c,t[r]=n?R(h,c):R(c,h))}(h,l,o);if(f)return f(e,n,r),!0}return!1}function z(e){return"CANVAS"===e.nodeName.toUpperCase()}var $=/([&<>"'])/g,V={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function H(source){return null==source?"":(source+"").replace($,(function(e,t){return V[t]}))}var W=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,U=[],G=c.a.browser.firefox&&+c.a.browser.version.split(".")[0]<39;function Y(e,t,n,r){return n=n||{},r?K(e,t,n):G&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):K(e,t,n),n}function K(e,t,n){if(c.a.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(z(e)){var l=e.getBoundingClientRect();return n.zrX=r-l.left,void(n.zrY=o-l.top)}if(B(U,e,r,o))return n.zrX=U[0],void(n.zrY=U[1])}n.zrX=n.zrY=0}function X(e){return e||window.event}function Z(e,t,n){if(null!=(t=X(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var o="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];o&&Y(e,o,t,n)}else{Y(e,t,t,n);var l=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=l?l/120:-(t.detail||0)/3}var button=t.button;return null==t.which&&void 0!==button&&W.test(t.type)&&(t.which=1&button?1:2&button?3:4&button?2:0),t}function J(e,t,n,r){e.addEventListener(t,n,r)}var Q=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function ee(e){return 2===e.which||3===e.which}var te=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var o={points:[],touches:[],target:t,event:e},i=0,l=r.length;i<l;i++){var c=r[i],h=Y(n,c,{});o.points.push([h.zrX,h.zrY]),o.touches.push(c)}this._track.push(o)}},e.prototype._recognize=function(e){for(var t in re)if(re.hasOwnProperty(t)){var n=re[t](this._track,e);if(n)return n}},e}();function ne(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var re={pinch:function(e,t){var n=e.length;if(n){var r,o=(e[n-1]||{}).points,l=(e[n-2]||{}).points||o;if(l&&l.length>1&&o&&o.length>1){var c=ne(o)/ne(l);!isFinite(c)&&(c=1),t.pinchScale=c;var h=[((r=o)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=h[0],t.pinchY=h[1],{type:"pinch",target:e[0].target,event:t}}}}};function ie(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function oe(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function ae(e,t,n){var r=t[0]*n[0]+t[2]*n[1],o=t[1]*n[0]+t[3]*n[1],l=t[0]*n[2]+t[2]*n[3],c=t[1]*n[2]+t[3]*n[3],h=t[0]*n[4]+t[2]*n[5]+t[4],f=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=o,e[2]=l,e[3]=c,e[4]=h,e[5]=f,e}function se(e,a,t){return e[0]=a[0],e[1]=a[1],e[2]=a[2],e[3]=a[3],e[4]=a[4]+t[0],e[5]=a[5]+t[1],e}function le(e,a,t){var n=a[0],r=a[2],o=a[4],l=a[1],c=a[3],h=a[5],f=Math.sin(t),d=Math.cos(t);return e[0]=n*d+l*f,e[1]=-n*f+l*d,e[2]=r*d+c*f,e[3]=-r*f+d*c,e[4]=d*o+f*h,e[5]=d*h-f*o,e}function ue(e,a,t){var n=t[0],r=t[1];return e[0]=a[0]*n,e[1]=a[1]*r,e[2]=a[2]*n,e[3]=a[3]*r,e[4]=a[4]*n,e[5]=a[5]*r,e}function ce(e,a){var t=a[0],n=a[2],r=a[4],o=a[1],l=a[3],c=a[5],h=t*l-o*n;return h?(h=1/h,e[0]=l*h,e[1]=-o*h,e[2]=-n*h,e[3]=t*h,e[4]=(n*c-l*r)*h,e[5]=(o*r-t*c)*h,e):null}var he=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(input){this.x=input[0],this.y=input[1]},e.set=function(p,e,t){p.x=e,p.y=t},e.copy=function(p,e){p.x=e.x,p.y=e.y},e.len=function(p){return Math.sqrt(p.x*p.x+p.y*p.y)},e.lenSquare=function(p){return p.x*p.x+p.y*p.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var o=1-r;e.x=o*t.x+r*n.x,e.y=o*t.y+r*n.y},e}(),fe=Math.min,de=Math.max,pe=new he,ge=new he,ve=new he,rt=new he,me=new he,ye=new he,be=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=fe(e.x,this.x),n=fe(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=de(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=de(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(b){var a=this,e=b.width/a.width,t=b.height/a.height,n=[1,0,0,1,0,0];return se(n,n,[-a.x,-a.y]),ue(n,n,[e,t]),se(n,n,[b.x,b.y]),n},e.prototype.intersect=function(b,t){if(!b)return!1;b instanceof e||(b=e.create(b));var a=this,n=a.x,r=a.x+a.width,o=a.y,l=a.y+a.height,c=b.x,h=b.x+b.width,f=b.y,d=b.y+b.height,v=!(r<c||h<n||l<f||d<o);if(t){var m=1/0,y=0,_=Math.abs(r-c),x=Math.abs(h-n),w=Math.abs(l-f),S=Math.abs(d-o),k=Math.min(_,x),O=Math.min(w,S);r<c||h<n?k>y&&(y=k,_<x?he.set(ye,-_,0):he.set(ye,x,0)):k<m&&(m=k,_<x?he.set(me,_,0):he.set(me,-x,0)),l<f||d<o?O>y&&(y=O,w<S?he.set(ye,0,-w):he.set(ye,0,S)):k<m&&(m=k,w<S?he.set(me,0,w):he.set(me,0,-S))}return t&&he.copy(t,v?me:ye),v},e.prototype.contain=function(e,t){var rect=this;return e>=rect.x&&e<=rect.x+rect.width&&t>=rect.y&&t<=rect.y+rect.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(rect){return new e(rect.x,rect.y,rect.width,rect.height)},e.copy=function(e,source){e.x=source.x,e.y=source.y,e.width=source.width,e.height=source.height},e.applyTransform=function(t,source,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],o=n[3],l=n[4],c=n[5];return t.x=source.x*r+l,t.y=source.y*o+c,t.width=source.width*r,t.height=source.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}pe.x=ve.x=source.x,pe.y=rt.y=source.y,ge.x=rt.x=source.x+source.width,ge.y=ve.y=source.y+source.height,pe.transform(n),rt.transform(n),ge.transform(n),ve.transform(n),t.x=fe(pe.x,ge.x,ve.x,rt.x),t.y=fe(pe.y,ge.y,ve.y,rt.y);var h=de(pe.x,ge.x,ve.x,rt.x),f=de(pe.y,ge.y,ve.y,rt.y);t.width=h-t.x,t.height=f-t.y}else t!==source&&e.copy(t,source)},e}(),_e=be,xe="silent";function we(){Q(this.event)}var Se=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return l(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(N),ke=function(e,t){this.x=e,this.y=t},Oe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ce=new _e(0,0,0,0),Te=function(e){function t(t,n,r,o,l){var c=e.call(this)||this;return c._hovered=new ke(0,0),c.storage=t,c.painter=n,c.painterRoot=o,c._pointerSize=l,r=r||new Se,c.proxy=null,c.setHandlerProxy(r),c._draggingMgr=new D(c),c}return l(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(h.k(Oe,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Me(this,t,n),o=this._hovered,l=o.target;l&&!l.__zr&&(l=(o=this.findHover(o.x,o.y)).target);var c=this._hovered=r?new ke(t,n):this.findHover(t,n),h=c.target,f=this.proxy;f.setCursor&&f.setCursor(h?h.cursor:"default"),l&&h!==l&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(c,"mousemove",e),h&&h!==l&&this.dispatchToElement(c,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new ke(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var o="on"+t,l=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:we}}(t,e,n);r&&(r[o]&&(l.cancelBubble=!!r[o].call(r,l)),r.trigger(t,l),r=r.__hostTarget?r.__hostTarget:r.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(t,l),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"==typeof e[o]&&e[o].call(e,l),e.trigger&&e.trigger(t,l)})))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),o=new ke(e,t);if(Ae(r,o,e,t,n),this._pointerSize&&!o.target){for(var l=[],c=this._pointerSize,h=c/2,f=new _e(e-h,t-h,c,c),i=r.length-1;i>=0;i--){var d=r[i];d===n||d.ignore||d.ignoreCoarsePointer||d.parent&&d.parent.ignoreCoarsePointer||(Ce.copy(d.getBoundingRect()),d.transform&&Ce.applyTransform(d.transform),Ce.intersect(f)&&l.push(d))}if(l.length)for(var v=Math.PI/12,m=2*Math.PI,y=0;y<h;y+=4)for(var _=0;_<m;_+=v){if(Ae(l,o,e+y*Math.cos(_),t+y*Math.sin(_),n),o.target)return o}}return o},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new te);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var o=r.type;e.gestureEvent=o;var l=new ke;l.target=r.target,this.dispatchToElement(l,o,r.event)}},t}(N);function Ee(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,o=void 0,l=!1;r;){if(r.ignoreClip&&(l=!0),!l){var c=r.getClipPath();if(c&&!c.contain(t,n))return!1;r.silent&&(o=!0)}var h=r.__hostTarget;r=h||r.parent}return!o||xe}return!1}function Ae(e,t,n,r,o){for(var i=e.length-1;i>=0;i--){var l=e[i],c=void 0;if(l!==o&&!l.ignore&&(c=Ee(l,n,r))&&(!t.topTarget&&(t.topTarget=l),c!==xe)){t.target=l;break}}}function Me(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}h.k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Te.prototype[e]=function(t){var n,r,o=t.zrX,l=t.zrY,c=Me(this,o,l);if("mouseup"===e&&c||(r=(n=this.findHover(o,l)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||O(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var Ie=Te;function De(e,t,n,r){var o=t+1;if(o===n)return 1;if(r(e[o++],e[t])<0){for(;o<n&&r(e[o],e[o-1])<0;)o++;!function(e,t,n){n--;for(;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,o)}else for(;o<n&&r(e[o],e[o-1])>=0;)o++;return o-t}function Pe(e,t,n,r,o){for(r===t&&r++;r<n;r++){for(var l,c=e[r],h=t,f=r;h<f;)o(c,e[l=h+f>>>1])<0?f=l:h=l+1;var d=r-h;switch(d){case 3:e[h+3]=e[h+2];case 2:e[h+2]=e[h+1];case 1:e[h+1]=e[h];break;default:for(;d>0;)e[h+d]=e[h+d-1],d--}e[h]=c}}function Ne(e,t,n,r,o,l){var c=0,h=0,f=1;if(l(e,t[n+o])>0){for(h=r-o;f<h&&l(e,t[n+o+f])>0;)c=f,(f=1+(f<<1))<=0&&(f=h);f>h&&(f=h),c+=o,f+=o}else{for(h=o+1;f<h&&l(e,t[n+o-f])<=0;)c=f,(f=1+(f<<1))<=0&&(f=h);f>h&&(f=h);var d=c;c=o-f,f=o-d}for(c++;c<f;){var v=c+(f-c>>>1);l(e,t[n+v])>0?c=v+1:f=v}return f}function Le(e,t,n,r,o,l){var c=0,h=0,f=1;if(l(e,t[n+o])<0){for(h=o+1;f<h&&l(e,t[n+o-f])<0;)c=f,(f=1+(f<<1))<=0&&(f=h);f>h&&(f=h);var d=c;c=o-f,f=o-d}else{for(h=r-o;f<h&&l(e,t[n+o+f])>=0;)c=f,(f=1+(f<<1))<=0&&(f=h);f>h&&(f=h),c+=o,f+=o}for(c++;c<f;){var v=c+(f-c>>>1);l(e,t[n+v])<0?f=v:c=v+1}return f}function je(e,t){var n,r,o,l=7,c=0;n=e.length;var h=[];function f(i){var n=r[i],f=o[i],d=r[i+1],v=o[i+1];o[i]=f+v,i===c-3&&(r[i+1]=r[i+2],o[i+1]=o[i+2]),c--;var m=Le(e[d],e,n,f,0,t);n+=m,0!==(f-=m)&&0!==(v=Ne(e[n+f-1],e,d,v,v-1,t))&&(f<=v?function(n,r,o,c){var i=0;for(i=0;i<r;i++)h[i]=e[n+i];var f=0,d=o,v=n;if(e[v++]=e[d++],0==--c){for(i=0;i<r;i++)e[v+i]=h[f+i];return}if(1===r){for(i=0;i<c;i++)e[v+i]=e[d+i];return void(e[v+c]=h[f])}var m,y,_,x=l;for(;;){m=0,y=0,_=!1;do{if(t(e[d],h[f])<0){if(e[v++]=e[d++],y++,m=0,0==--c){_=!0;break}}else if(e[v++]=h[f++],m++,y=0,1==--r){_=!0;break}}while((m|y)<x);if(_)break;do{if(0!==(m=Le(e[d],h,f,r,0,t))){for(i=0;i<m;i++)e[v+i]=h[f+i];if(v+=m,f+=m,(r-=m)<=1){_=!0;break}}if(e[v++]=e[d++],0==--c){_=!0;break}if(0!==(y=Ne(h[f],e,d,c,0,t))){for(i=0;i<y;i++)e[v+i]=e[d+i];if(v+=y,d+=y,0===(c-=y)){_=!0;break}}if(e[v++]=h[f++],1==--r){_=!0;break}x--}while(m>=7||y>=7);if(_)break;x<0&&(x=0),x+=2}if((l=x)<1&&(l=1),1===r){for(i=0;i<c;i++)e[v+i]=e[d+i];e[v+c]=h[f]}else{if(0===r)throw new Error;for(i=0;i<r;i++)e[v+i]=h[f+i]}}(n,f,d,v):function(n,r,o,c){var i=0;for(i=0;i<c;i++)h[i]=e[o+i];var f=n+r-1,d=c-1,v=o+c-1,m=0,y=0;if(e[v--]=e[f--],0==--r){for(m=v-(c-1),i=0;i<c;i++)e[m+i]=h[i];return}if(1===c){for(y=(v-=r)+1,m=(f-=r)+1,i=r-1;i>=0;i--)e[y+i]=e[m+i];return void(e[v]=h[d])}var _=l;for(;;){var x=0,w=0,S=!1;do{if(t(h[d],e[f])<0){if(e[v--]=e[f--],x++,w=0,0==--r){S=!0;break}}else if(e[v--]=h[d--],w++,x=0,1==--c){S=!0;break}}while((x|w)<_);if(S)break;do{if(0!==(x=r-Le(h[d],e,n,r,r-1,t))){for(r-=x,y=(v-=x)+1,m=(f-=x)+1,i=x-1;i>=0;i--)e[y+i]=e[m+i];if(0===r){S=!0;break}}if(e[v--]=h[d--],1==--c){S=!0;break}if(0!==(w=c-Ne(e[f],h,0,c,c-1,t))){for(c-=w,y=(v-=w)+1,m=(d-=w)+1,i=0;i<w;i++)e[y+i]=h[m+i];if(c<=1){S=!0;break}}if(e[v--]=e[f--],0==--r){S=!0;break}_--}while(x>=7||w>=7);if(S)break;_<0&&(_=0),_+=2}(l=_)<1&&(l=1);if(1===c){for(y=(v-=r)+1,m=(f-=r)+1,i=r-1;i>=0;i--)e[y+i]=e[m+i];e[v]=h[d]}else{if(0===c)throw new Error;for(m=v-(c-1),i=0;i<c;i++)e[m+i]=h[i]}}(n,f,d,v))}return n<120?5:n<1542?10:n<119151?19:40,r=[],o=[],{mergeRuns:function(){for(;c>1;){var e=c-2;if(e>=1&&o[e-1]<=o[e]+o[e+1]||e>=2&&o[e-2]<=o[e]+o[e-1])o[e-1]<o[e+1]&&e--;else if(o[e]>o[e+1])break;f(e)}},forceMergeRuns:function(){for(;c>1;){var e=c-2;e>0&&o[e-1]<o[e+1]&&e--,f(e)}},pushRun:function(e,t){r[c]=e,o[c]=t,c+=1}}}function Re(e,t,n,r){n||(n=0),r||(r=e.length);var o=r-n;if(!(o<2)){var l=0;if(o<32)Pe(e,n,r,n+(l=De(e,n,r,t)),t);else{var c=je(e,t),h=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(o);do{if((l=De(e,n,r,t))<h){var f=o;f>h&&(f=h),Pe(e,n,n+f,n+l,t),l=f}c.pushRun(n,l),c.mergeRuns(),o-=l,n+=l}while(0!==o);c.forceMergeRuns()}}}var Fe=!1;function Be(){Fe||(Fe=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ze(a,b){return a.zlevel===b.zlevel?a.z===b.z?a.z2-b.z2:a.z-b.z:a.zlevel-b.zlevel}var $e=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ze}return e.prototype.traverse=function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,r=t.length;i<r;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,Re(n,ze)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var o=r,l=e;o;)o.parent=l,o.updateTransform(),t.push(o),l=o,o=o.getClipPath()}if(e.childrenRef){for(var c=e.childrenRef(),i=0;i<c.length;i++){var h=c[i];e.__dirty&&(h.__dirty|=1),this._updateAndAddDisplayable(h,t,n)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Be(),f.z=0),isNaN(f.z2)&&(Be(),f.z2=0),isNaN(f.zlevel)&&(Be(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,n);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,n);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var i=0,t=e.length;i<t;i++)this.delRoot(e[i]);else{var n=h.r(this._roots,e);n>=0&&this._roots.splice(n,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Ve=c.a.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},He={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var s,a=.1;return 0===e?0:1===e?1:(!a||a<1?(a=1,s=.1):s=.4*Math.asin(1/a)/(2*Math.PI),-a*Math.pow(2,10*(e-=1))*Math.sin((e-s)*(2*Math.PI)/.4))},elasticOut:function(e){var s,a=.1;return 0===e?0:1===e?1:(!a||a<1?(a=1,s=.1):s=.4*Math.asin(1/a)/(2*Math.PI),a*Math.pow(2,-10*e)*Math.sin((e-s)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var s,a=.1,p=.4;return 0===e?0:1===e?1:(!a||a<1?(a=1,s=.1):s=p*Math.asin(1/a)/(2*Math.PI),(e*=2)<1?a*Math.pow(2,10*(e-=1))*Math.sin((e-s)*(2*Math.PI)/p)*-.5:a*Math.pow(2,-10*(e-=1))*Math.sin((e-s)*(2*Math.PI)/p)*.5+1)},backIn:function(e){var s=1.70158;return e*e*((s+1)*e-s)},backOut:function(e){var s=1.70158;return--e*e*((s+1)*e+s)+1},backInOut:function(e){var s=2.5949095;return(e*=2)<1?e*e*((s+1)*e-s)*.5:.5*((e-=2)*e*((s+1)*e+s)+2)},bounceIn:function(e){return 1-He.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*He.bounceIn(2*e):.5*He.bounceOut(2*e-1)+.5}},qe=He,We=Math.pow,Ue=Math.sqrt,Ge=1e-8,Ye=1e-4,Ke=Ue(3),Xe=1/3,Ze=f(),Je=f(),Qe=f();function et(e){return e>-1e-8&&e<Ge}function tt(e){return e>Ge||e<-1e-8}function nt(e,t,n,r,o){var l=1-o;return l*l*(l*e+3*o*t)+o*o*(o*r+3*l*n)}function it(e,t,n,r,o){var l=1-o;return 3*(((t-e)*l+2*(n-t)*o)*l+(r-n)*o*o)}function ot(e,t,n,r,o,l){var a=r+3*(t-n)-e,b=3*(n-2*t+e),c=3*(t-e),h=e-o,f=b*b-3*a*c,d=b*c-9*a*h,v=c*c-3*b*h,m=0;if(et(f)&&et(d)){if(et(b))l[0]=0;else(A=-c/b)>=0&&A<=1&&(l[m++]=A)}else{var y=d*d-4*f*v;if(et(y)){var _=d/f,x=-_/2;(A=-b/a+_)>=0&&A<=1&&(l[m++]=A),x>=0&&x<=1&&(l[m++]=x)}else if(y>0){var w=Ue(y),S=f*b+1.5*a*(-d+w),k=f*b+1.5*a*(-d-w);(A=(-b-((S=S<0?-We(-S,Xe):We(S,Xe))+(k=k<0?-We(-k,Xe):We(k,Xe))))/(3*a))>=0&&A<=1&&(l[m++]=A)}else{var O=(2*f*b-3*a*d)/(2*Ue(f*f*f)),C=Math.acos(O)/3,T=Ue(f),E=Math.cos(C),A=(-b-2*T*E)/(3*a),M=(x=(-b+T*(E+Ke*Math.sin(C)))/(3*a),(-b+T*(E-Ke*Math.sin(C)))/(3*a));A>=0&&A<=1&&(l[m++]=A),x>=0&&x<=1&&(l[m++]=x),M>=0&&M<=1&&(l[m++]=M)}}return m}function at(e,t,n,r,o){var b=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,l=3*t-3*e,c=0;if(et(a)){if(tt(b))(f=-l/b)>=0&&f<=1&&(o[c++]=f)}else{var h=b*b-4*a*l;if(et(h))o[0]=-b/(2*a);else if(h>0){var f,d=Ue(h),v=(-b-d)/(2*a);(f=(-b+d)/(2*a))>=0&&f<=1&&(o[c++]=f),v>=0&&v<=1&&(o[c++]=v)}}return c}function st(e,t,n,r,o,l){var c=(t-e)*o+e,h=(n-t)*o+t,f=(r-n)*o+n,d=(h-c)*o+c,v=(f-h)*o+h,m=(v-d)*o+d;l[0]=e,l[1]=c,l[2]=d,l[3]=m,l[4]=m,l[5]=v,l[6]=f,l[7]=r}function lt(e,t,n,r,o,l,c,h,f,d,v){var m,y,_,x,w,S=.005,k=1/0;Ze[0]=f,Ze[1]=d;for(var O=0;O<1;O+=.05)Je[0]=nt(e,n,o,c,O),Je[1]=nt(t,r,l,h,O),(x=C(Ze,Je))<k&&(m=O,k=x);k=1/0;for(var i=0;i<32&&!(S<Ye);i++)y=m-S,_=m+S,Je[0]=nt(e,n,o,c,y),Je[1]=nt(t,r,l,h,y),x=C(Je,Ze),y>=0&&x<k?(m=y,k=x):(Qe[0]=nt(e,n,o,c,_),Qe[1]=nt(t,r,l,h,_),w=C(Qe,Ze),_<=1&&w<k?(m=_,k=w):S*=.5);return v&&(v[0]=nt(e,n,o,c,m),v[1]=nt(t,r,l,h,m)),Ue(k)}function ut(e,t,n,r,o,l,c,h,f){for(var d=e,v=t,m=0,y=1/f,i=1;i<=f;i++){var _=i*y,x=nt(e,n,o,c,_),w=nt(t,r,l,h,_),S=x-d,k=w-v;m+=Math.sqrt(S*S+k*k),d=x,v=w}return m}function ct(e,t,n,r){var o=1-r;return o*(o*e+2*r*t)+r*r*n}function ht(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function ft(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function pt(e,t,n,r,o){var l=(t-e)*r+e,c=(n-t)*r+t,h=(c-l)*r+l;o[0]=e,o[1]=l,o[2]=h,o[3]=h,o[4]=c,o[5]=n}function gt(e,t,n,r,o,l,c,h,f){var d,v=.005,m=1/0;Ze[0]=c,Ze[1]=h;for(var y=0;y<1;y+=.05){Je[0]=ct(e,n,o,y),Je[1]=ct(t,r,l,y),(w=C(Ze,Je))<m&&(d=y,m=w)}m=1/0;for(var i=0;i<32&&!(v<Ye);i++){var _=d-v,x=d+v;Je[0]=ct(e,n,o,_),Je[1]=ct(t,r,l,_);var w=C(Je,Ze);if(_>=0&&w<m)d=_,m=w;else{Qe[0]=ct(e,n,o,x),Qe[1]=ct(t,r,l,x);var S=C(Qe,Ze);x<=1&&S<m?(d=x,m=S):v*=.5}}return f&&(f[0]=ct(e,n,o,d),f[1]=ct(t,r,l,d)),Ue(m)}function vt(e,t,n,r,o,l,c){for(var h=e,f=t,d=0,v=1/c,i=1;i<=c;i++){var m=i*v,y=ct(e,n,o,m),_=ct(t,r,l,m),x=y-h,w=_-f;d+=Math.sqrt(x*x+w*w),h=y,f=_}return d}var mt=/cubic-bezier\(([0-9,\.e ]+)\)/;function yt(e){var t=e&&mt.exec(e);if(t){var n=t[1].split(","),r=+Object(h.T)(n[0]),o=+Object(h.T)(n[1]),l=+Object(h.T)(n[2]),c=+Object(h.T)(n[3]);if(isNaN(r+o+l+c))return;var f=[];return function(p){return p<=0?0:p>=1?1:ot(0,r,l,1,p,f)&&nt(0,o,c,1,f[0])}}}var bt=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||h.L,this.ondestroy=e.ondestroy||h.L,this.onrestart=e.onrestart||h.L,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,o=r/n;o<0&&(o=0),o=Math.min(o,1);var l=this.easingFunc,c=l?l(o):o;if(this.onframe(c),1===o){if(!this.loop)return!0;var h=r%n;this._startTime=e-h,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(h.w)(e)?e:qe[e]||yt(e)},e}(),_t=n(5),xt=n(7),wt=Array.prototype.slice;function St(e,t,n){return(t-e)*n+e}function kt(e,t,n,r){for(var o=t.length,i=0;i<o;i++)e[i]=St(t[i],n[i],r);return e}function Ot(e,t,n,r){for(var o=t.length,i=0;i<o;i++)e[i]=t[i]+n[i]*r;return e}function Ct(e,t,n,r){for(var o=t.length,l=o&&t[0].length,i=0;i<o;i++){e[i]||(e[i]=[]);for(var c=0;c<l;c++)e[i][c]=t[i][c]+n[i][c]*r}return e}function Tt(e,t){for(var n=e.length,r=t.length,o=n>r?t:e,l=Math.min(n,r),c=o[l-1]||{color:[0,0,0,0],offset:0},i=l;i<Math.max(n,r);i++)o.push({offset:c.offset,color:c.color.slice()})}function Et(e,t,n){var r=e,o=t;if(r.push&&o.push){var l=r.length,c=o.length;if(l!==c)if(l>c)r.length=c;else for(var i=l;i<c;i++)r.push(1===n?o[i]:wt.call(o[i]));var h=r[0]&&r[0].length;for(i=0;i<r.length;i++)if(1===n)isNaN(r[i])&&(r[i]=o[i]);else for(var f=0;f<h;f++)isNaN(r[i][f])&&(r[i][f]=o[i][f])}}function At(e){if(Object(h.u)(e)){var t=e.length;if(Object(h.u)(e[0])){for(var n=[],i=0;i<t;i++)n.push(wt.call(e[i]));return n}return wt.call(e)}return e}function Mt(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function It(e){return 4===e||5===e}function Dt(e){return 1===e||2===e}var Pt=[0,0,0,0],Nt=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(time,e,t){this._needsSort=!0;var n=this.keyframes,r=n.length,o=!1,l=6,c=e;if(Object(h.u)(e)){var f=function(e){return Object(h.u)(e&&e[0])?2:1}(e);l=f,(1===f&&!Object(h.z)(e[0])||2===f&&!Object(h.z)(e[0][0]))&&(o=!0)}else if(Object(h.z)(e)&&!Object(h.l)(e))l=0;else if(Object(h.C)(e))if(isNaN(+e)){var d=_t.g(e);d&&(c=d,l=3)}else l=0;else if(Object(h.x)(e)){var v=Object(h.m)({},c);v.colorStops=Object(h.H)(e.colorStops,(function(e){return{offset:e.offset,color:_t.g(e.color)}})),Object(xt.m)(e)?l=4:Object(xt.o)(e)&&(l=5),c=v}0===r?this.valType=l:l===this.valType&&6!==l||(o=!0),this.discrete=this.discrete||o;var m={time:time,value:c,rawValue:e,percent:0};return t&&(m.easing=t,m.easingFunc=Object(h.w)(t)?t:qe[t]||yt(t)),n.push(m),m},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(a,b){return a.time-b.time}));for(var r=this.valType,o=n.length,l=n[o-1],c=this.discrete,h=Dt(r),f=It(r),i=0;i<o;i++){var d=n[i],v=d.value,m=l.value;d.percent=d.time/e,c||(h&&i!==o-1?Et(v,m,r):f&&Tt(v.colorStops,m.colorStops))}if(!c&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var y=n[0].value;for(i=0;i<o;i++)0===r?n[i].additiveValue=n[i].value-y:3===r?n[i].additiveValue=Ot([],n[i].value,y,-1):Dt(r)&&(n[i].additiveValue=1===r?Ot([],n[i].value,y,-1):Ct([],n[i].value,y,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,o,l=null!=this._additiveTrack,c=l?"additiveValue":"value",f=this.valType,d=this.keyframes,v=d.length,m=this.propName,y=3===f,_=this._lastFr,x=Math.min;if(1===v)r=o=d[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=x(_+1,v-1);n>=0&&!(d[n].percent<=t);n--);n=x(n,v-2)}else{for(n=_;n<v&&!(d[n].percent>t);n++);n=x(n-1,v-2)}o=d[n+1],r=d[n]}if(r&&o){this._lastFr=n,this._lastFrP=t;var w=o.percent-r.percent,S=0===w?1:x((t-r.percent)/w,1);o.easingFunc&&(S=o.easingFunc(S));var k=l?this._additiveValue:y?Pt:e[m];if(!Dt(f)&&!y||k||(k=this._additiveValue=[]),this.discrete)e[m]=S<1?r.rawValue:o.rawValue;else if(Dt(f))1===f?kt(k,r[c],o[c],S):function(e,t,n,r){for(var o=t.length,l=o&&t[0].length,i=0;i<o;i++){e[i]||(e[i]=[]);for(var c=0;c<l;c++)e[i][c]=St(t[i][c],n[i][c],r)}}(k,r[c],o[c],S);else if(It(f)){var O=r[c],C=o[c],T=4===f;e[m]={type:T?"linear":"radial",x:St(O.x,C.x,S),y:St(O.y,C.y,S),colorStops:Object(h.H)(O.colorStops,(function(e,t){var n=C.colorStops[t];return{offset:St(e.offset,n.offset,S),color:Mt(kt([],e.color,n.color,S))}})),global:C.global},T?(e[m].x2=St(O.x2,C.x2,S),e[m].y2=St(O.y2,C.y2,S)):e[m].r=St(O.r,C.r,S)}else if(y)kt(k,r[c],o[c],S),l||(e[m]=Mt(k));else{var E=St(r[c],o[c],S);l?this._additiveValue=E:e[m]=E}l&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(_t.g(e[n],Pt),Ot(Pt,Pt,r,1),e[n]=Mt(Pt)):1===t?Ot(e[n],e[n],r,1):2===t&&Ct(e[n],e[n],r,1)},e}(),Lt=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?Object(h.G)("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(time,e,t){return this.whenWithKeys(time,e,Object(h.F)(e),t)},e.prototype.whenWithKeys=function(time,e,t,n){for(var r=this._tracks,i=0;i<t.length;i++){var o=t[i],track=r[o];if(!track){track=r[o]=new Nt(o);var l=void 0,c=this._getAdditiveTrack(o);if(c){var h=c.keyframes,f=h[h.length-1];l=f&&f.value,3===c.valType&&l&&(l=Mt(l))}else l=this._target[o];if(null==l)continue;time>0&&track.addKeyframe(0,At(l),n),this._trackKeys.push(o)}track.addKeyframe(time,At(e[o]),n)}return this._maxTime=Math.max(this._maxTime,time),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var track=n[i].getTrack(e);track&&(t=track)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],track=this._tracks[o],l=this._getAdditiveTrack(o),c=track.keyframes,h=c.length;if(track.prepare(r,l),track.needsAnimate())if(!this._allowDiscrete&&track.discrete){var f=c[h-1];f&&(t._target[track.propName]=f.rawValue),track.setFinished()}else n.push(track)}if(n.length||this._force){var d=new bt({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var o=!1,i=0;i<r.length;i++)if(r[i]._clip){o=!0;break}o||(t._additiveAnimators=null)}for(i=0;i<n.length;i++)n[i].step(t._target,e);var l=t._onframeCbs;if(l)for(i=0;i<l.length;i++)l[i](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(time){return this._delay=time,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return Object(h.H)(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var track=n[e[i]];track&&!track.isFinished()&&(t?track.step(this._target,1):1===this._started&&track.step(this._target,0),track.setFinished())}var o=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var r=t[i],track=this._tracks[r];if(track&&!track.isFinished()){var o=track.keyframes,l=o[n?0:o.length-1];l&&(e[r]=At(l.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Object(h.F)(e);for(var i=0;i<t.length;i++){var n=t[i],track=this._tracks[n];if(track){var r=track.keyframes;if(r.length>1){var o=r.pop();track.addKeyframe(o.time,e[n]),track.prepare(this._maxTime,track.getAdditiveTrack())}}}},e}(),jt=Lt;function Rt(){return(new Date).getTime()}var Ft,Bt,zt=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return l(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var time=Rt()-this._pausedTime,t=time-this._time,n=this._head;n;){var r=n.next;n.step(time,t)?(n.ondestroy(),this.removeClip(n),n=r):n=r}this._time=time,e||(this.trigger("frame",t),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,Ve((function t(){e._running&&(Ve(t),!e._paused&&e.update())}))},t.prototype.start=function(){this._running||(this._time=Rt(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Rt(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Rt()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new jt(e,t.loop);return this.addAnimator(n),n},t}(N),$t=zt,Vt=c.a.domSupported,Ht=(Bt={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Ft=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:h.H(Ft,(function(e){var t=e.replace("mouse","pointer");return Bt.hasOwnProperty(t)?t:e}))}),qt=["mousemove","mouseup"],Wt=["pointermove","pointerup"],Ut=!1;function Gt(e){var t=e.pointerType;return"pen"===t||"touch"===t}function Yt(e){e&&(e.zrByTouch=!0)}function Kt(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Xt=function(e,t){this.stopPropagation=h.L,this.stopImmediatePropagation=h.L,this.preventDefault=h.L,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},Zt={mousedown:function(e){e=Z(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Z(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Z(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){Kt(this,(e=Z(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Ut=!0,e=Z(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Ut||(e=Z(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){Yt(e=Z(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Zt.mousemove.call(this,e),Zt.mousedown.call(this,e)},touchmove:function(e){Yt(e=Z(this.dom,e)),this.handler.processGesture(e,"change"),Zt.mousemove.call(this,e)},touchend:function(e){Yt(e=Z(this.dom,e)),this.handler.processGesture(e,"end"),Zt.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&Zt.click.call(this,e)},pointerdown:function(e){Zt.mousedown.call(this,e)},pointermove:function(e){Gt(e)||Zt.mousemove.call(this,e)},pointerup:function(e){Zt.mouseup.call(this,e)},pointerout:function(e){Gt(e)||Zt.mouseout.call(this,e)}};h.k(["click","dblclick","contextmenu"],(function(e){Zt[e]=function(t){t=Z(this.dom,t),this.trigger(e,t)}}));var Jt={pointermove:function(e){Gt(e)||Jt.mousemove.call(this,e)},pointerup:function(e){Jt.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Qt(e,t){var n=t.domHandlers;c.a.pointerEventsSupported?h.k(Ht.pointer,(function(r){tn(t,r,(function(t){n[r].call(e,t)}))})):(c.a.touchEventsSupported&&h.k(Ht.touch,(function(r){tn(t,r,(function(o){n[r].call(e,o),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(t)}))})),h.k(Ht.mouse,(function(r){tn(t,r,(function(o){o=X(o),t.touching||n[r].call(e,o)}))})))}function en(e,t){function n(n){tn(t,n,(function(r){r=X(r),Kt(e,r.target)||(r=function(e,t){return Z(e.dom,new Xt(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))}),{capture:!0})}c.a.pointerEventsSupported?h.k(Wt,n):c.a.touchEventsSupported||h.k(qt,n)}function tn(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,J(e.domTarget,t,n,r)}function nn(e){var t,n,r,o,l=e.mounted;for(var c in l)l.hasOwnProperty(c)&&(t=e.domTarget,n=c,r=l[c],o=e.listenerOpts[c],t.removeEventListener(n,r,o));e.mounted={}}var rn=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},on=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new rn(t,Zt),Vt&&(r._globalHandlerScope=new rn(document,Jt)),Qt(r,r._localHandlerScope),r}return l(t,e),t.prototype.dispose=function(){nn(this._localHandlerScope),Vt&&nn(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Vt&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?en(this,t):nn(t)}},t}(N),an=1;c.a.hasGlobalWindow&&(an=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var sn=an,ln="#333",un="#ccc",cn=ie,hn=5e-5;function fn(e){return e>hn||e<-5e-5}var dn=[],pn=[],gn=[1,0,0,1,0,0],vn=Math.abs,mn=function(){function e(){}var t;return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return fn(this.rotation)||fn(this.x)||fn(this.y)||fn(this.scaleX-1)||fn(this.scaleY-1)||fn(this.skewX)||fn(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):cn(n),e&&(t?ae(n,e,n):oe(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&cn(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(dn);var n=dn[0]<0?-1:1,r=dn[1]<0?-1:1,o=((dn[0]-n)*t+n)/dn[0]||0,l=((dn[1]-r)*t+r)/dn[1]||0;e[0]*=o,e[1]*=o,e[2]*=l,e[3]*=l}this.invTransform=this.invTransform||[1,0,0,1,0,0],ce(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),o=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(o),t=Math.sqrt(t),this.skewX=o,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(ae(pn,e.invTransform,t),t=pn);var n=this.originX,r=this.originY;(n||r)&&(gn[4]=n,gn[5]=r,ae(pn,t,gn),pn[4]-=n,pn[5]-=r,t=pn),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&E(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&E(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&vn(e[0]-1)>1e-10&&vn(e[3]-1)>1e-10?Math.sqrt(vn(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(source){bn(this,source)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,o=e.scaleX,l=e.scaleY,c=e.anchorX,h=e.anchorY,f=e.rotation||0,d=e.x,v=e.y,m=e.skewX?Math.tan(e.skewX):0,y=e.skewY?Math.tan(-e.skewY):0;if(n||r||c||h){var _=n+c,x=r+h;t[4]=-_*o-m*x*l,t[5]=-x*l-y*_*o}else t[4]=t[5]=0;return t[0]=o,t[3]=l,t[1]=y*o,t[2]=m*l,f&&le(t,t,f),t[4]+=n+d,t[5]+=r+v,t},e.initDefaultProps=((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,void(t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0)),e}(),yn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function bn(e,source){for(var i=0;i<yn.length;i++){var t=yn[i];e[t]=source[t]}}var _n=mn,xn=n(43),wn=n(8),Sn={};function kn(text,e){e=e||wn.a;var t=Sn[e];t||(t=Sn[e]=new xn.a(500));var n=t.get(text);return null==n&&(n=wn.d.measureText(text,e).width,t.put(text,n)),n}function On(text,e,t,n){var r=kn(text,e),o=An(e),l=Tn(0,r,t),c=En(0,o,n);return new _e(l,c,r,o)}function Cn(text,e,t,n){var r=((text||"")+"").split("\n");if(1===r.length)return On(r[0],e,t,n);for(var o=new _e(0,0,0,0),i=0;i<r.length;i++){var rect=On(r[i],e,t,n);0===i?o.copy(rect):o.union(rect)}return o}function Tn(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function En(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function An(e){return kn("国",e)}function Mn(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function In(e,t,rect){var n=t.position||"inside",r=null!=t.distance?t.distance:5,o=rect.height,l=rect.width,c=o/2,h=rect.x,f=rect.y,d="left",v="top";if(n instanceof Array)h+=Mn(n[0],rect.width),f+=Mn(n[1],rect.height),d=null,v=null;else switch(n){case"left":h-=r,f+=c,d="right",v="middle";break;case"right":h+=r+l,f+=c,v="middle";break;case"top":h+=l/2,f-=r,d="center",v="bottom";break;case"bottom":h+=l/2,f+=o+r,d="center";break;case"inside":h+=l/2,f+=c,d="center",v="middle";break;case"insideLeft":h+=r,f+=c,v="middle";break;case"insideRight":h+=l-r,f+=c,d="right",v="middle";break;case"insideTop":h+=l/2,f+=r,d="center";break;case"insideBottom":h+=l/2,f+=o-r,d="center",v="bottom";break;case"insideTopLeft":h+=r,f+=r;break;case"insideTopRight":h+=l-r,f+=r,d="right";break;case"insideBottomLeft":h+=r,f+=o-r,v="bottom";break;case"insideBottomRight":h+=l-r,f+=o-r,d="right",v="bottom"}return(e=e||{}).x=h,e.y=f,e.align=d,e.verticalAlign=v,e}var Dn="__zr_normal__",Pn=yn.concat(["ignore"]),Nn=Object(h.N)(yn,(function(e,t){return e[t]=!0,e}),{ignore:!1}),Ln={},jn=new _e(0,0,0,0),Rn=function(){function e(e){this.id=Object(h.p)(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,o=t.innerTransformable,l=void 0,c=void 0,h=!1;o.parent=r?this:null;var f=!1;if(o.copyTransform(t),null!=n.position){var d=jn;n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ln,n,d):In(Ln,n,d),o.x=Ln.x,o.y=Ln.y,l=Ln.align,c=Ln.verticalAlign;var v=n.origin;if(v&&null!=n.rotation){var m=void 0,y=void 0;"center"===v?(m=.5*d.width,y=.5*d.height):(m=Mn(v[0],d.width),y=Mn(v[1],d.height)),f=!0,o.originX=-o.x+m+(r?0:d.x),o.originY=-o.y+y+(r?0:d.y)}}null!=n.rotation&&(o.rotation=n.rotation);var _=n.offset;_&&(o.x+=_[0],o.y+=_[1],f||(o.originX=-_[0],o.originY=-_[1]));var x=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,w=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),S=void 0,k=void 0,O=void 0;x&&this.canBeInsideText()?(S=n.insideFill,k=n.insideStroke,null!=S&&"auto"!==S||(S=this.getInsideTextFill()),null!=k&&"auto"!==k||(k=this.getInsideTextStroke(S),O=!0)):(S=n.outsideFill,k=n.outsideStroke,null!=S&&"auto"!==S||(S=this.getOutsideFill()),null!=k&&"auto"!==k||(k=this.getOutsideStroke(S),O=!0)),(S=S||"#000")===w.fill&&k===w.stroke&&O===w.autoStroke&&l===w.align&&c===w.verticalAlign||(h=!0,w.fill=S,w.stroke=k,w.autoStroke=O,w.align=l,w.verticalAlign=c,t.setDefaultTextStyle(w)),t.__dirty|=1,h&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?un:ln},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&Object(_t.g)(t);n||(n=[255,255,255,1]);for(var r=n[3],o=this.__zr.isDarkMode(),i=0;i<3;i++)n[i]=n[i]*r+(o?0:255)*(1-r);return n[3]=1,Object(_t.h)(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(h.m)(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(Object(h.A)(e))for(var n=e,r=Object(h.F)(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,e[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],r=n.__fromStateTransition;if(!(n.getLoop()||r&&r!==Dn)){var o=n.targetName,l=o?t[o]:t;n.saveTo(l)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Pn)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null==e[r]||r in t||(t[r]=this[r])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Dn,!1,e)},e.prototype.useState=function(e,t,n,r){var o=e===Dn;if(this.hasState()||!o){var l=this.currentStates,c=this.stateTransition;if(!(Object(h.r)(l,e)>=0)||!t&&1!==l.length){var f;if(this.stateProxy&&!o&&(f=this.stateProxy(e)),f||(f=this.states&&this.states[e]),f||o){o||this.saveCurrentToNormalState(f);var d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,f,this._normalState,t,!n&&!this.__inHover&&c&&c.duration>0,c);var v=this._textContent,m=this._textGuide;return v&&v.useState(e,t,n,d),m&&m.useState(e,t,n,d),o?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),f}Object(h.G)("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],o=this.currentStates,l=e.length,c=l===o.length;if(c)for(var i=0;i<l;i++)if(e[i]!==o[i]){c=!1;break}if(c)return;for(i=0;i<l;i++){var h=e[i],f=void 0;this.stateProxy&&(f=this.stateProxy(h,e)),f||(f=this.states[h]),f&&r.push(f)}var d=r[l-1],v=!!(d&&d.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var m=this._mergeStates(r),y=this.stateTransition;this.saveCurrentToNormalState(m),this._applyStateObj(e.join(","),m,this._normalState,!1,!t&&!this.__inHover&&y&&y.duration>0,y);var _=this._textContent,x=this._textGuide;_&&_.useStates(e,t,v),x&&x.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var i=0;i<this.animators.length;i++){var e=this.animators[i];e.targetName&&e.changeTarget(this[e.targetName])}},e.prototype.removeState=function(e){var t=Object(h.r)(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),o=Object(h.r)(r,e),l=Object(h.r)(r,t)>=0;o>=0?l?r.splice(o,1):r[o]=t:n&&!l&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i<e.length;i++){var r=e[i];Object(h.m)(n,r),r.textConfig&&(t=t||{},Object(h.m)(t,r.textConfig))}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,o,l){var c=!(t&&r);t&&t.textConfig?(this.textConfig=Object(h.m)({},r?this.textConfig:n.textConfig),Object(h.m)(this.textConfig,t.textConfig)):c&&n.textConfig&&(this.textConfig=n.textConfig);for(var f={},d=!1,i=0;i<Pn.length;i++){var v=Pn[i],m=o&&Nn[v];t&&null!=t[v]?m?(d=!0,f[v]=t[v]):this[v]=t[v]:c&&null!=n[v]&&(m?(d=!0,f[v]=n[v]):this[v]=n[v])}if(!o)for(i=0;i<this.animators.length;i++){var y=this.animators[i],_=y.targetName;y.getLoop()||y.__changeFinalValue(_?(t||n)[_]:t||n)}d&&this._transitionState(e,f,l)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new _n,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Object(h.m)(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this;var o=new jt(r,t,n);return e&&(o.targetName=e),this.addAnimator(o,e),o},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during((function(){r.updateDuringAnimation(t)})).done((function(){var t=r.animators,n=Object(h.r)(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,o=[],i=0;i<r;i++){var l=n[i];e&&e!==l.scope?o.push(l):l.stop(t)}return this.animators=o,this},e.prototype.animateTo=function(e,t,n){Fn(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Fn(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var o=Fn(this,t,n,r),i=0;i<o.length;i++)o[i].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1;function n(e,n,r,o){function l(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[o]},set:function(t){e[o]=t}})}Object.defineProperty(t,e,{get:function(){this[n]||l(this,this[n]=[]);return this[n]},set:function(e){this[r]=e[0],this[o]=e[1],this[n]=e,l(this,e)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function Fn(e,t,n,r,o){var l=[];$n(e,"",e,t,n=n||{},r,l,o);var c=l.length,h=!1,f=n.done,d=n.aborted,v=function(){h=!0,--c<=0&&(h?f&&f():d&&d())},m=function(){--c<=0&&(h?f&&f():d&&d())};c||f&&f(),l.length>0&&n.during&&l[0].during((function(e,t){n.during(t)}));for(var i=0;i<l.length;i++){var y=l[i];v&&y.done(v),m&&y.aborted(m),n.force&&y.duration(n.duration),y.start(n.easing)}return l}function Bn(source,e,t){for(var i=0;i<t;i++)source[i]=e[i]}function zn(e,source,t){if(Object(h.u)(source[t]))if(Object(h.u)(e[t])||(e[t]=[]),Object(h.E)(source[t])){var n=source[t].length;e[t].length!==n&&(e[t]=new source[t].constructor(n),Bn(e[t],source[t],n))}else{var r=source[t],o=e[t],l=r.length;if(f=r,Object(h.u)(f[0]))for(var c=r[0].length,i=0;i<l;i++)o[i]?Bn(o[i],r[i],c):o[i]=Array.prototype.slice.call(r[i]);else Bn(o,r,l);o.length=r.length}else e[t]=source[t];var f}function $n(e,t,n,r,o,l,c,f){for(var d=Object(h.F)(r),v=o.duration,m=o.delay,y=o.additive,_=o.setToFinal,x=!Object(h.A)(l),w=e.animators,S=[],k=0;k<d.length;k++){var O=d[k],C=r[O];if(null!=C&&null!=n[O]&&(x||l[O]))if(!Object(h.A)(C)||Object(h.u)(C)||Object(h.x)(C))S.push(O);else{if(t){f||(n[O]=C,e.updateDuringAnimation(t));continue}$n(e,O,n[O],C,o,l&&l[O],c,f)}else f||(n[O]=C,e.updateDuringAnimation(t),S.push(O))}var T=S.length;if(!y&&T)for(var i=0;i<w.length;i++){if((A=w[i]).targetName===t)if(A.stopTracks(S)){var E=Object(h.r)(w,A);w.splice(E,1)}}if(o.force||(S=Object(h.n)(S,(function(e){return t=r[e],o=n[e],!(t===o||Object(h.u)(t)&&Object(h.u)(o)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}(t,o));var t,o})),T=S.length),T>0||o.force&&!c.length){var A,M=void 0,I=void 0,D=void 0;if(f){I={},_&&(M={});for(i=0;i<T;i++){I[O=S[i]]=n[O],_?M[O]=r[O]:n[O]=r[O]}}else if(_){D={};for(i=0;i<T;i++){D[O=S[i]]=At(n[O]),zn(n,r,O)}}(A=new jt(n,!1,!1,y?Object(h.n)(w,(function(e){return e.targetName===t})):null)).targetName=t,o.scope&&(A.scope=o.scope),_&&M&&A.whenWithKeys(0,M,S),D&&A.whenWithKeys(0,D,S),A.whenWithKeys(null==v?500:v,f?I:r,S).delay(m||0),e.addAnimator(A,t),c.push(A)}}Object(h.K)(Rn,N),Object(h.K)(Rn,_n);var Vn=Rn,Hn=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return l(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,i=0;i<t.length;i++)if(t[i].name===e)return t[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=h.r(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var o=this.__zr;o&&r.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=h.r(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,i=0;i<e.length;i++){var n=e[i];t&&n.removeSelfFromZr(t),n.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];e.call(t,r,i)}return this},t.prototype.traverse=function(e,t){for(var i=0;i<this._children.length;i++){var n=this._children[i],r=e.call(t,n);n.isGroup&&!r&&n.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){this._children[i].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){this._children[i].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new _e(0,0,0,0),n=e||this._children,r=[],rect=null,i=0;i<n.length;i++){var o=n[i];if(!o.ignore&&!o.invisible){var l=o.getBoundingRect(),c=o.getLocalTransform(r);c?(_e.applyTransform(t,l,c),(rect=rect||t.clone()).union(t)):(rect=rect||l.clone()).union(l)}}return rect||t},t}(Vn);Hn.prototype.type="group";var qn=Hn,Wn={},Un={};var Gn=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var o=new $e,l=n.renderer||"canvas";Wn[l]||(l=h.F(Wn)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var f=new Wn[l](t,o,n,e),d=n.ssr||f.ssrOnly;this.storage=o,this.painter=f;var v,m=c.a.node||c.a.worker||d?null:new on(f.getViewportRoot(),f.root),y=n.useCoarsePointer;(null==y||"auto"===y?c.a.touchEventsSupported:!!y)&&(v=h.P(n.pointerSize,44)),this.handler=new Ie(o,f,m,f.root,v),this.animation=new $t({stage:{update:d?null:function(){return r._flush(!0)}}}),d||this.animation.start()}return e.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},e.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return Object(_t.d)(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Object(_t.d)(t[i].color,1);return(n/=r)<.4}return!1}(e)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(e){var t,n=Rt();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=Rt();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),i=0;i<e.length;i++)e[i]instanceof qn&&e[i].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){var e;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,e=this.id,delete Un[e]},e}();function Yn(e,t){var n=new Gn(h.p(),e,t);return Un[n.id]=n,n}var Kn=1e-4;function Xn(e,t,n,r){var o=t[0],l=t[1],c=n[0],h=n[1],f=l-o,d=h-c;if(0===f)return 0===d?c:(c+h)/2;if(r)if(f>0){if(e<=o)return c;if(e>=l)return h}else{if(e>=o)return c;if(e<=l)return h}else{if(e===o)return c;if(e===l)return h}return(e-o)/f*d+c}function Zn(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return h.C(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function Jn(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function Qn(e){return e.sort((function(a,b){return a-b})),e}function er(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,i=0;i<15;i++,t*=10)if(Math.round(e*t)/t===e)return i;return function(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,o=n>0?n:t.length,l=t.indexOf("."),c=l<0?0:o-1-l;return Math.max(0,c-r)}(e)}function nr(e,t){var n=Math.log,r=Math.LN10,o=Math.floor(n(e[1]-e[0])/r),l=Math.round(n(Math.abs(t[1]-t[0]))/r),c=Math.min(Math.max(-o+l,0),20);return isFinite(c)?c:20}function rr(e,t){var n=h.N(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];for(var r=Math.pow(10,t),o=h.H(e,(function(e){return(isNaN(e)?0:e)/n*r*100})),l=100*r,c=h.H(o,(function(e){return Math.floor(e)})),f=h.N(c,(function(e,t){return e+t}),0),d=h.H(o,(function(e,t){return e-c[t]}));f<l;){for(var v=Number.NEGATIVE_INFINITY,m=null,i=0,y=d.length;i<y;++i)d[i]>v&&(v=d[i],m=i);++c[m],d[m]=0,++f}return h.H(c,(function(e){return e/r}))}function ir(e,t){var n=Math.max(er(e),er(t)),r=e+t;return n>20?r:Jn(r,n)}var or=9007199254740991;function ar(e){var t=2*Math.PI;return(e%t+t)%t}function sr(e){return e>-1e-4&&e<Kn}var lr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ur(e){if(e instanceof Date)return e;if(h.C(e)){var t=lr.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function cr(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function fr(e,t){var n=cr(e),r=Math.pow(10,n),o=e/r;return e=(t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function dr(e,p){var t=(e.length-1)*p+1,n=Math.floor(t),r=+e[n-1],o=t-n;return o?r+o*(e[n]-r):r}function pr(e){e.sort((function(a,b){return c(a,b,0)?-1:1}));for(var t=-1/0,n=1,i=0;i<e.length;){for(var r=e[i].interval,o=e[i].close,l=0;l<2;l++)r[l]<=t&&(r[l]=t,o[l]=l?1:1-n),t=r[l],n=o[l];r[0]===r[1]&&o[0]*o[1]!=1?e.splice(i,1):i++}return e;function c(a,b,e){return a.interval[e]<b.interval[e]||a.interval[e]===b.interval[e]&&(a.close[e]-b.close[e]==(e?-1:1)||!e&&c(a,b,1))}}function gr(e){var t=parseFloat(e);return t==e&&(0!==t||!h.C(e)||e.indexOf("x")<=0)?t:NaN}function vr(e){return!isNaN(gr(e))}function mr(){return Math.round(9*Math.random())}function yr(a,b){return 0===b?a:yr(b,a%b)}function _r(a,b){return null==a?b:null==b?a:a*b/yr(a,b)}function xr(e,t,n){return(t-e)*n+e}var wr="series\0",Sr="\0_ec_\0";function kr(e){return e instanceof Array?e:null==e?[]:[e]}function Or(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var Cr=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Tr(e){return!Object(h.A)(e)||Object(h.t)(e)||e instanceof Date?e:e.value}function Er(e){return Object(h.A)(e)&&!(e instanceof Array)}function Ar(e,t,n){var r="normalMerge"===n,o="replaceMerge"===n,l="replaceAll"===n;e=e||[],t=(t||[]).slice();var c=Object(h.f)();Object(h.k)(t,(function(e,n){Object(h.A)(e)||(t[n]=null)}));var f,d,v=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var o=0;o<e.length;o++){var l=e[o];l&&null!=l.id&&t.set(l.id,o),r.push({existing:"replaceMerge"===n||Nr(l)?null:l,newOption:null,keyInfo:null,brandNew:null})}return r}(e,c,n);return(r||o)&&function(e,t,n,r){Object(h.k)(r,(function(o,l){if(o&&null!=o.id){var c=Ir(o.id),f=n.get(c);if(null!=f){var d=e[f];Object(h.b)(!d.newOption,'Duplicated option on id "'+c+'".'),d.newOption=o,d.existing=t[f],r[l]=null}}}))}(v,e,c,t),r&&function(e,t){Object(h.k)(t,(function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(null==o.id||null==n.id)&&!Nr(n)&&!Nr(o)&&Mr("name",o,n))return e[i].newOption=n,void(t[r]=null)}}))}(v,t),r||o?function(e,t,n){Object(h.k)(t,(function(t){if(t){for(var r,o=0;(r=e[o])&&(r.newOption||Nr(r.existing)||r.existing&&null!=t.id&&!Mr("id",t,r.existing));)o++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),o++}}))}(v,t,o):l&&function(e,t){Object(h.k)(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}(v,t),f=v,d=Object(h.f)(),Object(h.k)(f,(function(e){var t=e.existing;t&&d.set(t.id,e)})),Object(h.k)(f,(function(e){var t=e.newOption;Object(h.b)(!t||null==t.id||!d.get(t.id)||d.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&d.set(t.id,e),!e.keyInfo&&(e.keyInfo={})})),Object(h.k)(f,(function(e,t){var n=e.existing,r=e.newOption,o=e.keyInfo;if(Object(h.A)(r)){if(o.name=null!=r.name?Ir(r.name):n?n.name:wr+t,n)o.id=Ir(n.id);else if(null!=r.id)o.id=Ir(r.id);else{var l=0;do{o.id="\0"+o.name+"\0"+l++}while(d.get(o.id))}d.set(o.id,e)}})),v}function Mr(e,t,n){var r=Dr(t[e],null),o=Dr(n[e],null);return null!=r&&null!=o&&r===o}function Ir(e){return Dr(e,"")}function Dr(e,t){return null==e?t:Object(h.C)(e)?e:Object(h.z)(e)||Object(h.D)(e)?e+"":t}function Pr(e){var t=e.name;return!(!t||!t.indexOf(wr))}function Nr(e){return e&&null!=e.id&&0===Ir(e.id).indexOf(Sr)}function Lr(data,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(h.t)(e.dataIndex)?Object(h.H)(e.dataIndex,(function(e){return data.indexOfRawIndex(e)})):data.indexOfRawIndex(e.dataIndex):null!=e.name?Object(h.t)(e.name)?Object(h.H)(e.name,(function(e){return data.indexOfName(e)})):data.indexOfName(e.name):void 0}function jr(){var e="__ec_inner_"+Rr++;return function(t){return t[e]||(t[e]={})}}var Rr=mr();function Fr(e,t,n){var r=Br(t,n),o=r.mainTypeSpecified,l=r.queryOptionMap,c=r.others,h=n?n.defaultMainType:null;return!o&&h&&l.set(h,{}),l.each((function(t,r){var o=Vr(e,r,t,{useDefault:h===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});c[r+"Models"]=o.models,c[r+"Model"]=o.models[0]})),c}function Br(e,t){var n;if(Object(h.C)(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var o=Object(h.f)(),l={},c=!1;return Object(h.k)(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],f=r[1],d=(r[2]||"").toLowerCase();if(f&&d&&!(t&&t.includeMainTypes&&Object(h.r)(t.includeMainTypes,f)<0))c=c||!!f,(o.get(f)||o.set(f,{}))[d]=e}else l[n]=e})),{mainTypeSpecified:c,queryOptionMap:o,others:l}}var zr={useDefault:!0,enableAll:!1,enableNone:!1},$r={useDefault:!1,enableAll:!0,enableNone:!0};function Vr(e,t,n,r){r=r||zr;var o=n.index,l=n.id,c=n.name,f={models:null,specified:null!=o||null!=l||null!=c};if(!f.specified){var d=void 0;return f.models=r.useDefault&&(d=e.getComponent(t))?[d]:[],f}return"none"===o||!1===o?(Object(h.b)(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),f.models=[],f):("all"===o&&(Object(h.b)(r.enableAll,'`"all"` is not a valid value on index option.'),o=l=c=null),f.models=e.queryComponents({mainType:t,index:o,id:l,name:c}),f)}function Hr(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function qr(e,t){var n=Object(h.f)(),r=[];return Object(h.k)(e,(function(e){var o=t(e);(n.get(o)||(r.push(o),n.set(o,[]))).push(e)})),{keys:r,buckets:n}}function Wr(data,e,t,n,r){var o=null==e||"auto"===e;if(null==n)return n;if(Object(h.z)(n))return Jn(_=xr(t||0,n,r),o?Math.max(er(t||0),er(n)):e);if(Object(h.C)(n))return r<1?t:n;for(var l=[],c=t,f=n,d=Math.max(c?c.length:0,f.length),i=0;i<d;++i){var v=data.getDimensionInfo(i);if(v&&"ordinal"===v.type)l[i]=(r<1&&c?c:f)[i];else{var m=c&&c[i]?c[i]:0,y=f[i],_=xr(m,y,r);l[i]=Jn(_,o?Math.max(er(m),er(y)):e)}}return l}var Ur="___EC__COMPONENT__CONTAINER___",Gr="___EC__EXTENDED_CLASS___";function Yr(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function Kr(e,t){e.$constructor=e,e.extend=function(e){var t,n,r=this;return n=r,h.w(n)&&/^class\s/.test(Function.prototype.toString.call(n))?t=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t}(r):(t=function(){(e.$constructor||r).apply(this,arguments)},h.s(t,this)),h.m(t.prototype,e),t[Gr]=!0,t.extend=this.extend,t.superCall=Jr,t.superApply=Qr,t.superClass=r,t}}function Xr(e,t){e.extend=t.extend}var Zr=Math.round(10*Math.random());function Jr(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function Qr(e,t,n){return this.superClass.prototype[t].apply(e,n)}function ei(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){n=r,h.b(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),e.prototype.type=r;var o=Yr(r);if(o.sub){if(o.sub!==Ur){var l=function(e){var n=t[e.main];n&&n[Ur]||((n=t[e.main]={})[Ur]=!0);return n}(o);l[o.sub]=e}}else t[o.main]=e}return e},e.getClass=function(e,n,r){var o=t[e];if(o&&o[Ur]&&(o=n?o[n]:null),r&&!o)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return o},e.getClassesByMainType=function(e){var n=Yr(e),r=[],o=t[n.main];return o&&o[Ur]?h.k(o,(function(e,t){t!==Ur&&r.push(e)})):r.push(o),r},e.hasClass=function(e){var n=Yr(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return h.k(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=Yr(e),r=t[n.main];return r&&r[Ur]}}function ti(e,t){for(var i=0;i<e.length;i++)e[i][1]||(e[i][1]=e[i][0]);return t=t||!1,function(n,r,o){for(var style={},i=0;i<e.length;i++){var l=e[i][1];if(!(r&&h.r(r,l)>=0||o&&h.r(o,l)<0)){var c=n.getShallow(l,t);null!=c&&(style[e[i][0]]=c)}}return style}}var ni=ti([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),ri=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return ni(this,e,t)},e}(),ii=new xn.a(50);function oi(e){if("string"==typeof e){var t=ii.get(e);return t&&t.image}return e}function ai(e,image,t,n,r){if(e){if("string"==typeof e){if(image&&image.__zrImageSrc===e||!t)return image;var o=ii.get(e),l={hostEl:t,cb:n,cbPayload:r};return o?!ui(image=o.image)&&o.pending.push(l):((image=wn.d.loadImage(e,si,si)).__zrImageSrc=e,ii.put(e,image.__cachedImgObj={image:image,pending:[l]})),image}return e}return image}function si(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var i=0;i<e.pending.length;i++){var t=e.pending[i],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}e.pending.length=0}function ui(image){return image&&image.width&&image.height}var ci=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function hi(text,e,t,n,r){if(!e)return"";var o=(text+"").split("\n");r=fi(e,t,n,r);for(var i=0,l=o.length;i<l;i++)o[i]=di(o[i],r);return o.join("\n")}function fi(e,t,n,r){r=r||{};var o=Object(h.m)({},r);o.font=t,n=Object(h.P)(n,"..."),o.maxIterations=Object(h.P)(r.maxIterations,2);var l=o.minChar=Object(h.P)(r.minChar,0);o.cnCharWidth=kn("国",t);var c=o.ascCharWidth=kn("a",t);o.placeholder=Object(h.P)(r.placeholder,"");for(var f=e=Math.max(0,e-1),i=0;i<l&&f>=c;i++)f-=c;var d=kn(n,t);return d>f&&(n="",d=0),f=e-d,o.ellipsis=n,o.ellipsisWidth=d,o.contentWidth=f,o.containerWidth=e,o}function di(e,t){var n=t.containerWidth,r=t.font,o=t.contentWidth;if(!n)return"";var l=kn(e,r);if(l<=n)return e;for(var c=0;;c++){if(l<=o||c>=t.maxIterations){e+=t.ellipsis;break}var h=0===c?pi(e,o,t.ascCharWidth,t.cnCharWidth):l>0?Math.floor(e.length*o/l):0;l=kn(e=e.substr(0,h),r)}return""===e&&(e=t.placeholder),e}function pi(text,e,t,n){for(var r=0,i=0,o=text.length;i<o&&r<e;i++){var l=text.charCodeAt(i);r+=0<=l&&l<=127?t:n}return i}var gi=function(){},vi=function(e){this.tokens=[],e&&(this.tokens=e)},mi=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function yi(e,t,style,n,r){var o,l,c=""===t,h=r&&style.rich[r]||{},f=e.lines,d=h.font||style.font,v=!1;if(n){var m=h.padding,y=m?m[1]+m[3]:0;if(null!=h.width&&"auto"!==h.width){var _=Mn(h.width,n.width)+y;f.length>0&&_+n.accumWidth>n.width&&(o=t.split("\n"),v=!0),n.accumWidth=_}else{var x=xi(t,d,n.width,n.breakAll,n.accumWidth);n.accumWidth=x.accumWidth+y,l=x.linesWidths,o=x.lines}}else o=t.split("\n");for(var i=0;i<o.length;i++){var text=o[i],w=new gi;if(w.styleName=r,w.text=text,w.isLineHolder=!text&&!c,"number"==typeof h.width?w.width=h.width:w.width=l?l[i]:kn(text,d),i||v)f.push(new vi([w]));else{var S=(f[f.length-1]||(f[0]=new vi)).tokens,k=S.length;1===k&&S[0].isLineHolder?S[0]=w:(text||!k||c)&&S.push(w)}}}var bi=Object(h.N)(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function _i(e){return!function(e){var code=e.charCodeAt(0);return code>=33&&code<=383}(e)||!!bi[e]}function xi(text,e,t,n,r){for(var o=[],l=[],line="",c="",h=0,f=0,i=0;i<text.length;i++){var d=text.charAt(i);if("\n"!==d){var v=kn(d,e),m=!n&&!_i(d);(o.length?f+v>t:r+f+v>t)?f?(line||c)&&(m?(line||(line=c,c="",f=h=0),o.push(line),l.push(f-h),c+=d,line="",f=h+=v):(c&&(line+=c,c="",h=0),o.push(line),l.push(f),line=d,f=v)):m?(o.push(c),l.push(h),c=d,h=v):(o.push(d),l.push(v)):(f+=v,m?(c+=d,h+=v):(c&&(line+=c,c="",h=0),line+=d))}else c&&(line+=c,f+=h),o.push(line),l.push(f),line="",c="",h=0,f=0}return o.length||line||(line=text,c="",h=0),c&&(line+=c),line&&(o.push(line),l.push(f)),1===o.length&&(f+=r),{accumWidth:f,lines:o,linesWidths:l}}var wi="__zr_style_"+Math.round(10*Math.random()),Si={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ki={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Si[wi]=!0;var Oi=["z","z2","invisible"],Ci=["invisible"],Ti=function(e){function t(t){return e.call(this,t)||this}var n;return l(t,e),t.prototype._init=function(t){for(var n=Object(h.F)(t),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(t[r]):e.prototype.attrKV.call(this,r,t[r])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){Ei.copy(e.getBoundingRect()),e.transform&&Ei.applyTransform(e.transform);return Ai.width=t,Ai.height=n,!Ei.intersect(Ai)}(this,e,t)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths)for(var i=0;i<this.__clipPaths.length;++i)if(this.__clipPaths[i].isZeroArea())return!1;if(r&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var rect=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,t=this.getBoundingRect(),style=this.style,n=style.shadowBlur||0,r=style.shadowOffsetX||0,o=style.shadowOffsetY||0;rect=this._paintRect||(this._paintRect=new _e(0,0,0,0)),e?_e.applyTransform(rect,t,e):rect.copy(t),(n||r||o)&&(rect.width+=2*n+Math.abs(r),rect.height+=2*n+Math.abs(o),rect.x=Math.min(rect.x,rect.x+r-n),rect.y=Math.min(rect.y,rect.y+o-n));var l=this.dirtyRectTolerance;rect.isZero()||(rect.x=Math.floor(rect.x-l),rect.y=Math.floor(rect.y-l),rect.width=Math.ceil(rect.width+1+2*l),rect.height=Math.ceil(rect.height+1+2*l))}return rect},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new _e(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:Object(h.m)(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Object(h.g)(Si,e)},t.prototype.useStyle=function(e){e[wi]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[wi]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Oi)},t.prototype._applyStateObj=function(t,n,r,o,l,c){e.prototype._applyStateObj.call(this,t,n,r,o,l,c);var f,d=!(n&&o);if(n&&n.style?l?o?f=n.style:(f=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),o?this.style:r.style),this._mergeStyle(f,n.style)):d&&(f=r.style),f)if(l){var v=this.style;if(this.style=this.createStyle(d?{}:v),d)for(var m=Object(h.F)(v),i=0;i<m.length;i++){(_=m[i])in f&&(f[_]=f[_],this.style[_]=v[_])}var y=Object(h.F)(f);for(i=0;i<y.length;i++){var _=y[i];this.style[_]=this.style[_]}this._transitionState(t,{style:f},c,this.getAnimationStyleProps())}else this.useStyle(f);var x=this.__inHover?Ci:Oi;for(i=0;i<x.length;i++){_=x[i];n&&null!=n[_]?this[_]=n[_]:d&&null!=r[_]&&(this[_]=r[_])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return Object(h.m)(e,t),e},t.prototype.getAnimationStyleProps=function(){return ki},t.initDefaultProps=((n=t.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),t}(Vn),Ei=new _e(0,0,0,0),Ai=new _e(0,0,0,0);var Mi=Ti,Ii=Math.min,Di=Math.max,Pi=Math.sin,Ni=Math.cos,Li=2*Math.PI,ji=f(),Ri=f(),Fi=f();function Bi(e,t,n){if(0!==e.length){for(var p=e[0],r=p[0],o=p[0],l=p[1],c=p[1],i=1;i<e.length;i++)p=e[i],r=Ii(r,p[0]),o=Di(o,p[0]),l=Ii(l,p[1]),c=Di(c,p[1]);t[0]=r,t[1]=l,n[0]=o,n[1]=c}}function zi(e,t,n,r,o,l){o[0]=Ii(e,n),o[1]=Ii(t,r),l[0]=Di(e,n),l[1]=Di(t,r)}var $i=[],Vi=[];function Hi(e,t,n,r,o,l,c,h,f,d){var v=at,m=nt,y=v(e,n,o,c,$i);f[0]=1/0,f[1]=1/0,d[0]=-1/0,d[1]=-1/0;for(var i=0;i<y;i++){var _=m(e,n,o,c,$i[i]);f[0]=Ii(_,f[0]),d[0]=Di(_,d[0])}y=v(t,r,l,h,Vi);for(i=0;i<y;i++){var x=m(t,r,l,h,Vi[i]);f[1]=Ii(x,f[1]),d[1]=Di(x,d[1])}f[0]=Ii(e,f[0]),d[0]=Di(e,d[0]),f[0]=Ii(c,f[0]),d[0]=Di(c,d[0]),f[1]=Ii(t,f[1]),d[1]=Di(t,d[1]),f[1]=Ii(h,f[1]),d[1]=Di(h,d[1])}function qi(e,t,n,r,o,l,c,h){var f=ft,d=ct,v=Di(Ii(f(e,n,o),1),0),m=Di(Ii(f(t,r,l),1),0),y=d(e,n,o,v),_=d(t,r,l,m);c[0]=Ii(e,o,y),c[1]=Ii(t,l,_),h[0]=Di(e,o,y),h[1]=Di(t,l,_)}function Wi(e,t,n,r,o,l,c,h,f){var d=A,v=M,m=Math.abs(o-l);if(m%Li<1e-4&&m>1e-4)return h[0]=e-n,h[1]=t-r,f[0]=e+n,void(f[1]=t+r);if(ji[0]=Ni(o)*n+e,ji[1]=Pi(o)*r+t,Ri[0]=Ni(l)*n+e,Ri[1]=Pi(l)*r+t,d(h,ji,Ri),v(f,ji,Ri),(o%=Li)<0&&(o+=Li),(l%=Li)<0&&(l+=Li),o>l&&!c?l+=Li:o<l&&c&&(o+=Li),c){var y=l;l=o,o=y}for(var _=0;_<l;_+=Math.PI/2)_>o&&(Fi[0]=Ni(_)*n+e,Fi[1]=Pi(_)*r+t,d(h,Fi,h),v(f,Fi,f))}var Ui={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Gi=[],Yi=[],Ki=[],Xi=[],Zi=[],Ji=[],Qi=Math.min,eo=Math.max,to=Math.cos,no=Math.sin,ro=Math.abs,io=Math.PI,oo=2*io,ao="undefined"!=typeof Float32Array,so=[];function lo(e){return Math.round(e/io*1e8)/1e8%2*io}function uo(e,t){var n=lo(e[0]);n<0&&(n+=oo);var r=n-e[0],o=e[1];o+=r,!t&&o-n>=oo?o=n+oo:t&&n-o>=oo?o=n-oo:!t&&n>o?o=n+(oo-lo(n-o)):t&&n<o&&(o=n-(oo-lo(o-n))),e[0]=n,e[1]=o}var co=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}var t;return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=ro(n/sn/e)||0,this._uy=ro(n/sn/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ui.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=ro(e-this._xi),r=ro(t-this._yi),o=n>this._ux||r>this._uy;if(this.addData(Ui.L,e,t),this._ctx&&o&&this._ctx.lineTo(e,t),o)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var l=n*n+r*r;l>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=l)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,o,l){return this._drawPendingPt(),this.addData(Ui.C,e,t,n,r,o,l),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,o,l),this._xi=o,this._yi=l,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Ui.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,o,l){this._drawPendingPt(),so[0]=r,so[1]=o,uo(so,l),r=so[0];var c=(o=so[1])-r;return this.addData(Ui.A,e,t,n,n,r,c,0,l?0:1),this._ctx&&this._ctx.arc(e,t,n,r,o,l),this._xi=to(o)*n+e,this._yi=no(o)*n+t,this},e.prototype.arcTo=function(e,t,n,r,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,o),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Ui.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ui.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(data){var e=data.length;this.data&&this.data.length===e||!ao||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=data[i];this._len=e},e.prototype.appendPath=function(path){path instanceof Array||(path=[path]);for(var e=path.length,t=0,n=this._len,i=0;i<e;i++)t+=path[i].len();ao&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+t));for(i=0;i<e;i++)for(var r=path[i].data,o=0;o<r.length;o++)this.data[n++]=r[o];this._len=n},e.prototype.addData=function(e,a,b,t,n,r,o,g,l){if(this._saveData){var data=this.data;this._len+arguments.length>data.length&&(this._expandData(),data=this.data);for(var i=0;i<arguments.length;i++)data[this._len++]=arguments[i]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],i=0;i<this._len;i++)e[i]=this.data[i];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var data=this.data;data instanceof Array&&(data.length=this._len,ao&&this._len>11&&(this.data=new Float32Array(data)))}},e.prototype.getBoundingRect=function(){Ki[0]=Ki[1]=Zi[0]=Zi[1]=Number.MAX_VALUE,Xi[0]=Xi[1]=Ji[0]=Ji[1]=-Number.MAX_VALUE;var i,data=this.data,e=0,t=0,n=0,r=0;for(i=0;i<this._len;){var o=data[i++],l=1===i;switch(l&&(n=e=data[i],r=t=data[i+1]),o){case Ui.M:e=n=data[i++],t=r=data[i++],Zi[0]=n,Zi[1]=r,Ji[0]=n,Ji[1]=r;break;case Ui.L:zi(e,t,data[i],data[i+1],Zi,Ji),e=data[i++],t=data[i++];break;case Ui.C:Hi(e,t,data[i++],data[i++],data[i++],data[i++],data[i],data[i+1],Zi,Ji),e=data[i++],t=data[i++];break;case Ui.Q:qi(e,t,data[i++],data[i++],data[i],data[i+1],Zi,Ji),e=data[i++],t=data[i++];break;case Ui.A:var c=data[i++],h=data[i++],f=data[i++],d=data[i++],v=data[i++],m=data[i++]+v;i+=1;var y=!data[i++];l&&(n=to(v)*f+c,r=no(v)*d+h),Wi(c,h,f,d,v,m,y,Zi,Ji),e=to(m)*f+c,t=no(m)*d+h;break;case Ui.R:zi(n=e=data[i++],r=t=data[i++],n+data[i++],r+data[i++],Zi,Ji);break;case Ui.Z:e=n,t=r}A(Ki,Ki,Zi),M(Xi,Xi,Ji)}return 0===i&&(Ki[0]=Ki[1]=Xi[0]=Xi[1]=0),new _e(Ki[0],Ki[1],Xi[0]-Ki[0],Xi[1]-Ki[1])},e.prototype._calculateLength=function(){var data=this.data,e=this._len,t=this._ux,n=this._uy,r=0,o=0,l=0,c=0;this._pathSegLen||(this._pathSegLen=[]);for(var h=this._pathSegLen,f=0,d=0,i=0;i<e;){var v=data[i++],m=1===i;m&&(l=r=data[i],c=o=data[i+1]);var y=-1;switch(v){case Ui.M:r=l=data[i++],o=c=data[i++];break;case Ui.L:var _=data[i++],x=(k=data[i++])-o;(ro(N=_-r)>t||ro(x)>n||i===e-1)&&(y=Math.sqrt(N*N+x*x),r=_,o=k);break;case Ui.C:var w=data[i++],S=data[i++],k=(_=data[i++],data[i++]),O=data[i++],C=data[i++];y=ut(r,o,w,S,_,k,O,C,10),r=O,o=C;break;case Ui.Q:y=vt(r,o,w=data[i++],S=data[i++],_=data[i++],k=data[i++],10),r=_,o=k;break;case Ui.A:var T=data[i++],E=data[i++],A=data[i++],M=data[i++],I=data[i++],D=data[i++],P=D+I;i+=1;data[i++];m&&(l=to(I)*A+T,c=no(I)*M+E),y=eo(A,M)*Qi(oo,Math.abs(D)),r=to(P)*A+T,o=no(P)*M+E;break;case Ui.R:l=r=data[i++],c=o=data[i++],y=2*data[i++]+2*data[i++];break;case Ui.Z:var N=l-r;x=c-o;y=Math.sqrt(N*N+x*x),r=l,o=c}y>=0&&(h[d++]=y,f+=y)}return this._pathLen=f,f},e.prototype.rebuildPath=function(e,t){var n,r,o,l,c,h,f,d,v,m,y=this.data,_=this._ux,x=this._uy,w=this._len,S=t<1,k=0,O=0,C=0;if(!S||(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,d=t*this._pathLen))e:for(var i=0;i<w;){var T=y[i++],E=1===i;switch(E&&(n=o=y[i],r=l=y[i+1]),T!==Ui.L&&C>0&&(e.lineTo(v,m),C=0),T){case Ui.M:n=o=y[i++],r=l=y[i++],e.moveTo(o,l);break;case Ui.L:c=y[i++],h=y[i++];var A=ro(c-o),M=ro(h-l);if(A>_||M>x){if(S){if(k+(te=f[O++])>d){var I=(d-k)/te;e.lineTo(o*(1-I)+c*I,l*(1-I)+h*I);break e}k+=te}e.lineTo(c,h),o=c,l=h,C=0}else{var D=A*A+M*M;D>C&&(v=c,m=h,C=D)}break;case Ui.C:var P=y[i++],N=y[i++],L=y[i++],j=y[i++],R=y[i++],F=y[i++];if(S){if(k+(te=f[O++])>d){st(o,P,L,R,I=(d-k)/te,Gi),st(l,N,j,F,I,Yi),e.bezierCurveTo(Gi[1],Yi[1],Gi[2],Yi[2],Gi[3],Yi[3]);break e}k+=te}e.bezierCurveTo(P,N,L,j,R,F),o=R,l=F;break;case Ui.Q:P=y[i++],N=y[i++],L=y[i++],j=y[i++];if(S){if(k+(te=f[O++])>d){pt(o,P,L,I=(d-k)/te,Gi),pt(l,N,j,I,Yi),e.quadraticCurveTo(Gi[1],Yi[1],Gi[2],Yi[2]);break e}k+=te}e.quadraticCurveTo(P,N,L,j),o=L,l=j;break;case Ui.A:var B=y[i++],z=y[i++],$=y[i++],V=y[i++],H=y[i++],W=y[i++],U=y[i++],G=!y[i++],Y=$>V?$:V,K=ro($-V)>.001,X=H+W,Z=!1;if(S)k+(te=f[O++])>d&&(X=H+W*(d-k)/te,Z=!0),k+=te;if(K&&e.ellipse?e.ellipse(B,z,$,V,U,H,X,G):e.arc(B,z,Y,H,X,G),Z)break e;E&&(n=to(H)*$+B,r=no(H)*V+z),o=to(X)*$+B,l=no(X)*V+z;break;case Ui.R:n=o=y[i],r=l=y[i+1],c=y[i++],h=y[i++];var J=y[i++],Q=y[i++];if(S){if(k+(te=f[O++])>d){var ee=d-k;e.moveTo(c,h),e.lineTo(c+Qi(ee,J),h),(ee-=J)>0&&e.lineTo(c+J,h+Qi(ee,Q)),(ee-=Q)>0&&e.lineTo(c+eo(J-ee,0),h+Q),(ee-=J)>0&&e.lineTo(c,h+eo(Q-ee,0));break e}k+=te}e.rect(c,h,J,Q);break;case Ui.Z:if(S){var te;if(k+(te=f[O++])>d){I=(d-k)/te;e.lineTo(o*(1-I)+n*I,l*(1-I)+r*I);break e}k+=te}e.closePath(),o=n,l=r}}},e.prototype.clone=function(){var t=new e,data=this.data;return t.data=data.slice?data.slice():Array.prototype.slice.call(data),t._len=this._len,t},e.CMD=Ui,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}(),ho=co;function fo(e,t,n,r,o,l,c){if(0===o)return!1;var h=o,f=0;if(c>t+h&&c>r+h||c<t-h&&c<r-h||l>e+h&&l>n+h||l<e-h&&l<n-h)return!1;if(e===n)return Math.abs(l-e)<=h/2;var d=(f=(t-r)/(e-n))*l-c+(e*r-n*t)/(e-n);return d*d/(f*f+1)<=h/2*h/2}function po(e,t,n,r,o,l,c,h,f,d,v){if(0===f)return!1;var m=f;return!(v>t+m&&v>r+m&&v>l+m&&v>h+m||v<t-m&&v<r-m&&v<l-m&&v<h-m||d>e+m&&d>n+m&&d>o+m&&d>c+m||d<e-m&&d<n-m&&d<o-m&&d<c-m)&&lt(e,t,n,r,o,l,c,h,d,v,null)<=m/2}function go(e,t,n,r,o,l,c,h,f){if(0===c)return!1;var d=c;return!(f>t+d&&f>r+d&&f>l+d||f<t-d&&f<r-d&&f<l-d||h>e+d&&h>n+d&&h>o+d||h<e-d&&h<n-d&&h<o-d)&&gt(e,t,n,r,o,l,h,f,null)<=d/2}var vo=2*Math.PI;function mo(e){return(e%=vo)<0&&(e+=vo),e}var yo=2*Math.PI;function bo(e,t,n,r,o,l,c,h,f){if(0===c)return!1;var d=c;h-=e,f-=t;var v=Math.sqrt(h*h+f*f);if(v-d>n||v+d<n)return!1;if(Math.abs(r-o)%yo<1e-4)return!0;if(l){var m=r;r=mo(o),o=mo(m)}else r=mo(r),o=mo(o);r>o&&(o+=yo);var y=Math.atan2(f,h);return y<0&&(y+=yo),y>=r&&y<=o||y+yo>=r&&y+yo<=o}function _o(e,t,n,r,o,l){if(l>t&&l>r||l<t&&l<r)return 0;if(r===t)return 0;var c=(l-t)/(r-t),h=r<t?1:-1;1!==c&&0!==c||(h=r<t?.5:-.5);var f=c*(n-e)+e;return f===o?1/0:f>o?h:0}var xo=ho.CMD,wo=2*Math.PI;var So=[-1,-1,-1],ko=[-1,-1];function Oo(e,t,n,r,o,l,c,h,f,d){if(d>t&&d>r&&d>l&&d>h||d<t&&d<r&&d<l&&d<h)return 0;var v,m=ot(t,r,l,h,d,So);if(0===m)return 0;for(var y=0,_=-1,x=void 0,w=void 0,i=0;i<m;i++){var S=So[i],k=0===S||1===S?.5:1;nt(e,n,o,c,S)<f||(_<0&&(_=at(t,r,l,h,ko),ko[1]<ko[0]&&_>1&&(v=void 0,v=ko[0],ko[0]=ko[1],ko[1]=v),x=nt(t,r,l,h,ko[0]),_>1&&(w=nt(t,r,l,h,ko[1]))),2===_?S<ko[0]?y+=x<t?k:-k:S<ko[1]?y+=w<x?k:-k:y+=h<w?k:-k:S<ko[0]?y+=x<t?k:-k:y+=h<x?k:-k)}return y}function Co(e,t,n,r,o,l,c,h){if(h>t&&h>r&&h>l||h<t&&h<r&&h<l)return 0;var f=function(e,t,n,r,o){var a=e-2*t+n,b=2*(t-e),l=e-r,c=0;if(et(a))tt(b)&&(f=-l/b)>=0&&f<=1&&(o[c++]=f);else{var h=b*b-4*a*l;if(et(h))(f=-b/(2*a))>=0&&f<=1&&(o[c++]=f);else if(h>0){var f,d=Ue(h),v=(-b-d)/(2*a);(f=(-b+d)/(2*a))>=0&&f<=1&&(o[c++]=f),v>=0&&v<=1&&(o[c++]=v)}}return c}(t,r,l,h,So);if(0===f)return 0;var d=ft(t,r,l);if(d>=0&&d<=1){for(var v=0,m=ct(t,r,l,d),i=0;i<f;i++){var y=0===So[i]||1===So[i]?.5:1;ct(e,n,o,So[i])<c||(So[i]<d?v+=m<t?y:-y:v+=l<m?y:-y)}return v}y=0===So[0]||1===So[0]?.5:1;return ct(e,n,o,So[0])<c?0:l<t?y:-y}function To(e,t,n,r,o,l,c,h){if((h-=t)>n||h<-n)return 0;var f=Math.sqrt(n*n-h*h);So[0]=-f,So[1]=f;var d=Math.abs(r-o);if(d<1e-4)return 0;if(d>=wo-1e-4){r=0,o=wo;var v=l?1:-1;return c>=So[0]+e&&c<=So[1]+e?v:0}if(r>o){var m=r;r=o,o=m}r<0&&(r+=wo,o+=wo);for(var y=0,i=0;i<2;i++){var _=So[i];if(_+e>c){var x=Math.atan2(h,_);v=l?1:-1;x<0&&(x=wo+x),(x>=r&&x<=o||x+wo>=r&&x+wo<=o)&&(x>Math.PI/2&&x<1.5*Math.PI&&(v=-v),y+=v)}}return y}function Eo(path,e,t,n,r){for(var o,l,a,b,data=path.data,c=path.len(),h=0,f=0,d=0,v=0,m=0,i=0;i<c;){var y=data[i++],_=1===i;switch(y===xo.M&&i>1&&(t||(h+=_o(f,d,v,m,n,r))),_&&(v=f=data[i],m=d=data[i+1]),y){case xo.M:f=v=data[i++],d=m=data[i++];break;case xo.L:if(t){if(fo(f,d,data[i],data[i+1],e,n,r))return!0}else h+=_o(f,d,data[i],data[i+1],n,r)||0;f=data[i++],d=data[i++];break;case xo.C:if(t){if(po(f,d,data[i++],data[i++],data[i++],data[i++],data[i],data[i+1],e,n,r))return!0}else h+=Oo(f,d,data[i++],data[i++],data[i++],data[i++],data[i],data[i+1],n,r)||0;f=data[i++],d=data[i++];break;case xo.Q:if(t){if(go(f,d,data[i++],data[i++],data[i],data[i+1],e,n,r))return!0}else h+=Co(f,d,data[i++],data[i++],data[i],data[i+1],n,r)||0;f=data[i++],d=data[i++];break;case xo.A:var x=data[i++],w=data[i++],S=data[i++],k=data[i++],O=data[i++],C=data[i++];i+=1;var T=!!(1-data[i++]);o=Math.cos(O)*S+x,l=Math.sin(O)*k+w,_?(v=o,m=l):h+=_o(f,d,o,l,n,r);var E=(n-x)*k/S+x;if(t){if(bo(x,w,k,O,O+C,T,e,E,r))return!0}else h+=To(x,w,k,O,O+C,T,E,r);f=Math.cos(O+C)*S+x,d=Math.sin(O+C)*k+w;break;case xo.R:if(v=f=data[i++],m=d=data[i++],o=v+data[i++],l=m+data[i++],t){if(fo(v,m,o,m,e,n,r)||fo(o,m,o,l,e,n,r)||fo(o,l,v,l,e,n,r)||fo(v,l,v,m,e,n,r))return!0}else h+=_o(o,m,o,l,n,r),h+=_o(v,l,v,m,n,r);break;case xo.Z:if(t){if(fo(f,d,v,m,e,n,r))return!0}else h+=_o(f,d,v,m,n,r);f=v,d=m}}return t||(a=d,b=m,Math.abs(a-b)<1e-4)||(h+=_o(f,d,v,m,n,r)||0),0!==h}var Ao=Object(h.i)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Si),Mo={style:Object(h.i)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ki.style)},Io=yn.concat(["invisible","culling","z","z2","zlevel","parent"]),Do=function(e){function t(t){return e.call(this,t)||this}var n;return l(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var style=this.style;if(style.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(e){n.buildPath(e,n.shape)}),r.silent=!0;var o=r.style;for(var l in style)o[l]!==style[l]&&(o[l]=style[l]);o.fill=style.fill?style.decal:null,o.decal=null,o.shadowColor=null,style.strokeFirst&&(o.stroke=null);for(var i=0;i<Io.length;++i)r[Io[i]]=this[Io[i]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Object(h.F)(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],l=t[o];"style"===o?this.style?Object(h.m)(this.style,l):this.useStyle(l):"shape"===o?Object(h.m)(this.shape,l):e.prototype.attrKV.call(this,o,l)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(Object(h.C)(e)){var t=Object(_t.d)(e,0);return t>.5?ln:t>.2?"#eee":un}if(e)return un}return ln},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(h.C)(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Object(_t.d)(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ho(!1)},t.prototype.hasStroke=function(){var style=this.style,e=style.stroke;return!(null==e||"none"===e||!(style.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var rect=this._rect,style=this.style,e=!rect;if(e){var t=!1;this.path||(t=!0,this.createPathProxy());var path=this.path;(t||4&this.__dirty)&&(path.beginPath(),this.buildPath(path,this.shape,!1),this.pathUpdated()),rect=path.getBoundingRect()}if(this._rect=rect,this.hasStroke()&&this.path&&this.path.len()>0){var n=this._rectStroke||(this._rectStroke=rect.clone());if(this.__dirty||e){n.copy(rect);var r=style.strokeNoScale?this.getLineScale():1,o=style.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;o=Math.max(o,null==l?4:l)}r>1e-10&&(n.width+=o/r,n.height+=o/r,n.x-=o/r/2,n.y-=o/r/2)}return n}return rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),rect=this.getBoundingRect(),style=this.style;if(e=n[0],t=n[1],rect.contain(e,t)){var r=this.path;if(this.hasStroke()){var o=style.lineWidth,l=style.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),function(e,t,n,r){return Eo(e,t,!0,n,r)}(r,o/l,e,t)))return!0}if(this.hasFill())return function(e,t,n){return Eo(e,0,!1,t,n)}(r,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:Object(h.m)(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return Object(h.g)(Ao,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(h.m)({},this.shape))},t.prototype._applyStateObj=function(t,n,r,o,l,c){e.prototype._applyStateObj.call(this,t,n,r,o,l,c);var f,d=!(n&&o);if(n&&n.shape?l?o?f=n.shape:(f=Object(h.m)({},r.shape),Object(h.m)(f,n.shape)):(f=Object(h.m)({},o?this.shape:r.shape),Object(h.m)(f,n.shape)):d&&(f=r.shape),f)if(l){this.shape=Object(h.m)({},this.shape);for(var v={},m=Object(h.F)(f),i=0;i<m.length;i++){var y=m[i];"object"==typeof f[y]?this.shape[y]=f[y]:v[y]=f[y]}this._transitionState(t,{shape:v},c)}else this.shape=f,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return Mo},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return l(n,t),n.prototype.getDefaultStyle=function(){return Object(h.d)(e.style)},n.prototype.getDefaultShape=function(){return Object(h.d)(e.shape)},n}(t);for(var r in e)"function"==typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),t}(Mi),Po=Object(h.i)({strokeFirst:!0,font:wn.a,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ao),No=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.hasStroke=function(){var style=this.style,e=style.stroke;return null!=e&&"none"!==e&&style.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Object(h.g)(Po,e)},t.prototype.setBoundingRect=function(rect){this._rect=rect},t.prototype.getBoundingRect=function(){var style=this.style;if(!this._rect){var text=style.text;null!=text?text+="":text="";var rect=Cn(text,style.font,style.textAlign,style.textBaseline);if(rect.x+=style.x||0,rect.y+=style.y||0,this.hasStroke()){var e=style.lineWidth;rect.x-=e/2,rect.y-=e/2,rect.width+=e,rect.height+=e}this._rect=rect}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(Mi);No.prototype.type="tspan";var Lo=No,jo=Object(h.i)({x:0,y:0},Si),Ro={style:Object(h.i)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ki.style)};var Fo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.createStyle=function(e){return Object(h.g)(jo,e)},t.prototype._getSize=function(e){var style=this.style,t=style[e];if(null!=t)return t;var source,n=(source=style.image)&&"string"!=typeof source&&source.width&&source.height?style.image:this.__image;if(!n)return 0;var r="width"===e?"height":"width",o=style[r];return null==o?n[e]:n[e]/n[r]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Ro},t.prototype.getBoundingRect=function(){var style=this.style;return this._rect||(this._rect=new _e(style.x||0,style.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Mi);Fo.prototype.type="image";var Bo=Fo;var zo=Math.round;function $o(e,t,style){if(t){var n=t.x1,r=t.x2,o=t.y1,l=t.y2;e.x1=n,e.x2=r,e.y1=o,e.y2=l;var c=style&&style.lineWidth;return c?(zo(2*n)===zo(2*r)&&(e.x1=e.x2=Ho(n,c,!0)),zo(2*o)===zo(2*l)&&(e.y1=e.y2=Ho(o,c,!0)),e):e}}function Vo(e,t,style){if(t){var n=t.x,r=t.y,o=t.width,l=t.height;e.x=n,e.y=r,e.width=o,e.height=l;var c=style&&style.lineWidth;return c?(e.x=Ho(n,c,!0),e.y=Ho(r,c,!0),e.width=Math.max(Ho(n+o,c,!1)-e.x,0===o?0:1),e.height=Math.max(Ho(r+l,c,!1)-e.y,0===l?0:1),e):e}}function Ho(e,t,n){if(!t)return e;var r=zo(2*e);return(r+zo(t))%2==0?r/2:(r+(n?1:-1))/2}var qo=function(){this.x=0,this.y=0,this.width=0,this.height=0},Wo={},Uo=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getDefaultShape=function(){return new qo},t.prototype.buildPath=function(e,t){var n,r,o,l;if(this.subPixelOptimize){var c=Vo(Wo,t,this.style);n=c.x,r=c.y,o=c.width,l=c.height,c.r=t.r,t=c}else n=t.x,r=t.y,o=t.width,l=t.height;t.r?function(e,t){var n,r,o,l,c,h=t.x,f=t.y,d=t.width,v=t.height,m=t.r;d<0&&(h+=d,d=-d),v<0&&(f+=v,v=-v),"number"==typeof m?n=r=o=l=m:m instanceof Array?1===m.length?n=r=o=l=m[0]:2===m.length?(n=o=m[0],r=l=m[1]):3===m.length?(n=m[0],r=l=m[1],o=m[2]):(n=m[0],r=m[1],o=m[2],l=m[3]):n=r=o=l=0,n+r>d&&(n*=d/(c=n+r),r*=d/c),o+l>d&&(o*=d/(c=o+l),l*=d/c),r+o>v&&(r*=v/(c=r+o),o*=v/c),n+l>v&&(n*=v/(c=n+l),l*=v/c),e.moveTo(h+n,f),e.lineTo(h+d-r,f),0!==r&&e.arc(h+d-r,f+r,r,-Math.PI/2,0),e.lineTo(h+d,f+v-o),0!==o&&e.arc(h+d-o,f+v-o,o,0,Math.PI/2),e.lineTo(h+l,f+v),0!==l&&e.arc(h+l,f+v-l,l,Math.PI/2,Math.PI),e.lineTo(h,f+n),0!==n&&e.arc(h+n,f+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,o,l)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Do);Uo.prototype.type="rect";var Go=Uo,Yo={fill:"#000"},Ko={style:Object(h.i)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},ki.style)},Xo=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Yo,n.attr(t),n}return l(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var i=0;i<this._children.length;i++){var t=this._children[i];t.zlevel=this.zlevel,t.z=this.z,t.z2=this.z2,t.culling=this.culling,t.cursor=this.cursor,t.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var style;this._childCursor=0,ra(style=this.style),Object(h.k)(style.rich,ra),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new _e(0,0,0,0),t=this._children,n=[],rect=null,i=0;i<t.length;i++){var r=t[i],o=r.getBoundingRect(),l=r.getLocalTransform(n);l?(e.copy(o),e.applyTransform(l),(rect=rect||e.clone()).union(e)):(rect=rect||o.clone()).union(o)}this._rect=rect||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Yo},t.prototype.setTextContent=function(e){0},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return Object(h.m)(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Object(h.F)(t),i=0;i<n.length;i++){var r=n[i];e[r]=e[r]||{},Object(h.m)(e[r],t[r])}},t.prototype.getAnimationStyleProps=function(){return Ko},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var style=this.style,e=style.font||wn.a,t=style.padding,n=function(text,style){null!=text&&(text+="");var e,t=style.overflow,n=style.padding,r=style.font,o="truncate"===t,l=An(r),c=Object(h.P)(style.lineHeight,l),f=!!style.backgroundColor,d="truncate"===style.lineOverflow,v=style.width,m=(e=null==v||"break"!==t&&"breakAll"!==t?text?text.split("\n"):[]:text?xi(text,style.font,v,"breakAll"===t,0).lines:[]).length*c,y=Object(h.P)(style.height,m);if(m>y&&d){var _=Math.floor(y/c);e=e.slice(0,_)}if(text&&o&&null!=v)for(var x=fi(v,r,style.ellipsis,{minChar:style.truncateMinChar,placeholder:style.placeholder}),i=0;i<e.length;i++)e[i]=di(e[i],x);var w=y,S=0;for(i=0;i<e.length;i++)S=Math.max(kn(e[i],r),S);null==v&&(v=S);var k=S;return n&&(w+=n[0]+n[2],k+=n[1]+n[3],v+=n[1]+n[3]),f&&(k=v),{lines:e,height:y,outerWidth:k,outerHeight:w,lineHeight:c,calculatedLineHeight:l,contentWidth:S,contentHeight:m,width:v}}(sa(style),style),r=la(style),o=!!style.backgroundColor,l=n.outerHeight,c=n.outerWidth,f=n.contentWidth,d=n.lines,v=n.lineHeight,m=this._defaultStyle,y=style.x||0,_=style.y||0,x=style.align||m.align||"left",w=style.verticalAlign||m.verticalAlign||"top",S=y,k=En(_,n.contentHeight,w);if(r||t){var O=Tn(y,c,x),C=En(_,l,w);r&&this._renderBackground(style,style,O,C,c,l)}k+=v/2,t&&(S=aa(y,x,t),"top"===w?k+=t[0]:"bottom"===w&&(k-=t[2]));for(var T=0,E=!1,A=(oa("fill"in style?style.fill:(E=!0,m.fill))),M=(ia("stroke"in style?style.stroke:o||m.autoStroke&&!E?null:(T=2,m.stroke))),I=style.textShadowBlur>0,D=null!=style.width&&("truncate"===style.overflow||"break"===style.overflow||"breakAll"===style.overflow),P=n.calculatedLineHeight,i=0;i<d.length;i++){var N=this._getOrCreateChild(Lo),L=N.createStyle();N.useStyle(L),L.text=d[i],L.x=S,L.y=k,x&&(L.textAlign=x),L.textBaseline="middle",L.opacity=style.opacity,L.strokeFirst=!0,I&&(L.shadowBlur=style.textShadowBlur||0,L.shadowColor=style.textShadowColor||"transparent",L.shadowOffsetX=style.textShadowOffsetX||0,L.shadowOffsetY=style.textShadowOffsetY||0),L.stroke=M,L.fill=A,M&&(L.lineWidth=style.lineWidth||T,L.lineDash=style.lineDash,L.lineDashOffset=style.lineDashOffset||0),L.font=e,ta(L,style),k+=v,D&&N.setBoundingRect(new _e(Tn(L.x,style.width,L.textAlign),En(L.y,P,L.textBaseline),f,P))}},t.prototype._updateRichTexts=function(){var style=this.style,e=function(text,style){var e=new mi;if(null!=text&&(text+=""),!text)return e;for(var t,n=style.width,r=style.height,o=style.overflow,l="break"!==o&&"breakAll"!==o||null==n?null:{width:n,accumWidth:0,breakAll:"breakAll"===o},c=ci.lastIndex=0;null!=(t=ci.exec(text));){var f=t.index;f>c&&yi(e,text.substring(c,f),style,l),yi(e,t[2],style,l,t[1]),c=ci.lastIndex}c<text.length&&yi(e,text.substring(c,text.length),style,l);var d=[],v=0,m=0,y=style.padding,_="truncate"===o,x="truncate"===style.lineOverflow;function w(line,e,t){line.width=e,line.lineHeight=t,v+=t,m=Math.max(m,e)}e:for(var i=0;i<e.lines.length;i++){for(var line=e.lines[i],S=0,k=0,O=0;O<line.tokens.length;O++){var C=(j=line.tokens[O]).styleName&&style.rich[j.styleName]||{},T=j.textPadding=C.padding,E=T?T[1]+T[3]:0,A=j.font=C.font||style.font;j.contentHeight=An(A);var M=Object(h.P)(C.height,j.contentHeight);if(j.innerHeight=M,T&&(M+=T[0]+T[2]),j.height=M,j.lineHeight=Object(h.Q)(C.lineHeight,style.lineHeight,M),j.align=C&&C.align||style.align,j.verticalAlign=C&&C.verticalAlign||"middle",x&&null!=r&&v+j.lineHeight>r){O>0?(line.tokens=line.tokens.slice(0,O),w(line,k,S),e.lines=e.lines.slice(0,i+1)):e.lines=e.lines.slice(0,i);break e}var I=C.width,D=null==I||"auto"===I;if("string"==typeof I&&"%"===I.charAt(I.length-1))j.percentWidth=I,d.push(j),j.contentWidth=kn(j.text,A);else{if(D){var P=C.backgroundColor,N=P&&P.image;N&&ui(N=oi(N))&&(j.width=Math.max(j.width,N.width*M/N.height))}var L=_&&null!=n?n-k:null;null!=L&&L<j.width?!D||L<E?(j.text="",j.width=j.contentWidth=0):(j.text=hi(j.text,L-E,A,style.ellipsis,{minChar:style.truncateMinChar}),j.width=j.contentWidth=kn(j.text,A)):j.contentWidth=kn(j.text,A)}j.width+=E,k+=j.width,C&&(S=Math.max(S,j.lineHeight))}w(line,k,S)}for(e.outerWidth=e.width=Object(h.P)(n,m),e.outerHeight=e.height=Object(h.P)(r,v),e.contentHeight=v,e.contentWidth=m,y&&(e.outerWidth+=y[1]+y[3],e.outerHeight+=y[0]+y[2]),i=0;i<d.length;i++){var j,R=(j=d[i]).percentWidth;j.width=parseInt(R,10)/100*e.width}return e}(sa(style),style),t=e.width,n=e.outerWidth,r=e.outerHeight,o=style.padding,l=style.x||0,c=style.y||0,f=this._defaultStyle,d=style.align||f.align,v=style.verticalAlign||f.verticalAlign,m=Tn(l,n,d),y=En(c,r,v),_=m,x=y;o&&(_+=o[3],x+=o[0]);var w=_+t;la(style)&&this._renderBackground(style,style,m,y,n,r);for(var S=!!style.backgroundColor,i=0;i<e.lines.length;i++){for(var line=e.lines[i],k=line.tokens,O=k.length,C=line.lineHeight,T=line.width,E=0,A=_,M=w,I=O-1,D=void 0;E<O&&(!(D=k[E]).align||"left"===D.align);)this._placeToken(D,style,C,x,A,"left",S),T-=D.width,A+=D.width,E++;for(;I>=0&&"right"===(D=k[I]).align;)this._placeToken(D,style,C,x,M,"right",S),T-=D.width,M-=D.width,I--;for(A+=(t-(A-_)-(w-M)-T)/2;E<=I;)D=k[E],this._placeToken(D,style,C,x,A+D.width/2,"center",S),A+=D.width,E++;x+=C}},t.prototype._placeToken=function(e,style,t,n,r,o,l){var c=style.rich[e.styleName]||{};c.text=e.text;var f=e.verticalAlign,d=n+t/2;"top"===f?d=n+e.height/2:"bottom"===f&&(d=n+t-e.height/2),!e.isLineHolder&&la(c)&&this._renderBackground(c,style,"right"===o?r-e.width:"center"===o?r-e.width/2:r,d-e.height/2,e.width,e.height);var v=!!c.backgroundColor,m=e.textPadding;m&&(r=aa(r,o,m),d-=e.height/2-m[0]-e.innerHeight/2);var y=this._getOrCreateChild(Lo),_=y.createStyle();y.useStyle(_);var x=this._defaultStyle,w=!1,S=0,k=oa("fill"in c?c.fill:"fill"in style?style.fill:(w=!0,x.fill)),O=ia("stroke"in c?c.stroke:"stroke"in style?style.stroke:v||l||x.autoStroke&&!w?null:(S=2,x.stroke)),C=c.textShadowBlur>0||style.textShadowBlur>0;_.text=e.text,_.x=r,_.y=d,C&&(_.shadowBlur=c.textShadowBlur||style.textShadowBlur||0,_.shadowColor=c.textShadowColor||style.textShadowColor||"transparent",_.shadowOffsetX=c.textShadowOffsetX||style.textShadowOffsetX||0,_.shadowOffsetY=c.textShadowOffsetY||style.textShadowOffsetY||0),_.textAlign=o,_.textBaseline="middle",_.font=e.font||wn.a,_.opacity=Object(h.Q)(c.opacity,style.opacity,1),ta(_,c),O&&(_.lineWidth=Object(h.Q)(c.lineWidth,style.lineWidth,S),_.lineDash=Object(h.P)(c.lineDash,style.lineDash),_.lineDashOffset=style.lineDashOffset||0,_.stroke=O),k&&(_.fill=k);var T=e.contentWidth,E=e.contentHeight;y.setBoundingRect(new _e(Tn(_.x,T,_.textAlign),En(_.y,E,_.textBaseline),T,E))},t.prototype._renderBackground=function(style,e,t,n,r,o){var l,c,f,d=style.backgroundColor,v=style.borderWidth,m=style.borderColor,y=d&&d.image,_=d&&!y,x=style.borderRadius,w=this;if(_||style.lineHeight||v&&m){(l=this._getOrCreateChild(Go)).useStyle(l.createStyle()),l.style.fill=null;var S=l.shape;S.x=t,S.y=n,S.width=r,S.height=o,S.r=x,l.dirtyShape()}if(_)(f=l.style).fill=d||null,f.fillOpacity=Object(h.P)(style.fillOpacity,1);else if(y){(c=this._getOrCreateChild(Bo)).onload=function(){w.dirtyStyle()};var k=c.style;k.image=d.image,k.x=t,k.y=n,k.width=r,k.height=o}v&&m&&((f=l.style).lineWidth=v,f.stroke=m,f.strokeOpacity=Object(h.P)(style.strokeOpacity,1),f.lineDash=style.borderDash,f.lineDashOffset=style.borderDashOffset||0,l.strokeContainThreshold=0,l.hasFill()&&l.hasStroke()&&(f.strokeFirst=!0,f.lineWidth*=2));var O=(l||c).style;O.shadowBlur=style.shadowBlur||0,O.shadowColor=style.shadowColor||"transparent",O.shadowOffsetX=style.shadowOffsetX||0,O.shadowOffsetY=style.shadowOffsetY||0,O.opacity=Object(h.Q)(style.opacity,e.opacity,1)},t.makeFont=function(style){var e="";return na(style)&&(e=[style.fontStyle,style.fontWeight,ea(style.fontSize),style.fontFamily||"sans-serif"].join(" ")),e&&Object(h.T)(e)||style.textFont||style.font},t}(Mi),Zo={left:!0,right:1,center:1},Jo={top:1,bottom:1,middle:1},Qo=["fontStyle","fontWeight","fontSize","fontFamily"];function ea(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?wn.c+"px":e+"px":e}function ta(e,t){for(var i=0;i<Qo.length;i++){var n=Qo[i],r=t[n];null!=r&&(e[n]=r)}}function na(style){return null!=style.fontSize||style.fontFamily||style.fontWeight}function ra(style){if(style){style.font=Xo.makeFont(style);var e=style.align;"middle"===e&&(e="center"),style.align=null==e||Zo[e]?e:"left";var t=style.verticalAlign;"center"===t&&(t="middle"),style.verticalAlign=null==t||Jo[t]?t:"top",style.padding&&(style.padding=Object(h.M)(style.padding))}}function ia(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function oa(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function aa(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function sa(style){var text=style.text;return null!=text&&(text+=""),text}function la(style){return!!(style.backgroundColor||style.lineHeight||style.borderWidth&&style.borderColor)}var ua=Xo,ca=jr(),ha=function(e,t,n,r){if(r){var o=ca(r);o.dataIndex=n,o.dataType=t,o.seriesIndex=e,"group"===r.type&&r.traverse((function(r){var o=ca(r);o.seriesIndex=e,o.dataIndex=n,o.dataType=t}))}},fa=1,da={},pa=jr(),ga=jr(),va=["emphasis","blur","select"],ma=["normal","emphasis","blur","select"],ya=10,ba="highlight",_a="downplay",xa="select",wa="unselect",Sa="toggleSelect";function ka(e){return null!=e&&"none"!==e}var Oa=new xn.a(100);function Ca(e){if(Object(h.C)(e)){var t=Oa.get(e);return t||(t=_t.c(e,-.1),Oa.put(e,t)),t}if(Object(h.x)(e)){var n=Object(h.m)({},e);return n.colorStops=Object(h.H)(e.colorStops,(function(e){return{offset:e.offset,color:_t.c(e.color,-.1)}})),n}return e}function Ta(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Ea(e){Ta(e,"emphasis",2)}function Aa(e){2===e.hoverState&&Ta(e,"normal",0)}function Ma(e){Ta(e,"blur",1)}function Ia(e){1===e.hoverState&&Ta(e,"normal",0)}function Da(e){e.selected=!0}function Pa(e){e.selected=!1}function Na(e,t,n){t(e,n)}function La(e,t,n){Na(e,t,n),e.isGroup&&e.traverse((function(e){Na(e,t,n)}))}function ja(e,t){switch(t){case"emphasis":e.hoverState=2;break;case"normal":e.hoverState=0;break;case"blur":e.hoverState=1;break;case"select":e.selected=!0}}function Ra(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var o=n&&Object(h.r)(n,"select")>=0,l=!1;if(e instanceof Do){var c=pa(e),f=o&&c.selectFill||c.normalFill,d=o&&c.selectStroke||c.normalStroke;if(ka(f)||ka(d)){var v=(r=r||{}).style||{};"inherit"===v.fill?(l=!0,r=Object(h.m)({},r),(v=Object(h.m)({},v)).fill=f):!ka(v.fill)&&ka(f)?(l=!0,r=Object(h.m)({},r),(v=Object(h.m)({},v)).fill=Ca(f)):!ka(v.stroke)&&ka(d)&&(l||(r=Object(h.m)({},r),v=Object(h.m)({},v)),v.stroke=Ca(d)),r.style=v}}if(r&&null==r.z2){l||(r=Object(h.m)({},r));var m=e.z2EmphasisLift;r.z2=e.z2+(null!=m?m:ya)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=Object(h.r)(e.currentStates,t)>=0,o=e.style.opacity,l=r?null:function(e,t,n,r){for(var style=e.style,o={},i=0;i<t.length;i++){var l=t[i],c=style[l];o[l]=null==c?r&&r[l]:c}for(i=0;i<e.animators.length;i++){var h=e.animators[i];h.__fromStateTransition&&h.__fromStateTransition.indexOf(n)<0&&"style"===h.targetName&&h.saveTo(o,t)}return o}(e,["opacity"],t,{opacity:1}),c=(n=n||{}).style||{};return null==c.opacity&&(n=Object(h.m)({},n),c=Object(h.m)({opacity:r?o:.1*l.opacity},c),n.style=c),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=Object(h.m)({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function Fa(e){e.stateProxy=Ra;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Ra),n&&(n.stateProxy=Ra)}function Ba(e,t){!Ga(e,t)&&!e.__highByOuter&&La(e,Ea)}function za(e,t){!Ga(e,t)&&!e.__highByOuter&&La(e,Aa)}function $a(e,t){e.__highByOuter|=1<<(t||0),La(e,Ea)}function Va(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&La(e,Aa)}function Ha(e){La(e,Ma)}function qa(e){La(e,Ia)}function Wa(e){La(e,Da)}function Ua(e){La(e,Pa)}function Ga(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Ya(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,o){var l=ga(o),c="series"===t,view=c?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!c&&r.push(view),l.isBlured&&(view.group.traverse((function(e){Ia(e)})),c&&n.push(o)),l.isBlured=!1})),Object(h.k)(r,(function(view){view&&view.toggleBlurSeries&&view.toggleBlurSeries(n,!1,t)}))}function Ka(e,t,n,r){var o=r.getModel();function l(data,e){for(var i=0;i<e.length;i++){var t=data.getItemGraphicEl(e[i]);t&&qa(t)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var c=o.getSeriesByIndex(e),f=c.coordinateSystem;f&&f.master&&(f=f.master);var d=[];o.eachSeries((function(e){var o=c===e,v=e.coordinateSystem;if(v&&v.master&&(v=v.master),!("series"===n&&!o||"coordinateSystem"===n&&!(v&&f?v===f:o)||"series"===t&&o)){if(r.getViewOfSeriesModel(e).group.traverse((function(e){Ma(e)})),Object(h.u)(t))l(e.getData(),t);else if(Object(h.A)(t))for(var m=Object(h.F)(t),y=0;y<m.length;y++)l(e.getData(m[y]),t[m[y]]);d.push(e),ga(e).isBlured=!0}})),o.eachComponent((function(e,t){if("series"!==e){var view=r.getViewOfComponentModel(t);view&&view.toggleBlurSeries&&view.toggleBlurSeries(d,!0,o)}}))}}function Xa(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){ga(r).isBlured=!0;var view=n.getViewOfComponentModel(r);view&&view.focusBlurEnabled&&view.group.traverse((function(e){Ma(e)}))}}}function Za(e,t,n,r){var o={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return o;var l=r.getModel().getComponent(e,t);if(!l)return o;var view=r.getViewOfComponentModel(l);if(!view||!view.findHighDownDispatchers)return o;for(var c,h=view.findHighDownDispatchers(n),i=0;i<h.length;i++)if("self"===ca(h[i]).focus){c=!0;break}return{focusSelf:c,dispatchers:h}}function Ja(e){var t=e.getAllData();Object(h.k)(t,(function(t){var data=t.data,n=t.type;data.eachItemGraphicEl((function(t,r){e.isSelected(r,n)?Wa(t):Ua(t)}))}))}function Qa(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();Object(h.k)(n,(function(n){n.data;var r=n.type,o=e.getSelectedDataIndices();if(o.length>0){var l={dataIndex:o,seriesIndex:e.seriesIndex};null!=r&&(l.dataType=r),t.push(l)}}))})),t}function es(e,t,n){as(e,!0),La(e,Fa),ns(e,t,n)}function ts(e,t,n,r){r?function(e){as(e,!1)}(e):es(e,t,n)}function ns(e,t,n){var r=ca(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var rs=["emphasis","blur","select"],is={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function os(e,t,n,r){n=n||"itemStyle";for(var i=0;i<rs.length;i++){var o=rs[i],l=t.getModel([o,n]);e.ensureState(o).style=r?r(l):l[is[n]]()}}function as(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function ss(e){return!(!e||!e.__highDownDispatcher)}function ls(e){var t=e.type;return t===xa||t===wa||t===Sa}function us(e){var t=e.type;return t===ba||t===_a}var cs=jr();function hs(e,t,n,r,o){var l;if(t&&t.ecModel){var c=t.ecModel.getUpdatePayload();l=c&&c.animation}var f="update"===e;if(t&&t.isAnimationEnabled()){var d=void 0,v=void 0,m=void 0;return r?(d=Object(h.P)(r.duration,200),v=Object(h.P)(r.easing,"cubicOut"),m=0):(d=t.getShallow(f?"animationDurationUpdate":"animationDuration"),v=t.getShallow(f?"animationEasingUpdate":"animationEasing"),m=t.getShallow(f?"animationDelayUpdate":"animationDelay")),l&&(null!=l.duration&&(d=l.duration),null!=l.easing&&(v=l.easing),null!=l.delay&&(m=l.delay)),Object(h.w)(m)&&(m=m(n,o)),Object(h.w)(d)&&(d=d(n)),{duration:d||0,delay:m,easing:v}}return null}function fs(e,t,n,r,o,l,c){var f,d=!1;Object(h.w)(o)?(c=l,l=o,o=null):Object(h.A)(o)&&(l=o.cb,c=o.during,d=o.isFrom,f=o.removeOpt,o=o.dataIndex);var v="leave"===e;v||t.stopAnimation("leave");var m=hs(e,r,o,v?f||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,o):null);if(m&&m.duration>0){var y={duration:m.duration,delay:m.delay||0,easing:m.easing,done:l,force:!!l||!!c,setToFinal:!v,scope:e,during:c};d?t.animateFrom(n,y):t.animateTo(n,y)}else t.stopAnimation(),!d&&t.attr(n),c&&c(1),l&&l()}function ds(e,t,n,r,o,l){fs("update",e,t,n,r,o,l)}function ps(e,t,n,r,o,l){fs("enter",e,t,n,r,o,l)}function gs(e){if(!e.__zr)return!0;for(var i=0;i<e.animators.length;i++){if("leave"===e.animators[i].scope)return!0}return!1}function vs(e,t,n,r,o,l){gs(e)||fs("leave",e,t,n,r,o,l)}function ms(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),vs(e,{style:{opacity:0}},t,n,r)}function ys(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||ms(e,t,n,r)})):ms(e,t,n,r)}function bs(e){cs(e).oldStyle=e.style}var _s={};function xs(label,e){for(var i=0;i<va.length;i++){var t=va[i],text=e[t],n=label.ensureState(t);n.style=n.style||{},n.style.text=text}var r=label.currentStates.slice();label.clearStates(!0),label.setStyle({text:e.normal}),label.useStates(r,!0)}function ws(e,t,n){var r,o=e.labelFetcher,l=e.labelDataIndex,c=e.labelDimIndex,f=t.normal;o&&(r=o.getFormattedLabel(l,"normal",null,c,f&&f.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(h.w)(e.defaultText)?e.defaultText(l,e,n):e.defaultText);for(var d={normal:r},i=0;i<va.length;i++){var v=va[i],m=t[v];d[v]=Object(h.P)(o?o.getFormattedLabel(l,v,null,c,m&&m.get("formatter")):null,r)}return d}function Ss(e,t,n,r){n=n||_s;for(var o=e instanceof ua,l=!1,i=0;i<ma.length;i++){if((y=t[ma[i]])&&y.getShallow("show")){l=!0;break}}var c=o?e:e.getTextContent();if(l){o||(c||(c=new ua,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var f=ws(n,t),d=t.normal,v=!!d.getShallow("show"),m=Os(d,r&&r.normal,n,!1,!o);m.text=f.normal,o||e.setTextConfig(Cs(d,n,!1));for(i=0;i<va.length;i++){var y,_=va[i];if(y=t[_]){var x=c.ensureState(_),w=!!Object(h.P)(y.getShallow("show"),v);if(w!==v&&(x.ignore=!w),x.style=Os(y,r&&r[_],n,!0,!o),x.style.text=f[_],!o)e.ensureState(_).textConfig=Cs(y,n,!0)}}c.silent=!!d.getShallow("silent"),null!=c.style.x&&(m.x=c.style.x),null!=c.style.y&&(m.y=c.style.y),c.ignore=!v,c.useStyle(m),c.dirty(),n.enableTextSetter&&(Ds(c).setLabelText=function(e){var r=ws(n,t,e);xs(c,r)})}else c&&(c.ignore=!0);e.dirty()}function ks(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i<va.length;i++){var r=va[i];n[r]=e.getModel([r,t])}return n}function Os(e,t,n,r,o){var l={};return function(e,t,n,r,o){n=n||_s;var l,c=t.ecModel,f=c&&c.option.textStyle,d=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||_s).rich;if(n){t=t||{};for(var r=Object(h.F)(n),i=0;i<r.length;i++){t[r[i]]=1}}e=e.parentModel}return t}(t);if(d)for(var v in l={},d)if(d.hasOwnProperty(v)){var m=t.getModel(["rich",v]);Ms(l[v]={},m,f,n,r,o,!1,!0)}l&&(e.rich=l);var y=t.get("overflow");y&&(e.overflow=y);var _=t.get("minMargin");null!=_&&(e.margin=_);Ms(e,t,f,n,r,o,!0,!1)}(l,e,n,r,o),t&&Object(h.m)(l,t),l}function Cs(e,t,n){t=t||{};var r,o={},l=e.getShallow("rotate"),c=Object(h.P)(e.getShallow("distance"),n?null:5),f=e.getShallow("offset");return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(o.position=r),null!=f&&(o.offset=f),null!=l&&(l*=Math.PI/180,o.rotation=l),null!=c&&(o.distance=c),o.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",o}var Ts=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Es=["align","lineHeight","width","height","tag","verticalAlign"],As=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ms(e,t,n,r,o,l,c,f){n=!o&&n||_s;var d=r&&r.inheritColor,v=t.getShallow("color"),m=t.getShallow("textBorderColor"),y=Object(h.P)(t.getShallow("opacity"),n.opacity);"inherit"!==v&&"auto"!==v||(v=d||null),"inherit"!==m&&"auto"!==m||(m=d||null),l||(v=v||n.color,m=m||n.textBorderColor),null!=v&&(e.fill=v),null!=m&&(e.stroke=m);var _=Object(h.P)(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=_&&(e.lineWidth=_);var x=Object(h.P)(t.getShallow("textBorderType"),n.textBorderType);null!=x&&(e.lineDash=x);var w=Object(h.P)(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=w&&(e.lineDashOffset=w),o||null!=y||f||(y=r&&r.defaultOpacity),null!=y&&(e.opacity=y),o||l||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var i=0;i<Ts.length;i++){var S=Ts[i];null!=(O=Object(h.P)(t.getShallow(S),n[S]))&&(e[S]=O)}for(i=0;i<Es.length;i++){S=Es[i];null!=(O=t.getShallow(S))&&(e[S]=O)}if(null==e.verticalAlign){var k=t.getShallow("baseline");null!=k&&(e.verticalAlign=k)}if(!c||!r.disableBox){for(i=0;i<As.length;i++){var O;S=As[i];null!=(O=t.getShallow(S))&&(e[S]=O)}var C=t.getShallow("borderType");null!=C&&(e.borderDash=C),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!d||(e.backgroundColor=d),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!d||(e.borderColor=d)}}function Is(e,t){var n=t&&t.getModel("textStyle");return Object(h.T)([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ds=jr();function Ps(label,e,t,n){if(label){var r=Ds(label);r.prevValue=r.value,r.value=t;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=n,r.statesModels=e)}}function Ns(e,t,data,n,r){var o=Ds(e);if(o.valueAnimation&&o.prevValue!==o.value){var l=o.defaultInterpolatedText,c=Object(h.P)(o.interpolatedValue,o.prevValue),f=o.value;e.percent=0,(null==o.prevValue?ps:ds)(e,{percent:1},n,t,null,(function(n){var h=Wr(data,o.precision,c,f,n);o.interpolatedValue=1===n?null:h;var d=ws({labelDataIndex:t,labelFetcher:r,defaultText:l?l(h):h+""},o.statesModels,h);xs(e,d)}))}}var Ls,js,Rs=["textStyle","color"],Fs=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Bs=new ua,zs=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Rs):null)},e.prototype.getFont=function(){return Is({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(text){for(var style={text:text,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Fs.length;i++)style[Fs[i]]=this.getShallow(Fs[i]);return Bs.useStyle(style),Bs.update(),Bs.getBoundingRect()},e}(),$s=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Vs=ti($s),Hs=function(){function e(){}return e.prototype.getLineStyle=function(e){return Vs(this,e)},e}(),qs=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Ws=ti(qs),Us=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Ws(this,e,t)},e}(),Gs=function(){function e(option,e,t){this.parentModel=e,this.ecModel=t,this.option=option}return e.prototype.init=function(option,e,t){for(var n=[],r=3;r<arguments.length;r++)n[r-3]=arguments[r]},e.prototype.mergeOption=function(option,e){Object(h.I)(this.option,option,!0)},e.prototype.get=function(path,e){return null==path?this.option:this._doGet(this.parsePath(path),!e&&this.parentModel)},e.prototype.getShallow=function(e,t){var option=this.option,n=null==option?option:option[e];if(null==n&&!t){var r=this.parentModel;r&&(n=r.getShallow(e))}return n},e.prototype.getModel=function(path,t){var n=null!=path,r=n?this.parsePath(path):null;return new e(n?this._doGet(r):this.option,t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(Object(h.d)(this.option))},e.prototype.parsePath=function(path){return"string"==typeof path?path.split("."):path},e.prototype.resolveParentPath=function(path){return path},e.prototype.isAnimationEnabled=function(){if(!c.a.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&(!e[i]||null!=(n=n&&"object"==typeof n?n[e[i]]:null));i++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Kr(Gs),Ls=Gs,js=["__\0is_clz",Zr++].join("_"),Ls.prototype[js]=!0,Ls.isInstance=function(e){return!(!e||!e[js])},Object(h.K)(Gs,Hs),Object(h.K)(Gs,Us),Object(h.K)(Gs,ri),Object(h.K)(Gs,zs);var Ys=Gs,Ks=Math.round(10*Math.random());function Xs(e){return[e||"",Ks++].join("_")}function Zs(e,t){return h.I(h.I({},e,!0),t,!0)}var Js="ZH",Qs="EN",el=Qs,tl={},nl={},rl=c.a.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(Js)>-1?Js:el;function il(e,t){e=e.toUpperCase(),nl[e]=new Ys(t),tl[e]=t}function al(e){return nl[e]}il(Qs,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),il(Js,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var sl=1e3,ll=6e4,cl=36e5,hl=864e5,fl=31536e6,pl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},gl="{yyyy}-{MM}-{dd}",vl={year:"{yyyy}",month:"{yyyy}-{MM}",day:gl,hour:"{yyyy}-{MM}-{dd} "+pl.hour,minute:"{yyyy}-{MM}-{dd} "+pl.minute,second:"{yyyy}-{MM}-{dd} "+pl.second,millisecond:pl.none},ml=["year","month","day","hour","minute","second","millisecond"],yl=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function bl(e,t){return"0000".substr(0,t-(e+="").length)+e}function _l(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function xl(e){return e===_l(e)}function wl(time,template,e,t){var n=ur(time),r=n[Ol(e)](),o=n[Cl(e)]()+1,q=Math.floor((o-1)/3)+1,l=n[Tl(e)](),c=n["get"+(e?"UTC":"")+"Day"](),h=n[El(e)](),f=(h-1)%12+1,d=n[Al(e)](),s=n[Ml(e)](),v=n[Il(e)](),m=(t instanceof Ys?t:al(t||rl)||nl.EN).getModel("time"),y=m.get("month"),_=m.get("monthAbbr"),x=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(template||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,r%100+"").replace(/{Q}/g,q+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,bl(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,bl(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[c]).replace(/{ee}/g,w[c]).replace(/{e}/g,c+"").replace(/{HH}/g,bl(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,bl(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,bl(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,bl(s,2)).replace(/{s}/g,s+"").replace(/{SSS}/g,bl(v,3)).replace(/{S}/g,v+"")}function Sl(e,t){var n=ur(e),r=n[Cl(t)]()+1,o=n[Tl(t)](),l=n[El(t)](),c=n[Al(t)](),s=n[Ml(t)](),h=0===n[Il(t)](),f=h&&0===s,d=f&&0===c,v=d&&0===l,m=v&&1===o;return m&&1===r?"year":m?"month":v?"day":d?"hour":f?"minute":h?"second":"millisecond"}function kl(e,t,n){var r=h.z(e)?ur(e):e;switch(t=t||Sl(e,n)){case"year":return r[Ol(n)]();case"half-year":return r[Cl(n)]()>=6?1:0;case"quarter":return Math.floor((r[Cl(n)]()+1)/4);case"month":return r[Cl(n)]();case"day":return r[Tl(n)]();case"half-day":return r[El(n)]()/24;case"hour":return r[El(n)]();case"minute":return r[Al(n)]();case"second":return r[Ml(n)]();case"millisecond":return r[Il(n)]()}}function Ol(e){return e?"getUTCFullYear":"getFullYear"}function Cl(e){return e?"getUTCMonth":"getMonth"}function Tl(e){return e?"getUTCDate":"getDate"}function El(e){return e?"getUTCHours":"getHours"}function Al(e){return e?"getUTCMinutes":"getMinutes"}function Ml(e){return e?"getUTCSeconds":"getSeconds"}function Il(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Dl(e){return e?"setUTCFullYear":"setFullYear"}function Pl(e){return e?"setUTCMonth":"setMonth"}function Nl(e){return e?"setUTCDate":"setDate"}function Ll(e){return e?"setUTCHours":"setHours"}function jl(e){return e?"setUTCMinutes":"setMinutes"}function Rl(e){return e?"setUTCSeconds":"setSeconds"}function Fl(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Bl(e){if(!vr(e))return h.C(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function zl(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var $l=h.M;function Vl(e,t,n){function r(e){return e&&h.T(e)?e:"-"}function o(e){return!(null==e||isNaN(e)||!isFinite(e))}var l="time"===t,c=e instanceof Date;if(l||c){var f=l?ur(e):e;if(!isNaN(+f))return wl(f,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(c)return"-"}if("ordinal"===t)return h.D(e)?r(e):h.z(e)&&o(e)?e+"":"-";var d=gr(e);return o(d)?Bl(d):h.D(e)?r(e):"boolean"==typeof e?e+"":"-"}var Hl=["a","b","c","d","e","f","g"],ql=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Wl(e,t,n){h.t(t)||(t=[t]);var r=t.length;if(!r)return"";for(var o=t[0].$vars||[],i=0;i<o.length;i++){var l=Hl[i];e=e.replace(ql(l),ql(l,0))}for(var c=0;c<r;c++)for(var f=0;f<o.length;f++){var d=t[c][o[f]];e=e.replace(ql(Hl[f],c),n?H(d):d)}return e}function Ul(e,t){return t=t||"transparent",h.C(e)?e:h.A(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Gl(link,e){if("_blank"===e||"blank"===e){var t=window.open();t.opener=null,t.location.href=link}else window.open(link,e)}var Yl=h.k,Kl=["left","right","top","bottom","width","height"],Xl=[["width","left","right"],["height","top","bottom"]];function Zl(e,t,n,r,o){var l=0,c=0;null==r&&(r=1/0),null==o&&(o=1/0);var h=0;t.eachChild((function(f,d){var v,m,rect=f.getBoundingRect(),y=t.childAt(d+1),_=y&&y.getBoundingRect();if("horizontal"===e){var x=rect.width+(_?-_.x+rect.x:0);(v=l+x)>r||f.newline?(l=0,v=x,c+=h+n,h=rect.height):h=Math.max(h,rect.height)}else{var w=rect.height+(_?-_.y+rect.y:0);(m=c+w)>o||f.newline?(l+=h+n,c=0,m=w,h=rect.width):h=Math.max(h,rect.width)}f.newline||(f.x=l,f.y=c,f.markRedraw(),"horizontal"===e?l=v+n:c=m+n)}))}var Jl=Zl;h.h(Zl,"vertical"),h.h(Zl,"horizontal");function Ql(e,t,n){n=$l(n||0);var r=t.width,o=t.height,l=Zn(e.left,r),c=Zn(e.top,o),h=Zn(e.right,r),f=Zn(e.bottom,o),d=Zn(e.width,r),v=Zn(e.height,o),m=n[2]+n[0],y=n[1]+n[3],_=e.aspect;switch(isNaN(d)&&(d=r-h-y-l),isNaN(v)&&(v=o-f-m-c),null!=_&&(isNaN(d)&&isNaN(v)&&(_>r/o?d=.8*r:v=.8*o),isNaN(d)&&(d=_*v),isNaN(v)&&(v=d/_)),isNaN(l)&&(l=r-h-d-y),isNaN(c)&&(c=o-f-v-m),e.left||e.right){case"center":l=r/2-d/2-n[3];break;case"right":l=r-d-y}switch(e.top||e.bottom){case"middle":case"center":c=o/2-v/2-n[0];break;case"bottom":c=o-v-m}l=l||0,c=c||0,isNaN(d)&&(d=r-y-l-(h||0)),isNaN(v)&&(v=o-m-c-(f||0));var rect=new _e(l+n[3],c+n[0],d,v);return rect.margin=n,rect}function eu(e,t,n,r,o,l){var rect,c=!o||!o.hv||o.hv[0],f=!o||!o.hv||o.hv[1],d=o&&o.boundingMode||"all";if((l=l||e).x=e.x,l.y=e.y,!c&&!f)return!1;if("raw"===d)rect="group"===e.type?new _e(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(rect=e.getBoundingRect(),e.needLocalTransform()){var v=e.getLocalTransform();(rect=rect.clone()).applyTransform(v)}var m=Ql(h.i({width:rect.width,height:rect.height},t),n,r),y=c?m.x-rect.x:0,_=f?m.y-rect.y:0;return"raw"===d?(l.x=y,l.y=_):(l.x+=y,l.y+=_),l===e&&e.markRedraw(),!0}function tu(ins){var e=ins.layoutMode||ins.constructor.layoutMode;return h.A(e)?e:e?{type:e}:null}function nu(e,t,n){var r=n&&n.ignoreSize;!h.t(r)&&(r=[r,r]);var o=c(Xl[0],0),l=c(Xl[1],1);function c(n,o){var l={},c=0,h={},v=0;if(Yl(n,(function(t){h[t]=e[t]})),Yl(n,(function(e){f(t,e)&&(l[e]=h[e]=t[e]),d(l,e)&&c++,d(h,e)&&v++})),r[o])return d(t,n[1])?h[n[2]]=null:d(t,n[2])&&(h[n[1]]=null),h;if(2!==v&&c){if(c>=2)return l;for(var i=0;i<n.length;i++){var m=n[i];if(!f(l,m)&&f(e,m)){l[m]=e[m];break}}return l}return h}function f(e,t){return e.hasOwnProperty(t)}function d(e,t){return null!=e[t]&&"auto"!==e[t]}function v(e,t,source){Yl(e,(function(e){t[e]=source[e]}))}v(Xl[0],e,o),v(Xl[1],e,l)}function ru(source){return iu({},source)}function iu(e,source){return source&&e&&Yl(Kl,(function(t){source.hasOwnProperty(t)&&(e[t]=source[t])})),e}var ou=jr(),au=function(e){function t(option,t,n){var r=e.call(this,option,t,n)||this;return r.uid=Xs("ec_cpt_model"),r}var n;return l(t,e),t.prototype.init=function(option,e,t){this.mergeDefaultAndTheme(option,t)},t.prototype.mergeDefaultAndTheme=function(option,e){var t=tu(this),n=t?ru(option):{},r=e.getTheme();h.I(option,r.get(this.mainType)),h.I(option,this.getDefaultOption()),t&&nu(option,n,t)},t.prototype.mergeOption=function(option,e){h.I(this.option,option,!0);var t=tu(this);t&&nu(this.option,option,t)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[Gr])}(e))return e.defaultOption;var t=ou(this);if(!t.defaultOption){for(var n=[],r=e;r;){var o=r.prototype.defaultOption;o&&n.push(o),r=r.superClass}for(var l={},i=n.length-1;i>=0;i--)l=h.I(l,n[i],!0);t.defaultOption=l}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return Vr(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(Ys);Xr(au,Ys),ei(au),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Yr(e);t[r.main]=n},e.determineSubType=function(n,option){var r=option.type;if(!r){var o=Yr(n).main;e.hasSubTypes(n)&&t[o]&&(r=t[o](option))}return r}}(au),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,o,l){if(e.length){var c=function(e){var r={},o=[];return h.k(e,(function(l){var c=n(r,l),f=function(e,t){var n=[];return h.k(e,(function(e){h.r(t,e)>=0&&n.push(e)})),n}(c.originalDeps=t(l),e);c.entryCount=f.length,0===c.entryCount&&o.push(l),h.k(f,(function(e){h.r(c.predecessor,e)<0&&c.predecessor.push(e);var t=n(r,e);h.r(t.successor,e)<0&&t.successor.push(l)}))})),{graph:r,noEntryList:o}}(r),f=c.graph,d=c.noEntryList,v={};for(h.k(e,(function(e){v[e]=!0}));d.length;){var m=d.pop(),y=f[m],_=!!v[m];_&&(o.call(l,m,y.originalDeps.slice()),delete v[m]),h.k(y.successor,_?w:x)}h.k(v,(function(){throw new Error("")}))}function x(e){f[e].entryCount--,0===f[e].entryCount&&d.push(e)}function w(e){v[e]=!0,x(e)}}}(au,(function(e){var t=[];h.k(au.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=h.H(t,(function(e){return Yr(e).main})),"dataset"!==e&&h.r(t,"dataset")<=0&&t.unshift("dataset");return t}));var su=au,lu="";"undefined"!=typeof navigator&&(lu=navigator.platform||"");var uu="rgba(0, 0, 0, 0.2)",cu={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:uu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:uu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:uu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:uu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:uu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:uu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:lu.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},hu=Object(h.f)(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),fu="original",du="arrayRows",pu="objectRows",gu="keyedColumns",vu="typedArray",mu="unknown",yu="column",bu="row",_u=1,xu=2,wu=3,Su=jr();function ku(e,t,source){var n={},r=Cu(t);if(!r||!e)return n;var o,l,c=[],f=[],d=t.ecModel,v=Su(d).datasetMap,m=r.uid+"_"+source.seriesLayoutBy;e=e.slice(),Object(h.k)(e,(function(t,r){var c=Object(h.A)(t)?t:e[r]={name:t};"ordinal"===c.type&&null==o&&(o=r,l=x(c)),n[c.name]=[]}));var y=v.get(m)||v.set(m,{categoryWayDim:l,valueWayDim:0});function _(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function x(e){var t=e.dimsDef;return t?t.length:1}return Object(h.k)(e,(function(e,t){var r=e.name,l=x(e);if(null==o){var h=y.valueWayDim;_(n[r],h,l),_(f,h,l),y.valueWayDim+=l}else if(o===t)_(n[r],0,l),_(c,0,l);else{h=y.categoryWayDim;_(n[r],h,l),_(f,h,l),y.categoryWayDim+=l}})),c.length&&(n.itemName=c),f.length&&(n.seriesName=f),n}function Ou(e,source,t){var n={};if(!Cu(e))return n;var r,o=source.sourceFormat,l=source.dimensionsDefine;o!==pu&&o!==gu||Object(h.k)(l,(function(e,t){"name"===(Object(h.A)(e)?e.name:e)&&(r=t)}));var c=function(){for(var e={},n={},c=[],i=0,h=Math.min(5,t);i<h;i++){var f=Eu(source.data,o,source.seriesLayoutBy,l,source.startIndex,i);c.push(f);var d=f===wu;if(d&&null==e.v&&i!==r&&(e.v=i),(null==e.n||e.n===e.v||!d&&c[e.n]===wu)&&(e.n=i),v(e)&&c[e.n]!==wu)return e;d||(f===xu&&null==n.v&&i!==r&&(n.v=i),null!=n.n&&n.n!==n.v||(n.n=i))}function v(e){return null!=e.v&&null!=e.n}return v(e)?e:v(n)?n:null}();if(c){n.value=[c.v];var f=null!=r?r:c.n;n.itemName=[f],n.seriesName=[f]}return n}function Cu(e){if(!e.get("data",!0))return Vr(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},zr).models[0]}function Tu(source,e){return Eu(source.data,source.sourceFormat,source.seriesLayoutBy,source.dimensionsDefine,source.startIndex,e)}function Eu(data,e,t,n,r,o){var l,c,f;if(Object(h.E)(data))return wu;if(n){var d=n[o];Object(h.A)(d)?(c=d.name,f=d.type):Object(h.C)(d)&&(c=d)}if(null!=f)return"ordinal"===f?_u:wu;if(e===du){var v=data;if(t===bu){for(var m=v[o],i=0;i<(m||[]).length&&i<5;i++)if(null!=(l=k(m[r+i])))return l}else for(i=0;i<v.length&&i<5;i++){var y=v[r+i];if(y&&null!=(l=k(y[o])))return l}}else if(e===pu){var _=data;if(!c)return wu;for(i=0;i<_.length&&i<5;i++){if((w=_[i])&&null!=(l=k(w[c])))return l}}else if(e===gu){if(!c)return wu;if(!(m=data[c])||Object(h.E)(m))return wu;for(i=0;i<m.length&&i<5;i++)if(null!=(l=k(m[i])))return l}else if(e===fu){var x=data;for(i=0;i<x.length&&i<5;i++){var w,S=Tr(w=x[i]);if(!Object(h.t)(S))return wu;if(null!=(l=k(S[o])))return l}}function k(e){var t=Object(h.C)(e);return null!=e&&isFinite(e)&&""!==e?t?xu:wu:t&&"-"!==e?_u:void 0}return wu}var Au=Object(h.f)();var Mu=jr(),Iu=jr(),Du=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=kr(this.get("color",!0)),o=this.get("colorLayer",!0);return Nu(this,Mu,r,o,e,t,n)},e.prototype.clearColorPalette=function(){var e,t;(t=Mu)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();function Pu(e,t,n,r){var o=kr(e.get(["aria","decal","decals"]));return Nu(e,Iu,o,null,t,n,r)}function Nu(e,t,n,r,o,l,c){var h=t(l=l||e),f=h.paletteIdx||0,d=h.paletteNameMap=h.paletteNameMap||{};if(d.hasOwnProperty(o))return d[o];var v=null!=c&&r?function(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}(r,c):n;if((v=v||n)&&v.length){var m=v[f];return o&&(d[o]=m),h.paletteIdx=(f+1)%v.length,m}}var Lu,ju,Ru;"undefined"!=typeof console&&console.warn&&console.log;function Fu(e){0}function Bu(e){throw new Error(e)}var zu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.init=function(option,e,t,n,r,o){n=n||{},this.option=null,this._theme=new Ys(n),this._locale=new Ys(r),this._optionManager=o},t.prototype.setOption=function(option,e,t){var n=Hu(e);this._optionManager.setOption(option,t,n),this._resetOption(null,n)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Hu(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var o=r.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(o,t)):Ru(this,o),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var l=r.getTimelineOption(this);l&&(n=!0,this._mergeOption(l,t))}if(!e||"recreate"===e||"media"===e){var c=r.getMediaOption(this);c.length&&Object(h.k)(c,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(option){this._mergeOption(option,null)},t.prototype._mergeOption=function(e,t){var option=this.option,n=this._componentsMap,r=this._componentsCount,o=[],l=Object(h.f)(),c=t&&t.replaceMergeMainTypeMap;Su(this).datasetMap=Object(h.f)(),Object(h.k)(e,(function(e,t){null!=e&&(su.hasClass(t)?t&&(o.push(t),l.set(t,!0)):option[t]=null==option[t]?Object(h.d)(e):Object(h.I)(option[t],e,!0))})),c&&c.each((function(e,t){su.hasClass(t)&&!l.get(t)&&(o.push(t),l.set(t,!0))})),su.topologicalTravel(o,su.getAllClassMainTypes(),(function(t){var o=function(e,t,n){var r=Au.get(t);if(!r)return n;var o=r(e);return o?n.concat(o):n}(this,t,kr(e[t])),l=n.get(t),f=l?c&&c.get(t)?"replaceMerge":"normalMerge":"replaceAll",d=Ar(l,o,f);(function(e,t,n){Object(h.k)(e,(function(e){var r=e.newOption;Object(h.A)(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))}))})(d,t,su),option[t]=null,n.set(t,null),r.set(t,0);var v,m=[],y=[],_=0;Object(h.k)(d,(function(e,n){var r=e.existing,o=e.newOption;if(o){var l="series"===t,c=su.getClass(t,e.keyInfo.subType,!l);if(!c)return;if("tooltip"===t){if(v)return void 0;v=!0}if(r&&r.constructor===c)r.name=e.keyInfo.name,r.mergeOption(o,this),r.optionUpdated(o,!1);else{var f=Object(h.m)({componentIndex:n},e.keyInfo);r=new c(o,this,this,f),Object(h.m)(r,f),e.brandNew&&(r.__requireNewView=!0),r.init(o,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(m.push(r.option),y.push(r),_++):(m.push(void 0),y.push(void 0))}),this),option[t]=m,n.set(t,y),r.set(t,_),"series"===t&&Lu(this)}),this),this._seriesIndices||Lu(this)},t.prototype.getOption=function(){var option=Object(h.d)(this.option);return Object(h.k)(option,(function(e,t){if(su.hasClass(t)){for(var n=kr(e),r=n.length,o=!1,i=r-1;i>=0;i--)n[i]&&!Nr(n[i])?o=!0:(n[i]=null,!o&&r--);n.length=r,option[t]=n}})),delete option["\0_ec_inner"],option},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,o=e.id,l=e.name,c=this._componentsMap.get(t);return c&&c.length?(null!=r?(n=[],Object(h.k)(kr(r),(function(e){c[e]&&n.push(c[e])}))):n=null!=o?$u("id",o,c):null!=l?$u("name",l,c):Object(h.n)(c,(function(e){return!!e})),Vu(n,e)):[]},t.prototype.findComponents=function(e){var q,t,n,r,o,l=e.query,c=e.mainType,f=(t=c+"Index",n=c+"Id",r=c+"Name",!(q=l)||null==q[t]&&null==q[n]&&null==q[r]?null:{mainType:c,index:q[t],id:q[n],name:q[r]}),d=f?this.queryComponents(f):Object(h.n)(this._componentsMap.get(c),(function(e){return!!e}));return o=Vu(d,e),e.filter?Object(h.n)(o,e.filter):o},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(Object(h.w)(e)){var o=t,l=e;r.each((function(e,t){for(var i=0;e&&i<e.length;i++){var n=e[i];n&&l.call(o,t,n,n.componentIndex)}}))}else for(var c=Object(h.C)(e)?r.get(e):Object(h.A)(e)?this.findComponents(e):null,i=0;c&&i<c.length;i++){var f=c[i];f&&t.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Dr(e,null);return Object(h.n)(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Object(h.n)(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return Object(h.n)(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){ju(this),Object(h.k)(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},t.prototype.eachRawSeries=function(e,t){Object(h.k)(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){ju(this),Object(h.k)(this._seriesIndices,(function(r){var o=this._componentsMap.get("series")[r];o.subType===e&&t.call(n,o,r)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return Object(h.k)(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return ju(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){ju(this);var n=[];Object(h.k)(this._seriesIndices,(function(r){var o=this._componentsMap.get("series")[r];e.call(t,o,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(h.f)(n)},t.prototype.restoreData=function(e){Lu(this);var t=this._componentsMap,n=[];t.each((function(e,t){su.hasClass(t)&&n.push(t)})),su.topologicalTravel(n,su.getAllClassMainTypes(),(function(n){Object(h.k)(t.get(n),(function(component){!component||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,o=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=o&&e.name!==o}}(component,e)||component.restoreData()}))}))},t.internalField=(Lu=function(e){var t=e._seriesIndices=[];Object(h.k)(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=Object(h.f)(t)},ju=function(e){},void(Ru=function(e,t){e.option={},e.option["\0_ec_inner"]=1,e._componentsMap=Object(h.f)({series:[]}),e._componentsCount=Object(h.f)();var option,n,r,o=t.aria;Object(h.A)(o)&&null==o.enabled&&(o.enabled=!0),option=t,n=e._theme.option,r=option.color&&!option.colorLayer,Object(h.k)(n,(function(e,t){"colorLayer"===t&&r||su.hasClass(t)||("object"==typeof e?option[t]=option[t]?Object(h.I)(option[t],e,!1):Object(h.d)(e):null==option[t]&&(option[t]=e))})),Object(h.I)(t,cu,!1),e._mergeOption(t,null)})),t}(Ys);function $u(e,t,n){if(Object(h.t)(t)){var r=Object(h.f)();return Object(h.k)(t,(function(e){null!=e&&(null!=Dr(e,null)&&r.set(e,!0))})),Object(h.n)(n,(function(t){return t&&r.get(t[e])}))}var o=Dr(t,null);return Object(h.n)(n,(function(t){return t&&null!=o&&t[e]===o}))}function Vu(e,t){return t.hasOwnProperty("subType")?Object(h.n)(e,(function(e){return e&&e.subType===t.subType})):e}function Hu(e){var t=Object(h.f)();return e&&Object(h.k)(kr(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}Object(h.K)(zu,Du);var qu=zu,Wu=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Uu=function(e){h.k(Wu,(function(t){this[t]=h.c(e[t],e)}),this)},Gu={},Yu=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];h.k(Gu,(function(r,o){var l=r.create(e,t);n=n.concat(l||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){h.k(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){Gu[e]=t},e.get=function(e){return Gu[e]},e}(),Ku=Yu,Xu=/^(min|max)?(.+)$/;function Zu(e,t,n){var r={width:t,height:n,aspectratio:t/n},o=!0;return Object(h.k)(e,(function(e,t){var n=t.match(Xu);if(n&&n[1]&&n[2]){var l=n[1],c=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[c],e,l)||(o=!1)}})),o}var Ju=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Object(h.k)(kr(e.series),(function(e){e&&e.data&&Object(h.E)(e.data)&&Object(h.R)(e.data)})),Object(h.k)(kr(e.dataset),(function(e){e&&e.source&&Object(h.E)(e.source)&&Object(h.R)(e.source)}))),e=Object(h.d)(e);var r=this._optionBackup,o=function(e,t,n){var r,o,l=[],c=e.baseOption,f=e.timeline,d=e.options,v=e.media,m=!!e.media,y=!!(d||f||c&&c.timeline);c?(o=c).timeline||(o.timeline=f):((y||m)&&(e.options=e.media=null),o=e);m&&Object(h.t)(v)&&Object(h.k)(v,(function(e){e&&e.option&&(e.query?l.push(e):r||(r=e))}));function _(option){Object(h.k)(t,(function(e){e(option,n)}))}return _(o),Object(h.k)(d,(function(option){return _(option)})),Object(h.k)(l,(function(e){return _(e.option)})),{baseOption:o,timelineOptions:d||[],mediaDefault:r,mediaList:l}}(e,t,!r);this._newBaseOption=o.baseOption,r?(o.timelineOptions.length&&(r.timelineOptions=o.timelineOptions),o.mediaList.length&&(r.mediaList=o.mediaList),o.mediaDefault&&(r.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Object(h.d)(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var option,t=this._timelineOptions;if(t.length){var n=e.getComponent("timeline");n&&(option=Object(h.d)(t[n.getCurrentIndex()]))}return option},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),o=this._api.getHeight(),l=this._mediaList,c=this._mediaDefault,f=[],d=[];if(!l.length&&!c)return d;for(var i=0,v=l.length;i<v;i++)Zu(l[i].query,r,o)&&f.push(i);return!f.length&&c&&(f=[-1]),f.length&&(t=f,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(d=Object(h.H)(f,(function(e){return Object(h.d)(-1===e?c.option:l[e].option)}))),this._currentMediaIndices=f,d},e}(),Qu=h.k,ec=h.A,tc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function nc(e){var t=e&&e.itemStyle;if(t)for(var i=0,n=tc.length;i<n;i++){var r=tc[i],o=t.normal,l=t.emphasis;o&&o[r]&&(e[r]=e[r]||{},e[r].normal?h.I(e[r].normal,o[r]):e[r].normal=o[r],o[r]=null),l&&l[r]&&(e[r]=e[r]||{},e[r].emphasis?h.I(e[r].emphasis,l[r]):e[r].emphasis=l[r],l[r]=null)}}function rc(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,o=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,h.i(e[t],r)):e[t]=r),o&&(e.emphasis=e.emphasis||{},e.emphasis[t]=o,o.focus&&(e.emphasis.focus=o.focus),o.blurScope&&(e.emphasis.blurScope=o.blurScope))}}function ic(e){rc(e,"itemStyle"),rc(e,"lineStyle"),rc(e,"areaStyle"),rc(e,"label"),rc(e,"labelLine"),rc(e,"upperLabel"),rc(e,"edgeLabel")}function oc(e,t){var n=ec(e)&&e[t],r=ec(n)&&n.textStyle;if(r){0;for(var i=0,o=Cr.length;i<o;i++){var l=Cr[i];r.hasOwnProperty(l)&&(n[l]=r[l])}}}function ac(e){e&&(ic(e),oc(e,"label"),e.emphasis&&oc(e.emphasis,"label"))}function sc(e){return h.t(e)?e:e?[e]:[]}function lc(e){return(h.t(e)?e[0]:e)||{}}function uc(option,e){Qu(sc(option.series),(function(e){ec(e)&&function(e){if(ec(e)){nc(e),ic(e),oc(e,"label"),oc(e,"upperLabel"),oc(e,"edgeLabel"),e.emphasis&&(oc(e.emphasis,"label"),oc(e.emphasis,"upperLabel"),oc(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(nc(t),ac(t));var n=e.markLine;n&&(nc(n),ac(n));var r=e.markArea;r&&ac(r);var data=e.data;if("graph"===e.type){data=data||e.nodes;var o=e.links||e.edges;if(o&&!h.E(o))for(var i=0;i<o.length;i++)ac(o[i]);h.k(e.categories,(function(e){ic(e)}))}if(data&&!h.E(data))for(i=0;i<data.length;i++)ac(data[i]);if((t=e.markPoint)&&t.data){var l=t.data;for(i=0;i<l.length;i++)ac(l[i])}if((n=e.markLine)&&n.data){var c=n.data;for(i=0;i<c.length;i++)h.t(c[i])?(ac(c[i][0]),ac(c[i][1])):ac(c[i])}"gauge"===e.type?(oc(e,"axisLabel"),oc(e,"title"),oc(e,"detail")):"treemap"===e.type?(rc(e.breadcrumb,"itemStyle"),h.k(e.levels,(function(e){ic(e)}))):"tree"===e.type&&ic(e.leaves)}}(e)}));var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Qu(t,(function(e){Qu(sc(option[e]),(function(e){e&&(oc(e,"axisLabel"),oc(e.axisPointer,"label"))}))})),Qu(sc(option.parallel),(function(e){var t=e&&e.parallelAxisDefault;oc(t,"axisLabel"),oc(t&&t.axisPointer,"label")})),Qu(sc(option.calendar),(function(e){rc(e,"itemStyle"),oc(e,"dayLabel"),oc(e,"monthLabel"),oc(e,"yearLabel")})),Qu(sc(option.radar),(function(e){oc(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),Qu(sc(option.geo),(function(e){ec(e)&&(ac(e),Qu(sc(e.regions),(function(e){ac(e)})))})),Qu(sc(option.timeline),(function(e){ac(e),rc(e,"label"),rc(e,"itemStyle"),rc(e,"controlStyle",!0);var data=e.data;h.t(data)&&h.k(data,(function(e){h.A(e)&&(rc(e,"label"),rc(e,"itemStyle"))}))})),Qu(sc(option.toolbox),(function(e){rc(e,"iconStyle"),Qu(e.feature,(function(e){rc(e,"iconStyle")}))})),oc(lc(option.axisPointer),"label"),oc(lc(option.tooltip).axisPointer,"label")}function cc(option){option&&Object(h.k)(hc,(function(e){e[0]in option&&!(e[1]in option)&&(option[e[1]]=option[e[0]])}))}var hc=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],fc=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],dc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function pc(option){var e=option&&option.itemStyle;if(e)for(var i=0;i<dc.length;i++){var t=dc[i][1],n=dc[i][0];null!=e[t]&&(e[n]=e[t])}}function gc(option){option&&"edge"===option.alignTo&&null!=option.margin&&null==option.edgeDistance&&(option.edgeDistance=option.margin)}function vc(option){option&&option.downplay&&!option.blur&&(option.blur=option.downplay)}function mc(data,e){if(data)for(var i=0;i<data.length;i++)e(data[i]),data[i]&&mc(data[i].children,e)}function yc(option,e){uc(option,e),option.series=kr(option.series),Object(h.k)(option.series,(function(e){if(Object(h.A)(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),gc(e.label),(data=e.data)&&!Object(h.E)(data))for(var i=0;i<data.length;i++)gc(data[i]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var n=function(e,path){for(var t=path.split(","),n=e,i=0;i<t.length&&null!=(n=n&&n[t[i]]);i++);return n}(e,"pointer.color");null!=n&&function(e,path,t,n){for(var r,o=path.split(","),l=e,i=0;i<o.length-1;i++)null==l[r=o[i]]&&(l[r]={}),l=l[r];(n||null==l[o[i]])&&(l[o[i]]=t)}(e,"itemStyle.color",n)}else if("bar"===t){var data;if(pc(e),pc(e.backgroundStyle),pc(e.emphasis),(data=e.data)&&!Object(h.E)(data))for(i=0;i<data.length;i++)"object"==typeof data[i]&&(pc(data[i]),pc(data[i]&&data[i].emphasis))}else if("sunburst"===t){var r=e.highlightPolicy;r&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=r)),vc(e),mc(e.data,vc)}else"graph"===t||"sankey"===t?function(option){option&&null!=option.focusNodeAdjacency&&(option.emphasis=option.emphasis||{},null==option.emphasis.focus&&(option.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Object(h.i)(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),cc(e)}})),option.dataRange&&(option.visualMap=option.dataRange),Object(h.k)(fc,(function(e){var t=option[e];t&&(Object(h.t)(t)||(t=[t]),Object(h.k)(t,(function(option){cc(option)})))}))}function bc(e){Object(h.k)(e,(function(t,n){var r=[],o=[NaN,NaN],l=[t.stackResultDimension,t.stackedOverDimension],c=t.data,h=t.isStackedByIndex,f=t.seriesModel.get("stackStrategy")||"samesign";c.modify(l,(function(l,d,v){var m,y,_=c.get(t.stackedDimension,v);if(isNaN(_))return o;h?y=c.getRawIndex(v):m=c.get(t.stackedByDimension,v);for(var x=NaN,w=n-1;w>=0;w--){var S=e[w];if(h||(y=S.data.rawIndexOf(S.stackedByDimension,m)),y>=0){var k=S.data.getByRawIndex(S.stackResultDimension,y);if("all"===f||"positive"===f&&k>0||"negative"===f&&k<0||"samesign"===f&&_>=0&&k>0||"samesign"===f&&_<=0&&k<0){_=ir(_,k),x=k;break}}}return r[0]=_,r[1]=x,r}))}))}var _c,xc,wc,Sc,kc,Oc=function(e){this.data=e.data||(e.sourceFormat===gu?{}:[]),this.sourceFormat=e.sourceFormat||mu,this.seriesLayoutBy=e.seriesLayoutBy||yu,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;i<t.length;i++){var n=t[i];null==n.type&&Tu(this,i)===_u&&(n.type="ordinal")}};function Cc(e){return e instanceof Oc}function Tc(e,t,n){n=n||Ac(e);var r=t.seriesLayoutBy,o=function(data,e,t,n,r){var o,l;if(!data)return{dimensionsDefine:Mc(r),startIndex:l,dimensionsDetectedCount:o};if(e===du){var c=data;"auto"===n||null==n?Ic((function(e){null!=e&&"-"!==e&&(Object(h.C)(e)?null==l&&(l=1):l=0)}),t,c,10):l=Object(h.z)(n)?n:n?1:0,r||1!==l||(r=[],Ic((function(e,t){r[t]=null!=e?e+"":""}),t,c,1/0)),o=r?r.length:t===bu?c.length:c[0]?c[0].length:null}else if(e===pu)r||(r=function(data){var e,t=0;for(;t<data.length&&!(e=data[t++]););if(e){var n=[];return Object(h.k)(e,(function(e,t){n.push(t)})),n}}(data));else if(e===gu)r||(r=[],Object(h.k)(data,(function(e,t){r.push(t)})));else if(e===fu){var f=Tr(data[0]);o=Object(h.t)(f)&&f.length||1}return{startIndex:l,dimensionsDefine:Mc(r),dimensionsDetectedCount:o}}(e,n,r,t.sourceHeader,t.dimensions);return new Oc({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:Object(h.d)(t)})}function Ec(data){return new Oc({data:data,sourceFormat:Object(h.E)(data)?vu:fu})}function Ac(data){var e=mu;if(Object(h.E)(data))e=vu;else if(Object(h.t)(data)){0===data.length&&(e=du);for(var i=0,t=data.length;i<t;i++){var n=data[i];if(null!=n){if(Object(h.t)(n)){e=du;break}if(Object(h.A)(n)){e=pu;break}}}}else if(Object(h.A)(data))for(var r in data)if(Object(h.q)(data,r)&&Object(h.u)(data[r])){e=gu;break}return e}function Mc(e){if(e){var t=Object(h.f)();return Object(h.H)(e,(function(e,n){var r={name:(e=Object(h.A)(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var o=t.get(r.name);return o?r.name+="-"+o.count++:t.set(r.name,{count:1}),r}))}}function Ic(e,t,data,n){if(t===bu)for(var i=0;i<data.length&&i<n;i++)e(data[i]?data[i][0]:null,i);else{var r=data[0]||[];for(i=0;i<r.length&&i<n;i++)e(r[i],i)}}function Dc(source){var e=source.sourceFormat;return e===pu||e===gu}var Pc=function(){function e(e,t){var source=Cc(e)?e:Ec(e);this._source=source;var data=this._data=source.data;source.sourceFormat===vu&&(this._offset=0,this._dimSize=t,this._data=data),kc(this,data,source)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;kc=function(e,data,source){var o=source.sourceFormat,l=source.seriesLayoutBy,c=source.startIndex,f=source.dimensionsDefine,d=Sc[Hc(o,l)];if(Object(h.m)(e,d),o===vu)e.getItem=t,e.count=r,e.fillStorage=n;else{var v=jc(o,l);e.getItem=Object(h.c)(v,null,data,c,f);var m=Bc(o,l);e.count=Object(h.c)(m,null,data,c,f)}};var t=function(e,t){e-=this._offset,t=t||[];for(var data=this._data,n=this._dimSize,r=n*e,i=0;i<n;i++)t[i]=data[r+i];return t},n=function(e,t,n,r){for(var data=this._data,o=this._dimSize,l=0;l<o;l++){for(var c=r[l],h=null==c[0]?1/0:c[0],f=null==c[1]?-1/0:c[1],d=t-e,v=n[l],i=0;i<d;i++){var m=data[i*o+l];v[e+i]=m,m<h&&(h=m),m>f&&(f=m)}c[0]=h,c[1]=f}},r=function(){return this._data?this._data.length/this._dimSize:0};function o(e){for(var i=0;i<e.length;i++)this._data.push(e[i])}(e={}).arrayRows_column={pure:!0,appendData:o},e.arrayRows_row={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e.objectRows={pure:!0,appendData:o},e.keyedColumns={pure:!0,appendData:function(e){var data=this._data;Object(h.k)(e,(function(e,t){for(var n=data[t]||(data[t]=[]),i=0;i<(e||[]).length;i++)n.push(e[i])}))}},e.original={appendData:o},e.typedArray={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Sc=e}(),e}(),Nc=function(e,t,n,r){return e[r]},Lc=((_c={}).arrayRows_column=function(e,t,n,r){return e[r+t]},_c.arrayRows_row=function(e,t,n,r,o){r+=t;for(var l=o||[],data=e,i=0;i<data.length;i++){var c=data[i];l[i]=c?c[r]:null}return l},_c.objectRows=Nc,_c.keyedColumns=function(e,t,n,r,o){for(var l=o||[],i=0;i<n.length;i++){0;var col=e[n[i].name];l[i]=col?col[r]:null}return l},_c.original=Nc,_c);function jc(e,t){return Lc[Hc(e,t)]}var Rc=function(e,t,n){return e.length},Fc=((xc={}).arrayRows_column=function(e,t,n){return Math.max(0,e.length-t)},xc.arrayRows_row=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},xc.objectRows=Rc,xc.keyedColumns=function(e,t,n){var col=e[n[0].name];return col?col.length:0},xc.original=Rc,xc);function Bc(e,t){return Fc[Hc(e,t)]}var zc=function(e,t,n){return e[t]},$c=((wc={}).arrayRows=zc,wc.objectRows=function(e,t,n){return e[n]},wc.keyedColumns=zc,wc.original=function(e,t,n){var r=Tr(e);return r instanceof Array?r[t]:r},wc.typedArray=zc,wc);function Vc(e){return $c[e]}function Hc(e,t){return e===du?e+"_"+t:e}function qc(data,e,t){if(data){var n=data.getRawDataItem(e);if(null!=n){var r=data.getStore(),o=r.getSource().sourceFormat;if(null!=t){var l=data.getDimensionIndex(t),c=r.getDimensionProperty(l);return Vc(o)(n,l,c)}var h=n;return o===fu&&(h=Tr(n)),h}}}var Wc=/\{@(.+?)\}/g,Uc=function(){function e(){}return e.prototype.getDataParams=function(e,t){var data=this.getData(t),n=this.getRawValue(e,t),r=data.getRawIndex(e),o=data.getName(e),l=data.getRawDataItem(e),style=data.getItemVisual(e,"style"),c=style&&style[data.getItemVisual(e,"drawType")||"fill"],h=style&&style.stroke,f=this.mainType,d="series"===f,v=data.userOutput&&data.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:r,data:l,dataType:t,value:n,color:c,borderColor:h,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,o,l){t=t||"normal";var data=this.getData(n),c=this.getDataParams(e,n);(l&&(c.value=l.interpolatedValue),null!=r&&h.t(c.value)&&(c.value=c.value[r]),o)||(o=data.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return h.w(o)?(c.status=t,c.dimensionIndex=r,o(c)):h.C(o)?Wl(o,c).replace(Wc,(function(t,n){var r=n.length,o=n;"["===o.charAt(0)&&"]"===o.charAt(r-1)&&(o=+o.slice(1,r-1));var c=qc(data,e,o);if(l&&h.t(l.interpolatedValue)){var f=data.getDimensionIndex(o);f>=0&&(c=l.interpolatedValue[f])}return null!=c?c+"":""})):void 0},e.prototype.getRawValue=function(e,t){return qc(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Gc(e){var t,n;return h.A(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Yc(e){return new Kc(e)}var Kc=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var l,c=m(this._modBy),f=this._modDataCount||0,d=m(e&&e.modBy),v=e&&e.modDataCount||0;function m(e){return!(e>=1)&&(e=1),e}c===d&&f===v||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,l=this._doReset(r)),this._modBy=d,this._modDataCount=v;var y=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var _=this._dueIndex,x=Math.min(null!=y?this._dueIndex+y:1/0,this._dueEnd);if(!r&&(l||_<x)){var progress=this._progress;if(Object(h.t)(progress))for(var i=0;i<progress.length;i++)this._doProgress(progress[i],_,x,d,v);else this._doProgress(progress,_,x,d,v)}this._dueIndex=x;var w=null!=this._settedOutputEnd?this._settedOutputEnd:x;0,this._outputDueEnd=w}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(progress,e,t,n,r){Xc.reset(e,t,n,r),this._callingProgress=progress,this._callingProgress({start:e,end:t,count:t-e,next:Xc.next},this.context)},e.prototype._doReset=function(e){var progress,t;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((progress=this._reset(this.context))&&progress.progress&&(t=progress.forceFirstProgress,progress=progress.progress),Object(h.t)(progress)&&!progress.length&&(progress=null)),this._progress=progress,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),t},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),Xc=function(){var e,t,n,r,o,l={reset:function(s,f,d,v){t=s,e=f,n=d,r=v,o=Math.ceil(r/n),l.next=n>1&&r>0?h:c}};return l;function c(){return t<e?t++:null}function h(){var l=t%o*n+Math.ceil(t/o),c=t>=e?null:l<r?l:t;return t++,c}}();function Zc(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||Object(h.z)(e)||null==e||"-"===e||(e=+ur(e)),null==e||""===e?NaN:+e)}var Jc=Object(h.f)({number:function(e){return parseFloat(e)},time:function(e){return+ur(e)},trim:function(e){return Object(h.C)(e)?Object(h.T)(e):e}});function Qc(e){return Jc.get(e)}var eh={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},nh=function(){function e(e,t){if(!Object(h.z)(t)){0,Bu("")}this._opFn=eh[e],this._rvalFloat=gr(t)}return e.prototype.evaluate=function(e){return Object(h.z)(e)?this._opFn(e,this._rvalFloat):this._opFn(gr(e),this._rvalFloat)},e}(),rh=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Object(h.z)(e)?e:gr(e),r=Object(h.z)(t)?t:gr(t),o=isNaN(n),l=isNaN(r);if(o&&(n=this._incomparable),l&&(r=this._incomparable),o&&l){var c=Object(h.C)(e),f=Object(h.C)(t);c&&(n=f?e:0),f&&(r=c?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),ih=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=gr(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=gr(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function oh(e,t){return"eq"===e||"ne"===e?new ih("eq"===e,t):Object(h.q)(eh,e)?new nh(e,t):null}var ah=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Zc(e,t)},e}();function sh(e){if(!dh(e.sourceFormat)){0,Bu("")}return e.data}function lh(e){var t=e.sourceFormat,data=e.data;if(!dh(t)){0,Bu("")}if(t===du){for(var n=[],i=0,r=data.length;i<r;i++)n.push(data[i].slice());return n}if(t===pu){for(n=[],i=0,r=data.length;i<r;i++)n.push(Object(h.m)({},data[i]));return n}}function uh(e,t,n){if(null!=n)return Object(h.z)(n)||!isNaN(n)&&!Object(h.q)(t,n)?e[n]:Object(h.q)(t,n)?t[n]:void 0}function ch(e){return Object(h.d)(e)}var hh=Object(h.f)();function fh(e,t,n,r){t.length||Bu(""),Object(h.A)(e)||Bu("");var o=e.type,l=hh.get(o);l||Bu("");var c=Object(h.H)(t,(function(e){return function(e,t){var n=new ah,data=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex;e.seriesLayoutBy!==yu&&Bu("");var l=[],c={},f=e.dimensionsDefine;if(f)Object(h.k)(f,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};l.push(r),null!=n&&(Object(h.q)(c,n)&&Bu(""),c[n]=r)}));else for(var i=0;i<e.dimensionsDetectedCount;i++)l.push({index:i});var d=jc(r,yu);t.__isBuiltIn&&(n.getRawDataItem=function(e){return d(data,o,l,e)},n.getRawData=Object(h.c)(sh,null,e)),n.cloneRawData=Object(h.c)(lh,null,e);var v=Bc(r,yu);n.count=Object(h.c)(v,null,data,o,l);var m=Vc(r);n.retrieveValue=function(e,t){var n=d(data,o,l,e);return y(n,t)};var y=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=l[t];return n?m(e,t,n.name):void 0}};return n.getDimensionInfo=Object(h.c)(uh,null,l,c),n.cloneAllDimensionInfo=Object(h.c)(ch,null,l),n}(e,l)})),f=kr(l.transform({upstream:c[0],upstreamList:c,config:Object(h.d)(e.config)}));return Object(h.H)(f,(function(e,n){var r;Object(h.A)(e)||Bu(""),e.data||Bu(""),dh(Ac(e.data))||Bu("");var o=t[0];if(o&&0===n&&!e.dimensions){var l=o.startIndex;l&&(e.data=o.data.slice(0,l).concat(e.data)),r={seriesLayoutBy:yu,sourceHeader:l,dimensions:o.metaRawOption.dimensions}}else r={seriesLayoutBy:yu,sourceHeader:0,dimensions:e.dimensions};return Tc(e.data,r,null)}))}function dh(e){return e===du||e===pu}var ph,gh="undefined",vh=typeof Uint32Array===gh?Array:Uint32Array,mh=typeof Uint16Array===gh?Array:Uint16Array,yh=typeof Int32Array===gh?Array:Int32Array,bh=typeof Float64Array===gh?Array:Float64Array,_h={float:bh,int:yh,ordinal:Array,number:Array,time:bh};function xh(e){return e>65535?vh:mh}function wh(e,t,n,r,o){var l=_h[n||"float"];if(o){var c=e[t],h=c&&c.length;if(h!==r){for(var f=new l(r),d=0;d<h;d++)f[d]=c[d];e[t]=f}}else e[t]=new l(r)}var Sh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(h.f)()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var source=e.getSource(),r=this.defaultDimValueGetter=ph[source.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];Dc(source);this._dimensions=Object(h.H)(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,o=n.get(e);if(null!=o){if(r[o].type===t)return o}else o=r.length;return r[o]={type:t},n.set(e,o),this._chunks[o]=new _h[t||"float"](this._rawCount),this._rawExtent[o]=[1/0,-1/0],o},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],o=this._rawExtent,l=r.ordinalOffset||0,c=n.length;0===l&&(o[e]=[1/0,-1/0]);for(var h=o[e],i=l;i<c;i++){var f=n[i]=t.parseAndCollect(n[i]);isNaN(f)||(h[0]=Math.min(f,h[0]),h[1]=Math.max(f,h[1]))}r.ordinalMeta=t,r.ordinalOffset=c,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(data){var e=this._provider,t=this.count();e.appendData(data);var n=e.count();return e.persistent||(n+=t),t<n&&this._initDataFromProvider(t,n,!0),[t,n]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,o=r.length,l=this._rawExtent,c=this.count(),h=c+Math.max(e.length,t||0),i=0;i<o;i++){wh(n,i,(y=r[i]).type,h,!0)}for(var f=[],d=c;d<h;d++)for(var v=d-c,m=0;m<o;m++){var y=r[m],_=ph.arrayRows.call(this,e[v]||f,y.property,v,m);n[m][d]=_;var x=l[m];_<x[0]&&(x[0]=_),_>x[1]&&(x[1]=_)}return this._rawCount=this._count=h,{start:c,end:h}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,o=this._chunks,l=this._dimensions,c=l.length,f=this._rawExtent,d=Object(h.H)(l,(function(e){return e.property})),i=0;i<c;i++){var v=l[i];f[i]||(f[i]=[1/0,-1/0]),wh(o,i,v.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,o,f);else for(var m=[],y=e;y<t;y++){m=r.getItem(y,m);for(var _=0;_<c;_++){var x=o[_],w=this._dimValueGetter(m,d[_],y,_);x[y]=w;var S=f[_];w<S[0]&&(S[0]=w),w>S[1]&&(S[1]=w)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var i=0,n=this.count();i<n;i++){var r=this.get(e,i);isNaN(r)||(t+=r)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(a,b){return a-b})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,o=this._count-1;r<=o;){var l=(r+o)/2|0;if(t[l]<e)r=l+1;else{if(!(t[l]>e))return l;o=l-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],o=[];if(!r)return o;null==n&&(n=1/0);for(var l=1/0,c=-1,h=0,i=0,f=this.count();i<f;i++){var d=t-r[this.getRawIndex(i)],v=Math.abs(d);v<=n&&((v<l||v===l&&d>=0&&c<0)&&(l=v,c=d,h=0),d===c&&(o[h++]=i))}return o.length=h,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{e=new(n=xh(this._rawCount))(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),o=new(xh(n._rawCount))(r),l=[],c=e.length,h=0,f=e[0],d=n._chunks,i=0;i<r;i++){var v=void 0,m=n.getRawIndex(i);if(0===c)v=t(i);else if(1===c){v=t(d[f][m],i)}else{for(var y=0;y<c;y++)l[y]=d[e[y]][m];l[y]=i,v=t.apply(null,l)}v&&(o[h++]=m)}return h<r&&(n._indices=o),n._count=h,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Object(h.F)(e),o=r.length;if(!o)return this;var l=t.count(),c=new(xh(t._rawCount))(l),f=0,d=r[0],v=e[d][0],m=e[d][1],y=t._chunks,_=!1;if(!t._indices){var x=0;if(1===o){for(var w=y[r[0]],i=0;i<n;i++){((C=w[i])>=v&&C<=m||isNaN(C))&&(c[f++]=x),x++}_=!0}else if(2===o){w=y[r[0]];var S=y[r[1]],k=e[r[1]][0],O=e[r[1]][1];for(i=0;i<n;i++){var C=w[i],T=S[i];(C>=v&&C<=m||isNaN(C))&&(T>=k&&T<=O||isNaN(T))&&(c[f++]=x),x++}_=!0}}if(!_)if(1===o)for(i=0;i<l;i++){var E=t.getRawIndex(i);((C=y[r[0]][E])>=v&&C<=m||isNaN(C))&&(c[f++]=E)}else for(i=0;i<l;i++){for(var A=!0,M=(E=t.getRawIndex(i),0);M<o;M++){var I=r[M];((C=y[I][E])<e[I][0]||C>e[I][1])&&(A=!1)}A&&(c[f++]=t.getRawIndex(i))}return f<l&&(t._indices=c),t._count=f,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,o=[],l=t.length,c=e.count(),h=[],f=e._rawExtent,i=0;i<t.length;i++)f[t[i]]=[1/0,-1/0];for(var d=0;d<c;d++){for(var v=e.getRawIndex(d),m=0;m<l;m++)h[m]=r[t[m]][v];h[l]=d;var y=n&&n.apply(null,h);if(null!=y){"object"!=typeof y&&(o[0]=y,y=o);for(i=0;i<y.length;i++){var _=t[i],x=y[i],w=f[_],S=r[_];S&&(S[v]=x),x<w[0]&&(w[0]=x),x>w[1]&&(w[1]=x)}}}},e.prototype.lttbDownSample=function(e,t){var n,area,r,o=this.clone([e],!0),l=o._chunks[e],c=this.count(),h=0,f=Math.floor(1/t),d=this.getRawIndex(0),v=new(xh(this._rawCount))(Math.min(2*(Math.ceil(c/f)+2),c));v[h++]=d;for(var i=1;i<c-1;i+=f){for(var m=Math.min(i+f,c-1),y=Math.min(i+2*f,c),_=(y+m)/2,x=0,w=m;w<y;w++){var S=l[M=this.getRawIndex(w)];isNaN(S)||(x+=S)}x/=y-m;var k=i,O=Math.min(i+f,c),C=i-1,T=l[d];n=-1,r=k;var E=-1,A=0;for(w=k;w<O;w++){var M;S=l[M=this.getRawIndex(w)];isNaN(S)?(A++,E<0&&(E=M)):(area=Math.abs((C-_)*(S-T)-(C-w)*(x-T)))>n&&(n=area,r=M)}A>0&&A<O-k&&(v[h++]=Math.min(E,r),r=Math.max(E,r)),v[h++]=r,d=r}return v[h++]=this.getRawIndex(c-1),o._count=h,o._indices=v,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,r){for(var o=this.clone([e],!0),l=o._chunks,c=[],h=Math.floor(1/t),f=l[e],d=this.count(),v=o._rawExtent[e]=[1/0,-1/0],m=new(xh(this._rawCount))(Math.ceil(d/h)),y=0,i=0;i<d;i+=h){h>d-i&&(h=d-i,c.length=h);for(var _=0;_<h;_++){var x=this.getRawIndex(i+_);c[_]=f[x]}var w=n(c),S=this.getRawIndex(Math.min(i+r(c,w)||0,d-1));f[S]=w,w<v[0]&&(v[0]=w),w>v[1]&&(v[1]=w),m[y++]=S}return o._count=y,o._indices=m,o._updateGetRawIdx(),o},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,o=this.count();i<o;i++){var l=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][l],i);break;case 2:t(r[e[0]][l],r[e[1]][l],i);break;default:for(var c=0,h=[];c<n;c++)h[c]=r[e[c]][l];h[c]=i,t.apply(null,h)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var r,o=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var l=(r=n)[0],c=r[1],i=0;i<o;i++){var h=t[this.getRawIndex(i)];h<l&&(l=h),h>c&&(c=h)}return r=[l,c],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r,o,l=new e,c=this._chunks,f=t&&Object(h.N)(t,(function(e,t){return e[t]=!0,e}),{});if(f)for(var i=0;i<c.length;i++)l._chunks[i]=f[i]?(r=c[i],o=void 0,(o=r.constructor)===Array?r.slice():new o(r)):c[i];else l._chunks=c;return this._copyCommonProps(l),n||(l._indices=this._cloneIndices()),l._updateGetRawIdx(),l},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Object(h.d)(this._extent),e._rawExtent=Object(h.d)(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Zc(e[r],this._dimensions[r])}ph={arrayRows:e,objectRows:function(e,t,n,r){return Zc(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var o=e&&(null==e.value?e:e.value);return Zc(o instanceof Array?o[r]:o,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),kh=Sh,Oh=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),o=!!r.length;if(Th(n)){var l=n,data=void 0,c=void 0,f=void 0;if(o){var d=r[0];d.prepareSource(),data=(f=d.getSource()).data,c=f.sourceFormat,t=[d._getVersionSign()]}else data=l.get("data",!0),c=Object(h.E)(data)?vu:fu,t=[];var v=this._getSourceMetaRawOption()||{},m=f&&f.metaRawOption||{},y=Object(h.P)(v.seriesLayoutBy,m.seriesLayoutBy)||null,_=Object(h.P)(v.sourceHeader,m.sourceHeader),x=Object(h.P)(v.dimensions,m.dimensions);e=y!==m.seriesLayoutBy||!!_!=!!m.sourceHeader||x?[Tc(data,{seriesLayoutBy:y,sourceHeader:_,dimensions:x},c)]:[]}else{var w=n;if(o){var S=this._applyTransform(r);e=S.sourceList,t=S.upstreamSignList}else{e=[Tc(w.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(null!=o){1!==e.length&&Eh("")}var source,l=[],c=[];return Object(h.k)(e,(function(e){e.prepareSource();var t=e.getSource(o||0);null==o||t||Eh(""),l.push(t),c.push(e._getVersionSign())})),r?t=function(e,t,n){var r=kr(e),o=r.length;o||Bu("");for(var i=0,l=o;i<l;i++)t=fh(r[i],t),i!==l-1&&(t.length=Math.max(t.length,1));return t}(r,l,n.componentIndex):null!=o&&(t=[(source=l[0],new Oc({data:source.data,sourceFormat:source.sourceFormat,seriesLayoutBy:source.seriesLayoutBy,dimensionsDefine:Object(h.d)(source.dimensionsDefine),startIndex:source.startIndex,dimensionsDetectedCount:source.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:c}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),i=0;i<e.length;i++){var t=e[i];if(t._isDirty()||this._upstreamSignList[i]!==t._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var source=this._sourceList[e];if(!source){var t=this._getUpstreamSourceManagers();return t[0]&&t[0].getSource(e)}return source},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=this._storeList,o=r[0];o||(o=r[0]={});var l=o[n];if(!l){var c=this._getUpstreamSourceManagers()[0];Th(this._sourceHost)&&c?l=c._innerGetDataStore(e,t,n):(l=new kh).initData(new Pc(t,e.length),e),o[n]=l}return l},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Th(e)){var t=Cu(e);return t?[t.getSourceManager()]:[]}return Object(h.H)(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?Vr(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},zr).models:[]}(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(Th(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=r;e=o.get("seriesLayoutBy",!0),t=o.get("sourceHeader",!0),n=o.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Ch(e){e.option.transform&&Object(h.R)(e.option.transform)}function Th(e){return"series"===e.mainType}function Eh(e){throw new Error(e)}function Ah(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,o=e.fontWeight||"400",l=e.color||"#464646",c=e.fontSize||14,h=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+H(r+"")+"px;color:"+H(n)+";font-weight:"+H(o+""),valueStyle:"font-size:"+H(c+"")+"px;color:"+H(l)+";font-weight:"+H(h+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:o},valueStyle:{fontSize:c,fill:l,fontWeight:h}}}var Mh=[0,10,20,30],Ih=["","\n","\n\n","\n\n\n"];function Dh(e,option){return option.type=e,option}function Ph(e){return"section"===e.type}function Nh(e){return Ph(e)?jh:Rh}function Lh(e){if(Ph(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Object(h.k)(e.blocks,(function(e){var n=Lh(e);n>=t&&(t=n+ +(r&&(!n||Ph(e)&&!e.noHeader)))})),t}return 0}function jh(e,t,n,r){var o,l=t.noHeader,c=(o=Lh(t),{html:Mh[o],richText:Ih[o]}),f=[],d=t.blocks||[];Object(h.b)(!d||Object(h.t)(d)),d=d||[];var v=e.orderMode;if(t.sortBlocks&&v){d=d.slice();var m={valueAsc:"asc",valueDesc:"desc"};if(Object(h.q)(m,v)){var y=new rh(m[v],null);d.sort((function(a,b){return y.evaluate(a.sortParam,b.sortParam)}))}else"seriesDesc"===v&&d.reverse()}Object(h.k)(d,(function(n,o){var l=t.valueFormatter,d=Nh(n)(l?Object(h.m)(Object(h.m)({},e),{valueFormatter:l}):e,n,o>0?c.html:0,r);null!=d&&f.push(d)}));var _="richText"===e.renderMode?f.join(c.richText):Bh(f.join(""),l?n:c.html);if(l)return _;var x=Vl(t.header,"ordinal",e.useUTC),w=Ah(r,e.renderMode).nameStyle;return"richText"===e.renderMode?zh(e,x,w)+c.richText+_:Bh('<div style="'+w+";"+'line-height:1;">'+H(x)+"</div>"+_,n)}function Rh(e,t,n,r){var o=e.renderMode,l=t.noName,c=t.noValue,f=!t.markerType,d=t.name,v=e.useUTC,m=t.valueFormatter||e.valueFormatter||function(e){return e=Object(h.t)(e)?e:[e],Object(h.H)(e,(function(e,t){return Vl(e,Object(h.t)(x)?x[t]:x,v)}))};if(!l||!c){var y=f?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),_=l?"":Vl(d,"ordinal",v),x=t.valueType,w=c?[]:m(t.value),S=!f||!l,k=!f&&l,O=Ah(r,o),C=O.nameStyle,T=O.valueStyle;return"richText"===o?(f?"":y)+(l?"":zh(e,_,C))+(c?"":function(e,t,n,r,style){var o=[style],l=r?10:20;return n&&o.push({padding:[0,0,0,l],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(h.t)(t)?t.join(" "):t,o)}(e,w,S,k,T)):Bh((f?"":y)+(l?"":function(e,t,style){return'<span style="'+style+";"+(t?"margin-left:2px":"")+'">'+H(e)+"</span>"}(_,!f,C))+(c?"":function(e,t,n,style){var r=n?"10px":"20px",o=t?"float:right;margin-left:"+r:"";return e=Object(h.t)(e)?e:[e],'<span style="'+o+";"+style+'">'+Object(h.H)(e,(function(e){return H(e)})).join("&nbsp;&nbsp;")+"</span>"}(w,S,k,T)),n)}}function Fh(e,t,n,r,o,l){if(e)return Nh(e)({useUTC:o,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,l)}function Bh(e,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+'line-height:1;">'+e+'<div style="clear:both"></div></div>'}function zh(e,t,style){return e.markupStyleCreator.wrapRichTextStyle(t,style)}function $h(e,t){return Ul(e.getData().getItemVisual(t,"style")[e.visualDrawType])}function Vh(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var Hh=function(){function e(){this.richTextStyles={},this._nextStyleNameId=mr()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,marker=function(e,t){var n=h.C(e)?{color:e,extraCssText:t}:e||{},r=n.color,o=n.type;t=n.extraCssText;var l=n.renderMode||"html";return r?"html"===l?"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+H(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+H(r)+";"+(t||"")+'"></span>':{renderMode:l,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:t,type:e,renderMode:n,markerId:r});return Object(h.C)(marker)?marker:(this.richTextStyles[r]=marker.style,marker.content)},e.prototype.wrapRichTextStyle=function(text,e){var t={};Object(h.t)(e)?Object(h.k)(e,(function(e){return Object(h.m)(t,e)})):Object(h.m)(t,e);var n=this._generateStyleName();return this.richTextStyles[n]=t,"{"+n+"|"+text+"}"},e}();function qh(e){var t,n,r,o,l=e.series,c=e.dataIndex,f=e.multipleSeries,data=l.getData(),d=data.mapDimensionsAll("defaultedTooltip"),v=d.length,m=l.getRawValue(c),y=Object(h.t)(m),_=$h(l,c);if(v>1||y&&!v){var x=function(e,t,n,r,o){var data=t.getData(),l=Object(h.N)(e,(function(e,t,n){var r=data.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),c=[],f=[],d=[];function v(e,t){var n=data.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(l?d.push(Dh("nameValue",{markerType:"subItem",markerColor:o,name:n.displayName,value:e,valueType:n.type})):(c.push(e),f.push(n.type)))}return r.length?Object(h.k)(r,(function(e){v(qc(data,n,e),e)})):Object(h.k)(e,v),{inlineValues:c,inlineValueTypes:f,blocks:d}}(m,l,c,d,_);t=x.inlineValues,n=x.inlineValueTypes,r=x.blocks,o=x.inlineValues[0]}else if(v){var w=data.getDimensionInfo(d[0]);o=t=qc(data,c,d[0]),n=w.type}else o=t=y?m[0]:m;var S=Pr(l),k=S&&l.name||"",O=data.getName(c),C=f?k:O;return Dh("section",{header:k,noHeader:f||!S,sortParam:o,blocks:[Dh("nameValue",{markerType:"item",markerColor:_,name:C,noName:!Object(h.T)(C),value:t,valueType:n})].concat(r||[])})}var Wh=jr();function Uh(data,e){return data.getName(e)||data.getId(e)}var Gh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return l(t,e),t.prototype.init=function(option,e,t){this.seriesIndex=this.componentIndex,this.dataTask=Yc({count:Kh,reset:Xh}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(option,t),(Wh(this).sourceManager=new Oh(this)).prepareSource();var data=this.getInitialData(option,t);Jh(data,this),this.dataTask.context.data=data,Wh(this).dataBeforeProcessed=data,Yh(this),this._initSelectedMapFromData(data)},t.prototype.mergeDefaultAndTheme=function(option,e){var t=tu(this),n=t?ru(option):{},r=this.subType;su.hasClass(r)&&(r+="Series"),h.I(option,e.getTheme().get(this.subType)),h.I(option,this.getDefaultOption()),Or(option,"label",["show"]),this.fillDataTextStyle(option.data),t&&nu(option,n,t)},t.prototype.mergeOption=function(e,t){e=h.I(this.option,e,!0),this.fillDataTextStyle(e.data);var n=tu(this);n&&nu(this.option,e,n);var r=Wh(this).sourceManager;r.dirty(),r.prepareSource();var data=this.getInitialData(e,t);Jh(data,this),this.dataTask.dirty(),this.dataTask.context.data=data,Wh(this).dataBeforeProcessed=data,Yh(this),this._initSelectedMapFromData(data)},t.prototype.fillDataTextStyle=function(data){if(data&&!h.E(data))for(var e=["show"],i=0;i<data.length;i++)data[i]&&data[i].label&&Or(data[i],"label",e)},t.prototype.getInitialData=function(option,e){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=ef(this);if(t){var data=t.context.data;return null==e?data:data.getLinkedData(e)}return Wh(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(data){var e=ef(this);if(e){var t=e.context;t.outputData=data,e!==this.dataTask&&(t.data=data)}Wh(this).data=data},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return h.f(e)},t.prototype.getSourceManager=function(){return Wh(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Wh(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return qh({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(c.a.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,o=Du.prototype.getColorFromPalette.call(this,e,t,n);return o||(o=r.getColorFromPalette(e,t,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,data=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var i=0;i<e.length;i++){var o=Uh(data,e[i]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=h.F(e),n=[],i=0;i<t.length;i++){var r=e[t[i]];r>=0&&n.push(r)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var data=this.getData(t);return("all"===n||n[Uh(data,e)])&&!data.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(data,e){var t,n,option=this.option,r=option.selectedMode,o=e.length;if(r&&o)if("series"===r)option.selectedMap="all";else if("multiple"===r){h.A(option.selectedMap)||(option.selectedMap={});for(var l=option.selectedMap,i=0;i<o;i++){var c=e[i];l[d=Uh(data,c)]=!0,this._selectedDataIndicesMap[d]=data.getRawIndex(c)}}else if("single"===r||!0===r){var f=e[o-1],d=Uh(data,f);option.selectedMap=((t={})[d]=!0,t),this._selectedDataIndicesMap=((n={})[d]=data.getRawIndex(f),n)}},t.prototype._initSelectedMapFromData=function(data){if(!this.option.selectedMap){var e=[];data.hasItemOption&&data.each((function(t){var n=data.getRawDataItem(t);n&&n.selected&&e.push(t)})),e.length>0&&this._innerSelect(data,e)}},t.registerClass=function(e){return su.registerClass(e)},t.protoInitialize=((n=t.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),t}(su);function Yh(e){var t=e.name;Pr(e)||(e.name=function(e){var data=e.getRawData(),t=data.mapDimensionsAll("seriesName"),n=[];return h.k(t,(function(e){var t=data.getDimensionInfo(e);t.displayName&&n.push(t.displayName)})),n.join(" ")}(e)||t)}function Kh(e){return e.model.getRawData().count()}function Xh(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Zh}function Zh(param,e){e.outputData&&param.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Jh(data,e){h.k(h.e(data.CHANGABLE_METHODS,data.DOWNSAMPLE_METHODS),(function(t){data.wrapMethod(t,h.h(Qh,e))}))}function Qh(e,t){var n=ef(e);return n&&n.setOutputEnd((t||this).count()),t}function ef(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var o=r.agentStubMap;o&&(r=o.get(e.uid))}return r}}h.K(Gh,Uc),h.K(Gh,Du),Xr(Gh,su);var tf=Gh,nf=function(){function e(){this.group=new qn,this.uid=Xs("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Kr(nf),ei(nf);var rf=nf;function of(){var e=jr();return function(t){var n=e(t),r=t.pipelineContext,o=!!n.large,l=!!n.progressiveRender,c=n.large=!(!r||!r.large),h=n.progressiveRender=!(!r||!r.progressiveRender);return!(o===c&&l===h)&&"reset"}}var af=ho.CMD,sf=[[],[],[]],lf=Math.sqrt,uf=Math.atan2;function cf(path,e){if(e){var t,n,i,r,o,p,data=path.data,l=path.len(),c=af.M,h=af.C,f=af.L,d=af.R,v=af.A,m=af.Q;for(i=0,r=0;i<l;){switch(t=data[i++],r=i,n=0,t){case c:case f:n=1;break;case h:n=3;break;case m:n=2;break;case v:var y=e[4],_=e[5],x=lf(e[0]*e[0]+e[1]*e[1]),w=lf(e[2]*e[2]+e[3]*e[3]),S=uf(-e[1]/w,e[0]/x);data[i]*=x,data[i++]+=y,data[i]*=w,data[i++]+=_,data[i++]*=x,data[i++]*=w,data[i++]+=S,data[i++]+=S,r=i+=2;break;case d:p[0]=data[i++],p[1]=data[i++],E(p,p,e),data[r++]=p[0],data[r++]=p[1],p[0]+=data[i++],p[1]+=data[i++],E(p,p,e),data[r++]=p[0],data[r++]=p[1]}for(o=0;o<n;o++){var k=sf[o];k[0]=data[i++],k[1]=data[i++],E(k,k,e),data[r++]=k[0],data[r++]=k[1]}}path.increaseVersion()}}var hf=Math.sqrt,ff=Math.sin,df=Math.cos,pf=Math.PI;function gf(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function vf(u,e){return(u[0]*e[0]+u[1]*e[1])/(gf(u)*gf(e))}function mf(u,e){return(u[0]*e[1]<u[1]*e[0]?-1:1)*Math.acos(vf(u,e))}function yf(e,t,n,r,o,l,c,h,f,d,path){var v=f*(pf/180),m=df(v)*(e-n)/2+ff(v)*(t-r)/2,y=-1*ff(v)*(e-n)/2+df(v)*(t-r)/2,_=m*m/(c*c)+y*y/(h*h);_>1&&(c*=hf(_),h*=hf(_));var x=(o===l?-1:1)*hf((c*c*(h*h)-c*c*(y*y)-h*h*(m*m))/(c*c*(y*y)+h*h*(m*m)))||0,w=x*c*y/h,S=x*-h*m/c,k=(e+n)/2+df(v)*w-ff(v)*S,O=(t+r)/2+ff(v)*w+df(v)*S,C=mf([1,0],[(m-w)/c,(y-S)/h]),u=[(m-w)/c,(y-S)/h],T=[(-1*m-w)/c,(-1*y-S)/h],E=mf(u,T);if(vf(u,T)<=-1&&(E=pf),vf(u,T)>=1&&(E=0),E<0){var A=Math.round(E/pf*1e6)/1e6;E=2*pf+A%2*pf}path.addData(d,k,O,c,h,C,E,v,l)}var bf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,_f=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var xf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.applyTransform=function(e){},t}(Do);function wf(path){return null!=path.setData}function Sf(e,t){var n=function(data){var path=new ho;if(!data)return path;var e,t=0,n=0,r=t,o=n,l=ho.CMD,c=data.match(bf);if(!c)return path;for(var h=0;h<c.length;h++){for(var f=c[h],d=f.charAt(0),v=void 0,p=f.match(_f)||[],m=p.length,i=0;i<m;i++)p[i]=parseFloat(p[i]);for(var y=0;y<m;){var _=void 0,x=void 0,w=void 0,S=void 0,k=void 0,O=void 0,C=void 0,T=t,E=n,A=void 0,M=void 0;switch(d){case"l":t+=p[y++],n+=p[y++],v=l.L,path.addData(v,t,n);break;case"L":t=p[y++],n=p[y++],v=l.L,path.addData(v,t,n);break;case"m":t+=p[y++],n+=p[y++],v=l.M,path.addData(v,t,n),r=t,o=n,d="l";break;case"M":t=p[y++],n=p[y++],v=l.M,path.addData(v,t,n),r=t,o=n,d="L";break;case"h":t+=p[y++],v=l.L,path.addData(v,t,n);break;case"H":t=p[y++],v=l.L,path.addData(v,t,n);break;case"v":n+=p[y++],v=l.L,path.addData(v,t,n);break;case"V":n=p[y++],v=l.L,path.addData(v,t,n);break;case"C":v=l.C,path.addData(v,p[y++],p[y++],p[y++],p[y++],p[y++],p[y++]),t=p[y-2],n=p[y-1];break;case"c":v=l.C,path.addData(v,p[y++]+t,p[y++]+n,p[y++]+t,p[y++]+n,p[y++]+t,p[y++]+n),t+=p[y-2],n+=p[y-1];break;case"S":_=t,x=n,A=path.len(),M=path.data,e===l.C&&(_+=t-M[A-4],x+=n-M[A-3]),v=l.C,T=p[y++],E=p[y++],t=p[y++],n=p[y++],path.addData(v,_,x,T,E,t,n);break;case"s":_=t,x=n,A=path.len(),M=path.data,e===l.C&&(_+=t-M[A-4],x+=n-M[A-3]),v=l.C,T=t+p[y++],E=n+p[y++],t+=p[y++],n+=p[y++],path.addData(v,_,x,T,E,t,n);break;case"Q":T=p[y++],E=p[y++],t=p[y++],n=p[y++],v=l.Q,path.addData(v,T,E,t,n);break;case"q":T=p[y++]+t,E=p[y++]+n,t+=p[y++],n+=p[y++],v=l.Q,path.addData(v,T,E,t,n);break;case"T":_=t,x=n,A=path.len(),M=path.data,e===l.Q&&(_+=t-M[A-4],x+=n-M[A-3]),t=p[y++],n=p[y++],v=l.Q,path.addData(v,_,x,t,n);break;case"t":_=t,x=n,A=path.len(),M=path.data,e===l.Q&&(_+=t-M[A-4],x+=n-M[A-3]),t+=p[y++],n+=p[y++],v=l.Q,path.addData(v,_,x,t,n);break;case"A":w=p[y++],S=p[y++],k=p[y++],O=p[y++],C=p[y++],yf(T=t,E=n,t=p[y++],n=p[y++],O,C,w,S,k,v=l.A,path);break;case"a":w=p[y++],S=p[y++],k=p[y++],O=p[y++],C=p[y++],yf(T=t,E=n,t+=p[y++],n+=p[y++],O,C,w,S,k,v=l.A,path)}}"z"!==d&&"Z"!==d||(v=l.Z,path.addData(v),t=r,n=o),e=v}return path.toStatic(),path}(e),r=Object(h.m)({},t);return r.buildPath=function(path){if(wf(path)){path.setData(n.data),(e=path.getContext())&&path.rebuildPath(e,1)}else{var e=path;n.rebuildPath(e,1)}},r.applyTransform=function(e){cf(n,e),this.dirtyShape()},r}function kf(e,t){return new xf(Sf(e,t))}function Of(e,t){t=t||{};var path=new Do;return e.shape&&path.setShape(e.shape),path.setStyle(e.style),t.bakeTransform?cf(path.path,e.getComputedTransform()):t.toLocal?path.setLocalTransform(e.getComputedTransform()):path.copyTransform(e),path.buildPath=e.buildPath,path.applyTransform=path.applyTransform,path.z=e.z,path.z2=e.z2,path.zlevel=e.zlevel,path}var Cf=function(){this.cx=0,this.cy=0,this.r=0},Tf=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getDefaultShape=function(){return new Cf},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(Do);Tf.prototype.type="circle";var Ef=Tf,Af=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Mf=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getDefaultShape=function(){return new Af},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,o=t.cy,a=t.rx,b=t.ry,l=a*n,c=b*n;e.moveTo(r-a,o),e.bezierCurveTo(r-a,o-c,r-l,o-b,r,o-b),e.bezierCurveTo(r+l,o-b,r+a,o-c,r+a,o),e.bezierCurveTo(r+a,o+c,r+l,o+b,r,o+b),e.bezierCurveTo(r-l,o+b,r-a,o+c,r-a,o),e.closePath()},t}(Do);Mf.prototype.type="ellipse";var If=Mf,Df=Math.PI,Pf=2*Df,Nf=Math.sin,Lf=Math.cos,jf=Math.acos,Rf=Math.atan2,Ff=Math.abs,Bf=Math.sqrt,zf=Math.max,$f=Math.min,Vf=1e-4;function Hf(e,t,n,r,o,l,c){var h=e-n,f=t-r,d=(c?l:-l)/Bf(h*h+f*f),v=d*f,m=-d*h,y=e+v,_=t+m,x=n+v,w=r+m,S=(y+x)/2,k=(_+w)/2,O=x-y,C=w-_,T=O*O+C*C,E=o-l,s=y*w-x*_,A=(C<0?-1:1)*Bf(zf(0,E*E*T-s*s)),M=(s*C-O*A)/T,I=(-s*O-C*A)/T,D=(s*C+O*A)/T,P=(-s*O+C*A)/T,N=M-S,L=I-k,j=D-S,R=P-k;return N*N+L*L>j*j+R*R&&(M=D,I=P),{cx:M,cy:I,x0:-v,y0:-m,x1:M*(o/E-1),y1:I*(o/E-1)}}function qf(e,t){var n,r=zf(t.r,0),o=zf(t.r0||0,0),l=r>0;if(l||o>0){if(l||(r=o,o=0),o>r){var c=r;r=o,o=c}var f=t.startAngle,d=t.endAngle;if(!isNaN(f)&&!isNaN(d)){var v=t.cx,m=t.cy,y=!!t.clockwise,_=Ff(d-f),x=_>Pf&&_%Pf;if(x>Vf&&(_=x),r>Vf)if(_>Pf-Vf)e.moveTo(v+r*Lf(f),m+r*Nf(f)),e.arc(v,m,r,f,d,!y),o>Vf&&(e.moveTo(v+o*Lf(d),m+o*Nf(d)),e.arc(v,m,o,d,f,y));else{var w=void 0,S=void 0,k=void 0,O=void 0,C=void 0,T=void 0,E=void 0,A=void 0,M=void 0,I=void 0,D=void 0,P=void 0,N=void 0,L=void 0,j=void 0,R=void 0,F=r*Lf(f),B=r*Nf(f),z=o*Lf(d),$=o*Nf(d),V=_>Vf;if(V){var H=t.cornerRadius;H&&(w=(n=function(e){var t;if(Object(h.t)(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(H))[0],S=n[1],k=n[2],O=n[3]);var W=Ff(r-o)/2;if(C=$f(W,k),T=$f(W,O),E=$f(W,w),A=$f(W,S),D=M=zf(C,T),P=I=zf(E,A),(M>Vf||I>Vf)&&(N=r*Lf(d),L=r*Nf(d),j=o*Lf(f),R=o*Nf(f),_<Df)){var U=function(e,t,n,r,o,l,c,h){var f=n-e,d=r-t,v=c-o,m=h-l,y=m*f-v*d;if(!(y*y<Vf))return[e+(y=(v*(t-l)-m*(e-o))/y)*f,t+y*d]}(F,B,j,R,N,L,z,$);if(U){var G=F-U[0],Y=B-U[1],K=N-U[0],X=L-U[1],a=1/Nf(jf((G*K+Y*X)/(Bf(G*G+Y*Y)*Bf(K*K+X*X)))/2),b=Bf(U[0]*U[0]+U[1]*U[1]);D=$f(M,(r-b)/(a+1)),P=$f(I,(o-b)/(a-1))}}}if(V)if(D>Vf){var Z=$f(k,D),J=$f(O,D),Q=Hf(j,R,F,B,r,Z,y),ee=Hf(N,L,z,$,r,J,y);e.moveTo(v+Q.cx+Q.x0,m+Q.cy+Q.y0),D<M&&Z===J?e.arc(v+Q.cx,m+Q.cy,D,Rf(Q.y0,Q.x0),Rf(ee.y0,ee.x0),!y):(Z>0&&e.arc(v+Q.cx,m+Q.cy,Z,Rf(Q.y0,Q.x0),Rf(Q.y1,Q.x1),!y),e.arc(v,m,r,Rf(Q.cy+Q.y1,Q.cx+Q.x1),Rf(ee.cy+ee.y1,ee.cx+ee.x1),!y),J>0&&e.arc(v+ee.cx,m+ee.cy,J,Rf(ee.y1,ee.x1),Rf(ee.y0,ee.x0),!y))}else e.moveTo(v+F,m+B),e.arc(v,m,r,f,d,!y);else e.moveTo(v+F,m+B);if(o>Vf&&V)if(P>Vf){Z=$f(w,P),Q=Hf(z,$,N,L,o,-(J=$f(S,P)),y),ee=Hf(F,B,j,R,o,-Z,y);e.lineTo(v+Q.cx+Q.x0,m+Q.cy+Q.y0),P<I&&Z===J?e.arc(v+Q.cx,m+Q.cy,P,Rf(Q.y0,Q.x0),Rf(ee.y0,ee.x0),!y):(J>0&&e.arc(v+Q.cx,m+Q.cy,J,Rf(Q.y0,Q.x0),Rf(Q.y1,Q.x1),!y),e.arc(v,m,o,Rf(Q.cy+Q.y1,Q.cx+Q.x1),Rf(ee.cy+ee.y1,ee.cx+ee.x1),y),Z>0&&e.arc(v+ee.cx,m+ee.cy,Z,Rf(ee.y1,ee.x1),Rf(ee.y0,ee.x0),!y))}else e.lineTo(v+z,m+$),e.arc(v,m,o,d,f,y);else e.lineTo(v+z,m+$)}else e.moveTo(v,m);e.closePath()}}}var Wf=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Uf=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getDefaultShape=function(){return new Wf},t.prototype.buildPath=function(e,t){qf(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Do);Uf.prototype.type="sector";var Gf=Uf,Yf=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Kf=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getDefaultShape=function(){return new Yf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,o=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,o,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,o,!0)},t}(Do);Kf.prototype.type="ring";var Xf=Kf;function Zf(e,t,n){var r=t.smooth,o=t.points;if(o&&o.length>=2){if(r){var l=function(e,t,n,r){var o,l,c,h,f=[],d=[],y=[],_=[];if(r){c=[1/0,1/0],h=[-1/0,-1/0];for(var i=0,x=e.length;i<x;i++)A(c,c,e[i]),M(h,h,e[i]);A(c,c,r[0]),M(h,h,r[1])}for(i=0,x=e.length;i<x;i++){var S=e[i];if(n)o=e[i?i-1:x-1],l=e[(i+1)%x];else{if(0===i||i===x-1){f.push(v(e[i]));continue}o=e[i-1],l=e[i+1]}sub(d,l,o),w(d,d,t);var O=k(S,o),C=k(S,l),T=O+C;0!==T&&(O/=T,C/=T),w(y,d,-O),w(_,d,C);var E=m([],S,y),I=m([],S,_);r&&(M(E,E,c),A(E,E,h),M(I,I,c),A(I,I,h)),f.push(E),f.push(I)}return n&&f.push(f.shift()),f}(o,r,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var c=o.length,i=0;i<(n?c:c-1);i++){var h=l[2*i],f=l[2*i+1],p=o[(i+1)%c];e.bezierCurveTo(h[0],h[1],f[0],f[1],p[0],p[1])}}else{e.moveTo(o[0][0],o[0][1]);i=1;for(var d=o.length;i<d;i++)e.lineTo(o[i][0],o[i][1])}n&&e.closePath()}}var Jf=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Qf=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getDefaultShape=function(){return new Jf},t.prototype.buildPath=function(e,t){Zf(e,t,!0)},t}(Do);Qf.prototype.type="polygon";var ed=Qf,nd=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},rd=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new nd},t.prototype.buildPath=function(e,t){Zf(e,t,!1)},t}(Do);rd.prototype.type="polyline";var id=rd,od={},ad=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},sd=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ad},t.prototype.buildPath=function(e,t){var n,r,o,l;if(this.subPixelOptimize){var c=$o(od,t,this.style);n=c.x1,r=c.y1,o=c.x2,l=c.y2}else n=t.x1,r=t.y1,o=t.x2,l=t.y2;var h=t.percent;0!==h&&(e.moveTo(n,r),h<1&&(o=n*(1-h)+o*h,l=r*(1-h)+l*h),e.lineTo(o,l))},t.prototype.pointAt=function(p){var e=this.shape;return[e.x1*(1-p)+e.x2*p,e.y1*(1-p)+e.y2*p]},t}(Do);sd.prototype.type="line";var ld=sd,ud=[],cd=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function hd(e,t,n){var r=e.cpx2,o=e.cpy2;return null!=r||null!=o?[(n?it:nt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?it:nt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?ht:ct)(e.x1,e.cpx1,e.x2,t),(n?ht:ct)(e.y1,e.cpy1,e.y2,t)]}var fd=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cd},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,o=t.x2,l=t.y2,c=t.cpx1,h=t.cpy1,f=t.cpx2,d=t.cpy2,v=t.percent;0!==v&&(e.moveTo(n,r),null==f||null==d?(v<1&&(pt(n,c,o,v,ud),c=ud[1],o=ud[2],pt(r,h,l,v,ud),h=ud[1],l=ud[2]),e.quadraticCurveTo(c,h,o,l)):(v<1&&(st(n,c,f,o,v,ud),c=ud[1],f=ud[2],o=ud[3],st(r,h,d,l,v,ud),h=ud[1],d=ud[2],l=ud[3]),e.bezierCurveTo(c,h,f,d,o,l)))},t.prototype.pointAt=function(e){return hd(this.shape,e,!1)},t.prototype.tangentAt=function(e){var p=hd(this.shape,e,!0);return S(p,p)},t}(Do);fd.prototype.type="bezier-curve";var pd=fd,gd=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},vd=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new gd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,o=Math.max(t.r,0),l=t.startAngle,c=t.endAngle,h=t.clockwise,f=Math.cos(l),d=Math.sin(l);e.moveTo(f*o+n,d*o+r),e.arc(n,r,o,l,c,!h)},t}(Do);vd.prototype.type="arc";var md=vd,yd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return l(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),i=0;i<e.length;i++)t=t||e[i].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(t[0],t[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Do.prototype.getBoundingRect.call(this)},t}(Do),bd=yd,_d=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),xd=function(e){function t(t,n,r,o,l,c){var h=e.call(this,l)||this;return h.x=null==t?0:t,h.y=null==n?0:n,h.x2=null==r?1:r,h.y2=null==o?0:o,h.type="linear",h.global=c||!1,h}return l(t,e),t}(_d),wd=function(e){function t(t,n,r,o,l){var c=e.call(this,o)||this;return c.x=null==t?.5:t,c.y=null==n?.5:n,c.r=null==r?.5:r,c.type="radial",c.global=l||!1,c}return l(t,e),t}(_d),Sd=[0,0],kd=[0,0],Od=new he,Cd=new he,Td=function(){function e(rect,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new he;for(i=0;i<2;i++)this._axes[i]=new he;rect&&this.fromBoundingRect(rect,e)}return e.prototype.fromBoundingRect=function(rect,e){var t=this._corners,n=this._axes,r=rect.x,o=rect.y,l=r+rect.width,c=o+rect.height;if(t[0].set(r,o),t[1].set(l,o),t[2].set(l,c),t[3].set(r,c),e)for(var i=0;i<4;i++)t[i].transform(e);he.sub(n[0],t[1],t[0]),he.sub(n[1],t[3],t[0]),n[0].normalize(),n[1].normalize();for(i=0;i<2;i++)this._origin[i]=n[i].dot(t[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return Od.set(1/0,1/0),Cd.set(0,0),!this._intersectCheckOneSide(this,e,Od,Cd,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,Od,Cd,r,-1)&&(n=!1,r)||r||he.copy(t,n?Od:Cd),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,o,l){for(var c=!0,i=0;i<2;i++){var h=this._axes[i];if(this._getProjMinMaxOnAxis(i,e._corners,Sd),this._getProjMinMaxOnAxis(i,t._corners,kd),Sd[1]<kd[0]||Sd[0]>kd[1]){if(c=!1,o)return c;var f=Math.abs(kd[0]-Sd[1]),d=Math.abs(Sd[0]-kd[1]);Math.min(f,d)>r.len()&&(f<d?he.scale(r,h,-f*l):he.scale(r,h,d*l))}else if(n){f=Math.abs(kd[0]-Sd[1]),d=Math.abs(Sd[0]-kd[1]);Math.min(f,d)<n.len()&&(f<d?he.scale(n,h,f*l):he.scale(n,h,-d*l))}}return c},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],o=this._origin,l=t[0].dot(r)+o[e],c=l,h=l,i=1;i<t.length;i++){var f=t[i].dot(r)+o[e];c=Math.min(f,c),h=Math.max(f,h)}n[0]=c,n[1]=h},e}(),Ed=[],Ad=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return l(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var i=this._cursor;i<this._displayables.length;i++){(e=this._displayables[i]).parent=this,e.update(),e.parent=null}for(i=0;i<this._temporaryDisplayables.length;i++){var e;(e=this._temporaryDisplayables[i]).parent=this,e.update(),e.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var rect=new _e(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var e=this._displayables[i],t=e.getBoundingRect().clone();e.needLocalTransform()&&t.applyTransform(e.getLocalTransform(Ed)),rect.union(t)}this._rect=rect}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(e,t))return!0}return!1},t}(Mi),Md=Ad,Id=Math.max,Dd=Math.min,Pd={};function Nd(e){return Do.extend(e)}var Ld=function(e,t){var n=Sf(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return l(t,e),t}(xf)};function jd(e,t){return Ld(e,t)}function Rd(e,t){Pd[e]=t}function Fd(e){if(Pd.hasOwnProperty(e))return Pd[e]}function Bd(e,t,rect,n){var path=kf(e,t);return rect&&("center"===n&&(rect=$d(rect,path.getBoundingRect())),Hd(path,rect)),path}function zd(e,rect,t){var n=new Bo({style:{image:e,x:rect.x,y:rect.y,width:rect.width,height:rect.height},onload:function(img){if("center"===t){var e={width:img.width,height:img.height};n.setStyle($d(rect,e))}}});return n}function $d(rect,e){var t,n=e.width/e.height,r=rect.height*n;return t=r<=rect.width?rect.height:(r=rect.width)/n,{x:rect.x+rect.width/2-r/2,y:rect.y+rect.height/2-t/2,width:r,height:t}}var Vd=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var l=new Do(t);return l.createPathProxy(),l.buildPath=function(path){if(wf(path)){path.appendPath(n);var e=path.getContext();e&&path.rebuildPath(e,1)}},l};function Hd(path,rect){if(path.applyTransform){var e=path.getBoundingRect().calculateTransform(rect);path.applyTransform(e)}}function qd(e,t){return $o(e,e,{lineWidth:t}),e}function Wd(param){return Vo(param.shape,param.shape,param.style),param}var Ud=Ho;function Gd(e,t){for(var n=ie([]);e&&e!==t;)ae(n,e.getLocalTransform(),n),e=e.parent;return n}function Yd(e,t,n){return t&&!Object(h.u)(t)&&(t=_n.getLocalTransform(t)),n&&(t=ce([],t)),E([],e,t)}function Kd(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),o=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),l=["left"===e?-r:"right"===e?r:0,"top"===e?-o:"bottom"===e?o:0];return l=Yd(l,t,n),Math.abs(l[0])>Math.abs(l[1])?l[0]>0?"right":"left":l[1]>0?"bottom":"top"}function Xd(e){return!e.isGroup}function Zd(e,t,n){if(e&&t){var r,o=(r={},e.traverse((function(e){Xd(e)&&e.anid&&(r[e.anid]=e)})),r);t.traverse((function(e){if(Xd(e)&&e.anid){var t=o[e.anid];if(t){var r=l(e);e.attr(l(t)),ds(e,r,n,ca(e).dataIndex)}}}))}function l(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=Object(h.m)({},e.shape)),t}}function Jd(e,rect){return Object(h.H)(e,(function(e){var t=e[0];t=Id(t,rect.x),t=Dd(t,rect.x+rect.width);var n=e[1];return n=Id(n,rect.y),[t,n=Dd(n,rect.y+rect.height)]}))}function Qd(e,rect){var t=Id(e.x,rect.x),n=Dd(e.x+e.width,rect.x+rect.width),r=Id(e.y,rect.y),o=Dd(e.y+e.height,rect.y+rect.height);if(n>=t&&o>=r)return{x:t,y:r,width:n-t,height:o-r}}function ep(e,t,rect){var n=Object(h.m)({rectHover:!0},t),style=n.style={strokeNoScale:!0};if(rect=rect||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(style.image=e.slice(8),Object(h.i)(style,rect),new Bo(n)):Bd(e.replace("path://",""),n,rect,"center")}function tp(e,t,n,r,o){for(var i=0,l=o[o.length-1];i<o.length;i++){var p=o[i];if(np(e,t,n,r,p[0],p[1],l[0],l[1]))return!0;l=p}}function np(e,t,n,r,o,l,c,h){var f,d=n-e,v=r-t,m=c-o,y=h-l,_=ip(m,y,d,v);if((f=_)<=1e-6&&f>=-1e-6)return!1;var x=e-o,w=t-l,q=ip(x,w,d,v)/_;if(q<0||q>1)return!1;var p=ip(x,w,m,y)/_;return!(p<0||p>1)}function ip(e,t,n,r){return e*r-n*t}function op(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,o=Object(h.C)(t)?{formatter:t}:t,l=n.mainType,c=n.componentIndex,f={componentType:l,name:r,$vars:["name"]};f[l+"Index"]=c;var d=e.formatterParamsExtra;d&&Object(h.k)(Object(h.F)(d),(function(e){Object(h.q)(f,e)||(f[e]=d[e],f.$vars.push(e))}));var v=ca(e.el);v.componentMainType=l,v.componentIndex=c,v.tooltipConfig={name:r,option:Object(h.i)({content:r,formatterParams:f},o)}}function ap(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function sp(e,t){if(e)if(Object(h.t)(e))for(var i=0;i<e.length;i++)ap(e[i],t);else ap(e,t)}Rd("circle",Ef),Rd("ellipse",If),Rd("sector",Gf),Rd("ring",Xf),Rd("polygon",ed),Rd("polyline",id),Rd("rect",Go),Rd("line",ld),Rd("bezierCurve",pd),Rd("arc",md);var lp=jr(),up=of(),cp=function(){function e(){this.group=new qn,this.uid=Xs("viewChart"),this.renderTask=Yc({plan:dp,reset:pp}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){0},e.prototype.highlight=function(e,t,n,r){var data=e.getData(r&&r.dataType);data&&fp(data,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var data=e.getData(r&&r.dataType);data&&fp(data,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){sp(this.group,e)},e.markUpdateMethod=function(e,t){lp(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function hp(e,t,n){e&&ss(e)&&("emphasis"===t?$a:Va)(e,n)}function fp(data,e,t){var n=Lr(data,e),r=e&&null!=e.highlightKey?function(e){var t=da[e];return null==t&&fa<=32&&(t=da[e]=fa++),t}(e.highlightKey):null;null!=n?Object(h.k)(kr(n),(function(e){hp(data.getItemGraphicEl(e),t,r)})):data.eachItemGraphicEl((function(e){hp(e,t,r)}))}function dp(e){return up(e.model)}function pp(e){var t=e.model,n=e.ecModel,r=e.api,o=e.payload,l=t.pipelineContext.progressiveRender,view=e.view,c=o&&lp(o).updateMethod,h=l?"incrementalPrepareRender":c&&view[c]?c:"render";return"render"!==h&&view[h](t,n,r,o),gp[h]}Kr(cp),ei(cp);var gp={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},vp=cp,mp="\0__throttleOriginMethod",yp="\0__throttleRate",bp="\0__throttleType";function _p(e,t,n){var r,o,l,c,h,f=0,d=0,v=null;function m(){d=(new Date).getTime(),v=null,e.apply(l,c||[])}t=t||0;var y=function(){for(var e=[],y=0;y<arguments.length;y++)e[y]=arguments[y];r=(new Date).getTime(),l=this,c=e;var _=h||t,x=h||n;h=null,o=r-(x?f:d)-_,clearTimeout(v),x?v=setTimeout(m,_):o>=0?m():v=setTimeout(m,-o),f=r};return y.clear=function(){v&&(clearTimeout(v),v=null)},y.debounceNextCall=function(e){h=e},y}function xp(e,t,n,r){var o=e[t];if(o){var l=o[mp]||o,c=o[bp];if(o[yp]!==n||c!==r){if(null==n||!r)return e[t]=l;(o=e[t]=_p(l,n,"debounce"===r))[mp]=l,o[bp]=r,o[yp]=n}return o}}function wp(e,t){var n=e[t];n&&n[mp]&&(n.clear&&n.clear(),e[t]=n[mp])}var Sp=jr(),kp={itemStyle:ti(qs,!0),lineStyle:ti($s,!0)},Op={lineStyle:"stroke",itemStyle:"fill"};function Cp(e,t){var n=e.visualStyleMapper||kp[t];return n||(console.warn("Unkown style type '"+t+"'."),kp.itemStyle)}function Tp(e,t){var n=e.visualDrawType||Op[t];return n||(console.warn("Unkown style type '"+t+"'."),"fill")}var Ep={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var data=e.getData(),n=e.visualStyleAccessPath||"itemStyle",r=e.getModel(n),o=Cp(e,n)(r),l=r.getShallow("decal");l&&(data.setVisual("decal",l),l.dirty=!0);var c=Tp(e,n),f=o[c],d=Object(h.w)(f)?f:null,v="auto"===o.fill||"auto"===o.stroke;if(!o[c]||d||v){var m=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[c]||(o[c]=m,data.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(h.w)(o.fill)?m:o.fill,o.stroke="auto"===o.stroke||Object(h.w)(o.stroke)?m:o.stroke}if(data.setVisual("style",o),data.setVisual("drawType",c),!t.isSeriesFiltered(e)&&d)return data.setVisual("colorFromPalette",!1),{dataEach:function(data,t){var n=e.getDataParams(t),r=Object(h.m)({},o);r[c]=d(n),data.setItemVisual(t,"style",r)}}}},Ap=new Ys,Mp={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var data=e.getData(),n=e.visualStyleAccessPath||"itemStyle",r=Cp(e,n),o=data.getVisual("drawType");return{dataEach:data.hasItemOption?function(data,e){var t=data.getRawDataItem(e);if(t&&t[n]){Ap.option=t[n];var style=r(Ap),l=data.ensureUniqueItemVisual(e,"style");Object(h.m)(l,style),Ap.option.decal&&(data.setItemVisual(e,"decal",Ap.option.decal),Ap.option.decal.dirty=!0),o in style&&data.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Ip={performRawSeries:!0,overallReset:function(e){var t=Object(h.f)();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,o=t.get(r);o||(o={},t.set(r,o)),Sp(e).scope=o}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},data=t.getData(),o=Sp(t).scope,l=t.visualStyleAccessPath||"itemStyle",c=Tp(t,l);data.each((function(e){var t=data.getRawIndex(e);r[t]=e})),n.each((function(e){var l=r[e];if(data.getItemVisual(l,"colorFromPalette")){var h=data.ensureUniqueItemVisual(l,"style"),f=n.getName(e)||e+"",d=n.count();h[c]=t.getColorFromPalette(f,o,d)}}))}}))}},Dp=Math.PI;var Pp=function(){function e(e,t,n,r){this._stageTaskMap=Object(h.f)(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,o=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,l=r&&r.modDataCount;return{step:o,modBy:null!=l?Math.ceil(l/o):null,modDataCount:l}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,view){var t=this._pipelineMap.get(e.uid),n=e.getData().count(),r=t.progressiveEnabled&&view.incrementalPrepareRender&&n>=t.threshold,o=e.get("large")&&n>=e.get("largeThreshold"),l="mod"===e.get("progressiveChunkMode")?n:null;e.pipelineContext=t.context={progressiveRender:r,modDataCount:l,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(h.f)();e.eachSeries((function(e){var r=e.getProgressive(),o=e.uid;n.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(h.k)(this._allHandlers,(function(r){var o=e.get(r.uid)||e.set(r.uid,{});Object(h.b)(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,o,t,n),r.overallReset&&this._createOverallStageTask(r,o,t,n)}),this)},e.prototype.prepareView=function(view,e,t,n){var r=view.renderTask,o=r.context;o.model=e,o.ecModel=t,o.api=n,r.__block=!view.incrementalPrepareRender,this._pipe(e,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var o=!1,l=this;function c(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(h.k)(e,(function(e,h){if(!r.visualType||r.visualType===e.visualType){var f=l._stageTaskMap.get(e.uid),d=f.seriesTaskMap,v=f.overallTask;if(v){var m,y=v.agentStubMap;y.each((function(e){c(r,e)&&(e.dirty(),m=!0)})),m&&v.dirty(),l.updatePayload(v,n);var _=l.getPerformArgs(v,r.block);y.each((function(e){e.perform(_)})),v.perform(_)&&(o=!0)}else d&&d.each((function(h,f){c(r,h)&&h.dirty();var d=l.getPerformArgs(h,r.block);d.skip=!e.performRawSeries&&t.isSeriesFiltered(h.context.model),l.updatePayload(h,n),h.perform(d)&&(o=!0)}))}})),this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var o=this,l=t.seriesTaskMap,c=t.seriesTaskMap=Object(h.f)(),f=e.seriesType,d=e.getTargetSeries;function v(t){var h=t.uid,f=c.set(h,l&&l.get(h)||Yc({plan:Fp,reset:Bp,count:Vp}));f.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(t,f)}e.createOnAllSeries?n.eachRawSeries(v):f?n.eachRawSeriesByType(f,v):d&&d(n,r).each(v)},e.prototype._createOverallStageTask=function(e,t,n,r){var o=this,l=t.overallTask=t.overallTask||Yc({reset:Np});l.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:o};var c=l.agentStubMap,f=l.agentStubMap=Object(h.f)(),d=e.seriesType,v=e.getTargetSeries,m=!0,y=!1;function _(e){var t=e.uid,n=f.set(t,c&&c.get(t)||(y=!0,Yc({reset:Lp,onDirty:Rp})));n.context={model:e,overallProgress:m},n.agent=l,n.__block=m,o._pipe(e,n)}Object(h.b)(!e.createOnAllSeries,""),d?n.eachRawSeriesByType(d,_):v?v(n,r).each(_):(m=!1,Object(h.k)(n.getSeries(),_)),y&&l.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return Object(h.w)(e)&&(e={overallReset:e,seriesType:Hp(e)}),e.uid=Xs("stageHandler"),t&&(e.visualType=t),e},e}();function Np(e){e.overallReset(e.ecModel,e.api,e.payload)}function Lp(e){return e.overallProgress&&jp}function jp(){this.agent.dirty(),this.getDownstream().dirty()}function Rp(){this.agent&&this.agent.dirty()}function Fp(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Bp(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=kr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(h.H)(t,(function(e,t){return $p(t)})):zp}var zp=$p(0);function $p(e){return function(t,n){var data=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var i=t.start;i<t.end;i++)r.dataEach(data,i);else r&&r.progress&&r.progress(t,data)}}function Vp(e){return e.data.count()}function Hp(e){qp=null;try{e(Wp,Up)}catch(e){}return qp}var qp,Wp={},Up={};function Gp(e,t){for(var n in t.prototype)e[n]=h.L}Gp(Wp,qu),Gp(Up,Uu),Wp.eachSeriesByType=Wp.eachRawSeriesByType=function(e){qp=e},Wp.eachComponent=function(e){"series"===e.mainType&&e.subType&&(qp=e.subType)};var Yp=Pp,Kp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Xp={color:Kp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Kp]},Zp="#B9B8CE",Jp="#100C2A",Qp=function(){return{axisLine:{lineStyle:{color:Zp}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},eg=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],tg={darkMode:!0,color:eg,backgroundColor:Jp,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Zp}},textStyle:{color:Zp},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Zp}},dataZoom:{borderColor:"#71708A",textStyle:{color:Zp},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Zp}},timeline:{lineStyle:{color:Zp},label:{color:Zp},controlStyle:{color:Zp,borderColor:Zp}},calendar:{itemStyle:{color:Jp},dayLabel:{color:Zp},monthLabel:{color:Zp},yearLabel:{color:Zp}},timeAxis:Qp(),logAxis:Qp(),valueAxis:Qp(),categoryAxis:Qp(),line:{symbol:"circle"},graph:{color:eg},gauge:{title:{color:Zp},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Zp},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};tg.categoryAxis.splitLine.show=!1;var ng=tg,rg=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(h.C(e)){var o=Yr(e);t.mainType=o.main||null,t.subType=o.sub||null}else{var l=["Index","Name","Id"],c={name:1,dataIndex:1,dataType:1};h.k(e,(function(e,o){for(var h=!1,i=0;i<l.length;i++){var f=l[i],d=o.lastIndexOf(f);if(d>0&&d===o.length-f.length){var v=o.slice(0,d);"data"!==v&&(t.mainType=v,t[f.toLowerCase()]=e,h=!0)}}c.hasOwnProperty(o)&&(n[o]=e,h=!0),h||(r[o]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,o=n.packedEvent,l=n.model,view=n.view;if(!l||!view)return!0;var c=t.cptQuery,h=t.dataQuery;return f(c,l,"mainType")&&f(c,l,"subType")&&f(c,l,"index","componentIndex")&&f(c,l,"name")&&f(c,l,"id")&&f(h,o,"name")&&f(h,o,"dataIndex")&&f(h,o,"dataType")&&(!view.filterForExposedEvent||view.filterForExposedEvent(e,t.otherQuery,r,o));function f(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),ig=["symbol","symbolSize","symbolRotate","symbolOffset"],og=ig.concat(["symbolKeepAspect"]),ag={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var data=e.getData();if(e.legendIcon&&data.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var n={},r={},o=!1,i=0;i<ig.length;i++){var l=ig[i],c=e.get(l);Object(h.w)(c)?(o=!0,r[l]=c):n[l]=c}if(n.symbol=n.symbol||e.defaultSymbol,data.setVisual(Object(h.m)({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),!t.isSeriesFiltered(e)){var f=Object(h.F)(r);return{dataEach:o?function(data,t){for(var n=e.getRawValue(t),o=e.getDataParams(t),i=0;i<f.length;i++){var l=f[i];data.setItemVisual(t,l,r[l](n,o))}}:null}}}}},sg={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(data,e){for(var t=data.getItemModel(e),i=0;i<og.length;i++){var n=og[i],r=t.getShallow(n,!0);null!=r&&data.setItemVisual(e,n,r)}}:null}}};function lg(data,e,t){switch(t){case"color":return data.getItemVisual(e,"style")[data.getVisual("drawType")];case"opacity":return data.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return data.getItemVisual(e,t)}}function ug(data,e){switch(e){case"color":return data.getVisual("style")[data.getVisual("drawType")];case"opacity":return data.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return data.getVisual(e)}}function cg(data,e,t,n){switch(t){case"color":data.ensureUniqueItemVisual(e,"style")[data.getVisual("drawType")]=n,data.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":data.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":data.setItemVisual(e,t,n)}}function hg(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){r.push(e.seriesIndex)})),r}Object(h.k)([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,r,o){t=Object(h.m)({},t),o.dispatchAction(Object(h.m)(t,{type:e[1],seriesIndex:n(r,t)}))}))}))}function fg(e,t,n,r,o){var l=e+t;n.isSilent(l)||r.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,c=o.selected,i=0;i<c.length;i++)if(c[i].seriesIndex===t){var data=e.getData(),f=Lr(data,o.fromActionPayload);n.trigger(l,{type:l,seriesId:e.id,name:Object(h.t)(f)?data.getName(f[0]):data.getName(f),selected:Object(h.C)(r)?r:Object(h.m)({},r)})}}))}function dg(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var pg=Math.round(9*Math.random()),gg="function"==typeof Object.defineProperty,vg=function(){function e(){this._id="__ec_inner_"+pg++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return gg?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),mg=vg,yg=Do.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(path,e){var t=e.cx,n=e.cy,r=e.width/2,o=e.height/2;path.moveTo(t,n-o),path.lineTo(t+r,n+o),path.lineTo(t-r,n+o),path.closePath()}}),bg=Do.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(path,e){var t=e.cx,n=e.cy,r=e.width/2,o=e.height/2;path.moveTo(t,n-o),path.lineTo(t+r,n),path.lineTo(t,n+o),path.lineTo(t-r,n),path.closePath()}}),_g=Do.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(path,e){var t=e.x,n=e.y,r=e.width/5*3,o=Math.max(r,e.height),l=r/2,c=l*l/(o-l),h=n-o+l+c,f=Math.asin(c/l),d=Math.cos(f)*l,v=Math.sin(f),m=Math.cos(f),y=.6*l,_=.7*l;path.moveTo(t-d,h+c),path.arc(t,h,l,Math.PI-f,2*Math.PI+f),path.bezierCurveTo(t+d-v*y,h+c+m*y,t,n-_,t,n),path.bezierCurveTo(t,n-_,t-d+v*y,h+c+m*y,t-d,h+c),path.closePath()}}),xg=Do.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,o=t.x,l=t.y,c=r/3*2;e.moveTo(o,l),e.lineTo(o+c,l+n),e.lineTo(o,l+n/4*3),e.lineTo(o-c,l+n),e.lineTo(o,l),e.closePath()}}),wg={line:ld,rect:Go,roundRect:Go,square:Go,circle:Ef,diamond:bg,pin:_g,arrow:xg,triangle:yg},Sg={line:function(e,t,n,r,o){o.x1=e,o.y1=t+r/2,o.x2=e+n,o.y2=t+r/2},rect:function(e,t,n,r,o){o.x=e,o.y=t,o.width=n,o.height=r},roundRect:function(e,t,n,r,o){o.x=e,o.y=t,o.width=n,o.height=r,o.r=Math.min(n,r)/4},square:function(e,t,n,r,o){var l=Math.min(n,r);o.x=e,o.y=t,o.width=l,o.height=l},circle:function(e,t,n,r,o){o.cx=e+n/2,o.cy=t+r/2,o.r=Math.min(n,r)/2},diamond:function(e,t,n,r,o){o.cx=e+n/2,o.cy=t+r/2,o.width=n,o.height=r},pin:function(e,t,n,r,o){o.x=e+n/2,o.y=t+r/2,o.width=n,o.height=r},arrow:function(e,t,n,r,o){o.x=e+n/2,o.y=t+r/2,o.width=n,o.height=r},triangle:function(e,t,n,r,o){o.cx=e+n/2,o.cy=t+r/2,o.width=n,o.height=r}},kg={};Object(h.k)(wg,(function(e,t){kg[t]=new e}));var Og=Do.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,rect){var n=In(e,t,rect),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(n.y=rect.y+.4*rect.height),n},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var o=kg[r];o||(o=kg[r="rect"]),Sg[r](t.x,t.y,t.width,t.height,o.shape),o.buildPath(e,o.shape,n)}}});function Cg(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function Tg(e,t,n,r,o,l,c){var h,f=0===e.indexOf("empty");return f&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(h=0===e.indexOf("image://")?zd(e.slice(8),new _e(t,n,r,o),c?"center":"cover"):0===e.indexOf("path://")?Bd(e.slice(7),{},new _e(t,n,r,o),c?"center":"cover"):new Og({shape:{symbolType:e,x:t,y:n,width:r,height:o}})).__isEmptyBrush=f,h.setColor=Cg,l&&h.setColor(l),h}function Eg(e){return Object(h.t)(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Ag(e,t){if(null!=e)return Object(h.t)(e)||(e=[e,e]),[Zn(e[0],t[0])||0,Zn(Object(h.P)(e[1],e[0]),t[1])||0]}function Mg(e){return isFinite(e)}function Ig(e,t,rect){for(var n="radial"===t.type?function(e,t,rect){var n=rect.width,r=rect.height,o=Math.min(n,r),l=null==t.x?.5:t.x,c=null==t.y?.5:t.y,h=null==t.r?.5:t.r;return t.global||(l=l*n+rect.x,c=c*r+rect.y,h*=o),l=Mg(l)?l:.5,c=Mg(c)?c:.5,h=h>=0&&Mg(h)?h:.5,e.createRadialGradient(l,c,0,l,c,h)}(e,t,rect):function(e,t,rect){var n=null==t.x?0:t.x,r=null==t.x2?1:t.x2,o=null==t.y?0:t.y,l=null==t.y2?0:t.y2;return t.global||(n=n*rect.width+rect.x,r=r*rect.width+rect.x,o=o*rect.height+rect.y,l=l*rect.height+rect.y),n=Mg(n)?n:0,r=Mg(r)?r:1,o=Mg(o)?o:0,l=Mg(l)?l:0,e.createLinearGradient(n,o,r,l)}(e,t,rect),r=t.colorStops,i=0;i<r.length;i++)n.addColorStop(r[i].offset,r[i].color);return n}function Dg(e){return parseInt(e,10)}function Pg(e,t,n){var r=["width","height"][t],o=["clientWidth","clientHeight"][t],l=["paddingLeft","paddingTop"][t],c=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var h=document.defaultView.getComputedStyle(e);return(e[o]||Dg(h[r])||Dg(e.style[r]))-(Dg(h[l])||0)-(Dg(h[c])||0)|0}function Ng(e){var t,n,style=e.style,r=style.lineDash&&style.lineWidth>0&&(t=style.lineDash,n=style.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:Object(h.z)(t)?[t]:Object(h.t)(t)?t:null:null),o=style.lineDashOffset;if(r){var l=style.strokeNoScale&&e.getLineScale?e.getLineScale():1;l&&1!==l&&(r=Object(h.H)(r,(function(e){return e/l})),o/=l)}return[r,o]}var Lg=new ho(!0);function jg(style){var e=style.stroke;return!(null==e||"none"===e||!(style.lineWidth>0))}function Rg(e){return"string"==typeof e&&"none"!==e}function Fg(style){var e=style.fill;return null!=e&&"none"!==e}function Bg(e,style){if(null!=style.fillOpacity&&1!==style.fillOpacity){var t=e.globalAlpha;e.globalAlpha=style.fillOpacity*style.opacity,e.fill(),e.globalAlpha=t}else e.fill()}function zg(e,style){if(null!=style.strokeOpacity&&1!==style.strokeOpacity){var t=e.globalAlpha;e.globalAlpha=style.strokeOpacity*style.opacity,e.stroke(),e.globalAlpha=t}else e.stroke()}function $g(e,pattern,t){var image=ai(pattern.image,pattern.__image,t);if(ui(image)){var n=e.createPattern(image,pattern.repeat||"repeat");if("function"==typeof DOMMatrix&&n&&n.setTransform){var r=new DOMMatrix;r.translateSelf(pattern.x||0,pattern.y||0),r.rotateSelf(0,0,(pattern.rotation||0)*h.a),r.scaleSelf(pattern.scaleX||1,pattern.scaleY||1),n.setTransform(r)}return n}}var Vg=["shadowBlur","shadowOffsetX","shadowOffsetY"],Hg=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function qg(e,style,t,n,r){var o=!1;if(!n&&style===(t=t||{}))return!1;if(n||style.opacity!==t.opacity){Gg(e,r),o=!0;var l=Math.max(Math.min(style.opacity,1),0);e.globalAlpha=isNaN(l)?Si.opacity:l}(n||style.blend!==t.blend)&&(o||(Gg(e,r),o=!0),e.globalCompositeOperation=style.blend||Si.blend);for(var i=0;i<Vg.length;i++){var c=Vg[i];(n||style[c]!==t[c])&&(o||(Gg(e,r),o=!0),e[c]=e.dpr*(style[c]||0))}return(n||style.shadowColor!==t.shadowColor)&&(o||(Gg(e,r),o=!0),e.shadowColor=style.shadowColor||Si.shadowColor),o}function Wg(e,t,n,r,o){var style=Yg(t,o.inHover),l=r?null:n&&Yg(n,o.inHover)||{};if(style===l)return!1;var c=qg(e,style,l,r,o);if((r||style.fill!==l.fill)&&(c||(Gg(e,o),c=!0),Rg(style.fill)&&(e.fillStyle=style.fill)),(r||style.stroke!==l.stroke)&&(c||(Gg(e,o),c=!0),Rg(style.stroke)&&(e.strokeStyle=style.stroke)),(r||style.opacity!==l.opacity)&&(c||(Gg(e,o),c=!0),e.globalAlpha=null==style.opacity?1:style.opacity),t.hasStroke()){var h=style.lineWidth/(style.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==h&&(c||(Gg(e,o),c=!0),e.lineWidth=h)}for(var i=0;i<Hg.length;i++){var f=Hg[i],d=f[0];(r||style[d]!==l[d])&&(c||(Gg(e,o),c=!0),e[d]=style[d]||f[1])}return c}function Ug(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function Gg(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Yg(e,t){return t&&e.__hoverStyle||e.style}function Kg(e,t){Xg(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Xg(e,t,n,r){var o=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var l=t.__clipPaths,c=n.prevElClipPaths,h=!1,f=!1;if(c&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!0;return!1}(l,c)||(c&&c.length&&(Gg(e,n),e.restore(),f=h=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),l&&l.length&&(Gg(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),Ug(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}(l,e,n),h=!0),n.prevElClipPaths=l),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var d=n.prevEl;d||(f=h=!0);var v,m,y=t instanceof Do&&t.autoBatch&&function(style){var e=Fg(style),t=jg(style);return!(style.lineDash||!(+e^+t)||e&&"string"!=typeof style.fill||t&&"string"!=typeof style.stroke||style.strokePercent<1||style.strokeOpacity<1||style.fillOpacity<1)}(t.style);h||(v=o,m=d.transform,v&&m?v[0]!==m[0]||v[1]!==m[1]||v[2]!==m[2]||v[3]!==m[3]||v[4]!==m[4]||v[5]!==m[5]:v||m)?(Gg(e,n),Ug(e,t)):y||Gg(e,n);var style=Yg(t,n.inHover);t instanceof Do?(1!==n.lastDrawType&&(f=!0,n.lastDrawType=1),Wg(e,t,d,f,n),y&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,style,n){var r,o=jg(style),l=Fg(style),c=style.strokePercent,h=c<1,f=!t.path;t.silent&&!h||!f||t.createPathProxy();var path=t.path||Lg,d=t.__dirty;if(!n){var v=style.fill,m=style.stroke,y=l&&!!v.colorStops,_=o&&!!m.colorStops,x=l&&!!v.image,w=o&&!!m.image,S=void 0,k=void 0,O=void 0,C=void 0,rect=void 0;(y||_)&&(rect=t.getBoundingRect()),y&&(S=d?Ig(e,v,rect):t.__canvasFillGradient,t.__canvasFillGradient=S),_&&(k=d?Ig(e,m,rect):t.__canvasStrokeGradient,t.__canvasStrokeGradient=k),x&&(O=d||!t.__canvasFillPattern?$g(e,v,t):t.__canvasFillPattern,t.__canvasFillPattern=O),w&&(C=d||!t.__canvasStrokePattern?$g(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=O),y?e.fillStyle=S:x&&(O?e.fillStyle=O:l=!1),_?e.strokeStyle=k:w&&(C?e.strokeStyle=C:o=!1)}var T,E,A=t.getGlobalScale();path.setScale(A[0],A[1],t.segmentIgnoreThreshold),e.setLineDash&&style.lineDash&&(T=(r=Ng(t))[0],E=r[1]);var M=!0;(f||4&d)&&(path.setDPR(e.dpr),h?path.setContext(null):(path.setContext(e),M=!1),path.reset(),t.buildPath(path,t.shape,n),path.toStatic(),t.pathUpdated()),M&&path.rebuildPath(e,h?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),n||(style.strokeFirst?(o&&zg(e,style),l&&Bg(e,style)):(l&&Bg(e,style),o&&zg(e,style))),T&&e.setLineDash([])}(e,t,style,y),y&&(n.batchFill=style.fill||"",n.batchStroke=style.stroke||"")):t instanceof Lo?(3!==n.lastDrawType&&(f=!0,n.lastDrawType=3),Wg(e,t,d,f,n),function(e,t,style){var n,text=style.text;if(null!=text&&(text+=""),text){e.font=style.font||wn.a,e.textAlign=style.textAlign,e.textBaseline=style.textBaseline;var r=void 0,o=void 0;e.setLineDash&&style.lineDash&&(r=(n=Ng(t))[0],o=n[1]),r&&(e.setLineDash(r),e.lineDashOffset=o),style.strokeFirst?(jg(style)&&e.strokeText(text,style.x,style.y),Fg(style)&&e.fillText(text,style.x,style.y)):(Fg(style)&&e.fillText(text,style.x,style.y),jg(style)&&e.strokeText(text,style.x,style.y)),r&&e.setLineDash([])}}(e,t,style)):t instanceof Bo?(2!==n.lastDrawType&&(f=!0,n.lastDrawType=2),function(e,t,n,r,o){qg(e,Yg(t,o.inHover),n&&Yg(n,o.inHover),r,o)}(e,t,d,f,n),function(e,t,style){var image=t.__image=ai(style.image,t.__image,t,t.onload);if(image&&ui(image)){var n=style.x||0,r=style.y||0,o=t.getWidth(),l=t.getHeight(),c=image.width/image.height;if(null==o&&null!=l?o=l*c:null==l&&null!=o?l=o/c:null==o&&null==l&&(o=image.width,l=image.height),style.sWidth&&style.sHeight){var h=style.sx||0,f=style.sy||0;e.drawImage(image,h,f,style.sWidth,style.sHeight,n,r,o,l)}else if(style.sx&&style.sy){var d=o-(h=style.sx),v=l-(f=style.sy);e.drawImage(image,h,f,d,v,n,r,o,l)}else e.drawImage(image,n,r,o,l)}}(e,t,style)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(f=!0,n.lastDrawType=4),function(e,t,n){var r=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var i,l,c={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(i=t.getCursor(),l=r.length;i<l;i++){(d=r[i]).beforeBrush&&d.beforeBrush(),d.innerBeforeBrush(),Xg(e,d,c,i===l-1),d.innerAfterBrush(),d.afterBrush&&d.afterBrush(),c.prevEl=d}for(var h=0,f=o.length;h<f;h++){var d;(d=o[h]).beforeBrush&&d.beforeBrush(),d.innerBeforeBrush(),Xg(e,d,c,h===f-1),d.innerAfterBrush(),d.afterBrush&&d.afterBrush(),c.prevEl=d}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),y&&r&&Gg(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var Zg=new mg,Jg=new xn.a(100),Qg=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ev(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),o="svg"===r.painter.type;e.dirty&&Zg.delete(e);var l=Zg.get(e);if(l)return l;var c=Object(h.i)(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===c.backgroundColor&&(c.backgroundColor=null);var pattern={repeat:"repeat"};return function(pattern){for(var e,t=[n],l=!0,i=0;i<Qg.length;++i){var f=c[Qg[i]];if(null!=f&&!Object(h.t)(f)&&!Object(h.C)(f)&&!Object(h.z)(f)&&"boolean"!=typeof f){l=!1;break}t.push(f)}if(l){e=t.join(",")+(o?"-svg":"");var d=Jg.get(e);d&&(o?pattern.svgElement=d:pattern.image=d)}var v,m=nv(c.dashArrayX),y=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(Object(h.z)(e)){var t=Math.ceil(e);return[t,t]}var n=Object(h.H)(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}(c.dashArrayY),_=tv(c.symbol),x=(O=m,Object(h.H)(O,(function(line){return rv(line)}))),w=rv(y),canvas=!o&&wn.d.createCanvas(),S=o&&{tag:"g",attrs:{},key:"dcl",children:[]},k=function(){for(var e=1,i=0,t=x.length;i<t;++i)e=_r(e,x[i]);var n=1;for(i=0,t=_.length;i<t;++i)n=_r(n,_[i].length);e*=n;var r=w*x.length*_.length;0;return{width:Math.max(1,Math.min(e,c.maxTileWidth)),height:Math.max(1,Math.min(r,c.maxTileHeight))}}();var O;canvas&&(canvas.width=k.width*n,canvas.height=k.height*n,v=canvas.getContext("2d"));(function(){v&&(v.clearRect(0,0,canvas.width,canvas.height),c.backgroundColor&&(v.fillStyle=c.backgroundColor,v.fillRect(0,0,canvas.width,canvas.height)));for(var e=0,i=0;i<y.length;++i)e+=y[i];if(e<=0)return;var t=-w,l=0,h=0,f=0;for(;t<k.height;){if(l%2==0){for(var d=h/2%_.length,x=0,O=0,C=0;x<2*k.width;){var T=0;for(i=0;i<m[f].length;++i)T+=m[f][i];if(T<=0)break;if(O%2==0){var E=.5*(1-c.symbolSize),A=x+m[f][O]*E,M=t+y[l]*E,I=m[f][O]*c.symbolSize,D=y[l]*c.symbolSize,P=C/2%_[d].length;N(A,M,I,D,_[d][P])}x+=m[f][O],++C,++O===m[f].length&&(O=0)}++f===m.length&&(f=0)}t+=y[l],++h,++l===y.length&&(l=0)}function N(e,t,l,h,f){var d=o?1:n,symbol=Tg(f,e*d,t*d,l*d,h*d,c.color,c.symbolKeepAspect);if(o){var m=r.painter.renderOneToVNode(symbol);m&&S.children.push(m)}else Kg(v,symbol)}})(),l&&Jg.put(e,canvas||S);pattern.image=canvas,pattern.svgElement=S,pattern.svgWidth=k.width,pattern.svgHeight=k.height}(pattern),pattern.rotation=c.rotation,pattern.scaleX=pattern.scaleY=o?1:1/n,Zg.set(e,pattern),e.dirty=!1,pattern}function tv(symbol){if(!symbol||0===symbol.length)return[["rect"]];if(Object(h.C)(symbol))return[[symbol]];for(var e=!0,i=0;i<symbol.length;++i)if(!Object(h.C)(symbol[i])){e=!1;break}if(e)return tv([symbol]);var t=[];for(i=0;i<symbol.length;++i)Object(h.C)(symbol[i])?t.push([symbol[i]]):t.push(symbol[i]);return t}function nv(e){if(!e||0===e.length)return[[0,0]];if(Object(h.z)(e))return[[r=Math.ceil(e),r]];for(var t=!0,i=0;i<e.length;++i)if(!Object(h.z)(e[i])){t=!1;break}if(t)return nv([e]);var n=[];for(i=0;i<e.length;++i)if(Object(h.z)(e[i])){var r=Math.ceil(e[i]);n.push([r,r])}else{(r=Object(h.H)(e[i],(function(e){return Math.ceil(e)}))).length%2==1?n.push(r.concat(r)):n.push(r)}return n}function rv(e){for(var t=0,i=0;i<e.length;++i)t+=e[i];return e.length%2==1?2*t:t}var iv=new N,ov={};function av(e){return ov[e]}var sv="undefined"!=typeof window,lv=2e3,uv=4500,cv={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:lv,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:uv,ARIA:6e3,DECAL:7e3}},hv=/^[a-zA-Z0-9_]+$/,fv="__connectUpdateStatus";function dv(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return gv(this,e,t);Bv(this.id)}}function pv(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return gv(this,e,t)}}function gv(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),N.prototype[t].apply(e,n)}var vv,mv,yv,bv,_v,xv,wv,Sv,kv,Ov,Cv,Tv,Ev,Av,Mv,Iv,Dv,Pv,Nv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(N),Lv=Nv.prototype;Lv.on=pv("on"),Lv.off=pv("off");var jv=function(e){function t(t,n,r){var o=e.call(this,new rg)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},Object(h.C)(n)&&(n=Wv[n]),o._dom=t;var l=o._zr=Yn(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Object(h.P)(r.useDirtyRect,!1),useCoarsePointer:Object(h.P)(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});o._ssr=r.ssr,o._throttledZrFlush=_p(Object(h.c)(l.flush,l),17),(n=Object(h.d)(n))&&yc(n,!0),o._theme=n,o._locale=function(e){if(Object(h.C)(e)){var t=tl[e.toUpperCase()]||{};return e===Js||e===Qs?Object(h.d)(t):Object(h.I)(Object(h.d)(t),Object(h.d)(tl.EN),!1)}return Object(h.I)(Object(h.d)(e),Object(h.d)(tl.EN),!1)}(r.locale||rl),o._coordSysMgr=new Ku;var c=o._api=Mv(o);function f(a,b){return a.__prio-b.__prio}return Re(qv,f),Re(Vv,f),o._scheduler=new Yp(o,c,Vv,qv),o._messageCenter=new Nv,o._initEvents(),o.resize=Object(h.c)(o.resize,o),l.animation.on("frame",o._onframe,o),Ov(l,o),Cv(l,o),Object(h.R)(o),o}return l(t,e),t.prototype._onframe=function(){if(!this._disposed){Pv(this);var e=this._scheduler;if(this.__pendingUpdate){var t=this.__pendingUpdate.silent;this.__flagInMainProcess=!0;try{vv(this),bv.update.call(this,null,this.__pendingUpdate.updateParams)}catch(e){throw this.__flagInMainProcess=!1,this.__pendingUpdate=null,e}this._zr.flush(),this.__flagInMainProcess=!1,this.__pendingUpdate=null,Sv.call(this,t),kv.call(this,t)}else if(e.unfinished){var n=1,r=this._model,o=this._api;e.unfinished=!1;do{var l=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),xv(this,r),e.performVisualTasks(r),Av(this,this._model,o,"remain",{}),n-=+new Date-l}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(option,e,t){if(!this.__flagInMainProcess)if(this._disposed)Bv(this.id);else{var n,r,o;if(Object(h.A)(e)&&(t=e.lazyUpdate,n=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var l=new Ju(this._api),c=this._theme,f=this._model=new qu;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,c,this._locale,l)}this._model.setOption(option,{replaceMerge:r},Hv);var d={seriesTransition:o,optionChanged:!0};if(t)this.__pendingUpdate={silent:n,updateParams:d},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{vv(this),bv.update.call(this,null,d)}catch(e){throw this.__pendingUpdate=null,this.__flagInMainProcess=!1,e}this._ssr||this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,Sv.call(this,n),kv.call(this,n)}}},t.prototype.setTheme=function(){Fu()},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||sv&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(c.a.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(h.k)(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],o=this;Object(h.k)(t,(function(e){n.eachComponent({mainType:e},(function(component){var view=o._componentsMap[component.__viewId];view.group.ignore||(r.push(view),view.group.ignore=!0)}))}));var l="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(h.k)(r,(function(view){view.group.ignore=!1})),l}Bv(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,o=Math.max,l=1/0;if(Yv[n]){var c=l,f=l,d=-1/0,v=-1/0,m=[],y=e&&e.pixelRatio||this.getDevicePixelRatio();Object(h.k)(Gv,(function(l,y){if(l.group===n){var canvas=t?l.getZr().painter.getSvgDom().innerHTML:l.renderToCanvas(Object(h.d)(e)),_=l.getDom().getBoundingClientRect();c=r(_.left,c),f=r(_.top,f),d=o(_.right,d),v=o(_.bottom,v),m.push({dom:canvas,left:_.left,top:_.top})}}));var _=(d*=y)-(c*=y),x=(v*=y)-(f*=y),w=wn.d.createCanvas(),S=Yn(w,{renderer:t?"svg":"canvas"});if(S.resize({width:_,height:x}),t){var k="";return Object(h.k)(m,(function(e){var t=e.left-c,n=e.top-f;k+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),S.painter.getSvgRoot().innerHTML=k,e.connectedBackgroundColor&&S.painter.setBackgroundColor(e.connectedBackgroundColor),S.refreshImmediately(),S.painter.toDataURL()}return e.connectedBackgroundColor&&S.add(new Go({shape:{x:0,y:0,width:_,height:x},style:{fill:e.connectedBackgroundColor}})),Object(h.k)(m,(function(e){var img=new Bo({style:{x:e.left*y-c,y:e.top*y-f,image:e.dom}});S.add(img)})),S.refreshImmediately(),w.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Bv(this.id)},t.prototype.convertToPixel=function(e,t){return _v(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return _v(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=Fr(this._model,e);return Object(h.k)(r,(function(e,r){r.indexOf("Models")>=0&&Object(h.k)(e,(function(e){var o=e.coordinateSystem;if(o&&o.containPoint)n=n||!!o.containPoint(t);else if("seriesModels"===r){var view=this._chartsMap[e.__viewId];view&&view.containPoint&&(n=n||view.containPoint(t,e))}else 0}),this)}),this),!!n}Bv(this.id)},t.prototype.getVisual=function(e,t){var n=Fr(this._model,e,{defaultMainType:"series"});var data=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?data.indexOfRawIndex(n.dataIndex):null;return null!=r?lg(data,r,t):ug(data,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,r=this;Object(h.k)(Fv,(function(e){var t=function(t){var n,o=r.getModel(),l=t.target;if("globalout"===e?n={}:l&&dg(l,(function(e){var t=ca(e);if(t&&null!=t.dataIndex){var r=t.dataModel||o.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return n=Object(h.m)({},t.eventData),!0}),!0),n){var c=n.componentType,f=n.componentIndex;"markLine"!==c&&"markPoint"!==c&&"markArea"!==c||(c="series",f=n.seriesIndex);var d=c&&null!=f&&o.getComponent(c,f),view=d&&r["series"===d.mainType?"_chartsMap":"_componentsMap"][d.__viewId];0,n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:n,model:d,view:view},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)})),Object(h.k)($v,(function(e,t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),Object(h.k)(["selectchanged"],(function(e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",(function(e){var r=n.getModel();e.isFromClick?(fg("map","selectchanged",t,r,e),fg("pie","selectchanged",t,r,e)):"select"===e.fromAction?(fg("map","selected",t,r,e),fg("pie","selected",t,r,e)):"unselect"===e.fromAction&&(fg("map","unselected",t,r,e),fg("pie","unselected",t,r,e))}))},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Bv(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Bv(this.id);else{this._disposed=!0,this.getDom()&&Hr(this.getDom(),Xv,"");var e=this,t=e._api,n=e._model;Object(h.k)(e._componentsViews,(function(component){component.dispose(n,t)})),Object(h.k)(e._chartsViews,(function(e){e.dispose(n,t)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Gv[e.id]}},t.prototype.resize=function(e){if(!this.__flagInMainProcess)if(this._disposed)Bv(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this.__pendingUpdate&&(null==r&&(r=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&vv(this),bv.update.call(this,{type:"resize",animation:Object(h.m)({duration:0},e&&e.animation)})}catch(e){throw this.__flagInMainProcess=!1,e}this.__flagInMainProcess=!1,Sv.call(this,r),kv.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Bv(this.id);else if(Object(h.A)(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Uv[e]){var n=Uv[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?Bv(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(h.m)({},e);return t.type=$v[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Bv(this.id);else if(Object(h.A)(t)||(t={silent:!!t}),zv[e.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(e);else{var n=t.silent;wv.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&c.a.browser.weChat&&this._throttledZrFlush(),Sv.call(this,n),kv.call(this,n)}},t.prototype.updateLabelLayout=function(){iv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Bv(this.id);else{var t=e.seriesIndex;0,this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){for(var t=[],n=e.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&t.push(r)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,view){if(!e.preventAutoZ){var t=e.get("z")||0,n=e.get("zlevel")||0;view.eachRendered((function(e){return r(e,t,n,-1/0),!0}))}}function r(e,t,n,o){var label=e.getTextContent(),l=e.getTextGuideLine();if(e.isGroup)for(var c=e.childrenRef(),i=0;i<c.length;i++)o=Math.max(r(c[i],t,n,o),o);else e.z=t,e.zlevel=n,o=Math.max(e.z2,o);if(label&&(label.z=t,label.zlevel=n,isFinite(o)&&(label.z2=o+2)),l){var h=e.textGuideLineConfig;l.z=t,l.zlevel=n,isFinite(o)&&(l.z2=o+(h&&h.showAbove?1:-1))}return o}function o(e,view){view.eachRendered((function(e){if(!gs(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function f(e,view){var n=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=n.get("duration"),l=o>0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;view.eachRendered((function(e){if(e.states&&e.states.emphasis){if(gs(e))return;if(e instanceof Do&&function(e){var t=pa(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(r){e.stateTransition=l;var o=e.getTextContent(),c=e.getTextGuideLine();o&&(o.stateTransition=l),c&&(c.stateTransition=l)}e.__dirty&&t(e)}}))}vv=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),mv(e,!0),mv(e,!1),t.plan()},mv=function(e,t){for(var n=e._model,r=e._scheduler,o=t?e._componentsViews:e._chartsViews,l=t?e._componentsMap:e._chartsMap,c=e._zr,h=e._api,i=0;i<o.length;i++)o[i].__alive=!1;function f(e){var f=e.__requireNewView;e.__requireNewView=!1;var d="_ec_"+e.id+"_"+e.type,view=!f&&l[d];if(!view){var v=Yr(e.type);0,(view=new(t?rf.getClass(v.main,v.sub):vp.getClass(v.sub))).init(n,h),l[d]=view,o.push(view),c.add(view.group)}e.__viewId=view.__id=d,view.__alive=!0,view.__model=e,view.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(view,e,n,h)}t?n.eachComponent((function(e,t){"series"!==e&&f(t)})):n.eachSeries(f);for(i=0;i<o.length;){var view=o[i];view.__alive?i++:(!t&&view.renderTask.dispose(),c.remove(view.group),view.dispose(n,h),o.splice(i,1),l[view.__id]===view&&delete l[view.__id],view.__id=view.group.__ecComponentInfo=null)}},yv=function(e,t,n,r,o){var l=e._model;if(l.setUpdatePayload(n),r){var c={};c[r+"Id"]=n[r+"Id"],c[r+"Index"]=n[r+"Index"],c[r+"Name"]=n[r+"Name"];var f={mainType:r,query:c};o&&(f.subType=o);var d,v=n.excludeSeriesId;null!=v&&(d=Object(h.f)(),Object(h.k)(kr(v),(function(e){var t=Dr(e,null);null!=t&&d.set(t,!0)}))),l&&l.eachComponent(f,(function(t){if(!(d&&null!==d.get(t.id)))if(us(n))if(t instanceof tf)n.type!==ba||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,data=e.getData(t.dataType);if(data){var o=Lr(data,t);o=(Object(h.t)(o)?o[0]:o)||0;var l=data.getItemGraphicEl(o);if(!l)for(var c=data.count(),f=0;!l&&f<c;)l=data.getItemGraphicEl(f++);if(l){var d=ca(l);Ka(r,d.focus,d.blurScope,n)}else{var v=e.get(["emphasis","focus"]),m=e.get(["emphasis","blurScope"]);null!=v&&Ka(r,v,m,n)}}}(t,n,e._api);else{var r=Za(t.mainType,t.componentIndex,n.name,e._api),o=r.focusSelf,l=r.dispatchers;n.type===ba&&o&&!n.notBlur&&Xa(t.mainType,t.componentIndex,e._api),l&&Object(h.k)(l,(function(e){n.type===ba?$a(e):Va(e)}))}else ls(n)&&t instanceof tf&&(!function(e,t,n){if(ls(t)){var r=t.dataType,o=Lr(e.getData(r),t);Object(h.t)(o)||(o=[o]),e[t.type===Sa?"toggleSelect":t.type===xa?"select":"unselect"](o,r)}}(t,n,e._api),Ja(t),Dv(e))}),e),l&&l.eachComponent(f,(function(t){d&&null!==d.get(t.id)||m(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else Object(h.k)([].concat(e._componentsViews).concat(e._chartsViews),m);function m(view){view&&view.__alive&&view[t]&&view[t](view.__model,l,e._api,n)}},bv={prepareAndUpdate:function(e){vv(this),bv.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,o=this._api,l=this._zr,c=this._coordSysMgr,h=this._scheduler;if(r){r.setUpdatePayload(t),h.restoreData(r,t),h.performSeriesTasks(r),c.create(r,o),h.performDataProcessorTasks(r,t),xv(this,r),c.update(r,o),e(r),h.performVisualTasks(r,t),Tv(this,r,o,t,n);var f=r.get("backgroundColor")||"transparent",d=r.get("darkMode");l.setBackgroundColor(f),null!=d&&"auto"!==d&&l.setDarkMode(d),iv.trigger("afterupdate",r,o)}},updateTransform:function(t){var n=this,r=this._model,o=this._api;if(r){r.setUpdatePayload(t);var l=[];r.eachComponent((function(e,c){if("series"!==e){var h=n.getViewOfComponentModel(c);if(h&&h.__alive)if(h.updateTransform){var f=h.updateTransform(c,r,o,t);f&&f.update&&l.push(h)}else l.push(h)}}));var c=Object(h.f)();r.eachSeries((function(e){var l=n._chartsMap[e.__viewId];if(l.updateTransform){var h=l.updateTransform(e,r,o,t);h&&h.update&&c.set(e.uid,1)}else c.set(e.uid,1)})),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:c}),Av(this,r,o,t,{},c),iv.trigger("afterupdate",r,o)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),vp.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),Tv(this,n,this._api,t,{}),iv.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries((function(e){e.getData().clearAllVisual()})),vp.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent((function(e,o){if("series"!==e){var l=n.getViewOfComponentModel(o);l&&l.__alive&&l.updateVisual(o,r,n._api,t)}})),r.eachSeries((function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)})),iv.trigger("afterupdate",r,this._api))},updateLayout:function(e){bv.update.call(this,e)}},_v=function(e,t,n,r){if(e._disposed)Bv(e.id);else{for(var o,l=e._model,c=e._coordSysMgr.getCoordinateSystems(),h=Fr(l,n),i=0;i<c.length;i++){var f=c[i];if(f[t]&&null!=(o=f[t](l,h,r)))return o}0}},xv=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))},wv=function(e,t){var n=this,r=this.getModel(),o=e.type,l=e.escapeConnect,c=zv[o],f=c.actionInfo,d=(f.update||"update").split(":"),v=d.pop(),m=null!=d[0]&&Yr(d[0]);this.__flagInMainProcess=!0;var y=[e],_=!1;e.batch&&(_=!0,y=Object(h.H)(e.batch,(function(t){return(t=Object(h.i)(Object(h.m)({},t),e)).batch=null,t})));var x,w=[],S=ls(e),k=us(e);if(k&&Ya(this._api),Object(h.k)(y,(function(t){if((x=(x=c.action(t,n._model,n._api))||Object(h.m)({},t)).type=f.event||x.type,w.push(x),k){var r=Br(e),o=r.queryOptionMap,l=r.mainTypeSpecified?o.keys()[0]:"series";yv(n,v,t,l),Dv(n)}else S?(yv(n,v,t,"series"),Dv(n)):m&&yv(n,v,t,m.main,m.sub)})),"none"!==v&&!k&&!S&&!m)try{this.__pendingUpdate?(vv(this),bv.update.call(this,e),this.__pendingUpdate=null):bv[v].call(this,e)}catch(e){throw this.__flagInMainProcess=!1,e}if(x=_?{type:f.event||o,escapeConnect:l,batch:w}:w[0],this.__flagInMainProcess=!1,!t){var O=this._messageCenter;if(O.trigger(x.type,x),S){var C={type:"selectchanged",escapeConnect:l,selected:Qa(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};O.trigger(C.type,C)}}},Sv=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();wv.call(this,n,e)}},kv=function(e){!e&&this.trigger("updated")},Ov=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t.__pendingUpdate||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},Cv=function(e,t){e.on("mouseover",(function(e){var n=dg(e.target,ss);n&&(!function(e,t,n){var r=ca(e),o=Za(r.componentMainType,r.componentIndex,r.componentHighDownName,n),l=o.dispatchers,c=o.focusSelf;l?(c&&Xa(r.componentMainType,r.componentIndex,n),Object(h.k)(l,(function(e){return Ba(e,t)}))):(Ka(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Xa(r.componentMainType,r.componentIndex,n),Ba(e,t))}(n,e,t._api),Dv(t))})).on("mouseout",(function(e){var n=dg(e.target,ss);n&&(!function(e,t,n){Ya(n);var r=ca(e),o=Za(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;o?Object(h.k)(o,(function(e){return za(e,t)})):za(e,t)}(n,e,t._api),Dv(t))})).on("click",(function(e){var n=dg(e.target,(function(e){return null!=ca(e).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",o=ca(n);t._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},Tv=function(e,t,n,r,o){!function(e){var t=[],n=[],r=!1;if(e.eachComponent((function(e,o){var l=o.get("zlevel")||0,c=o.get("z")||0,h=o.getZLevelKey();r=r||!!h,("series"===e?n:t).push({zlevel:l,z:c,idx:o.componentIndex,type:e,key:h})})),r){var o,l,c=t.concat(n);Re(c,(function(a,b){return a.zlevel===b.zlevel?a.z-b.z:a.zlevel-b.zlevel})),Object(h.k)(c,(function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,c=t.key;null!=o&&(r=Math.max(o,r)),c?(r===o&&c!==l&&r++,l=c):l&&(r===o&&r++,l=""),o=r,n.setZLevel(r)}))}}(t),Ev(e,t,n,r,o),Object(h.k)(e._chartsViews,(function(e){e.__alive=!1})),Av(e,t,n,r,o),Object(h.k)(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},Ev=function(e,t,r,l,c,d){Object(h.k)(d||e._componentsViews,(function(e){var c=e.__model;o(c,e),e.render(c,t,r,l),n(c,e),f(c,e)}))},Av=function(e,t,r,l,d,v){var m=e._scheduler;d=Object(h.m)(d||{},{updatedSeries:t.getSeries()}),iv.trigger("series:beforeupdate",t,r,d);var y=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;m.updatePayload(r,l),o(t,n),v&&v.get(t.uid)&&r.dirty(),r.perform(m.getPerformArgs(r))&&(y=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}(t,n),Ja(t)})),m.unfinished=y||m.unfinished,iv.trigger("series:layoutlabels",t,r,d),iv.trigger("series:transition",t,r,d),t.eachSeries((function(t){var r=e._chartsMap[t.__viewId];n(t,r),f(t,r)})),function(e,t){var n=e._zr.storage,r=0;n.traverse((function(e){e.isGroup||r++})),r>t.get("hoverLayerThreshold")&&!c.a.node&&!c.a.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,t),iv.trigger("series:afterupdate",t,r,d)},Dv=function(e){e.__needsUpdateStatus=!0,e.getZr().wakeUp()},Pv=function(e){e.__needsUpdateStatus&&(e.getZr().storage.traverse((function(e){gs(e)||t(e)})),e.__needsUpdateStatus=!1)},Mv=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){$a(t,n),Dv(e)},n.prototype.leaveEmphasis=function(t,n){Va(t,n),Dv(e)},n.prototype.enterBlur=function(t){Ha(t),Dv(e)},n.prototype.leaveBlur=function(t){qa(t),Dv(e)},n.prototype.enterSelect=function(t){Wa(t),Dv(e)},n.prototype.leaveSelect=function(t){Ua(t),Dv(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(Uu))(e)},Iv=function(e){function t(e,t){for(var i=0;i<e.length;i++){e[i][fv]=t}}Object(h.k)($v,(function(n,r){e._messageCenter.on(r,(function(n){if(Yv[e.group]&&0!==e[fv]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),o=[];Object(h.k)(Gv,(function(t){t!==e&&t.group===e.group&&o.push(t)})),t(o,0),Object(h.k)(o,(function(e){1!==e[fv]&&e.dispatchAction(r)})),t(o,2)}}))}))}}(),t}(N),Rv=jv.prototype;Rv.on=dv("on"),Rv.off=dv("off"),Rv.one=function(e,t,n){var r=this;Fu(),this.on.call(this,e,(function n(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];t&&t.apply&&t.apply(this,o),r.off(e,n)}),n)};var Fv=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Bv(e){0}var zv={},$v={},Vv=[],Hv=[],qv=[],Wv={},Uv={},Gv={},Yv={},Kv=+new Date-0,Xv=(new Date,"_echarts_instance_");function Zv(e,t,n){var r=!(n&&n.ssr);if(r){0;var o=Jv(e);if(o)return o;0}var l=new jv(e,t,n);return l.id="ec_"+Kv++,Gv[l.id]=l,r&&Hr(e,Xv,l.id),Iv(l),iv.trigger("afterinit",l),l}function Jv(e){return Gv[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,Xv)]}function Qv(e,t){Wv[e]=t}function tm(e){Object(h.r)(Hv,e)<0&&Hv.push(e)}function nm(e,t){sm(Vv,e,t,2e3)}function rm(e,t){iv.on(e,t)}function im(e,t,n){Object(h.w)(t)&&(n=t,t="");var r=Object(h.A)(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,$v[t]||(Object(h.b)(hv.test(r)&&hv.test(t)),zv[r]||(zv[r]={action:n,actionInfo:e}),$v[t]=r)}function om(e,t){sm(qv,e,t,3e3,"visual")}var am=[];function sm(e,t,n,r,o){if((Object(h.w)(t)||Object(h.A)(t))&&(n=t,t=r),!(Object(h.r)(am,n)>=0)){am.push(n);var l=Yp.wrapStageHandler(n,o);l.__prio=t,l.__raw=n,e.push(l)}}function lm(e,t){Uv[e]=t}var um=function(e){var t=(e=Object(h.d)(e)).type;t||Bu("");var n=t.split(":");2!==n.length&&Bu("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,hh.set(t,e)};om(lv,Ep),om(uv,Mp),om(uv,Ip),om(lv,ag),om(uv,sg),om(7e3,(function(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var data=n.getData();data.hasItemVisual()&&data.each((function(e){var n=data.getItemVisual(e,"decal");n&&(data.ensureUniqueItemVisual(e,"style").decal=ev(n,t))}));var r=data.getVisual("decal");if(r)data.getVisual("style").decal=ev(r,t)}}))})),tm(yc),nm(900,(function(e){var t=Object(h.f)();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),data=e.getData(),o={stackResultDimension:data.getCalculationInfo("stackResultDimension"),stackedOverDimension:data.getCalculationInfo("stackedOverDimension"),stackedDimension:data.getCalculationInfo("stackedDimension"),stackedByDimension:data.getCalculationInfo("stackedByDimension"),isStackedByIndex:data.getCalculationInfo("isStackedByIndex"),data:data,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&data.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),t.each(bc)})),lm("default",(function(e,t){t=t||{},h.i(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new qn,mask=new Go({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(mask);var r,o=new ua({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),l=new Go({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(l),t.showSpinner&&((r=new md({shape:{startAngle:-Dp/2,endAngle:-Dp/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Dp/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Dp/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,c=t.showSpinner?t.spinnerRadius:0,h=(e.getWidth()-2*c-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:c),f=e.getHeight()/2;t.showSpinner&&r.setShape({cx:h,cy:f}),l.setShape({x:h-c,y:f-c,width:2*c,height:2*c}),mask.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n})),im({type:ba,event:ba,update:ba},h.L),im({type:_a,event:_a,update:_a},h.L),im({type:xa,event:xa,update:xa},h.L),im({type:wa,event:wa,update:wa},h.L),im({type:Sa,event:Sa,update:Sa},h.L),Qv("light",Xp),Qv("dark",ng);var cm=[],hm={registerPreprocessor:tm,registerProcessor:nm,registerPostInit:function(e){rm("afterinit",e)},registerPostUpdate:function(e){rm("afterupdate",e)},registerUpdateLifecycle:rm,registerAction:im,registerCoordinateSystem:function(e,t){Ku.register(e,t)},registerLayout:function(e,t){sm(qv,e,t,1e3,"layout")},registerVisual:om,registerTransform:um,registerLoading:lm,registerMap:function(e,t,n){var r=av("registerMap");r&&r(e,t,n)},registerImpl:function(e,t){ov[e]=t},PRIORITY:cv,ComponentModel:su,ComponentView:rf,SeriesModel:tf,ChartView:vp,registerComponentModel:function(e){su.registerClass(e)},registerComponentView:function(e){rf.registerClass(e)},registerSeriesModel:function(e){tf.registerClass(e)},registerChartView:function(e){vp.registerClass(e)},registerSubTypeDefaulter:function(e,t){su.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){var n;n=t,Wn[e]=n}};function use(e){Object(h.t)(e)?Object(h.k)(e,(function(e){use(e)})):Object(h.r)(cm,e)>=0||(cm.push(e),Object(h.w)(e)&&(e={install:e}),e.install(hm))}var fm=2*Math.PI,dm=ho.CMD,pm=["top","right","bottom","left"];function gm(e,t,rect,n,r){var o=rect.width,l=rect.height;switch(e){case"top":n.set(rect.x+o/2,rect.y-t),r.set(0,-1);break;case"bottom":n.set(rect.x+o/2,rect.y+l+t),r.set(0,1);break;case"left":n.set(rect.x-t,rect.y+l/2),r.set(-1,0);break;case"right":n.set(rect.x+o+t,rect.y+l/2),r.set(1,0)}}function vm(e,t,n,r,o,l,c,h,f){c-=e,h-=t;var d=Math.sqrt(c*c+h*h),v=(c/=d)*n+e,m=(h/=d)*n+t;if(Math.abs(r-o)%fm<1e-4)return f[0]=v,f[1]=m,d-n;if(l){var y=r;r=mo(o),o=mo(y)}else r=mo(r),o=mo(o);r>o&&(o+=fm);var _=Math.atan2(h,c);if(_<0&&(_+=fm),_>=r&&_<=o||_+fm>=r&&_+fm<=o)return f[0]=v,f[1]=m,d-n;var x=n*Math.cos(r)+e,w=n*Math.sin(r)+t,S=n*Math.cos(o)+e,k=n*Math.sin(o)+t,O=(x-c)*(x-c)+(w-h)*(w-h),C=(S-c)*(S-c)+(k-h)*(k-h);return O<C?(f[0]=x,f[1]=w,Math.sqrt(O)):(f[0]=S,f[1]=k,Math.sqrt(C))}function mm(e,t,n,r,o,l,c,h){var f=o-e,d=l-t,v=n-e,m=r-t,y=Math.sqrt(v*v+m*m),_=(f*(v/=y)+d*(m/=y))/y;h&&(_=Math.min(Math.max(_,0),1)),_*=y;var x=c[0]=e+_*v,w=c[1]=t+_*m;return Math.sqrt((x-o)*(x-o)+(w-l)*(w-l))}function ym(e,t,n,r,o,l,c){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var h=e+n,f=t+r,d=c[0]=Math.min(Math.max(o,e),h),v=c[1]=Math.min(Math.max(l,t),f);return Math.sqrt((d-o)*(d-o)+(v-l)*(v-l))}var bm=[];function _m(e,rect,t){var n=ym(rect.x,rect.y,rect.width,rect.height,e.x,e.y,bm);return t.set(bm[0],bm[1]),n}function xm(e,path,t){for(var n,r,o=0,l=0,c=0,h=0,f=1/0,data=path.data,d=e.x,v=e.y,i=0;i<data.length;){var m=data[i++];1===i&&(c=o=data[i],h=l=data[i+1]);var y=f;switch(m){case dm.M:o=c=data[i++],l=h=data[i++];break;case dm.L:y=mm(o,l,data[i],data[i+1],d,v,bm,!0),o=data[i++],l=data[i++];break;case dm.C:y=lt(o,l,data[i++],data[i++],data[i++],data[i++],data[i],data[i+1],d,v,bm),o=data[i++],l=data[i++];break;case dm.Q:y=gt(o,l,data[i++],data[i++],data[i],data[i+1],d,v,bm),o=data[i++],l=data[i++];break;case dm.A:var _=data[i++],x=data[i++],w=data[i++],S=data[i++],k=data[i++],O=data[i++];i+=1;var C=!!(1-data[i++]);n=Math.cos(k)*w+_,r=Math.sin(k)*S+x,i<=1&&(c=n,h=r),y=vm(_,x,S,k,k+O,C,(d-_)*S/w+_,v,bm),o=Math.cos(k+O)*w+_,l=Math.sin(k+O)*S+x;break;case dm.R:y=ym(c=o=data[i++],h=l=data[i++],data[i++],data[i++],d,v,bm);break;case dm.Z:y=mm(o,l,c,h,d,v,bm,!0),o=c,l=h}y<f&&(f=y,t.set(bm[0],bm[1]))}return f}var wm=new he,Sm=new he,km=new he,Om=new he,Cm=new he;function Tm(e,t){if(e){var n=e.getTextGuideLine(),label=e.getTextContent();if(label&&n){var r=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],l=r.candidates||pm,c=label.getBoundingRect().clone();c.applyTransform(label.getComputedTransform());var h=1/0,f=r.anchor,d=e.getComputedTransform(),v=d&&ce([],d),m=t.get("length2")||0;f&&km.copy(f);for(var i=0;i<l.length;i++){gm(l[i],0,c,wm,Om),he.scaleAndAdd(Sm,wm,Om,m),Sm.transform(v);var y=e.getBoundingRect(),_=f?f.distance(Sm):e instanceof Do?xm(Sm,e.path,km):_m(Sm,y,km);_<h&&(h=_,Sm.transform(d),km.transform(d),km.toArray(o[0]),Sm.toArray(o[1]),wm.toArray(o[2]))}Mm(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var Em=[],Am=new he;function Mm(e,t){if(t<=180&&t>0){t=t/180*Math.PI,wm.fromArray(e[0]),Sm.fromArray(e[1]),km.fromArray(e[2]),he.sub(Om,wm,Sm),he.sub(Cm,km,Sm);var n=Om.len(),r=Cm.len();if(!(n<.001||r<.001)){Om.scale(1/n),Cm.scale(1/r);var o=Om.dot(Cm);if(Math.cos(t)<o){var l=mm(Sm.x,Sm.y,km.x,km.y,wm.x,wm.y,Em,!1);Am.fromArray(Em),Am.scaleAndAdd(Cm,l/Math.tan(Math.PI-t));var c=km.x!==Sm.x?(Am.x-Sm.x)/(km.x-Sm.x):(Am.y-Sm.y)/(km.y-Sm.y);if(isNaN(c))return;c<0?he.copy(Am,Sm):c>1&&he.copy(Am,km),Am.toArray(e[1])}}}}function Im(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,wm.fromArray(e[0]),Sm.fromArray(e[1]),km.fromArray(e[2]),he.sub(Om,Sm,wm),he.sub(Cm,km,Sm);var r=Om.len(),o=Cm.len();if(!(r<.001||o<.001))if(Om.scale(1/r),Cm.scale(1/o),Om.dot(t)<Math.cos(n)){var l=mm(Sm.x,Sm.y,km.x,km.y,wm.x,wm.y,Em,!1);Am.fromArray(Em);var c=Math.PI/2,h=c+Math.acos(Cm.dot(t))-n;if(h>=c)he.copy(Am,km);else{Am.scaleAndAdd(Cm,l/Math.tan(Math.PI/2-h));var f=km.x!==Sm.x?(Am.x-Sm.x)/(km.x-Sm.x):(Am.y-Sm.y)/(km.y-Sm.y);if(isNaN(f))return;f<0?he.copy(Am,Sm):f>1&&he.copy(Am,km)}Am.toArray(e[1])}}}function Dm(e,t,n,r){var o="normal"===n,l=o?e:e.ensureState(n);l.ignore=t;var c=r.get("smooth");c&&!0===c&&(c=.3),l.shape=l.shape||{},c>0&&(l.shape.smooth=c);var h=r.getModel("lineStyle").getLineStyle();o?e.useStyle(h):l.style=h}function Pm(path,e){var t=e.smooth,n=e.points;if(n)if(path.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var r=O(n[0],n[1]),o=O(n[1],n[2]);if(!r||!o)return path.lineTo(n[1][0],n[1][1]),void path.lineTo(n[2][0],n[2][1]);var l=Math.min(r,o)*t,c=T([],n[1],n[0],l/r),h=T([],n[1],n[2],l/o),f=T([],c,h,.5);path.bezierCurveTo(c[0],c[1],c[0],c[1],f[0],f[1]),path.bezierCurveTo(h[0],h[1],h[0],h[1],n[2][0],n[2][1])}else for(var i=1;i<n.length;i++)path.lineTo(n[i][0],n[i][1])}function Nm(e,t,n){var r=e.getTextGuideLine(),label=e.getTextContent();if(label){for(var o=t.normal,l=o.get("show"),c=label.ignore,i=0;i<ma.length;i++){var f=ma[i],d=t[f],v="normal"===f;if(d){var m=d.get("show");if((v?c:Object(h.P)(label.states[f]&&label.states[f].ignore,c))||!Object(h.P)(m,l)){var y=v?r:r&&r.states[f];y&&(y.ignore=!0);continue}r||(r=new id,e.setTextGuideLine(r),v||!c&&l||Dm(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),Dm(r,!1,f,d)}}if(r){Object(h.i)(r.style,n),r.style.fill=null;var _=o.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=_||!1,r.buildPath=Pm}}else r&&e.removeTextGuideLine()}function Lm(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<va.length;i++){var r=va[i];n[r]=e.getModel([r,t])}return n}function jm(input){for(var e=[],i=0;i<input.length;i++){var t=input[i];if(!t.defaultAttr.ignore){var label=t.label,n=label.getComputedTransform(),r=label.getBoundingRect(),o=!n||n[1]<1e-5&&n[2]<1e-5,l=label.style.margin||0,c=r.clone();c.applyTransform(n),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var h=o?new Td(r,n):null;e.push({label:label,labelLine:t.labelLine,rect:c,localRect:r,obb:h,priority:t.priority,defaultAttr:t.defaultAttr,layoutOption:t.computedLayoutOption,axisAligned:o,transform:n})}}return e}function Rm(e,t,n,r,o,l){var c=e.length;if(!(c<2)){e.sort((function(a,b){return a.rect[t]-b.rect[t]}));for(var h,f=0,d=!1,v=[],m=0,i=0;i<c;i++){var y=e[i],rect=y.rect;(h=rect[t]-f)<0&&(rect[t]-=h,y.label[t]-=h,d=!0);var _=Math.max(-h,0);v.push(_),m+=_,f=rect[t]+rect[n]}m>0&&l&&T(-m/c,0,c);var x,w,S=e[0],k=e[c-1];return O(),x<0&&E(-x,.8),w<0&&E(w,.8),O(),C(x,w,1),C(w,x,-1),O(),x<0&&A(-x),w<0&&A(w),d}function O(){x=S.rect[t]-r,w=o-k.rect[t]-k.rect[n]}function C(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){T(r*n,0,c);var o=r+e;o<0&&E(-o*n,1)}else E(-e*n,1)}}function T(n,r,o){0!==n&&(d=!0);for(var i=r;i<o;i++){var l=e[i];l.rect[t]+=n,l.label[t]+=n}}function E(r,o){for(var l=[],h=0,i=1;i<c;i++){var f=e[i-1].rect,d=Math.max(e[i].rect[t]-f[t]-f[n],0);l.push(d),h+=d}if(h){var v=Math.min(Math.abs(r)/h,o);if(r>0)for(i=0;i<c-1;i++){T(l[i]*v,0,i+1)}else for(i=c-1;i>0;i--){T(-(l[i-1]*v),i,c)}}}function A(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(c-1)),i=0;i<c-1;i++)if(t>0?T(n,0,i+1):T(-n,c-i-1,c),(e-=n)<=0)return}}function Fm(e,t,n,r){return Rm(e,"y","height",t,n,r)}function Bm(e){var t=[];e.sort((function(a,b){return b.priority-a.priority}));var n=new _e(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],l=o.axisAligned,c=o.localRect,h=o.transform,label=o.label,f=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=o.obb,v=!1,m=0;m<t.length;m++){var y=t[m];if(n.intersect(y.rect)){if(l&&y.axisAligned){v=!0;break}if(y.obb||(y.obb=new Td(y.localRect,y.transform)),d||(d=new Td(c,h)),d.intersect(y.obb)){v=!0;break}}}v?(r(label),f&&r(f)):(label.attr("ignore",o.defaultAttr.ignore),f&&f.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function zm(e){if(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].slice());return t}}function $m(e,t){var label=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:label.style.align,verticalAlign:label.style.verticalAlign,labelLinePoints:zm(n&&n.shape.points)}}var Vm=["align","verticalAlign","width","height","fontSize"],Hm=new _n,qm=jr(),Wm=jr();function Um(e,source,t){for(var i=0;i<t.length;i++){var n=t[i];null!=source[n]&&(e[n]=source[n])}}var Gm=["x","y","rotation"],Ym=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,label,r){var o=label.style,l=label.__hostTarget.textConfig||{},c=label.getComputedTransform(),h=label.getBoundingRect().plain();_e.applyTransform(h,h,c),c?Hm.setLocalTransform(c):(Hm.x=Hm.y=Hm.rotation=Hm.originX=Hm.originY=0,Hm.scaleX=Hm.scaleY=1);var f,d=label.__hostTarget;if(d){f=d.getBoundingRect().plain();var v=d.getComputedTransform();_e.applyTransform(f,f,v)}var m=f&&d.getTextGuideLine();this._labelList.push({label:label,labelLine:m,seriesModel:n,dataIndex:e,dataType:t,layoutOption:r,computedLayoutOption:null,rect:h,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:label.ignore,labelGuideIgnore:m&&m.ignore,x:Hm.x,y:Hm.y,scaleX:Hm.scaleX,scaleY:Hm.scaleY,rotation:Hm.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:label.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(Object(h.w)(r)||Object(h.F)(r).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var o=e.getTextContent(),l=ca(e);o&&!o.disableLabelLayout&&t._addLabel(l.dataIndex,l.dataType,n,o,r)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){Tm(e,t)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],label=o.label,l=label.__hostTarget,c=o.defaultAttr,f=void 0;f=(f=Object(h.w)(o.layoutOption)?o.layoutOption($m(o,l)):o.layoutOption)||{},o.computedLayoutOption=f;var d=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=f.x||null!=f.y?null:c.attachedPos,rotation:null!=f.rotate?f.rotate*d:c.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(null!=f.x?(label.x=Zn(f.x,t),label.setStyle("x",0),v=!0):(label.x=c.x,label.setStyle("x",c.style.x)),null!=f.y?(label.y=Zn(f.y,n),label.setStyle("y",0),v=!0):(label.y=c.y,label.setStyle("y",c.style.y)),f.labelLinePoints){var m=l.getTextGuideLine();m&&(m.setShape({points:f.labelLinePoints}),v=!1)}qm(label).needsUpdateLabelLine=v,label.rotation=null!=f.rotate?f.rotate*d:c.rotation,label.scaleX=c.scaleX,label.scaleY=c.scaleY;for(var y=0;y<Vm.length;y++){var _=Vm[y];label.setStyle(_,null!=f[_]?f[_]:c.style[_])}if(f.draggable){if(label.draggable=!0,label.cursor="move",l){var x=o.seriesModel;if(null!=o.dataIndex)x=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);label.on("drag",r(l,x.getModel("labelLine")))}}else label.off("drag"),label.cursor=c.cursor}},e.prototype.layout=function(e){var t,n=e.getWidth(),r=e.getHeight(),o=jm(this._labelList),l=Object(h.n)(o,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),c=Object(h.n)(o,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));Rm(l,"x","width",0,n,t),Fm(c,0,r),Bm(Object(h.n)(o,(function(e){return e.layoutOption.hideOverlap})))},e.prototype.processLabelsOverall=function(){var e=this;Object(h.k)(this._chartViewList,(function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,o=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var l=!r,label=t.getTextContent();!l&&label&&(l=qm(label).needsUpdateLabelLine),l&&e._updateLabelLine(t,n),o&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=ca(e),o=r.dataIndex;if(n&&null!=o){var data=t.getData(r.dataType),l=data.getItemModel(o),c={},h=data.getItemVisual(o,"style"),f=data.getVisual("drawType");c.stroke=h[f];var d=l.getModel("labelLine");Nm(e,Lm(l),c),Tm(e,d)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!gs(e))){var o=(_=qm(n)).oldLayout,l=ca(e),c=l.dataIndex,f={x:n.x,y:n.y,rotation:n.rotation},data=t.getData(l.dataType);if(o){n.attr(o);var d=e.prevStates;d&&(Object(h.r)(d,"select")>=0&&n.attr(_.oldLayoutSelect),Object(h.r)(d,"emphasis")>=0&&n.attr(_.oldLayoutEmphasis)),ds(n,f,t,c)}else if(n.attr(f),!Ds(n).valueAnimation){var v=Object(h.P)(n.style.opacity,1);n.style.opacity=0,ps(n,{style:{opacity:v}},t,c)}if(_.oldLayout=f,n.states.select){var m=_.oldLayoutSelect={};Um(m,f,Gm),Um(m,n.states.select,Gm)}if(n.states.emphasis){var y=_.oldLayoutEmphasis={};Um(y,f,Gm),Um(y,n.states.emphasis,Gm)}Ns(n,c,data,t,t)}if(r&&!r.ignore&&!r.invisible){o=(_=Wm(r)).oldLayout;var _,x={points:r.shape.points};o?(r.attr({shape:o}),ds(r,{shape:x},t)):(r.setShape(x),r.style.strokePercent=0,ps(r,{style:{strokePercent:1}},t)),_.oldLayout=x}},e}(),Km=jr();function Xm(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var r=Km(t).labelManager;r||(r=Km(t).labelManager=new Ym),r.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var r=Km(t).labelManager;n.updatedSeries.forEach((function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()}))}function Zm(e,t,n){var r=wn.d.createCanvas(),o=t.getWidth(),l=t.getHeight(),c=r.style;return c&&(c.position="absolute",c.left="0",c.top="0",c.width=o+"px",c.height=l+"px",r.setAttribute("data-zr-dom-id",e)),r.width=o*n,r.height=l*n,r}use(Xm);var Jm=function(e){function t(t,n,r){var o,l=e.call(this)||this;l.motionBlur=!1,l.lastFrameAlpha=.7,l.dpr=1,l.virtual=!1,l.config={},l.incremental=!1,l.zlevel=0,l.maxRepaintRectCount=5,l.__dirty=!0,l.__firstTimePaint=!0,l.__used=!1,l.__drawIndex=0,l.__startIndex=0,l.__endIndex=0,l.__prevStartIndex=null,l.__prevEndIndex=null,r=r||sn,"string"==typeof t?o=Zm(t,n,r):h.A(t)&&(t=(o=t).id),l.id=t,l.dom=o;var c=o.style;return c&&(h.j(o),o.onselectstart=function(){return!1},c.padding="0",c.margin="0",c.borderWidth="0"),l.painter=n,l.dpr=r,l}return l(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Zm("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o,l=[],c=this.maxRepaintRectCount,h=!1,f=new _e(0,0,0,0);function d(rect){if(rect.isFinite()&&!rect.isZero())if(0===l.length){(e=new _e(0,0,0,0)).copy(rect),l.push(e)}else{for(var e,t=!1,n=1/0,r=0,i=0;i<l.length;++i){var o=l[i];if(o.intersect(rect)){var d=new _e(0,0,0,0);d.copy(o),d.union(rect),l[i]=d,t=!0;break}if(h){f.copy(rect),f.union(o);var v=rect.width*rect.height,m=o.width*o.height,y=f.width*f.height-v-m;y<n&&(n=y,r=i)}}if(h&&(l[r].union(rect),t=!0),!t)(e=new _e(0,0,0,0)).copy(rect),l.push(e);h||(h=l.length>=c)}}for(var i=this.__startIndex;i<this.__endIndex;++i){if(y=e[i]){var v=y.shouldBePainted(n,r,!0,!0);(_=y.__isRendered&&(1&y.__dirty||!v)?y.getPrevPaintRect():null)&&d(_);var m=v&&(1&y.__dirty||!y.__isRendered)?y.getPaintRect():null;m&&d(m)}}for(i=this.__prevStartIndex;i<this.__prevEndIndex;++i){var y,_;v=(y=t[i]).shouldBePainted(n,r,!0,!0);if(y&&(!v||!y.__zr)&&y.__isRendered)(_=y.getPrevPaintRect())&&d(_)}do{o=!1;for(i=0;i<l.length;)if(l[i].isZero())l.splice(i,1);else{for(var x=i+1;x<l.length;)l[i].intersect(l[x])?(o=!0,l[i].union(l[x]),l.splice(x,1)):x++;i++}}while(o);return this._paintRects=l,l},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,o=r.style,l=this.domBack;o&&(o.width=e+"px",o.height=t+"px"),r.width=e*n,r.height=t*n,l&&(l.width=e*n,l.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,o=this.ctx,l=r.width,c=r.height;t=t||this.clearColor;var f=this.motionBlur&&!e,d=this.lastFrameAlpha,v=this.dpr,m=this;f&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,l/v,c/v));var y=this.domBack;function _(e,n,r,l){if(o.clearRect(e,n,r,l),t&&"transparent"!==t){var c=void 0;h.x(t)?(c=t.__canvasGradient||Ig(o,t,{x:0,y:0,width:r,height:l}),t.__canvasGradient=c):h.y(t)&&(t.scaleX=t.scaleX||v,t.scaleY=t.scaleY||v,c=$g(o,t,{dirty:function(){m.setUnpainted(),m.__painter.refresh()}})),o.save(),o.fillStyle=c||t,o.fillRect(e,n,r,l),o.restore()}f&&(o.save(),o.globalAlpha=d,o.drawImage(y,e,n,r,l),o.restore())}!n||f?_(0,0,l,c):n.length&&h.k(n,(function(rect){_(rect.x*v,rect.y*v,rect.width*v,rect.height*v)}))},t}(N),Qm=1e5,ey=314159,ty=.01;var ny=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=h.m({},n||{}),this.dpr=n.devicePixelRatio||sn,this._singleCanvas=o,this.root=e,e.style&&(h.j(e),e.innerHTML=""),this.storage=t;var l=this._zlevelList;this._prevDisplayList=[];var c=this._layers;if(o){var f=e,d=f.width,v=f.height;null!=n.width&&(d=n.width),null!=n.height&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=d*this.dpr,f.height=v*this.dpr,this._width=d,this._height=v;var m=new Jm(f,this,this.dpr);m.__builtin__=!0,m.initContext(),c[314159]=m,m.zlevel=ey,l.push(ey),this._domRoot=e}else{this._width=Pg(e,0,n),this._height=Pg(e,1,n);var y=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(y)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],l=this._layers[o];if(!l.__builtin__&&l.refresh){var c=0===i?this._backgroundColor:null;l.refresh(c)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},i=0;i<t;i++){var l=e[i];l.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Qm)),r||(r=n.ctx).save(),Xg(r,l,o,i===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Qm)},e.prototype.paintOne=function(e,t){Kg(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var o=this._doPaintList(e,t,n),l=o.finished,c=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),c&&this._paintHoverList(e),l)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var h=this;Ve((function(){h._paintList(e,t,n,r)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(ey).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var r=this,o=[],l=this._opts.useDirtyRect,f=0;f<this._zlevelList.length;f++){var d=this._zlevelList[f],v=this._layers[d];v.__builtin__&&v!==this._hoverlayer&&(v.__dirty||n)&&o.push(v)}for(var m=!0,y=!1,_=function(c){var i,h=o[c],f=h.ctx,d=l&&h.createRepaintRects(e,t,x._width,x._height),v=n?h.__startIndex:h.__drawIndex,_=!n&&h.incremental&&Date.now,w=_&&Date.now(),S=h.zlevel===x._zlevelList[0]?x._backgroundColor:null;if(h.__startIndex===h.__endIndex)h.clear(!1,S,d);else if(v===h.__startIndex){var k=e[v];k.incremental&&k.notClear&&!n||h.clear(!1,S,d)}-1===v&&(console.error("For some unknown reason. drawIndex is -1"),v=h.__startIndex);var O=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(i=v;i<h.__endIndex;i++){var o=e[i];if(o.__inHover&&(y=!0),r._doPaintEl(o,h,l,t,n,i===h.__endIndex-1),_)if(Date.now()-w>15)break}n.prevElClipPaths&&f.restore()};if(d)if(0===d.length)i=h.__endIndex;else for(var C=x.dpr,T=0;T<d.length;++T){var rect=d[T];f.save(),f.beginPath(),f.rect(rect.x*C,rect.y*C,rect.width*C,rect.height*C),f.clip(),O(rect),f.restore()}else f.save(),O(),f.restore();h.__drawIndex=i,h.__drawIndex<h.__endIndex&&(m=!1)},x=this,w=0;w<o.length;w++)_(w);return c.a.wxa&&h.k(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:m,needsRefreshHover:y}},e.prototype._doPaintEl=function(e,t,n,r,o,l){var c=t.ctx;if(n){var h=e.getPaintRect();(!r||h&&h.intersect(r))&&(Xg(c,e,o,l),e.setPrevPaintRect(h))}else Xg(c,e,o,l)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=ey);var n=this._layers[e];return n||((n=new Jm("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?h.I(n,this._layerConfig[e],!0):this._layerConfig[e-ty]&&h.I(n,this._layerConfig[e-ty],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,o=r.length,l=this._domRoot,c=null,i=-1;if(!n[e]&&function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(o>0&&e>r[0]){for(i=0;i<o-1&&!(r[i]<e&&r[i+1]>e);i++);c=n[r[i]]}if(r.splice(i+1,0,e),n[e]=t,!t.virtual)if(c){var h=c.dom;h.nextSibling?l.insertBefore(t.dom,h.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom);t.__painter=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];e.call(t,this._layers[r],r)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&e.call(t,o,r)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||e.call(t,o,r)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){if((c=e[n]).zlevel!==e[n-1].zlevel||c.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,l=0;for(i=0;i<e.length;i++){var c,f=(c=e[i]).zlevel,d=void 0;r!==f&&(r=f,l=0),c.incremental?((d=this.getLayer(f+.001,this._needsManuallyCompositing)).incremental=!0,l=1):d=this.getLayer(f+(l>0?ty:0),this._needsManuallyCompositing),d.__builtin__||h.G("ZLevel "+f+" has been used by unkown layer "+d.id),d!==o&&(d.__used=!0,d.__startIndex!==i&&(d.__dirty=!0),d.__startIndex=i,d.incremental?d.__drawIndex=-1:d.__drawIndex=i,t(i),o=d),1&c.__dirty&&!c.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=i))}t(i),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,h.k(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?h.I(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===e||r===e+ty){var o=this._layers[r];h.I(o,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(h.r(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,o=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=Pg(o,0,r),t=Pg(o,1,r),n.style.display="",this._width!==e||t!==this._height){for(var l in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(l)&&this._layers[l].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(ey).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new Jm("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,o=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,o):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var l={inHover:!1,viewWidth:this._width,viewHeight:this._height},c=this.storage.getDisplayList(!0),i=0,h=c.length;i<h;i++){var f=c[i];Xg(n,f,l,i===h-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();var ry=Math.sin,iy=Math.cos,oy=Math.PI,ay=2*Math.PI,sy=180/oy,ly=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,o,l){this._add("C",e,t,n,r,o,l)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,o,l){this.ellipse(e,t,n,n,0,r,o,l)},e.prototype.ellipse=function(e,t,n,r,o,l,c,h){var f=c-l,d=!h,v=Math.abs(f),m=Object(xt.j)(v-ay)||(d?f>=ay:-f>=ay),y=f>0?f%ay:f%ay+ay,_=!1;_=!!m||!Object(xt.j)(v)&&y>=oy==!!d;var x=e+n*iy(l),w=t+r*ry(l);this._start&&this._add("M",x,w);var S=Math.round(o*sy);if(m){var p=1/this._p,k=(d?1:-1)*(ay-p);this._add("A",n,r,S,1,+d,e+n*iy(l+k),t+r*ry(l+k)),p>.01&&this._add("A",n,r,S,0,+d,x,w)}else{var O=e+n*iy(c),C=t+r*ry(c);this._add("A",n,r,S,+_,+d,O,C)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,a,b,t,n,r,o,g,l){for(var c=[],p=this._p,i=1;i<arguments.length;i++){var h=arguments[i];if(isNaN(h))return void(this._invalid=!0);c.push(Math.round(h*p)/p)}this._d.push(e+c.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),uy=ly,cy="none",hy=Math.round;var fy=["lineCap","miterLimit","lineJoin"],dy=Object(h.H)(fy,(function(e){return"stroke-"+e.toLowerCase()}));function py(e,style,t,n){var r=null==style.opacity?1:style.opacity;if(t instanceof Bo)e("opacity",r);else{if(function(style){var e=style.fill;return null!=e&&e!==cy}(style)){var o=Object(xt.p)(style.fill);e("fill",o.color);var l=null!=style.fillOpacity?style.fillOpacity*o.opacity*r:o.opacity*r;(n||l<1)&&e("fill-opacity",l)}else e("fill",cy);if(function(style){var e=style.stroke;return null!=e&&e!==cy}(style)){var c=Object(xt.p)(style.stroke);e("stroke",c.color);var h=style.strokeNoScale?t.getLineScale():1,f=h?(style.lineWidth||0)/h:0,d=null!=style.strokeOpacity?style.strokeOpacity*c.opacity*r:c.opacity*r,v=style.strokeFirst;if((n||1!==f)&&e("stroke-width",f),(n||v)&&e("paint-order",v?"stroke":"fill"),(n||d<1)&&e("stroke-opacity",d),style.lineDash){var m=Ng(t),y=m[0],_=m[1];y&&(_=hy(_||0),e("stroke-dasharray",y.join(",")),(_||n)&&e("stroke-dashoffset",_))}else n&&e("stroke-dasharray",cy);for(var i=0;i<fy.length;i++){var x=fy[i];if(n||style[x]!==Ao[x]){var w=style[x]||Ao[x];w&&e(dy[i],w)}}}else n&&e("stroke",cy)}}var gy="http://www.w3.org/2000/svg",vy="http://www.w3.org/1999/xlink";function my(e){return document.createElementNS(gy,e)}function yy(e,t,n,r,text){return{tag:e,attrs:n||{},children:r,text:text,key:t}}function by(e,t){var n=(t=t||{}).newline?"\n":"";return function e(t){var r=t.children,o=t.tag;return function(e,t){var n=[];if(t)for(var r in t){var o=t[r],l=r;!1!==o&&(!0!==o&&null!=o&&(l+='="'+o+'"'),n.push(l))}return"<"+e+" "+n.join(" ")+">"}(o,t.attrs)+H(t.text)+(r?""+n+Object(h.H)(r,(function(t){return e(t)})).join(n)+n:"")+("</"+o+">")}(e)}function _y(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function xy(e,t,n,r){return yy("svg","root",{width:e,height:t,xmlns:gy,"xmlns:xlink":vy,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var wy={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Sy="transform-origin";function ky(e,t,path){var n=Object(h.m)({},e.shape);Object(h.m)(n,t),e.buildPath(path,n);var r=new uy;return r.reset(Object(xt.f)(e)),path.rebuildPath(r,1),r.generateStr(),r.getStr()}function Oy(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[Sy]=n+"px "+r+"px")}var Cy={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Ty(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Ey(e){return Object(h.C)(e)?wy[e]?"cubic-bezier("+wy[e]+")":yt(e)?e:"":""}function Ay(e,t,n,r){var o=e.animators,l=o.length,c=[];if(e instanceof bd){var f=function(e,t,n){var r,o,l=e.shape.paths,c={};if(Object(h.k)(l,(function(path){var e=_y(n.zrId);e.animation=!0,Ay(path,{},e,!0);var t=e.cssAnims,l=e.cssNodes,f=Object(h.F)(t),d=f.length;if(d){var v=t[o=f[d-1]];for(var m in v){var y=v[m];c[m]=c[m]||{d:""},c[m].d+=y.d||""}for(var _ in l){var x=l[_].animation;x.indexOf(o)>=0&&(r=x)}}})),r){t.d=!1;var f=Ty(c,n);return r.replace(o,f)}}(e,t,n);if(f)c.push(f);else if(!l)return}else if(!l)return;for(var d={},i=0;i<l;i++){var v=o[i],m=[v.getMaxTime()/1e3+"s"],y=Ey(v.getClip().easing),_=v.getDelay();y?m.push(y):m.push("linear"),_&&m.push(_/1e3+"s"),v.getLoop()&&m.push("infinite");var x=m.join(" ");d[x]=d[x]||[x,[]],d[x][1].push(v)}function w(o){var path,l=o[1],c=l.length,f={},d={},v={};function m(e,t,n){for(var r=e.getTracks(),o=e.getMaxTime(),l=0;l<r.length;l++){var track=r[l];if(track.needsAnimate()){var c=track.keyframes,f=track.propName;if(n&&(f=n(f)),f)for(var i=0;i<c.length;i++){var d=c[i],v=Math.round(d.time/o*100)+"%",m=Ey(d.easing),y=d.rawValue;(Object(h.C)(y)||Object(h.z)(y))&&(t[v]=t[v]||{},t[v][f]=d.rawValue,m&&(t[v]["animation-timing-function"]=m))}}}}for(var i=0;i<c;i++){(E=(T=l[i]).targetName)?"shape"===E&&m(T,d):!r&&m(T,f)}for(var y in f){var _={};bn(_,e),Object(h.m)(_,f[y]);var x=Object(xt.g)(_),w=f[y]["animation-timing-function"];v[y]=x?{transform:x}:{},Oy(v[y],_),w&&(v[y]["animation-timing-function"]=w)}var S=!0;for(var y in d){v[y]=v[y]||{};var k=!path;w=d[y]["animation-timing-function"];k&&(path=new ho);var O=path.len();path.reset(),v[y].d=ky(e,d[y],path);var C=path.len();if(!k&&O!==C){S=!1;break}w&&(v[y]["animation-timing-function"]=w)}if(!S)for(var y in v)delete v[y].d;if(!r)for(i=0;i<c;i++){var T,E;"style"===(E=(T=l[i]).targetName)&&m(T,v,(function(e){return Cy[e]}))}var A,M=Object(h.F)(v),I=!0;for(i=1;i<M.length;i++){var D=M[i-1],P=M[i];if(v[D][Sy]!==v[P][Sy]){I=!1;break}A=v[D][Sy]}if(I&&A){for(var y in v)v[y][Sy]&&delete v[y][Sy];t[Sy]=A}if(Object(h.n)(M,(function(e){return Object(h.F)(v[e]).length>0})).length)return Ty(v,n)+" "+o[0]+" both"}for(var S in d){(f=w(d[S]))&&c.push(f)}if(c.length){var k=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+k]={animation:c.join(",")},t.class=k}}var My=Math.round;function Iy(e){return e&&Object(h.C)(e.src)}function Dy(e){return e&&Object(h.w)(e.toDataURL)}function Py(e,style,t,n){py((function(r,o){var l="fill"===r||"stroke"===r;l&&Object(xt.k)(o)?function(style,e,t,n){var r,o=style[t],l={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(xt.m)(o))r="linearGradient",l.x1=o.x,l.y1=o.y,l.x2=o.x2,l.y2=o.y2;else{if(!Object(xt.o)(o))return void 0;r="radialGradient",l.cx=Object(h.P)(o.x,.5),l.cy=Object(h.P)(o.y,.5),l.r=Object(h.P)(o.r,.5)}for(var c=o.colorStops,f=[],i=0,d=c.length;i<d;++i){var v=100*Object(xt.q)(c[i].offset)+"%",m=c[i].color,y=Object(xt.p)(m),_=y.color,x=y.opacity,w={offset:v};w["stop-color"]=_,x<1&&(w["stop-opacity"]=x),f.push(yy("stop",i+"",w))}var S=by(yy(r,"",l,f)),k=n.gradientCache,O=k[S];O||(O=n.zrId+"-g"+n.gradientIdx++,k[S]=O,l.id=O,n.defs[O]=yy(r,O,l,f));e[t]=Object(xt.d)(O)}(style,e,r,n):l&&Object(xt.n)(o)?function(e,t,n,r){var o,l=e.style[n],c={patternUnits:"userSpaceOnUse"};if(Object(xt.l)(l)){var f=l.imageWidth,d=l.imageHeight,v=void 0,m=l.image;if(Object(h.C)(m)?v=m:Iy(m)?v=m.src:Dy(m)&&(v=m.toDataURL()),"undefined"==typeof Image){var y="Image width/height must been given explictly in svg-ssr renderer.";Object(h.b)(f,y),Object(h.b)(d,y)}else if(null==f||null==d){var _=function(e,img){if(e){var t=e.elm,n=e.attrs.width=f||img.width,r=e.attrs.height=d||img.height;t&&(t.setAttribute("width",n),t.setAttribute("height",r))}},x=ai(v,null,e,(function(img){_(w,img),_(o,img)}));x&&x.width&&x.height&&(f=f||x.width,d=d||x.height)}o=yy("image","img",{href:v,width:f,height:d}),c.width=f,c.height=d}else l.svgElement&&(o=Object(h.d)(l.svgElement),c.width=l.svgWidth,c.height=l.svgHeight);if(!o)return;c.patternTransform=Object(xt.g)(l);var w=yy("pattern","",c,[o]),S=by(w),k=r.patternCache,O=k[S];O||(O=r.zrId+"-p"+r.patternIdx++,k[S]=O,c.id=O,w=r.defs[O]=yy("pattern",O,c,[o]));t[n]=Object(xt.d)(O)}(t,e,r,n):e[r]=o}),style,t,!1),function(e,t,n){var style=e.style;if(Object(xt.i)(style)){var r=Object(xt.h)(e),o=n.shadowCache,l=o[r];if(!l){var c=e.getGlobalScale(),h=c[0],f=c[1];if(!h||!f)return;var d=style.shadowOffsetX||0,v=style.shadowOffsetY||0,m=style.shadowBlur,y=Object(xt.p)(style.shadowColor),_=y.opacity,x=y.color,w=m/2/h+" "+m/2/f;l=n.zrId+"-s"+n.shadowIdx++,n.defs[l]=yy("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[yy("feDropShadow","",{dx:d/h,dy:v/f,stdDeviation:w,"flood-color":x,"flood-opacity":_})]),o[r]=l}t.filter=Object(xt.d)(l)}}(t,e,n)}function Ny(e){return Object(xt.j)(e[0]-1)&&Object(xt.j)(e[1])&&Object(xt.j)(e[2])&&Object(xt.j)(e[3]-1)}function Ly(e,t,n){if(t&&(!function(e){return Object(xt.j)(e[4])&&Object(xt.j)(e[5])}(t)||!Ny(t))){var r=n?10:1e4;e.transform=Ny(t)?"translate("+My(t[4]*r)/r+" "+My(t[5]*r)/r+")":Object(xt.e)(t)}}function jy(e,t,n){for(var r=e.points,o=[],i=0;i<r.length;i++)o.push(My(r[i][0]*n)/n),o.push(My(r[i][1]*n)/n);t.points=o.join(" ")}function Ry(e){return!e.smooth}var desc,Fy,By={circle:[(desc=["cx","cy","r"],Fy=Object(h.H)(desc,(function(e){return"string"==typeof e?[e,e]:e})),function(e,t,n){for(var i=0;i<Fy.length;i++){var r=Fy[i],o=e[r[0]];null!=o&&(t[r[1]]=My(o*n)/n)}})],polyline:[jy,Ry],polygon:[jy,Ry]};function zy(e,t){var style=e.style,n=e.shape,r=By[e.type],o={},l=t.animation,c="path",h=e.style.strokePercent,f=t.compress&&Object(xt.f)(e)||4;if(!r||t.willUpdate||r[1]&&!r[1](n)||l&&function(e){for(var t=e.animators,i=0;i<t.length;i++)if("shape"===t[i].targetName)return!0;return!1}(e)||h<1){e.path||e.createPathProxy();var path=e.path;e.shapeChanged()&&(path.beginPath(),e.buildPath(path,e.shape),e.pathUpdated());var d=path.getVersion(),v=e,m=v.__svgPathBuilder;v.__svgPathVersion===d&&m&&h===v.__svgPathStrokePercent||(m||(m=v.__svgPathBuilder=new uy),m.reset(f),path.rebuildPath(m,h),m.generateStr(),v.__svgPathVersion=d,v.__svgPathStrokePercent=h),o.d=m.getStr()}else{c=e.type;var y=Math.pow(10,f);r[0](n,o,y)}return Ly(o,e.transform),Py(o,style,e,t),t.animation&&Ay(e,o,t),yy(c,e.id+"",o)}function $y(e,t){return e instanceof Do?zy(e,t):e instanceof Bo?function(e,t){var style=e.style,image=style.image;if(image&&!Object(h.C)(image)&&(Iy(image)?image=image.src:Dy(image)&&(image=image.toDataURL())),image){var n=style.x||0,r=style.y||0,o={href:image,width:style.width,height:style.height};return n&&(o.x=n),r&&(o.y=r),Ly(o,e.transform),Py(o,style,e,t),t.animation&&Ay(e,o,t),yy("image",e.id+"",o)}}(e,t):e instanceof Lo?function(e,t){var style=e.style,text=style.text;if(null!=text&&(text+=""),text&&!isNaN(style.x)&&!isNaN(style.y)){var n=style.font||wn.a,r=style.x||0,o=Object(xt.b)(style.y||0,An(n),style.textBaseline),l={"dominant-baseline":"central","text-anchor":xt.a[style.textAlign]||style.textAlign};if(na(style)){var c="",h=style.fontStyle,f=ea(style.fontSize);if(!parseFloat(f))return;var d=style.fontFamily||wn.b,v=style.fontWeight;c+="font-size:"+f+";font-family:"+d+";",h&&"normal"!==h&&(c+="font-style:"+h+";"),v&&"normal"!==v&&(c+="font-weight:"+v+";"),l.style=c}else l.style="font: "+n;return text.match(/\s/)&&(l["xml:space"]="preserve"),r&&(l.x=r),o&&(l.y=o),Ly(l,e.transform),Py(l,style,e,t),t.animation&&Ay(e,l,t),yy("text",e.id+"",l,void 0,text)}}(e,t):void 0}function Vy(e,t,n){var r=n.clipPathCache,defs=n.defs,o=r[e.id];if(!o){var l={id:o=n.zrId+"-c"+n.clipPathIdx++};r[e.id]=o,defs[o]=yy("clipPath",o,l,[zy(e,n)])}t["clip-path"]=Object(xt.d)(o)}function Hy(text){return document.createTextNode(text)}function qy(e,t,n){e.insertBefore(t,n)}function Wy(e,t){e.removeChild(t)}function Uy(e,t){e.appendChild(t)}function Gy(e){return e.parentNode}function Yy(e){return e.nextSibling}function Ky(e,text){e.textContent=text}var Xy=yy("","");function Zy(s){return void 0===s}function Jy(s){return void 0!==s}function Qy(e,t,n){for(var map={},i=t;i<=n;++i){var r=e[i].key;void 0!==r&&(map[r]=i)}return map}function eb(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function tb(e){var i,t=e.children,n=e.tag;if(Jy(n)){var r=e.elm=my(n);if(ib(Xy,e),Object(h.t)(t))for(i=0;i<t.length;++i){var o=t[i];null!=o&&Uy(r,tb(o))}else Jy(e.text)&&!Object(h.A)(e.text)&&Uy(r,Hy(e.text))}else e.elm=Hy(e.text);return e.elm}function nb(e,t,n,r,o){for(;r<=o;++r){var l=n[r];null!=l&&qy(e,tb(l),t)}}function rb(e,t,n,r){for(;n<=r;++n){var o=t[n];if(null!=o)if(Jy(o.tag))Wy(Gy(o.elm),o.elm);else Wy(e,o.elm)}}function ib(e,t){var n,r=t.elm,o=e&&e.attrs||{},l=t.attrs||{};if(o!==l){for(n in l){var c=l[n];o[n]!==c&&(!0===c?r.setAttribute(n,""):!1===c?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,c):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS("http://www.w3.org/2000/xmlns/",n,c):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,c):58===n.charCodeAt(5)?r.setAttributeNS(vy,n,c):r.setAttribute(n,c))}for(n in o)n in l||r.removeAttribute(n)}}function ob(e,t){var n=t.elm=e.elm,r=e.children,o=t.children;e!==t&&(ib(e,t),Zy(t.text)?Jy(r)&&Jy(o)?r!==o&&function(e,t,n){for(var r,o,l,c=0,h=0,f=t.length-1,d=t[0],v=t[f],m=n.length-1,y=n[0],_=n[m];c<=f&&h<=m;)null==d?d=t[++c]:null==v?v=t[--f]:null==y?y=n[++h]:null==_?_=n[--m]:eb(d,y)?(ob(d,y),d=t[++c],y=n[++h]):eb(v,_)?(ob(v,_),v=t[--f],_=n[--m]):eb(d,_)?(ob(d,_),qy(e,d.elm,Yy(v.elm)),d=t[++c],_=n[--m]):eb(v,y)?(ob(v,y),qy(e,v.elm,d.elm),v=t[--f],y=n[++h]):(Zy(r)&&(r=Qy(t,c,f)),Zy(o=r[y.key])||(l=t[o]).tag!==y.tag?qy(e,tb(y),d.elm):(ob(l,y),t[o]=void 0,qy(e,l.elm,d.elm)),y=n[++h]);(c<=f||h<=m)&&(c>f?nb(e,null==n[m+1]?null:n[m+1].elm,n,h,m):rb(e,t,c,f))}(n,r,o):Jy(o)?(Jy(e.text)&&Ky(n,""),nb(n,null,o,0,o.length-1)):Jy(r)?rb(n,r,0,r.length-1):Jy(e.text)&&Ky(n,""):e.text!==t.text&&(Jy(r)&&rb(n,r,0,r.length-1),Ky(n,t.text)))}var ab=0;var sb=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=t,this._opts=n=Object(h.m)({},n),this.root=e,this._id="zr"+ab++,this._oldVNode=xy(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=my("svg");ib(null,this._oldVNode),r.appendChild(o),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",function(e,t){if(eb(e,t))ob(e,t);else{var n=e.elm,r=Gy(n);tb(t),null!==r&&(qy(r,t.elm,Yy(n)),rb(r,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return $y(e,_y(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._backgroundColor,r=this._width,o=this._height,l=_y(this._id);l.animation=e.animation,l.willUpdate=e.willUpdate,l.compress=e.compress;var c=[];if(n&&"none"!==n){var f=Object(xt.p)(n),d=f.color,v=f.opacity;this._bgVNode=yy("rect","bg",{width:r,height:o,x:"0",y:"0",id:"0",fill:d,"fill-opacity":v}),c.push(this._bgVNode)}else this._bgVNode=null;var m=e.compress?null:this._mainVNode=yy("g","main",{},[]);this._paintList(t,l,m?m.children:c),m&&c.push(m);var defs=Object(h.H)(Object(h.F)(l.defs),(function(e){return l.defs[e]}));if(defs.length&&c.push(yy("defs","defs",{},defs)),e.animation){var y=function(e,t,n){var r=(n=n||{}).newline?"\n":"",o=" {"+r,l=r+"}",c=Object(h.H)(Object(h.F)(e),(function(t){return t+o+Object(h.H)(Object(h.F)(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(r)+l})).join(r),f=Object(h.H)(Object(h.F)(t),(function(e){return"@keyframes "+e+o+Object(h.H)(Object(h.F)(t[e]),(function(n){return n+o+Object(h.H)(Object(h.F)(t[e][n]),(function(r){var o=t[e][n][r];return"d"===r&&(o='path("'+o+'")'),r+":"+o+";"})).join(r)+l})).join(r)+l})).join(r);return c||f?["<![CDATA[",c,f,"]]>"].join(r):""}(l.cssNodes,l.cssAnims,{newline:!0});if(y){var _=yy("style","stl",{},[],y);c.push(_)}}return xy(r,o,c,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},by(this.renderToVNode({animation:Object(h.P)(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(h.P)(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var n=Object(xt.p)(e),r=n.color,o=n.opacity;t.elm.setAttribute("fill",r),o<1&&t.elm.setAttribute("fill-opacity",o)}},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,o,l=e.length,c=[],h=0,f=0,i=0;i<l;i++){var d=e[i];if(!d.invisible){var v=d.__clipPaths,m=v&&v.length||0,y=o&&o.length||0,_=void 0;for(_=Math.max(m-1,y-1);_>=0&&(!v||!o||v[_]!==o[_]);_--);for(var x=y-1;x>_;x--)r=c[--h-1];for(var w=_+1;w<m;w++){var S={};Vy(v[w],S,t);var g=yy("g","clip-g-"+f++,S,[]);(r?r.children:n).push(g),c[h++]=g,r=g}o=v;var k=$y(d,t);k&&(r?r.children:n).push(k)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,o=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),r&&o&&(o.style.display="none",e=Pg(r,0,n),t=Pg(r,1,n),o.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,o){var l=o.style;l.width=e+"px",l.height=t+"px"}var c=this._svgDom;c&&(c.setAttribute("width",e),c.setAttribute("height",t))}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return e?(t=Object(xt.c)(t))&&n+"base64,"+t:n+"charset=UTF-8,"+t},e}();function lb(e){return null==e?0:e.length||1}function ub(e){return e}var cb=function(){function e(e,t,n,r,o,l){this._old=e,this._new=t,this._oldKeyGetter=n||ub,this._newKeyGetter=r||ub,this.context=o,this._diffModeMultiple="multiple"===l}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),o=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var i=0;i<e.length;i++){var l=r[i],c=n[l],h=lb(c);if(h>1){var f=c.shift();1===c.length&&(n[l]=c[0]),this._update&&this._update(f,i)}else 1===h?(n[l]=null,this._update&&this._update(c,i)):this._remove&&this._remove(i)}this._performRestAdd(o,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},o=[],l=[];this._initIndexMap(e,n,o,"_oldKeyGetter"),this._initIndexMap(t,r,l,"_newKeyGetter");for(var i=0;i<o.length;i++){var c=o[i],h=n[c],f=r[c],d=lb(h),v=lb(f);if(d>1&&1===v)this._updateManyToOne&&this._updateManyToOne(f,h),r[c]=null;else if(1===d&&v>1)this._updateOneToMany&&this._updateOneToMany(f,h),r[c]=null;else if(1===d&&1===v)this._update&&this._update(f,h),r[c]=null;else if(d>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,h),r[c]=null;else if(d>1)for(var m=0;m<d;m++)this._remove&&this._remove(h[m]);else this._remove&&this._remove(h)}this._performRestAdd(l,r)},e.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var n=e[i],r=t[n],o=lb(r);if(o>1)for(var l=0;l<o;l++)this._add&&this._add(r[l]);else 1===o&&this._add&&this._add(r);t[n]=null}},e.prototype._initIndexMap=function(e,map,t,n){for(var r=this._diffModeMultiple,i=0;i<e.length;i++){var o="_ec_"+this[n](e[i],i);if(r||(t[i]=o),map){var l=map[o],c=lb(l);0===c?(map[o]=i,r&&t.push(o)):1===c?map[o]=[l,i]:l.push(i)}}},e}(),hb=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function fb(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function db(e){return"category"===e?"ordinal":"time"===e?"time":"float"}var pb=function(e){this.otherDims={},null!=e&&h.m(this,e)},gb=jr(),vb={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},mb=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=_b(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return Object(h.P)(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Dc(this.source),n=!xb(e),r="",o=[],l=0,c=0;l<e;l++){var h=void 0,f=void 0,d=void 0,v=this.dimensions[c];if(v&&v.storeDimIndex===l)h=t?v.name:null,f=v.type,d=v.ordinalMeta,c++;else{var m=this.getSourceDimension(l);m&&(h=t?m.name:null,f=m.type)}o.push({property:h,type:f,ordinalMeta:d}),!t||null==h||v&&v.isCalculationCoord||(r+=n?h.replace(/\`/g,"`1").replace(/\$/g,"`2"):h),r+="$",r+=vb[f]||"f",d&&(r+=d.uid),r+="$"}var source=this.source;return{dimensions:o,hash:[source.seriesLayoutBy,source.startIndex,r].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===t)o.isCalculationCoord||(r=o.name),n++;else{var l=this.getSourceDimension(t);l&&(r=l.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function yb(e){return e instanceof mb}function bb(e){for(var t=Object(h.f)(),i=0;i<(e||[]).length;i++){var n=e[i],r=Object(h.A)(n)?n.name:n;null!=r&&null==t.get(r)&&t.set(r,i)}return t}function _b(source){var e=gb(source);return e.dimNameMap||(e.dimNameMap=bb(source.dimensionsDefine))}function xb(e){return e>30}var wb,Sb,kb,Ob,Cb,Tb,Eb,Ab=h.A,Mb=h.H,Ib="undefined"==typeof Int32Array?Array:Int32Array,Db=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Pb=["_approximateExtent"],Nb=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;yb(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var o={},l=[],c={},f=!1,d={},i=0;i<n.length;i++){var v=n[i],m=h.C(v)?new pb({name:v}):v instanceof pb?v:new pb(v),y=m.name;m.type=m.type||"float",m.coordDim||(m.coordDim=y,m.coordDimIndex=0);var _=m.otherDims=m.otherDims||{};l.push(y),o[y]=m,null!=d[y]&&(f=!0),m.createInvertedIndices&&(c[y]=[]),0===_.itemName&&(this._nameDimIdx=i),0===_.itemId&&(this._idDimIdx=i),r&&(m.storeDimIndex=i)}if(this.dimensions=l,this._dimInfos=o,this._initGetDimensionInfo(f),this.hostModel=t,this._invertedIndicesMap=c,this._dimOmitted){var x=this._dimIdxToName=h.f();h.k(l,(function(e){x.set(o[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(h.z(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(data,e,t){var n,r=this;if(data instanceof kh&&(n=data),!n){var o=this.dimensions,l=Cc(data)||h.u(data)?new Pc(data,o.length):data;n=new kh;var c=Mb(o,(function(e){return{type:r._dimInfos[e].type,property:e}}));n.initData(l,c,t)}this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=function(data,e){var summary={},t=summary.encode={},n=Object(h.f)(),r=[],o=[],l={};Object(h.k)(data.dimensions,(function(e){var c,h=data.getDimensionInfo(e),f=h.coordDim;if(f){var d=h.coordDimIndex;fb(t,f)[d]=e,h.isExtraCoord||(n.set(f,1),"ordinal"!==(c=h.type)&&"time"!==c&&(r[0]=e),fb(l,f)[d]=data.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(e)}hu.each((function(e,n){var r=fb(t,n),o=h.otherDims[n];null!=o&&!1!==o&&(r[o]=h.name)}))}));var c=[],f={};n.each((function(e,n){var r=t[n];f[n]=r[0],c=c.concat(r)})),summary.dataDimsOnCoord=c,summary.dataDimIndicesOnCoord=Object(h.H)(c,(function(e){return data.getDimensionInfo(e).storeDimIndex})),summary.encodeFirstDimNotExtra=f;var d=t.label;d&&d.length&&(r=d.slice());var v=t.tooltip;return v&&v.length?o=v.slice():o.length||(o=r.slice()),t.defaultedLabel=r,t.defaultedTooltip=o,summary.userOutput=new hb(l,e),summary}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(data){var e=this._store.appendData(data);this._doInit(e[0],e[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),r=n.start,o=n.end,l=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var c=r;c<o;c++){var h=c-r;this._nameList[c]=t[h],l&&Eb(this,c)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,i=0;i<t.length;i++){var n=this._dimInfos[t[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==vu&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(n.getSource().sourceFormat===fu&&!n.pure)for(var l=[],c=e;c<t;c++){var h=n.getItem(c,l);if(!this.hasItemOption&&Er(h)&&(this.hasItemOption=!0),h){var f=h.name;null==r[c]&&null!=f&&(r[c]=Dr(f,null));var d=h.id;null==o[c]&&null!=d&&(o[c]=Dr(d,null))}}if(this._shouldMakeIdFromName())for(c=e;c<t;c++)Eb(this,c);wb(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){Ab(e)?h.m(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=kb(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return Sb(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return h.t(e)?r.getValues(Mb(e,(function(e){return n._getStoreDimIndex(e)})),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,i=0,n=t.length;i<n;i++)if(isNaN(this._store.get(t[i],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var i=0,t=this._store.count();i<t;i++)if(this.getName(i)===e)return i;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=(e&&this._invertedIndicesMap[e])[t];return null==n||isNaN(n)?-1:n},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){h.w(e)&&(n=t,t=e,e=[]);var r=n||this,o=Mb(Ob(e),this._getStoreDimIndex,this);this._store.each(o,r?h.c(t,r):t)},e.prototype.filterSelf=function(e,t,n){h.w(e)&&(n=t,t=e,e=[]);var r=n||this,o=Mb(Ob(e),this._getStoreDimIndex,this);return this._store=this._store.filter(o,r?h.c(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=h.F(e),o=[];return h.k(r,(function(r){var l=t._getStoreDimIndex(r);n[l]=e[r],o.push(l)})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){h.w(e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),n),r},e.prototype.map=function(e,t,n,r){var o=n||r||this,l=Mb(Ob(e),this._getStoreDimIndex,this),c=Tb(this);return c._store=this._store.map(l,o?h.c(t,o):t),c},e.prototype.modify=function(e,t,n,r){var o=n||r||this;var l=Mb(Ob(e),this._getStoreDimIndex,this);this._store.modify(l,o?h.c(t,o):t)},e.prototype.downSample=function(e,t,n,r){var o=Tb(this);return o._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),o},e.prototype.lttbDownSample=function(e,t){var n=Tb(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Ys(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new cb(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return Sb(e,t)}),(function(e){return Sb(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},Ab(e)?h.m(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var o=r[t];return null==o&&(o=this.getVisual(t),h.t(o)?o=o.slice():Ab(o)&&(o=h.m({},o)),r[t]=o),o},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Ab(t)?h.m(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Ab(e)?h.m(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?h.m(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;ha(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){h.k(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Mb(this.dimensions,this._getDimInfo,this),this.hostModel)),Cb(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];h.w(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(h.S(arguments)))})},e.internalField=(wb=function(data){var e=data._invertedIndicesMap;h.k(e,(function(t,n){var r=data._dimInfos[n],o=r.ordinalMeta,l=data._store;if(o){t=e[n]=new Ib(o.categories.length);for(var i=0;i<t.length;i++)t[i]=-1;for(i=0;i<l.count();i++)t[l.get(r.storeDimIndex,i)]=i}}))},kb=function(data,e,t){return Dr(data._getCategory(e,t),null)},Sb=function(data,e){var t=data._idList[e];return null==t&&null!=data._idDimIdx&&(t=kb(data,data._idDimIdx,e)),null==t&&(t="e\0\0"+e),t},Ob=function(e){return h.t(e)||(e=null!=e?[e]:[]),e},Tb=function(t){var n=new e(t._schema?t._schema:Mb(t.dimensions,t._getDimInfo,t),t.hostModel);return Cb(n,t),n},Cb=function(e,source){h.k(Db.concat(source.__wrappedMethods||[]),(function(t){source.hasOwnProperty(t)&&(e[t]=source[t])})),e.__wrappedMethods=source.__wrappedMethods,h.k(Pb,(function(t){e[t]=h.d(source[t])})),e._calculationInfo=h.m({},source._calculationInfo)},void(Eb=function(data,e){var t=data._nameList,n=data._idList,r=data._nameDimIdx,o=data._idDimIdx,l=t[e],c=n[e];if(null==l&&null!=r&&(t[e]=l=kb(data,r,e)),null==c&&null!=o&&(n[e]=c=kb(data,o,e)),null==c&&null!=l){var h=data._nameRepeatCount,f=h[l]=(h[l]||0)+1;c=l,f>1&&(c+="__ec__"+f),n[e]=c}})),e}(),Lb=Nb;function jb(source,e){Cc(source)||(source=Ec(source));var t=(e=e||{}).coordDimensions||[],n=e.dimensionsDefine||source.dimensionsDefine||[],r=Object(h.f)(),o=[],l=function(source,e,t,n){var r=Math.max(source.dimensionsDetectedCount||1,e.length,t.length,n||0);return Object(h.k)(e,(function(e){var t;Object(h.A)(e)&&(t=e.dimsDef)&&(r=Math.max(r,t.length))})),r}(source,t,n,e.dimensionsCount),c=e.canOmitUnusedDimensions&&xb(l),f=n===source.dimensionsDefine,d=f?_b(source):bb(n),v=e.encodeDefine;!v&&e.encodeDefaulter&&(v=e.encodeDefaulter(source,l));for(var m=Object(h.f)(v),y=new yh(l),i=0;i<y.length;i++)y[i]=-1;function _(e){var t=y[e];if(t<0){var r=n[e],l=Object(h.A)(r)?r:{name:r},c=new pb,f=l.name;null!=f&&null!=d.get(f)&&(c.name=c.displayName=f),null!=l.type&&(c.type=l.type),null!=l.displayName&&(c.displayName=l.displayName);var v=o.length;return y[e]=v,c.storeDimIndex=e,o.push(c),c}return o[t]}if(!c)for(i=0;i<l;i++)_(i);m.each((function(e,t){var n=kr(e).slice();if(1===n.length&&!Object(h.C)(n[0])&&n[0]<0)m.set(t,!1);else{var r=m.set(t,[]);Object(h.k)(n,(function(e,n){var o=Object(h.C)(e)?d.get(e):e;null!=o&&o<l&&(r[n]=o,w(_(o),t,n))}))}}));var x=0;function w(e,t,n){null!=hu.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,r.set(t,!0))}Object(h.k)(t,(function(e){var t,n,r,o;if(Object(h.C)(e))t=e,o={};else{t=(o=e).name;var c=o.ordinalMeta;o.ordinalMeta=null,(o=Object(h.m)({},o)).ordinalMeta=c,n=o.dimsDef,r=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null}var d=m.get(t);if(!1!==d){if(!(d=kr(d)).length)for(var i=0;i<(n&&n.length||1);i++){for(;x<l&&null!=_(x).coordDim;)x++;x<l&&d.push(x++)}Object(h.k)(d,(function(e,l){var c=_(e);if(f&&null!=o.type&&(c.type=o.type),w(Object(h.i)(c,o),t,l),null==c.name&&n){var d=n[l];!Object(h.A)(d)&&(d={name:d}),c.name=c.displayName=d.name,c.defaultTooltip=d.defaultTooltip}r&&Object(h.i)(c.otherDims,r)}))}}));var S=e.generateCoord,k=e.generateCoordCount,O=null!=k;k=S?k||1:0;var C=S||"value";function T(e){null==e.name&&(e.name=e.coordDim)}if(c)Object(h.k)(o,(function(e){T(e)})),o.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var E=0;E<l;E++){var A=_(E);null==A.coordDim&&(A.coordDim=Rb(C,r,O),A.coordDimIndex=0,(!S||k<=0)&&(A.isExtraCoord=!0),k--),T(A),null!=A.type||Tu(source,E)!==_u&&(!A.isExtraCoord||null==A.otherDims.itemName&&null==A.otherDims.seriesName)||(A.type="ordinal")}return function(e){for(var t=Object(h.f)(),i=0;i<e.length;i++){var n=e[i],r=n.name,o=t.get(r)||0;o>0&&(n.name=r+(o-1)),o++,t.set(r,o)}}(o),new mb({source:source,dimensions:o,fullDimensionCount:l,dimensionOmitted:c})}function Rb(e,map,t){var n=map.data;if(t||n.hasOwnProperty(e)){for(var i=0;n.hasOwnProperty(e+i);)i++;e+=i}return map.set(e,!0),e}var Fb=function(e){this.coordSysDims=[],this.axisMap=Object(h.f)(),this.categoryAxisMap=Object(h.f)(),this.coordSysName=e};var Bb={cartesian2d:function(e,t,n,r){var o=e.getReferringComponents("xAxis",zr).models[0],l=e.getReferringComponents("yAxis",zr).models[0];t.coordSysDims=["x","y"],n.set("x",o),n.set("y",l),zb(o)&&(r.set("x",o),t.firstCategoryDimIndex=0),zb(l)&&(r.set("y",l),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var o=e.getReferringComponents("singleAxis",zr).models[0];t.coordSysDims=["single"],n.set("single",o),zb(o)&&(r.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var o=e.getReferringComponents("polar",zr).models[0],l=o.findAxisModel("radiusAxis"),c=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",l),n.set("angle",c),zb(l)&&(r.set("radius",l),t.firstCategoryDimIndex=0),zb(c)&&(r.set("angle",c),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var o=e.ecModel,l=o.getComponent("parallel",e.get("parallelIndex")),c=t.coordSysDims=l.dimensions.slice();Object(h.k)(l.parallelAxisIndex,(function(e,l){var h=o.getComponent("parallelAxis",e),f=c[l];n.set(f,h),zb(h)&&(r.set(f,h),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=l))}))}};function zb(e){return"category"===e.get("type")}function $b(e,t,n){var r,o,l,c=(n=n||{}).byIndex,f=n.stackedCoordDimension;!function(e){return!yb(e.schema)}(t)?(o=t.schema,r=o.dimensions,l=t.store):r=t;var d,v,m,y,_=!(!e||!e.get("stack"));if(Object(h.k)(r,(function(e,t){Object(h.C)(e)&&(r[t]=e={name:e}),_&&!e.isExtraCoord&&(c||d||!e.ordinalMeta||(d=e),v||"ordinal"===e.type||"time"===e.type||f&&f!==e.coordDim||(v=e))})),!v||c||d||(c=!0),v){m="__\0ecstackresult_"+e.id,y="__\0ecstackedover_"+e.id,d&&(d.createInvertedIndices=!0);var x=v.coordDim,w=v.type,S=0;Object(h.k)(r,(function(e){e.coordDim===x&&S++}));var k={name:m,coordDim:x,coordDimIndex:S,type:w,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},O={name:y,coordDim:y,coordDimIndex:S+1,type:w,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};o?(l&&(k.storeDimIndex=l.ensureCalculationDimension(y,w),O.storeDimIndex=l.ensureCalculationDimension(m,w)),o.appendCalculationDimension(k),o.appendCalculationDimension(O)):(r.push(k),r.push(O))}return{stackedDimension:v&&v.name,stackedByDimension:d&&d.name,isStackedByIndex:c,stackedOverDimension:y,stackResultDimension:m}}function Vb(data,e){return!!e&&e===data.getCalculationInfo("stackedDimension")}function Hb(data,e){return Vb(data,e)?data.getCalculationInfo("stackResultDimension"):e}var qb=function(e,t,n){n=n||{};var source,r=t.getSourceManager(),o=!1;e?(o=!0,source=Ec(e)):o=(source=r.getSource()).sourceFormat===fu;var l=function(e){var t=e.get("coordinateSystem"),n=new Fb(t),r=Bb[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),c=function(e,t){var n,r=e.get("coordinateSystem"),o=Ku.get(r);return t&&t.coordSysDims&&(n=h.H(t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var o=r.get("type");n.type=db(o)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}(t,l),f=n.useEncodeDefaulter,d=h.w(f)?f:f?h.h(ku,c,t):null,v=jb(source,{coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:d,canOmitUnusedDimensions:!o}),m=function(e,t,n){var r,o;return n&&h.k(e,(function(e,l){var c=e.coordDim,h=n.categoryAxisMap.get(c);h&&(null==r&&(r=l),e.ordinalMeta=h.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(o=!0)})),o||null==r||(e[r].otherDims.itemName=0),r}(v.dimensions,n.createInvertedIndices,l),y=o?null:r.getSharedDataStore(v),_=$b(t,{schema:v,store:y}),data=new Lb(v,t);data.setCalculationInfo(_);var x=null!=m&&function(source){if(source.sourceFormat===fu){var e=function(e){var i=0;for(;i<e.length&&null==e[i];)i++;return e[i]}(source.data||[]);return!h.t(Tr(e))}}(source)?function(e,t,n,r){return r===m?n:this.defaultDimValueGetter(e,t,n,r)}:null;return data.hasItemOption=!1,data.initData(o?source:y,null,x),data},Wb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return l(t,e),t.prototype.getInitialData=function(option){return qb(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new qn,line=Tg("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(line),line.setStyle(e.lineStyle);var n=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===n?"circle":n,l=.8*e.itemHeight,symbol=Tg(o,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);t.add(symbol),symbol.setStyle(e.itemStyle);var c="inherit"===e.iconRotate?r:e.iconRotate||0;return symbol.rotation=c*Math.PI/180,symbol.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(symbol.style.stroke=symbol.style.fill,symbol.style.fill="#fff",symbol.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(tf),Ub=Wb;function Gb(data,e){var t=data.mapDimensionsAll("defaultedLabel"),n=t.length;if(1===n){var r=qc(data,e,t[0]);return null!=r?r+"":null}if(n){for(var o=[],i=0;i<t.length;i++)o.push(qc(data,e,t[i]));return o.join(" ")}}function Yb(data,e){var t=data.mapDimensionsAll("defaultedLabel");if(!Object(h.t)(e))return e+"";for(var n=[],i=0;i<t.length;i++){var r=data.getDimensionIndex(t[i]);r>=0&&n.push(e[r])}return n.join(" ")}var Kb=function(e){function t(data,t,n,r){var o=e.call(this)||this;return o.updateData(data,t,n,r),o}return l(t,e),t.prototype._createSymbol=function(e,data,t,n,r){this.removeAll();var o=Tg(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=Xb,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){$a(this.childAt(0))},t.prototype.downplay=function(){Va(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(data,e,n,r){this.silent=!1;var o=data.getItemVisual(e,"symbol")||"circle",l=data.hostModel,c=t.getSymbolSize(data,e),h=o!==this._symbolType,f=r&&r.disableAnimation;if(h){var d=data.getItemVisual(e,"symbolKeepAspect");this._createSymbol(o,data,e,c,d)}else{(m=this.childAt(0)).silent=!1;var v={scaleX:c[0]/2,scaleY:c[1]/2};f?m.attr(v):ds(m,v,l,e),bs(m)}if(this._updateCommon(data,e,c,n,r),h){var m=this.childAt(0);if(!f){v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:m.style.opacity}};m.scaleX=m.scaleY=0,m.style.opacity=0,ps(m,v,l,e)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(data,e,t,n,r){var o,l,c,f,d,v,m,y,_,x=this.childAt(0),w=data.hostModel;if(n&&(o=n.emphasisItemStyle,l=n.blurItemStyle,c=n.selectItemStyle,f=n.focus,d=n.blurScope,m=n.labelStatesModels,y=n.hoverScale,_=n.cursorStyle,v=n.emphasisDisabled),!n||data.hasItemOption){var S=n&&n.itemModel?n.itemModel:data.getItemModel(e),k=S.getModel("emphasis");o=k.getModel("itemStyle").getItemStyle(),c=S.getModel(["select","itemStyle"]).getItemStyle(),l=S.getModel(["blur","itemStyle"]).getItemStyle(),f=k.get("focus"),d=k.get("blurScope"),v=k.get("disabled"),m=ks(S),y=k.getShallow("scale"),_=S.getShallow("cursor")}var O=data.getItemVisual(e,"symbolRotate");x.attr("rotation",(O||0)*Math.PI/180||0);var C=Ag(data.getItemVisual(e,"symbolOffset"),t);C&&(x.x=C[0],x.y=C[1]),_&&x.attr("cursor",_);var T=data.getItemVisual(e,"style"),E=T.fill;if(x instanceof Bo){var A=x.style;x.useStyle(Object(h.m)({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},T))}else x.__isEmptyBrush?x.useStyle(Object(h.m)({},T)):x.useStyle(T),x.style.decal=null,x.setColor(E,r&&r.symbolInnerColor),x.style.strokeNoScale=!0;var M=data.getItemVisual(e,"liftZ"),I=this._z2;null!=M?null==I&&(this._z2=x.z2,x.z2+=M):null!=I&&(x.z2=I,this._z2=null);var D=r&&r.useNameLabel;Ss(x,m,{labelFetcher:w,labelDataIndex:e,defaultText:function(e){return D?data.getName(e):Gb(data,e)},inheritColor:E,defaultOpacity:T.opacity}),this._sizeX=t[0]/2,this._sizeY=t[1]/2;var P=x.ensureState("emphasis");P.style=o,x.ensureState("select").style=c,x.ensureState("blur").style=l;var N=null==y||!0===y?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;P.scaleX=this._sizeX*N,P.scaleY=this._sizeY*N,this.setSymbolScale(1),ts(this,f,d,v)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),o=ca(this).dataIndex,l=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var c=r.getTextContent();c&&vs(c,{style:{opacity:0}},t,{dataIndex:o,removeOpt:l,cb:function(){r.removeTextContent()}})}else r.removeTextContent();vs(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:o,cb:e,removeOpt:l})},t.getSymbolSize=function(data,e){return Eg(data.getItemVisual(e,"symbolSize"))},t}(qn);function Xb(e,t){this.parent.drift(e,t)}var Zb=Kb;function Jb(data,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==data.getItemVisual(t,"symbol")}function Qb(e){return null==e||Object(h.A)(e)||(e={isIgnore:e}),e||{}}function e_(data){var e=data.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ks(e),cursorStyle:e.get("cursor")}}var t_=function(){function e(e){this.group=new qn,this._SymbolCtor=e||Zb}return e.prototype.updateData=function(data,e){this._progressiveEls=null,e=Qb(e);var t=this.group,n=data.hostModel,r=this._data,o=this._SymbolCtor,l=e.disableAnimation,c=e_(data),h={disableAnimation:l},f=e.getSymbolPoint||function(e){return data.getItemLayout(e)};r||t.removeAll(),data.diff(r).add((function(n){var r=f(n);if(Jb(data,r,n,e)){var l=new o(data,n,c,h);l.setPosition(r),data.setItemGraphicEl(n,l),t.add(l)}})).update((function(d,v){var m=r.getItemGraphicEl(v),y=f(d);if(Jb(data,y,d,e)){var _=data.getItemVisual(d,"symbol")||"circle",x=m&&m.getSymbolType&&m.getSymbolType();if(!m||x&&x!==_)t.remove(m),(m=new o(data,d,c,h)).setPosition(y);else{m.updateData(data,d,c,h);var w={x:y[0],y:y[1]};l?m.attr(w):ds(m,w,n)}t.add(m),data.setItemGraphicEl(d,m)}else t.remove(m)})).remove((function(e){var o=r.getItemGraphicEl(e);o&&o.fadeOut((function(){t.remove(o)}),n)})).execute(),this._getSymbolPoint=f,this._data=data},e.prototype.updateLayout=function(){var e=this,data=this._data;data&&data.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(data){this._seriesScope=e_(data),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,data,t){function n(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],t=Qb(t);for(var r=e.start;r<e.end;r++){var o=data.getItemLayout(r);if(Jb(data,o,r,t)){var l=new this._SymbolCtor(data,r,this._seriesScope);l.traverse(n),l.setPosition(o),this.group.add(l),data.setItemGraphicEl(r,l),this._progressiveEls.push(l)}}},e.prototype.eachRendered=function(e){sp(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,data=this._data;data&&e?data.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),data.hostModel)})):t.removeAll()},e}(),n_=t_;function r_(e,data,t){var n=e.getBaseAxis(),r=e.getOtherAxis(n),o=function(e,t){var n=0,r=e.scale.getExtent();"start"===t?n=r[0]:"end"===t?n=r[1]:Object(h.z)(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(r,t),l=n.dim,c=r.dim,f=data.mapDimension(c),d=data.mapDimension(l),v="x"===c||"radius"===c?1:0,m=Object(h.H)(e.dimensions,(function(e){return data.mapDimension(e)})),y=!1,_=data.getCalculationInfo("stackResultDimension");return Vb(data,m[0])&&(y=!0,m[0]=_),Vb(data,m[1])&&(y=!0,m[1]=_),{dataDimsForPoint:m,valueStart:o,valueAxisDim:c,baseAxisDim:l,stacked:!!y,valueDim:f,baseDim:d,baseDataOffset:v,stackedOverDimension:data.getCalculationInfo("stackedOverDimension")}}function i_(e,t,data,n){var r=NaN;e.stacked&&(r=data.get(data.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,l=[];return l[o]=data.get(e.baseDim,n),l[1-o]=r,t.dataToPoint(l)}var o_="undefined"!=typeof Float32Array,a_=o_?Float32Array:Array;function s_(e){return Object(h.t)(e)?o_?new Float32Array(e):e:new a_(e)}var l_=Math.min,u_=Math.max;function c_(e,t){return isNaN(e)||isNaN(t)}function h_(e,t,n,r,o,l,c,h,f){for(var d,v,m,y,_,x,w=n,S=0;S<r;S++){var k=t[2*w],O=t[2*w+1];if(w>=o||w<0)break;if(c_(k,O)){if(f){w+=l;continue}break}if(w===n)e[l>0?"moveTo":"lineTo"](k,O),m=k,y=O;else{var C=k-d,T=O-v;if(C*C+T*T<.5){w+=l;continue}if(c>0){for(var E=w+l,A=t[2*E],M=t[2*E+1];A===k&&M===O&&S<r;)S++,w+=l,A=t[2*(E+=l)],M=t[2*E+1],C=(k=t[2*w])-d,T=(O=t[2*w+1])-v;var I=S+1;if(f)for(;c_(A,M)&&I<r;)I++,A=t[2*(E+=l)],M=t[2*E+1];var D=.5,P=0,N=0,L=void 0,j=void 0;if(I>=r||c_(A,M))_=k,x=O;else{P=A-d,N=M-v;var R=k-d,F=A-k,B=O-v,z=M-O,$=void 0,V=void 0;if("x"===h){var H=P>0?1:-1;_=k-H*($=Math.abs(R))*c,x=O,L=k+H*(V=Math.abs(F))*c,j=O}else if("y"===h){var W=N>0?1:-1;_=k,x=O-W*($=Math.abs(B))*c,L=k,j=O+W*(V=Math.abs(z))*c}else $=Math.sqrt(R*R+B*B),_=k-P*c*(1-(D=(V=Math.sqrt(F*F+z*z))/(V+$))),x=O-N*c*(1-D),j=O+N*c*D,L=l_(L=k+P*c*D,u_(A,k)),j=l_(j,u_(M,O)),L=u_(L,l_(A,k)),x=O-(N=(j=u_(j,l_(M,O)))-O)*$/V,_=l_(_=k-(P=L-k)*$/V,u_(d,k)),x=l_(x,u_(v,O)),L=k+(P=k-(_=u_(_,l_(d,k))))*V/$,j=O+(N=O-(x=u_(x,l_(v,O))))*V/$}e.bezierCurveTo(m,y,_,x,k,O),m=L,y=j}else e.lineTo(k,O)}d=k,v=O,w+=l}return S}var f_=function(){this.smooth=0,this.smoothConstraint=!0},d_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return l(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new f_},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0&&c_(n[2*r-2],n[2*r-1]);r--);for(;i<r&&c_(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=h_(e,n,i,r,r,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,data=this.path.data,o=ho.CMD,l="x"===t,c=[],i=0;i<data.length;){var h=void 0,f=void 0,d=void 0,v=void 0,m=void 0,y=void 0,_=void 0;switch(data[i++]){case o.M:n=data[i++],r=data[i++];break;case o.L:if(h=data[i++],f=data[i++],(_=l?(e-n)/(h-n):(e-r)/(f-r))<=1&&_>=0){var x=l?(f-r)*_+r:(h-n)*_+n;return l?[e,x]:[x,e]}n=h,r=f;break;case o.C:h=data[i++],f=data[i++],d=data[i++],v=data[i++],m=data[i++],y=data[i++];var w=l?ot(n,h,d,m,e,c):ot(r,f,v,y,e,c);if(w>0)for(var S=0;S<w;S++){var k=c[S];if(k<=1&&k>=0){x=l?nt(r,f,v,y,k):nt(n,h,d,m,k);return l?[e,x]:[x,e]}}n=m,r=y}}},t}(Do),p_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(f_),g_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return l(t,e),t.prototype.getDefaultShape=function(){return new p_},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,l=t.smoothMonotone;if(t.connectNulls){for(;o>0&&c_(n[2*o-2],n[2*o-1]);o--);for(;i<o&&c_(n[2*i],n[2*i+1]);i++);}for(;i<o;){var c=h_(e,n,i,o,o,1,t.smooth,l,t.connectNulls);h_(e,r,i+c-1,c,o,-1,t.stackedOnSmooth,l,t.connectNulls),i+=c+1,e.closePath()}},t}(Do);function v_(e,t,n,r,o){var rect=e.getArea(),l=rect.x,c=rect.y,f=rect.width,d=rect.height,v=n.get(["lineStyle","width"])||2;l-=v/2,c-=v/2,f+=v,d+=v,l=Math.floor(l),f=Math.round(f);var m=new Go({shape:{x:l,y:c,width:f,height:d}});if(t){var y=e.getBaseAxis(),_=y.isHorizontal(),x=y.inverse;_?(x&&(m.shape.x+=f),m.shape.width=0):(x||(m.shape.y+=d),m.shape.height=0);var w=Object(h.w)(o)?function(e){o(e,m)}:null;ps(m,{shape:{width:f,height:d,x:l,y:c}},n,null,r,w)}return m}function m_(e,t,n){var r=e.getArea(),o=Jn(r.r0,1),l=Jn(r.r,1),c=new Gf({shape:{cx:Jn(e.cx,1),cy:Jn(e.cy,1),r0:o,r:l,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});t&&("angle"===e.getBaseAxis().dim?c.shape.endAngle=r.startAngle:c.shape.r=o,ps(c,{shape:{endAngle:r.endAngle,r:l}},n));return c}function y_(e,t,n,r,o){return e?"polar"===e.type?m_(e,t,n):"cartesian2d"===e.type?v_(e,t,n,r,o):null:null}function b_(e,t){return e.type===t}function __(e,t){if(e.length===t.length){for(var i=0;i<e.length;i++)if(e[i]!==t[i])return;return!0}}function x_(e){for(var t=1/0,n=1/0,r=-1/0,o=-1/0,i=0;i<e.length;){var l=e[i++],c=e[i++];isNaN(l)||(t=Math.min(l,t),r=Math.max(l,r)),isNaN(c)||(n=Math.min(c,n),o=Math.max(c,o))}return[[t,n],[r,o]]}function w_(e,t){var n=x_(e),r=n[0],o=n[1],l=x_(t),c=l[0],h=l[1];return Math.max(Math.abs(r[0]-c[0]),Math.abs(r[1]-c[1]),Math.abs(o[0]-h[0]),Math.abs(o[1]-h[1]))}function S_(e){return h.z(e)?e:e?.5:0}function k_(e,t,n,r){var o=t.getBaseAxis(),l="x"===o.dim||"radius"===o.dim?0:1,c=[],i=0,h=[],f=[],d=[],v=[];if(r){for(i=0;i<e.length;i+=2)isNaN(e[i])||isNaN(e[i+1])||v.push(e[i],e[i+1]);e=v}for(i=0;i<e.length-2;i+=2)switch(d[0]=e[i+2],d[1]=e[i+3],f[0]=e[i],f[1]=e[i+1],c.push(f[0],f[1]),n){case"end":h[l]=d[l],h[1-l]=f[1-l],c.push(h[0],h[1]);break;case"middle":var m=(f[l]+d[l])/2,y=[];h[l]=y[l]=m,h[1-l]=f[1-l],y[1-l]=d[1-l],c.push(h[0],h[1]),c.push(y[0],y[1]);break;default:h[l]=f[l],h[1-l]=d[1-l],c.push(h[0],h[1])}return c.push(e[i++],e[i++]),c}function O_(data,e,t){var n=data.getVisual("visualMeta");if(n&&n.length&&data.count()&&"cartesian2d"===e.type){for(var r,o,i=n.length-1;i>=0;i--){var l=data.getDimensionInfo(n[i].dimension);if("x"===(r=l&&l.coordDim)||"y"===r){o=n[i];break}}if(o){var c=e.getAxis(r),f=h.H(o.stops,(function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}})),d=f.length,v=o.outerColors.slice();d&&f[0].coord>f[d-1].coord&&(f.reverse(),v.reverse());var m=function(e,t){var n,r,o=[],l=e.length;function c(e,t,n){var r=e.coord,p=(n-r)/(t.coord-r);return{coord:n,color:Object(_t.b)(p,[e.color,t.color])}}for(var i=0;i<l;i++){var h=e[i],f=h.coord;if(f<0)n=h;else{if(f>t){r?o.push(c(r,h,t)):n&&o.push(c(n,h,0),c(n,h,t));break}n&&(o.push(c(n,h,0)),n=null),o.push(h),r=h}}return o}(f,"x"===r?t.getWidth():t.getHeight()),y=m.length;if(!y&&d)return f[0].coord<0?v[1]?v[1]:f[d-1].color:v[0]?v[0]:f[0].color;var _=m[0].coord-10,x=m[y-1].coord+10,w=x-_;if(w<.001)return"transparent";h.k(m,(function(e){e.offset=(e.coord-_)/w})),m.push({offset:y?m[y-1].offset:.5,color:v[1]||"transparent"}),m.unshift({offset:y?m[0].offset:.5,color:v[0]||"transparent"});var S=new xd(0,0,0,0,m,!0);return S[r]=_,S[r+"2"]=x,S}}}function C_(e,data,t){var n=e.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=t.getAxesByScale("ordinal")[0];if(o&&(!r||!function(e,data){var t=e.getExtent(),n=Math.abs(t[1]-t[0])/e.scale.count();isNaN(n)&&(n=0);for(var r=data.count(),o=Math.max(1,Math.round(r/5)),l=0;l<r;l+=o)if(1.5*Zb.getSymbolSize(data,l)[e.isHorizontal()?1:0]>n)return!1;return!0}(o,data))){var l=data.mapDimension(o.dim),c={};return h.k(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);c[t]=1})),function(e){return!c.hasOwnProperty(data.get(l,e))}}}}function T_(e,t){return[e[2*t],e[2*t+1]]}function E_(e){if(e.get(["endLabel","show"]))return!0;for(var i=0;i<va.length;i++)if(e.get([va[i],"endLabel","show"]))return!0;return!1}function A_(e,t,n,r){if(b_(t,"cartesian2d")){var o=r.getModel("endLabel"),l=o.get("valueAnimation"),c=r.getData(),h={lastFrameIndex:0},f=E_(r)?function(n,r){e._endLabelOnDuring(n,r,c,h,l,o,t)}:null,d=t.getBaseAxis().isHorizontal(),v=v_(t,n,r,(function(){var t=e._endLabel;t&&n&&null!=h.originalX&&t.attr({x:h.originalX,y:h.originalY})}),f);if(!r.get("clip",!0)){var m=v.shape,y=Math.max(m.width,m.height);d?(m.y-=y,m.height+=2*y):(m.x-=y,m.width+=2*y)}return f&&f(1,v),v}return m_(t,n,r)}var M_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.init=function(){var e=new qn,t=new n_;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,o=e.coordinateSystem,l=this.group,data=e.getData(),c=e.getModel("lineStyle"),f=e.getModel("areaStyle"),d=data.getLayout("points")||[],v="polar"===o.type,m=this._coordSys,y=this._symbolDraw,polyline=this._polyline,polygon=this._polygon,_=this._lineGroup,x=e.get("animation"),w=!f.isEmpty(),S=f.get("origin"),k=r_(o,data,S),O=w&&function(e,data,t){if(!t.valueDim)return[];for(var n=data.count(),r=s_(2*n),o=0;o<n;o++){var l=i_(t,e,data,o);r[2*o]=l[0],r[2*o+1]=l[1]}return r}(o,data,k),C=e.get("showSymbol"),T=e.get("connectNulls"),E=C&&!v&&C_(e,data,o),A=this._data;A&&A.eachItemGraphicEl((function(e,t){e.__temp&&(l.remove(e),A.setItemGraphicEl(t,null))})),C||y.remove(),l.add(_);var M,I=!v&&e.get("step");o&&o.getArea&&e.get("clip",!0)&&(null!=(M=o.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var D=O_(data,o,n)||data.getVisual("style")[data.getVisual("drawType")];if(polyline&&m.type===o.type&&I===this._step){w&&!polygon?polygon=this._newPolygon(d,O):polygon&&!w&&(_.remove(polygon),polygon=this._polygon=null),v||this._initOrUpdateEndLabel(e,o,Ul(D));var P=_.getClipPath();if(P)ps(P,{shape:A_(this,o,!1,e).shape},e);else _.setClipPath(A_(this,o,!0,e));C&&y.updateData(data,{isIgnore:E,clipShape:M,disableAnimation:!0,getSymbolPoint:function(e){return[d[2*e],d[2*e+1]]}}),__(this._stackedOnPoints,O)&&__(this._points,d)||(x?this._doUpdateAnimation(data,O,o,n,I,S,T):(I&&(d=k_(d,o,I,T),O&&(O=k_(O,o,I,T))),polyline.setShape({points:d}),polygon&&polygon.setShape({points:d,stackedOnPoints:O})))}else C&&y.updateData(data,{isIgnore:E,clipShape:M,disableAnimation:!0,getSymbolPoint:function(e){return[d[2*e],d[2*e+1]]}}),x&&this._initSymbolLabelAnimation(data,o,M),I&&(d=k_(d,o,I,T),O&&(O=k_(O,o,I,T))),polyline=this._newPolyline(d),w?polygon=this._newPolygon(d,O):polygon&&(_.remove(polygon),polygon=this._polygon=null),v||this._initOrUpdateEndLabel(e,o,Ul(D)),_.setClipPath(A_(this,o,!0,e));var N=e.getModel("emphasis"),L=N.get("focus"),j=N.get("blurScope"),R=N.get("disabled");(polyline.useStyle(h.i(c.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),os(polyline,e,"lineStyle"),polyline.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(polyline.getState("emphasis").style.lineWidth=+polyline.style.lineWidth+1);ca(polyline).seriesIndex=e.seriesIndex,ts(polyline,L,j,R);var F=S_(e.get("smooth")),B=e.get("smoothMonotone");if(polyline.setShape({smooth:F,smoothMonotone:B,connectNulls:T}),polygon){var z=data.getCalculationInfo("stackedOnSeries"),$=0;polygon.useStyle(h.i(f.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:data.getVisual("style").decal})),z&&($=S_(z.get("smooth"))),polygon.setShape({smooth:F,stackedOnSmooth:$,smoothMonotone:B,connectNulls:T}),os(polygon,e,"areaStyle"),ca(polygon).seriesIndex=e.seriesIndex,ts(polygon,L,j,R)}var V=function(e){r._changePolyState(e)};data.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=V)})),this._polyline.onHoverStateChange=V,this._data=data,this._coordSys=o,this._stackedOnPoints=O,this._points=d,this._step=I,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,polyline),polygon&&this.packEventData(e,polygon))},t.prototype.packEventData=function(e,t){ca(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var data=e.getData(),o=Lr(data,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var l=data.getLayout("points"),symbol=data.getItemGraphicEl(o);if(!symbol){var c=l[2*o],h=l[2*o+1];if(isNaN(c)||isNaN(h))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var f=e.get("zlevel")||0,d=e.get("z")||0;(symbol=new Zb(data,o)).x=c,symbol.y=h,symbol.setZ(f,d);var v=symbol.getSymbolPath().getTextContent();v&&(v.zlevel=f,v.z=d,v.z2=this._polyline.z2+1),symbol.__temp=!0,data.setItemGraphicEl(o,symbol),symbol.stopSymbolAnimation(!0),this.group.add(symbol)}symbol.highlight()}else vp.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var data=e.getData(),o=Lr(data,r);if(this._changePolyState("normal"),null!=o&&o>=0){var symbol=data.getItemGraphicEl(o);symbol&&(symbol.__temp?(data.setItemGraphicEl(o,null),this.group.remove(symbol)):symbol.downplay())}else vp.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var polygon=this._polygon;ja(this._polyline,e),polygon&&ja(polygon,e)},t.prototype._newPolyline=function(e){var polyline=this._polyline;return polyline&&this._lineGroup.remove(polyline),polyline=new d_({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(polyline),this._polyline=polyline,polyline},t.prototype._newPolygon=function(e,t){var polygon=this._polygon;return polygon&&this._lineGroup.remove(polygon),polygon=new g_({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(polygon),this._polygon=polygon,polygon},t.prototype._initSymbolLabelAnimation=function(data,e,t){var n,r,o=e.getBaseAxis(),l=o.inverse;"cartesian2d"===e.type?(n=o.isHorizontal(),r=!1):"polar"===e.type&&(n="angle"===o.dim,r=!0);var c=data.hostModel,f=c.get("animationDuration");h.w(f)&&(f=f(null));var d=c.get("animationDelay")||0,v=h.w(d)?d(null):d;data.eachItemGraphicEl((function(symbol,o){var c=symbol;if(c){var m=[symbol.x,symbol.y],y=void 0,_=void 0,x=void 0;if(t)if(r){var w=t,S=e.pointToCoord(m);n?(y=w.startAngle,_=w.endAngle,x=-S[1]/180*Math.PI):(y=w.r0,_=w.r,x=S[0])}else{var k=t;n?(y=k.x,_=k.x+k.width,x=symbol.x):(y=k.y+k.height,_=k.y,x=symbol.y)}var O=_===y?0:(x-y)/(_-y);l&&(O=1-O);var C=h.w(d)?d(o):f*O+v,T=c.getSymbolPath(),text=T.getTextContent();c.attr({scaleX:0,scaleY:0}),c.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),text&&text.animateFrom({style:{opacity:0}},{duration:300,delay:C}),T.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(E_(e)){var o=e.getData(),polyline=this._polyline,l=o.getLayout("points");if(!l)return polyline.removeTextContent(),void(this._endLabel=null);var c=this._endLabel;c||((c=this._endLabel=new ua({z2:200})).ignoreClip=!0,polyline.setTextContent(this._endLabel),polyline.disableLabelAnimation=!0);var h=function(e){for(var t,n,r=e.length/2;r>0&&(t=e[2*r-2],n=e[2*r-1],isNaN(t)||isNaN(n));r--);return r-1}(l);h>=0&&(Ss(polyline,ks(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:h,defaultText:function(e,t,n){return null!=n?Yb(o,n):Gb(o,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),o=n.inverse,l=r?o?"right":"left":"center",c=r?"middle":o?"top":"bottom";return{normal:{align:e.get("align")||l,verticalAlign:e.get("verticalAlign")||c}}}(r,t)),polyline.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,data,n,r,o,l){var c=this._endLabel,polyline=this._polyline;if(c){e<1&&null==n.originalX&&(n.originalX=c.x,n.originalY=c.y);var h=data.getLayout("points"),f=data.hostModel,d=f.get("connectNulls"),v=o.get("precision"),m=o.get("distance")||0,y=l.getBaseAxis(),_=y.isHorizontal(),x=y.inverse,w=t.shape,S=x?_?w.x:w.y+w.height:_?w.x+w.width:w.y,k=(_?m:0)*(x?-1:1),O=(_?0:-m)*(x?-1:1),C=_?"x":"y",T=function(e,t,n){for(var a,b,r=e.length/2,o="x"===n?0:1,l=0,c=-1,i=0;i<r;i++)if(b=e[2*i+o],!isNaN(b)&&!isNaN(e[2*i+1-o]))if(0!==i){if(a<=t&&b>=t||a>=t&&b<=t){c=i;break}l=i,a=b}else a=b;return{range:[l,c],t:(t-a)/(b-a)}}(h,S,C),E=T.range,A=E[1]-E[0],M=void 0;if(A>=1){if(A>1&&!d){var I=T_(h,E[0]);c.attr({x:I[0]+k,y:I[1]+O}),r&&(M=f.getRawValue(E[0]))}else{(I=polyline.getPointOn(S,C))&&c.attr({x:I[0]+k,y:I[1]+O});var D=f.getRawValue(E[0]),P=f.getRawValue(E[1]);r&&(M=Wr(data,v,D,P,T.t))}n.lastFrameIndex=E[0]}else{var N=1===e||n.lastFrameIndex>0?E[0]:0;I=T_(h,N);r&&(M=f.getRawValue(N)),c.attr({x:I[0]+k,y:I[1]+O})}r&&Ds(c).setLabelText(M)}},t.prototype._doUpdateAnimation=function(data,e,t,n,r,o,l){var polyline=this._polyline,polygon=this._polygon,c=data.hostModel,h=function(e,t,n,r,o,l,c,h){for(var f=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),d=[],v=[],m=[],y=[],_=[],x=[],w=[],S=r_(o,t,c),k=e.getLayout("points")||[],O=t.getLayout("points")||[],i=0;i<f.length;i++){var C=f[i],T=!0,E=void 0,A=void 0;switch(C.cmd){case"=":E=2*C.idx,A=2*C.idx1;var M=k[E],I=k[E+1],D=O[A],P=O[A+1];(isNaN(M)||isNaN(I))&&(M=D,I=P),d.push(M,I),v.push(D,P),m.push(n[E],n[E+1]),y.push(r[A],r[A+1]),w.push(t.getRawIndex(C.idx1));break;case"+":var N=C.idx,L=S.dataDimsForPoint,j=o.dataToPoint([t.get(L[0],N),t.get(L[1],N)]);A=2*N,d.push(j[0],j[1]),v.push(O[A],O[A+1]);var R=i_(S,o,t,N);m.push(R[0],R[1]),y.push(r[A],r[A+1]),w.push(t.getRawIndex(N));break;case"-":T=!1}T&&(_.push(C),x.push(x.length))}x.sort((function(a,b){return w[a]-w[b]}));var F=d.length,B=s_(F),z=s_(F),$=s_(F),V=s_(F),H=[];for(i=0;i<x.length;i++){var W=x[i],U=2*i,G=2*W;B[U]=d[G],B[U+1]=d[G+1],z[U]=v[G],z[U+1]=v[G+1],$[U]=m[G],$[U+1]=m[G+1],V[U]=y[G],V[U+1]=y[G+1],H[i]=_[W]}return{current:B,next:z,stackedOnCurrent:$,stackedOnNext:V,status:H}}(this._data,data,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),f=h.current,d=h.stackedOnCurrent,v=h.next,m=h.stackedOnNext;if(r&&(f=k_(h.current,t,r,l),d=k_(h.stackedOnCurrent,t,r,l),v=k_(h.next,t,r,l),m=k_(h.stackedOnNext,t,r,l)),w_(f,v)>3e3||polygon&&w_(d,m)>3e3)return polyline.stopAnimation(),polyline.setShape({points:v}),void(polygon&&(polygon.stopAnimation(),polygon.setShape({points:v,stackedOnPoints:m})));polyline.shape.__points=h.current,polyline.shape.points=f;var y={shape:{points:v}};h.current!==f&&(y.shape.__points=h.next),polyline.stopAnimation(),ds(polyline,y,c),polygon&&(polygon.setShape({points:f,stackedOnPoints:d}),polygon.stopAnimation(),ds(polygon,{shape:{stackedOnPoints:m}},c),polyline.shape.points!==polygon.shape.points&&(polygon.shape.points=polyline.shape.points));for(var _=[],x=h.status,i=0;i<x.length;i++){if("="===x[i].cmd){var w=data.getItemGraphicEl(x[i].idx1);w&&_.push({el:w,ptIdx:i})}}polyline.animators&&polyline.animators.length&&polyline.animators[0].during((function(){polygon&&polygon.dirtyShape();for(var e=polyline.shape.__points,i=0;i<_.length;i++){var t=_[i].el,n=2*_[i].ptIdx;t.x=e[n],t.y=e[n+1],t.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(vp),I_=M_;function D_(e,t){return{seriesType:e,plan:of(),reset:function(e){var data=e.getData(),n=e.coordinateSystem,r=e.pipelineContext,o=t||r.large;if(n){var l=Object(h.H)(n.dimensions,(function(e){return data.mapDimension(e)})).slice(0,2),c=l.length,f=data.getCalculationInfo("stackResultDimension");Vb(data,l[0])&&(l[0]=f),Vb(data,l[1])&&(l[1]=f);var d=data.getStore(),v=data.getDimensionIndex(l[0]),m=data.getDimensionIndex(l[1]);return c&&{progress:function(e,data){for(var t=e.end-e.start,r=o&&s_(t*c),l=[],h=[],i=e.start,f=0;i<e.end;i++){var y=void 0;if(1===c){var _=d.get(v,i);y=n.dataToPoint(_,null,h)}else l[0]=d.get(v,i),l[1]=d.get(m,i),y=n.dataToPoint(l,null,h);o?(r[f++]=y[0],r[f++]=y[1]):data.setItemLayout(i,y.slice())}o&&data.setLayout("points",r)}}}}}}var P_={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i]||0;return t},max:function(e){for(var t=-1/0,i=0;i<e.length;i++)e[i]>t&&(t=e[i]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,i=0;i<e.length;i++)e[i]<t&&(t=e[i]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},N_=function(e){return Math.round(e.length/2)};function L_(e){return{seriesType:e,reset:function(e,t,n){var data=e.getData(),r=e.get("sampling"),o=e.coordinateSystem,l=data.count();if(l>10&&"cartesian2d"===o.type&&r){var c=o.getBaseAxis(),f=o.getOtherAxis(c),d=c.getExtent(),v=n.getDevicePixelRatio(),m=Math.abs(d[1]-d[0])*(v||1),y=Math.round(l/m);if(isFinite(y)&&y>1){"lttb"===r&&e.setData(data.lttbDownSample(data.mapDimension(f.dim),1/y));var _=void 0;Object(h.C)(r)?_=P_[r]:Object(h.w)(r)&&(_=r),_&&e.setData(data.downSample(data.mapDimension(f.dim),1/y,_,N_))}}}}}var j_="__ec_stack_";function R_(e){return e.get("stack")||j_+e.seriesIndex}function F_(e){return e.dim+e.index}function B_(e,t){var n=[];return t.eachSeriesByType(e,(function(e){q_(e)&&n.push(e)})),n}function z_(e){var t=function(e){var t={};Object(h.k)(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var data=e.getData(),r=n.dim+"_"+n.index,o=data.getDimensionIndex(data.mapDimension(n.dim)),l=data.getStore(),i=0,c=l.count();i<c;++i){var h=l.get(o,i);t[r]?t[r].push(h):t[r]=[h]}}));var n={};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(o){o.sort((function(a,b){return a-b}));for(var l=null,c=1;c<o.length;++c){var f=o[c]-o[c-1];f>0&&(l=null===l?f:Math.min(l,f))}n[r]=l}}return n}(e),n=[];return Object(h.k)(e,(function(e){var r,o=e.coordinateSystem.getBaseAxis(),l=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var c=o.dim+"_"+o.index,h=t[c],f=Math.abs(l[1]-l[0]),d=o.scale.getExtent(),v=Math.abs(d[1]-d[0]);r=h?f/v*h:f}else{var data=e.getData();r=Math.abs(l[1]-l[0])/data.count()}var m=Zn(e.get("barWidth"),r),y=Zn(e.get("barMaxWidth"),r),_=Zn(e.get("barMinWidth")||(W_(e)?.5:1),r),x=e.get("barGap"),w=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:m,barMaxWidth:y,barMinWidth:_,barGap:x,barCategoryGap:w,axisKey:F_(o),stackId:R_(e)})})),$_(n)}function $_(e){var t={};Object(h.k)(e,(function(e,n){var r=e.axisKey,o=e.bandWidth,l=t[r]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},c=l.stacks;t[r]=l;var h=e.stackId;c[h]||l.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var f=e.barWidth;f&&!c[h].width&&(c[h].width=f,f=Math.min(l.remainedWidth,f),l.remainedWidth-=f);var d=e.barMaxWidth;d&&(c[h].maxWidth=d);var v=e.barMinWidth;v&&(c[h].minWidth=v);var m=e.barGap;null!=m&&(l.gap=m);var y=e.barCategoryGap;null!=y&&(l.categoryGap=y)}));var n={};return Object(h.k)(t,(function(e,t){n[t]={};var r=e.stacks,o=e.bandWidth,l=e.categoryGap;if(null==l){var c=Object(h.F)(r).length;l=Math.max(35-4*c,15)+"%"}var f=Zn(l,o),d=Zn(e.gap,1),v=e.remainedWidth,m=e.autoWidthCount,y=(v-f)/(m+(m-1)*d);y=Math.max(y,0),Object(h.k)(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,v-=r+d*r,m--}else{var r=y;t&&t<r&&(r=Math.min(t,v)),n&&n>r&&(r=n),r!==y&&(e.width=r,v-=r+d*r,m--)}})),y=(v-f)/(m+(m-1)*d),y=Math.max(y,0);var _,x=0;Object(h.k)(r,(function(e,t){e.width||(e.width=y),_=e,x+=e.width*(1+d)})),_&&(x-=_.width*d);var w=-x/2;Object(h.k)(r,(function(e,r){n[t][r]=n[t][r]||{bandWidth:o,offset:w,width:e.width},w+=e.width*(1+d)}))})),n}function V_(e,t){var n=B_(e,t),r=z_(n);Object(h.k)(n,(function(e){var data=e.getData(),t=e.coordinateSystem.getBaseAxis(),n=R_(e),o=r[F_(t)][n],l=o.offset,c=o.width;data.setLayout({bandWidth:o.bandWidth,offset:l,size:c})}))}function H_(e){return{seriesType:e,plan:of(),reset:function(e){if(q_(e)){var data=e.getData(),t=e.coordinateSystem,n=t.getBaseAxis(),r=t.getOtherAxis(n),o=data.getDimensionIndex(data.mapDimension(r.dim)),l=data.getDimensionIndex(data.mapDimension(n.dim)),c=e.get("showBackground",!0),h=data.mapDimension(r.dim),f=data.getCalculationInfo("stackResultDimension"),d=Vb(data,h)&&!!data.getCalculationInfo("stackedOnSeries"),v=r.isHorizontal(),m=function(e,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}(0,r),y=W_(e),_=e.get("barMinHeight")||0,x=f&&data.getDimensionIndex(f),w=data.getLayout("size"),S=data.getLayout("offset");return{progress:function(e,data){for(var n,r=e.count,h=y&&s_(3*r),f=y&&c&&s_(3*r),k=y&&s_(r),O=t.master.getRect(),C=v?O.width:O.height,T=data.getStore(),E=0;null!=(n=e.next());){var A=T.get(d?x:o,n),M=T.get(l,n),I=m,D=void 0;d&&(D=+A-T.get(o,n));var P=void 0,N=void 0,L=void 0,j=void 0;if(v){var R=t.dataToPoint([A,M]);if(d)I=t.dataToPoint([D,M])[0];P=I,N=R[1]+S,L=R[0]-I,j=w,Math.abs(L)<_&&(L=(L<0?-1:1)*_)}else{R=t.dataToPoint([M,A]);if(d)I=t.dataToPoint([M,D])[1];P=R[0]+S,N=I,L=w,j=R[1]-I,Math.abs(j)<_&&(j=(j<=0?-1:1)*_)}y?(h[E]=P,h[E+1]=N,h[E+2]=v?L:j,f&&(f[E]=v?O.x:P,f[E+1]=v?N:O.y,f[E+2]=C),k[n]=n):data.setItemLayout(n,{x:P,y:N,width:L,height:j}),E+=3}y&&data.setLayout({largePoints:h,largeDataIndices:k,largeBackgroundPoints:f,valueAxisHorizontal:v})}}}}}}function q_(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function W_(e){return e.pipelineContext&&e.pipelineContext.large}var U_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.getInitialData=function(option,e){return qb(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t&&t.clampData){var n=t.dataToPoint(t.clampData(e)),data=this.getData(),r=data.getLayout("offset"),o=data.getLayout("size");return n[t.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(tf);tf.registerClass(U_);var G_=U_,Y_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.getInitialData=function(){return qb(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,data,t){return t.rect(data.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Zs(G_.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(G_),K_=Y_,X_=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Z_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return l(t,e),t.prototype.getDefaultShape=function(){return new X_},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,o=Math.max(t.r0||0,0),l=Math.max(t.r,0),c=.5*(l-o),h=o+c,f=t.startAngle,d=t.endAngle,v=t.clockwise,m=2*Math.PI,y=v?d-f<m:f-d<m;y||(f=d-(v?m:-m));var _=Math.cos(f),x=Math.sin(f),w=Math.cos(d),S=Math.sin(d);y?(e.moveTo(_*o+n,x*o+r),e.arc(_*h+n,x*h+r,c,-Math.PI+f,f,!v)):e.moveTo(_*l+n,x*l+r),e.arc(n,r,l,f,d,!v),e.arc(w*h+n,S*h+r,c,d-2*Math.PI,d-Math.PI,!v),0!==o&&e.arc(n,r,o,d,f,v)},t}(Do);function J_(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Q_(e,t,n){return t*Math.cos(e)*(n?1:-1)}var ex=Math.max,tx=Math.min;var nx=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return l(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");("cartesian2d"===o||"polar"===o)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){sp(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var o,l=this.group,data=e.getData(),c=this._data,h=e.coordinateSystem,f=h.getBaseAxis();"cartesian2d"===h.type?o=f.isHorizontal():"polar"===h.type&&(o="angle"===f.dim);var d=e.isAnimationEnabled()?e:null,v=function(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();0;if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}(e,h);v&&this._enableRealtimeSort(v,data,n);var m=e.get("clip",!0)||v,y=function(e,data){var t=e.getArea&&e.getArea();if(b_(e,"cartesian2d")){var n=e.getBaseAxis();if("category"!==n.type||!n.onBand){var r=data.getLayout("bandWidth");n.isHorizontal()?(t.x-=r,t.width+=2*r):(t.y-=r,t.height+=2*r)}}return t}(h,data);l.removeClipPath();var _=e.get("roundCap",!0),x=e.get("showBackground",!0),w=e.getModel("backgroundStyle"),S=w.get("borderRadius")||0,k=[],O=this._backgroundEls,C=r&&r.isInitSort,T=r&&"changeAxisOrder"===r.type;function E(e){var t=cx[h.type](data,e),n=function(e,t,n){return new("polar"===e.type?Gf:Go)({shape:mx(t,n,e),silent:!0,z2:0})}(h,o,t);return n.useStyle(w.getItemStyle()),"cartesian2d"===h.type&&n.setShape("r",S),k[e]=n,n}data.diff(c).add((function(t){var n=data.getItemModel(t),r=cx[h.type](data,t,n);if(x&&E(t),data.hasValue(t)&&ux[h.type](r)){var c=!1;m&&(c=rx[h.type](y,r));var w=ix[h.type](e,data,t,r,o,d,f.model,!1,_);v&&(w.forceLabelAnimation=!0),fx(w,data,t,n,r,e,o,"polar"===h.type),C?w.attr({shape:r}):v?ox(v,d,w,r,t,o,!1,!1):ps(w,{shape:r},e,t),data.setItemGraphicEl(t,w),l.add(w),w.ignore=c}})).update((function(t,n){var r=data.getItemModel(t),A=cx[h.type](data,t,r);if(x){var M=void 0;0===O.length?M=E(n):((M=O[n]).useStyle(w.getItemStyle()),"cartesian2d"===h.type&&M.setShape("r",S),k[t]=M);var I=cx[h.type](data,t);ds(M,{shape:mx(o,I,h)},d,t)}var D=c.getItemGraphicEl(n);if(data.hasValue(t)&&ux[h.type](A)){var P=!1;if(m&&(P=rx[h.type](y,A))&&l.remove(D),D?bs(D):D=ix[h.type](e,data,t,A,o,d,f.model,!!D,_),v&&(D.forceLabelAnimation=!0),T){var N=D.getTextContent();if(N){var L=Ds(N);null!=L.prevValue&&(L.prevValue=L.value)}}else fx(D,data,t,r,A,e,o,"polar"===h.type);C?D.attr({shape:A}):v?ox(v,d,D,A,t,o,!0,T):ds(D,{shape:A},e,t,null),data.setItemGraphicEl(t,D),D.ignore=P,l.add(D)}else l.remove(D)})).remove((function(t){var n=c.getItemGraphicEl(t);n&&ys(n,e,t)})).execute();var A=this._backgroundGroup||(this._backgroundGroup=new qn);A.removeAll();for(var i=0;i<k.length;++i)A.add(k[i]);l.add(A),this._backgroundEls=k,this._data=data},t.prototype._renderLarge=function(e,t,n){this._clear(),gx(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),gx(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&y_(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,data,t){var n=this;if(data.count()){var r=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(data,e,t),this._isFirstFrame=!1;else{var o=function(e){var t=data.getItemGraphicEl(e),n=t&&t.shape;return n&&Math.abs(r.isHorizontal()?n.height:n.width)||0};this._onRendered=function(){n._updateSortWithinSameData(data,o,r,t)},t.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(data,e,t){var n=[];return data.each(data.mapDimension(e.dim),(function(e,r){var o=t(r);o=null==o?NaN:o,n.push({dataIndex:r,mappedValue:o,ordinalNumber:e})})),n.sort((function(a,b){return b.mappedValue-a.mappedValue})),{ordinalNumbers:Object(h.H)(n,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(data,e,t){for(var n=t.scale,r=data.mapDimension(t.dim),o=Number.MAX_VALUE,l=0,c=n.getOrdinalMeta().categories.length;l<c;++l){var h=data.rawIndexOf(r,n.getRawOrdinalNumber(l)),f=h<0?Number.MIN_VALUE:e(data.indexOfRawIndex(h));if(f>o)return!0;o=f}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),o=Math.max(0,r[0]),l=Math.min(r[1],n.getOrdinalMeta().categories.length-1);o<=l;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(data,e,t,n){if(this._isOrderChangedWithinSameData(data,e,t)){var r=this._dataSort(data,t,e);this._isOrderDifferentInView(r,t)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:t.dim+"Axis",axisId:t.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(data,e,t){var n=e.baseAxis,r=this._dataSort(data,n,(function(t){return data.get(data.mapDimension(e.otherAxis.dim),t)}));t.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,data=this._data;e&&e.isAnimationEnabled()&&data&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],data.eachItemGraphicEl((function(t){ys(t,e,ca(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(vp),rx={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var o=e.x+e.width,l=e.y+e.height,c=ex(t.x,e.x),h=tx(t.x+t.width,o),f=ex(t.y,e.y),d=tx(t.y+t.height,l),v=h<c,m=d<f;return t.x=v&&c>o?h:c,t.y=m&&f>l?d:f,t.width=v?0:h-c,t.height=m?0:d-f,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),v||m},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var o=tx(t.r,e.r),l=ex(t.r0,e.r0);t.r=o,t.r0=l;var c=o-l<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return c}},ix={cartesian2d:function(e,data,t,n,r,o,l,c,f){var rect=new Go({shape:Object(h.m)({},n),z2:1});(rect.__dataIndex=t,rect.name="item",o)&&(rect.shape[r?"height":"width"]=0);return rect},polar:function(e,data,t,n,r,o,l,c,h){var f=!r&&h?Z_:Gf,d=new f({shape:n,z2:1});d.name="item";var v,m,y=hx(r);if(d.calculateTextPosition=(v=y,m=({isRoundCap:f===Z_}||{}).isRoundCap,function(e,t,n){var r=t.position;if(!r||r instanceof Array)return In(e,t,n);var o=v(r),l=null!=t.distance?t.distance:5,c=this.shape,h=c.cx,f=c.cy,d=c.r,y=c.r0,_=(d+y)/2,x=c.startAngle,w=c.endAngle,S=(x+w)/2,k=m?Math.abs(d-y)/2:0,O=Math.cos,C=Math.sin,T=h+d*O(x),E=f+d*C(x),A="left",M="top";switch(o){case"startArc":T=h+(y-l)*O(S),E=f+(y-l)*C(S),A="center",M="top";break;case"insideStartArc":T=h+(y+l)*O(S),E=f+(y+l)*C(S),A="center",M="bottom";break;case"startAngle":T=h+_*O(x)+J_(x,l+k,!1),E=f+_*C(x)+Q_(x,l+k,!1),A="right",M="middle";break;case"insideStartAngle":T=h+_*O(x)+J_(x,-l+k,!1),E=f+_*C(x)+Q_(x,-l+k,!1),A="left",M="middle";break;case"middle":T=h+_*O(S),E=f+_*C(S),A="center",M="middle";break;case"endArc":T=h+(d+l)*O(S),E=f+(d+l)*C(S),A="center",M="bottom";break;case"insideEndArc":T=h+(d-l)*O(S),E=f+(d-l)*C(S),A="center",M="top";break;case"endAngle":T=h+_*O(w)+J_(w,l+k,!0),E=f+_*C(w)+Q_(w,l+k,!0),A="left",M="middle";break;case"insideEndAngle":T=h+_*O(w)+J_(w,-l+k,!0),E=f+_*C(w)+Q_(w,-l+k,!0),A="right",M="middle";break;default:return In(e,t,n)}return(e=e||{}).x=T,e.y=E,e.align=A,e.verticalAlign=M,e}),o){var _=r?"r":"endAngle",x={};d.shape[_]=r?0:n.startAngle,x[_]=n[_],(c?ds:ps)(d,{shape:x},o)}return d}};function ox(e,t,n,r,o,l,c,h){var f,d;l?(d={x:r.x,width:r.width},f={y:r.y,height:r.height}):(d={y:r.y,height:r.height},f={x:r.x,width:r.width}),h||(c?ds:ps)(n,{shape:f},t,o,null),(c?ds:ps)(n,{shape:d},t?e.baseAxis.model:null,o)}function ax(e,t){for(var i=0;i<t.length;i++)if(!isFinite(e[t[i]]))return!0;return!1}var sx=["x","y","width","height"],lx=["cx","cy","r","startAngle","endAngle"],ux={cartesian2d:function(e){return!ax(e,sx)},polar:function(e){return!ax(e,lx)}},cx={cartesian2d:function(data,e,t){var n=data.getItemLayout(e),r=t?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,o=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),l=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,o,l)}(t,n):0,o=n.width>0?1:-1,l=n.height>0?1:-1;return{x:n.x+o*r/2,y:n.y+l*r/2,width:n.width-o*r,height:n.height-l*r}},polar:function(data,e,t){var n=data.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function hx(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function fx(e,data,t,n,r,o,l,c){var style=data.getItemVisual(t,"style");c||e.setShape("r",n.get(["itemStyle","borderRadius"])||0),e.useStyle(style);var f=n.getShallow("cursor");f&&e.attr("cursor",f);var d=c?l?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":l?r.height>=0?"bottom":"top":r.width>=0?"right":"left",v=ks(n);Ss(e,v,{labelFetcher:o,labelDataIndex:t,defaultText:Gb(o.getData(),t),inheritColor:style.fill,defaultOpacity:style.opacity,defaultOutsidePosition:d});var label=e.getTextContent();if(c&&label){var m=n.get(["label","position"]);e.textConfig.inside="middle"===m||null,function(e,t,n,r){if(Object(h.z)(r))e.setTextConfig({rotation:r});else if(Object(h.t)(t))e.setTextConfig({rotation:0});else{var o,l=e.shape,c=l.clockwise?l.startAngle:l.endAngle,f=l.clockwise?l.endAngle:l.startAngle,d=(c+f)/2,v=n(t);switch(v){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=d;break;case"startAngle":case"insideStartAngle":o=c;break;case"endAngle":case"insideEndAngle":o=f;break;default:return void e.setTextConfig({rotation:0})}var m=1.5*Math.PI-o;"middle"===v&&m>Math.PI/2&&m<1.5*Math.PI&&(m-=Math.PI),e.setTextConfig({rotation:m})}}(e,"outside"===m?d:m,hx(l),n.get(["label","rotate"]))}Ps(label,v,o.getRawValue(t),(function(e){return Yb(data,e)}));var y=n.getModel(["emphasis"]);ts(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),os(e,n),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(r)&&(e.style.fill="none",e.style.stroke="none",Object(h.k)(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var dx=function(){},px=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return l(t,e),t.prototype.getDefaultShape=function(){return new dx},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,o=1-this.baseDimIdx,l=[],c=[],h=this.barWidth,i=0;i<n.length;i+=3)c[r]=h,c[o]=n[i+2],l[r]=n[i+r],l[o]=n[i+o],e.rect(l[0],l[1],c[0],c[1])},t}(Do);function gx(e,t,n,r){var data=e.getData(),o=data.getLayout("valueAxisHorizontal")?1:0,l=data.getLayout("largeDataIndices"),c=data.getLayout("size"),h=e.getModel("backgroundStyle"),f=data.getLayout("largeBackgroundPoints");if(f){var d=new px({shape:{points:f},incremental:!!r,silent:!0,z2:0});d.baseDimIdx=o,d.largeDataIndices=l,d.barWidth=c,d.useStyle(h.getItemStyle()),t.add(d),n&&n.push(d)}var v=new px({shape:{points:data.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=o,v.largeDataIndices=l,v.barWidth=c,t.add(v),v.useStyle(data.getVisual("style")),ca(v).seriesIndex=e.seriesIndex,e.get("silent")||(v.on("mousedown",vx),v.on("mousemove",vx)),n&&n.push(v)}var vx=_p((function(e){var t=function(e,t,n){for(var r=e.baseDimIdx,o=1-r,l=e.shape.points,c=e.largeDataIndices,h=[],f=[],d=e.barWidth,i=0,v=l.length/3;i<v;i++){var m=3*i;if(f[r]=d,f[o]=l[m+2],h[r]=l[m+r],h[o]=l[m+o],f[o]<0&&(h[o]+=f[o],f[o]=-f[o]),t>=h[0]&&t<=h[0]+f[0]&&n>=h[1]&&n<=h[1]+f[1])return c[i]}return-1}(this,e.offsetX,e.offsetY);ca(this).dataIndex=t>=0?t:null}),30,!1);function mx(e,t,n){if(b_(n,"cartesian2d")){var r=t,o=n.getArea();return{x:e?r.x:o.x,y:e?o.y:r.y,width:e?r.width:o.width,height:e?o.height:r.height}}var l=t;return{cx:(o=n.getArea()).cx,cy:o.cy,r0:e?o.r0:l.r0,r:e?o.r:l.r,startAngle:e?l.startAngle:0,endAngle:e?l.endAngle:2*Math.PI}}var yx=nx;var bx=2*Math.PI,_x=Math.PI/180;function xx(e,t){return Ql(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function wx(e,t){var n=xx(e,t),r=e.get("center"),o=e.get("radius");h.t(o)||(o=[0,o]),h.t(r)||(r=[r,r]);var l,c,f=Zn(n.width,t.getWidth()),d=Zn(n.height,t.getHeight()),v=Math.min(f,d),m=Zn(o[0],v/2),y=Zn(o[1],v/2),_=e.coordinateSystem;if(_){var x=_.dataToPoint(r);l=x[0]||0,c=x[1]||0}else l=Zn(r[0],f)+n.x,c=Zn(r[1],d)+n.y;return{cx:l,cy:c,r0:m,r:y}}function Sx(e,t,n){t.eachSeriesByType(e,(function(e){var data=e.getData(),t=data.mapDimension("value"),r=xx(e,n),o=wx(e,n),l=o.cx,c=o.cy,h=o.r,f=o.r0,d=-e.get("startAngle")*_x,v=e.get("minAngle")*_x,m=0;data.each(t,(function(e){!isNaN(e)&&m++}));var y=data.getSum(t),_=Math.PI/(y||m)*2,x=e.get("clockwise"),w=e.get("roseType"),S=e.get("stillShowZeroSum"),k=data.getDataExtent(t);k[0]=0;var O=bx,C=0,T=d,E=x?1:-1;if(data.setLayout({viewRect:r,r:h}),data.each(t,(function(e,t){var n;if(isNaN(e))data.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:c,r0:f,r:w?NaN:h});else{(n="area"!==w?0===y&&S?_:e*_:bx/m)<v?(n=v,O-=v):C+=e;var r=T+E*n;data.setItemLayout(t,{angle:n,startAngle:T,endAngle:r,clockwise:x,cx:l,cy:c,r0:f,r:w?Xn(e,k,[f,h]):h}),T=r}})),O<bx&&m)if(O<=.001){var A=bx/m;data.each(t,(function(e,t){if(!isNaN(e)){var n=data.getItemLayout(t);n.angle=A,n.startAngle=d+E*t*A,n.endAngle=d+E*(t+1)*A}}))}else _=O/C,T=d,data.each(t,(function(e,t){if(!isNaN(e)){var n=data.getItemLayout(t),r=n.angle===v?v:e*_;n.startAngle=T,n.endAngle=T+E*r,T+=E*r}}))}))}function kx(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var data=e.getData();data.filterSelf((function(e){for(var t=data.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0}))}}}}var Ox=Math.PI/180;function Cx(e,t,n,r,o,l,c,h,f,d){if(!(e.length<2)){for(var v=e.length,i=0;i<v;i++)if("outer"===e[i].position&&"labelLine"===e[i].labelAlignTo){var m=e[i].label.x-d;e[i].linePoints[1][0]+=m,e[i].label.x=d}Fm(e,f,f+c)&&function(e){for(var l={list:[],maxY:0},c={list:[],maxY:0},i=0;i<e.length;i++)if("none"===e[i].labelAlignTo){var h=e[i],f=h.label.y>n?c:l,d=Math.abs(h.label.y-n);if(d>=f.maxY){var v=h.label.x-t-h.len2*o,m=r+h.len,_=Math.abs(v)<m?Math.sqrt(d*d/(1-v*v/m/m)):m;f.rB=_,f.maxY=d}f.list.push(h)}y(l),y(c)}(e)}function y(e){for(var l=e.rB,c=l*l,i=0;i<e.list.length;i++){var h=e.list[i],f=Math.abs(h.label.y-n),d=r+h.len,v=d*d,m=Math.sqrt((1-Math.abs(f*f/c))*v),y=t+(m+h.len2)*o,_=y-h.label.x;Tx(h,h.targetTextWidth-_*o,!0),h.label.x=y}}}function Tx(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var label=e.label,style=label.style,r=e.rect,o=style.backgroundColor,l=style.padding,c=l?l[1]+l[3]:0,h=style.overflow,f=r.width+(o?0:c);if(t<f||n){var d=r.height;if(h&&h.match("break")){label.setStyle("backgroundColor",null),label.setStyle("width",t-c);var v=label.getBoundingRect();label.setStyle("width",Math.ceil(v.width)),label.setStyle("backgroundColor",o)}else{var m=t-c,y=t<f?m:n?m>e.unconstrainedWidth?null:m:null;label.setStyle("width",y)}var _=label.getBoundingRect();r.width=_.width;var x=(label.style.margin||0)+2.1;r.height=_.height+x,r.y-=(r.height-d)/2}}}function Ex(e){return"center"===e.position}function Ax(e){var t,n,data=e.getData(),r=[],o=!1,l=(e.get("minShowLabelAngle")||0)*Ox,c=data.getLayout("viewRect"),f=data.getLayout("r"),d=c.width,v=c.x,m=c.y,y=c.height;function _(e){e.ignore=!0}data.each((function(e){var c=data.getItemGraphicEl(e),m=c.shape,label=c.getTextContent(),y=c.getTextGuideLine(),x=data.getItemModel(e),w=x.getModel("label"),S=w.get("position")||x.get(["emphasis","label","position"]),k=w.get("distanceToLabelLine"),O=w.get("alignTo"),C=Zn(w.get("edgeDistance"),d),T=w.get("bleedMargin"),E=x.getModel("labelLine"),A=E.get("length");A=Zn(A,d);var M=E.get("length2");if(M=Zn(M,d),Math.abs(m.endAngle-m.startAngle)<l)return Object(h.k)(label.states,_),Object(h.k)(y.states,_),void(label.ignore=y.ignore=!0);if(function(label){if(!label.ignore)return!0;for(var e in label.states)if(!1===label.states[e].ignore)return!0;return!1}(label)){var I,D,P,N,L=(m.startAngle+m.endAngle)/2,j=Math.cos(L),R=Math.sin(L);t=m.cx,n=m.cy;var F="inside"===S||"inner"===S;if("center"===S)I=m.cx,D=m.cy,N="center";else{var B=(F?(m.r+m.r0)/2*j:m.r*j)+t,z=(F?(m.r+m.r0)/2*R:m.r*R)+n;if(I=B+3*j,D=z+3*R,!F){var $=B+j*(A+f-m.r),V=z+R*(A+f-m.r),H=$+(j<0?-1:1)*M;I="edge"===O?j<0?v+C:v+d-C:H+(j<0?-k:k),D=V,P=[[B,z],[$,V],[H,V]]}N=F?"center":"edge"===O?j>0?"right":"left":j>0?"left":"right"}var W=Math.PI,U=0,G=w.get("rotate");if(Object(h.z)(G))U=G*(W/180);else if("center"===S)U=0;else if("radial"===G||!0===G){U=j<0?-L+W:-L}else if("tangential"===G&&"outside"!==S&&"outer"!==S){var Y=Math.atan2(j,R);Y<0&&(Y=2*W+Y),R>0&&(Y=W+Y),U=Y-W}if(o=!!U,label.x=I,label.y=D,label.rotation=U,label.setStyle({verticalAlign:"middle"}),F){label.setStyle({align:N});var K=label.states.select;K&&(K.x+=label.x,K.y+=label.y)}else{var X=label.getBoundingRect().clone();X.applyTransform(label.getComputedTransform());var Z=(label.style.margin||0)+2.1;X.y-=Z/2,X.height+=Z,r.push({label:label,labelLine:y,position:S,len:A,len2:M,minTurnAngle:E.get("minTurnAngle"),maxSurfaceAngle:E.get("maxSurfaceAngle"),surfaceNormal:new he(j,R),linePoints:P,textAlign:N,labelDistance:k,labelAlignTo:O,edgeDistance:C,bleedMargin:T,rect:X,unconstrainedWidth:X.width,labelStyleWidth:label.style.width})}c.setTextConfig({inside:F})}})),!o&&e.get("avoidLabelOverlap")&&function(e,t,n,r,o,l,c,h){for(var f=[],d=[],v=Number.MAX_VALUE,m=-Number.MAX_VALUE,i=0;i<e.length;i++){var label=e[i].label;Ex(e[i])||(label.x<t?(v=Math.min(v,label.x),f.push(e[i])):(m=Math.max(m,label.x),d.push(e[i])))}for(i=0;i<e.length;i++)if(!Ex(x=e[i])&&x.linePoints){if(null!=x.labelStyleWidth)continue;label=x.label;var y=x.linePoints,_=void 0;_="edge"===x.labelAlignTo?label.x<t?y[2][0]-x.labelDistance-c-x.edgeDistance:c+o-x.edgeDistance-y[2][0]-x.labelDistance:"labelLine"===x.labelAlignTo?label.x<t?v-c-x.bleedMargin:c+o-m-x.bleedMargin:label.x<t?label.x-c-x.bleedMargin:c+o-label.x-x.bleedMargin,x.targetTextWidth=_,Tx(x,_)}for(Cx(d,t,n,r,1,0,l,0,h,m),Cx(f,t,n,r,-1,0,l,0,h,v),i=0;i<e.length;i++){var x;if(!Ex(x=e[i])&&x.linePoints){label=x.label,y=x.linePoints;var w="edge"===x.labelAlignTo,S=label.style.padding,k=S?S[1]+S[3]:0,O=label.style.backgroundColor?0:k,C=x.rect.width+O,T=y[1][0]-y[2][0];w?label.x<t?y[2][0]=c+x.edgeDistance+C+x.labelDistance:y[2][0]=c+o-x.edgeDistance-C-x.labelDistance:(label.x<t?y[2][0]=label.x+x.labelDistance:y[2][0]=label.x-x.labelDistance,y[1][0]=y[2][0]+T),y[1][1]=y[2][1]=label.y}}}(r,t,n,f,d,y,v,m);for(var i=0;i<r.length;i++){var x=r[i],label=x.label,w=x.labelLine,S=isNaN(label.x)||isNaN(label.y);if(label){label.setStyle({align:x.textAlign}),S&&(Object(h.k)(label.states,_),label.ignore=!0);var k=label.states.select;k&&(k.x+=label.x,k.y+=label.y)}if(w){var O=x.linePoints;S||!O?(Object(h.k)(w.states,_),w.ignore=!0):(Mm(O,x.minTurnAngle),Im(O,x.surfaceNormal,x.maxSurfaceAngle),w.setShape({points:O}),label.__hostTarget.textGuideLineConfig={anchor:new he(O[0][0],O[0][1])})}}}function Mx(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(h.t)(r)||(r=[r,r,r,r]);var o=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(h.H)(r,(function(e){return Mn(e,o)}))}}var Ix=function(e){function t(data,t,n){var r=e.call(this)||this;r.z2=2;var text=new ua;return r.setTextContent(text),r.updateData(data,t,n,!0),r}return l(t,e),t.prototype.updateData=function(data,e,t,n){var r=this,o=data.hostModel,l=data.getItemModel(e),c=l.getModel("emphasis"),f=data.getItemLayout(e),d=Object(h.m)(Mx(l.getModel("itemStyle"),f,!0),f);if(isNaN(d.startAngle))r.setShape(d);else{if(n){r.setShape(d);var v=o.getShallow("animationType");o.ecModel.ssr?(ps(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=d.cx,r.originY=d.cy):"scale"===v?(r.shape.r=f.r0,ps(r,{shape:{r:f.r}},o,e)):null!=t?(r.setShape({startAngle:t,endAngle:t}),ps(r,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},o,e)):(r.shape.endAngle=f.startAngle,ds(r,{shape:{endAngle:f.endAngle}},o,e))}else bs(r),ds(r,{shape:d},o,e);r.useStyle(data.getItemVisual(e,"style")),os(r,l);var m=(f.startAngle+f.endAngle)/2,y=o.get("selectedOffset"),_=Math.cos(m)*y,x=Math.sin(m)*y,w=l.getShallow("cursor");w&&r.attr("cursor",w),this._updateLabel(o,data,e),r.ensureState("emphasis").shape=Object(h.m)({r:f.r+(c.get("scale")&&c.get("scaleSize")||0)},Mx(c.getModel("itemStyle"),f)),Object(h.m)(r.ensureState("select"),{x:_,y:x,shape:Mx(l.getModel(["select","itemStyle"]),f)}),Object(h.m)(r.ensureState("blur"),{shape:Mx(l.getModel(["blur","itemStyle"]),f)});var S=r.getTextGuideLine(),k=r.getTextContent();S&&Object(h.m)(S.ensureState("select"),{x:_,y:x}),Object(h.m)(k.ensureState("select"),{x:_,y:x}),ts(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))}},t.prototype._updateLabel=function(e,data,t){var n=this,r=data.getItemModel(t),o=r.getModel("labelLine"),style=data.getItemVisual(t,"style"),l=style&&style.fill,c=style&&style.opacity;Ss(n,ks(r),{labelFetcher:data.hostModel,labelDataIndex:t,inheritColor:l,defaultOpacity:c,defaultText:e.getFormattedLabel(t,"normal")||data.getName(t)});var f=n.getTextContent();n.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=e.get(["label","position"]);if("outside"!==d&&"outer"!==d)n.removeTextGuideLine();else{var polyline=this.getTextGuideLine();polyline||(polyline=new id,this.setTextGuideLine(polyline)),Nm(this,Lm(r),{stroke:l,opacity:Object(h.Q)(o.get(["lineStyle","opacity"]),c,1)})}},t}(Gf),Dx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return l(t,e),t.prototype.render=function(e,t,n,r){var o,data=e.getData(),l=this._data,c=this.group;if(!l&&data.count()>0){for(var h=data.getItemLayout(0),s=1;isNaN(h&&h.startAngle)&&s<data.count();++s)h=data.getItemLayout(s);h&&(o=h.startAngle)}if(this._emptyCircleSector&&c.remove(this._emptyCircleSector),0===data.count()&&e.get("showEmptyCircle")){var f=new Gf({shape:wx(e,n)});f.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=f,c.add(f)}data.diff(l).add((function(e){var t=new Ix(data,e,o);data.setItemGraphicEl(e,t),c.add(t)})).update((function(e,t){var n=l.getItemGraphicEl(t);n.updateData(data,e,o),n.off("click"),c.add(n),data.setItemGraphicEl(e,n)})).remove((function(t){ys(l.getItemGraphicEl(t),e,t)})).execute(),Ax(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=data)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,o=e[1]-n.cy,l=Math.sqrt(r*r+o*o);return l<=n.r&&l>=n.r0}},t.type="pie",t}(vp),Px=Dx;function Nx(e,t,n){t=Object(h.t)(t)&&{coordDimensions:t}||Object(h.m)({encodeDefine:e.getEncode()},t);var source=e.getSource(),r=jb(source,t).dimensions,o=new Lb(r,e);return o.initData(source,n),o}var Lx=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),jx=Lx,Rx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.init=function(option){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new jx(h.c(this.getData,this),h.c(this.getRawData,this)),this._defaultLabelLine(option)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){var data=Nx(this,{coordDimensions:["value"],encodeDefaulter:h.h(Ou,this)}),e=[];return data.each(data.mapDimension("value"),(function(t){e.push(t)})),this.seats=rr(e,data.hostModel.get("percentPrecision")),data},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.call(this,t);return n.percent=this.seats[t],n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(option){Or(option,"labelLine",["show"]);var e=option.labelLine,t=option.emphasis.labelLine;e.show=e.show&&option.label.show,t.show=t.show&&option.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(tf),Fx=Rx;var Bx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return l(t,e),t.prototype.getInitialData=function(option,e){return qb(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,data,t){return t.point(data.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(tf),zx=Bx,$x=function(){},Vx=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return l(t,e),t.prototype.getDefaultShape=function(){return new $x},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(path,e){var i,t=e.points,n=e.size,r=this.symbolProxy,o=r.shape,l=path.getContext?path.getContext():path,c=l&&n[0]<4,h=this.softClipShape;if(c)this._ctx=l;else{for(this._ctx=null,i=this._off;i<t.length;){var f=t[i++],d=t[i++];isNaN(f)||isNaN(d)||(h&&!h.contain(f,d)||(o.x=f-n[0]/2,o.y=d-n[1]/2,o.width=n[0],o.height=n[1],r.buildPath(path,o,!0)))}this.incremental&&(this._off=i,this.notClear=!0)}},t.prototype.afterBrush=function(){var i,e=this.shape,t=e.points,n=e.size,r=this._ctx,o=this.softClipShape;if(r){for(i=this._off;i<t.length;){var l=t[i++],c=t[i++];isNaN(l)||isNaN(c)||(o&&!o.contain(l,c)||r.fillRect(l-n[0]/2,c-n[1]/2,n[0],n[1]))}this.incremental&&(this._off=i,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,o=n.size,l=Math.max(o[0],4),c=Math.max(o[1],4),h=r.length/2-1;h>=0;h--){var i=2*h,f=r[i]-l/2,d=r[i+1]-c/2;if(e>=f&&t>=d&&e<=f+l&&t<=d+c)return h}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),rect=this.getBoundingRect();return e=n[0],t=n[1],rect.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var rect=this._rect;if(!rect){for(var e=this.shape,t=e.points,n=e.size,r=n[0],o=n[1],l=1/0,c=1/0,h=-1/0,f=-1/0,i=0;i<t.length;){var d=t[i++],v=t[i++];l=Math.min(d,l),h=Math.max(d,h),c=Math.min(v,c),f=Math.max(v,f)}rect=this._rect=new _e(l-r/2,c-o/2,h-l+r,f-c+o)}return rect},t}(Do),Hx=function(){function e(){this.group=new qn}return e.prototype.updateData=function(data,e){this._clear();var t=this._create();t.setShape({points:data.getLayout("points")}),this._setCommon(t,data,e)},e.prototype.updateLayout=function(data){var e=data.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),r=4*t.startIndex*2;e=new Float32Array(e.buffer,r,n)}t.setShape("points",e),t.reset()}))},e.prototype.incrementalPrepareUpdate=function(data){this._clear()},e.prototype.incrementalUpdate=function(e,data,t){var n=this._newAdded[0],r=data.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var l=o.length,c=new Float32Array(l+r.length);c.set(o),c.set(r,l),n.endIndex=e.end,n.setShape({points:c})}else{this._newAdded=[];var h=this._create();h.startIndex=e.start,h.endIndex=e.end,h.incremental=!0,h.setShape({points:r}),this._setCommon(h,data,t)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Vx({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,data,t){var n=data.hostModel;t=t||{};var r=data.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=t.clipShape||null,e.symbolProxy=Tg(data.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<4;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var l=data.getVisual("style"),c=l&&l.fill;c&&e.setColor(c);var h=ca(e);h.seriesIndex=n.seriesIndex,e.on("mousemove",(function(t){h.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(h.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),qx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n){var data=e.getData();this._updateSymbolDraw(data,e).updateData(data,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var data=e.getData();this._updateSymbolDraw(data,e).incrementalPrepareUpdate(data),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var data=e.getData();if(this.group.dirty(),!this._finished||data.count()>1e4)return{update:!0};var r=D_("").reset(e,t,n);r.progress&&r.progress({start:0,end:data.count(),count:data.count()},data),this._symbolDraw.updateLayout(data)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(data,e){var t=this._symbolDraw,n=e.pipelineContext.large;return t&&n===this._isLargeDraw||(t&&t.remove(),t=this._symbolDraw=n?new Hx:new n_,this._isLargeDraw=n,this.group.removeAll()),this.group.add(t.group),t},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(vp),Wx=qx,Ux=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(su),Gx=Ux,Yx=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),Kx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",zr).models[0]},t.type="cartesian2dAxis",t}(su);h.K(Kx,Yx);var Xx={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Zx=h.I({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Xx),Jx=h.I({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Xx),Qx={category:Zx,value:Jx,time:h.I({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Jx),log:h.i({logBase:10},Jx)},ew=0;function tw(e){return Object(h.A)(e)&&null!=e.value?e.value:e+""}var nw=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++ew}return e.createByAxisModel=function(t){var option=t.option,data=option.data,n=data&&Object(h.H)(data,tw);return new e({categories:n,needCollect:!n,deduplication:!1!==option.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Object(h.C)(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var map=this._getOrCreateMap();return null==(t=map.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,map.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(h.f)(this.categories))},e}(),rw={value:1,category:1,time:1,log:1};function iw(e,t,n,r){Object(h.k)(rw,(function(o,c){var f=Object(h.I)(Object(h.I)({},Qx[c],!0),r,!0),d=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+c,n}return l(n,e),n.prototype.mergeDefaultAndTheme=function(option,e){var t=tu(this),n=t?ru(option):{},r=e.getTheme();Object(h.I)(option,r.get(c+"Axis")),Object(h.I)(option,this.getDefaultOption()),option.type=ow(option),t&&nu(option,n,t)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=nw.createByAxisModel(this))},n.prototype.getCategories=function(e){var option=this.option;if("category"===option.type)return e?option.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+c,n.defaultOption=f,n}(n);e.registerComponentModel(d)})),e.registerSubTypeDefaulter(t+"Axis",ow)}function ow(option){return option.type||(option.data?"category":"value")}var aw=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(data,e){this.unionExtent(data.getApproximateExtent(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();ei(aw);var sw=aw;function lw(e){return"interval"===e.type||"log"===e.type}function uw(e,t,n,r){var o={},span=e[1]-e[0],l=o.interval=fr(span/t,!0);null!=n&&l<n&&(l=o.interval=n),null!=r&&l>r&&(l=o.interval=r);var c=o.intervalPrecision=hw(l);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),fw(e,0,t),fw(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(o.niceTickExtent=[Jn(Math.ceil(e[0]/l)*l,c),Jn(Math.floor(e[1]/l)*l,c)],e),o}function cw(e){var t=Math.pow(10,cr(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Jn(n*t)}function hw(e){return er(e)+2}function fw(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function dw(e,t){return e>=t[0]&&e<=t[1]}function pw(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function gw(e,t){return e*(t[1]-t[0])+t[0]}var vw=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new nw({})),Object(h.t)(r)&&(r=new nw({categories:Object(h.H)(r,(function(e){return Object(h.A)(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return l(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(h.C)(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return dw(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return pw(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(gw(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],o=0,l=this._ordinalMeta.categories.length,c=Math.min(l,t.length);o<c;++o){var h=t[o];n[o]=h,r[h]=o}for(var f=0;o<l;++o){for(;null!=r[f];)f++;n.push(f),r[f]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(data,e){this.unionExtent(data.getApproximateExtent(e))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(sw);sw.registerClass(vw);var mw=vw,yw=Jn,bw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return l(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return dw(e,this._extent)},t.prototype.normalize=function(e){return pw(e,this._extent)},t.prototype.scale=function(e){return gw(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=hw(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,o=this._intervalPrecision,l=[];if(!t)return l;n[0]<r[0]&&(e?l.push({value:yw(r[0]-t,o)}):l.push({value:n[0]}));for(var c=r[0];c<=r[1]&&(l.push({value:c}),(c=yw(c+t,o))!==l[l.length-1].value);)if(l.length>1e4)return[];var h=l.length?l[l.length-1].value:r[1];return n[1]>h&&(e?l.push({value:yw(h+t,o)}):l.push({value:n[1]})),l},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var o=t[i],l=t[i-1],c=0,h=[],f=(o.value-l.value)/e;c<e-1;){var d=yw(l.value+(c+1)*f);d>r[0]&&d<r[1]&&h.push(d),c++}n.push(h)}return n},t.prototype.getLabel=function(data,e){if(null==data)return"";var t=e&&e.precision;return null==t?t=er(data.value)||0:"auto"===t&&(t=this._intervalPrecision),Bl(yw(data.value,t,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,span=r[1]-r[0];if(isFinite(span)){span<0&&(span=-span,r.reverse());var o=uw(r,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var span=t[1]-t[0];isFinite(span)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=yw(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=yw(Math.ceil(t[1]/r)*r))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(sw);sw.registerClass(bw);var _w=bw,xw=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return l(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return wl(e.value,vl[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(_l(this._minLevelUnit))]||vl.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,o){var template=null;if(h.C(n))template=n;else if(h.w(n))template=n(e.value,t,{level:e.level});else{var l=h.m({},pl);if(e.level>0)for(var i=0;i<ml.length;++i)l[ml[i]]="{primary|"+l[ml[i]]+"}";var c=n?!1===n.inherit?n:h.i(n,l):l,f=Sl(e.value,o);if(c[f])template=c[f];else if(c.inherit){for(i=yl.indexOf(f)-1;i>=0;--i)if(c[f]){template=c[f];break}template=template||l.none}if(h.t(template)){var d=null==e.level?0:e.level>=0?e.level:template.length+e.level;template=template[d=Math.min(d,template.length-1)]}}return wl(new Date(e.value),template,o,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),o=function(e,t,n,r){var o=1e4,l=yl,c=0;function f(e,t,n,o,l,c,h){for(var f=new Date(t),d=t,v=f[o]();d<n&&d<=r[1];)h.push({value:d}),v+=e,f[l](v),d=f.getTime();h.push({value:d,notAdd:!0})}function d(e,o,l){var c=[],h=!o.length;if(!function(e,t,n,r){var o=ur(t),l=ur(n),c=function(e){return kl(o,e,r)===kl(l,e,r)},h=function(){return c("year")},f=function(){return h()&&c("month")},d=function(){return f()&&c("day")},v=function(){return d()&&c("hour")},m=function(){return v()&&c("minute")},y=function(){return m()&&c("second")},_=function(){return y()&&c("millisecond")};switch(e){case"year":return h();case"month":return f();case"day":return d();case"hour":return v();case"minute":return m();case"second":return y();case"millisecond":return _()}}(_l(e),r[0],r[1],n)){h&&(o=[{value:Ew(new Date(r[0]),e,n)},{value:r[1]}]);for(var i=0;i<o.length-1;i++){var d=o[i].value,v=o[i+1].value;if(d!==v){var m=void 0,y=void 0,_=void 0,x=!1;switch(e){case"year":m=Math.max(1,Math.round(t/hl/365)),y=Ol(n),_=Dl(n);break;case"half-year":case"quarter":case"month":m=kw(t),y=Cl(n),_=Pl(n);break;case"week":case"half-week":case"day":m=Sw(t,31),y=Tl(n),_=Nl(n),x=!0;break;case"half-day":case"quarter-day":case"hour":m=Ow(t),y=El(n),_=Ll(n);break;case"minute":m=Cw(t,!0),y=Al(n),_=jl(n);break;case"second":m=Cw(t,!1),y=Ml(n),_=Rl(n);break;case"millisecond":m=Tw(t),y=Il(n),_=Fl(n)}f(m,d,v,y,_,x,c),"year"===e&&l.length>1&&0===i&&l.unshift({value:l[0].value-m})}}for(i=0;i<c.length;i++)l.push(c[i]);return c}}for(var v=[],m=[],y=0,_=0,i=0;i<l.length&&c++<o;++i){var x=_l(l[i]);if(xl(l[i]))if(d(l[i],v[v.length-1]||[],m),x!==(l[i+1]?_l(l[i+1]):null)){if(m.length){_=y,m.sort((function(a,b){return a.value-b.value}));for(var w=[],S=0;S<m.length;++S){var k=m[S].value;0!==S&&m[S-1].value===k||(w.push(m[S]),k>=r[0]&&k<=r[1]&&y++)}var O=(r[1]-r[0])/t;if(y>1.5*O&&_>O/1.5)break;if(v.push(w),y>O||e===l[i])break}m=[]}}0;var C=Object(h.n)(Object(h.H)(v,(function(e){return Object(h.n)(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),T=[],E=C.length-1;for(i=0;i<C.length;++i)for(var A=C[i],M=0;M<A.length;++M)T.push({value:A[M].value,level:E-i});T.sort((function(a,b){return a.value-b.value}));var I=[];for(i=0;i<T.length;++i)0!==i&&T[i].value===T[i-1].value||I.push(T[i]);return I}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(o)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=hl,t[1]+=hl),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-hl}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,span=r[1]-r[0];this._approxInterval=span/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=ww.length,l=Math.min(function(a,e,t,n){for(;t<n;){var r=t+n>>>1;a[r][1]<e?t=r+1:n=r}return t}(ww,this._approxInterval,0,o),o-1);this._interval=ww[l][1],this._minLevelUnit=ww[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Object(h.z)(e)?e:+ur(e)},t.prototype.contain=function(e){return dw(this.parse(e),this._extent)},t.prototype.normalize=function(e){return pw(this.parse(e),this._extent)},t.prototype.scale=function(e){return gw(e,this._extent)},t.type="time",t}(_w),ww=[["second",sl],["minute",ll],["hour",cl],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",fl/2],["year",fl]];function Sw(e,t){return(e/=hl)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function kw(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function Ow(e){return(e/=cl)>12?12:e>6?6:e>3.5?4:e>2?2:1}function Cw(e,t){return(e/=t?ll:sl)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Tw(e){return fr(e,!0)}function Ew(e,t,n){var r=new Date(e);switch(_l(t)){case"year":case"month":r[Pl(n)](0);case"day":r[Nl(n)](1);case"hour":r[Ll(n)](0);case"minute":r[jl(n)](0);case"second":r[Rl(n)](0),r[Fl(n)](0)}return r.getTime()}sw.registerClass(xw);var Aw=xw,Mw=sw.prototype,Iw=_w.prototype,Dw=Jn,Pw=Math.floor,Nw=Math.ceil,Lw=Math.pow,jw=Math.log,Rw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new _w,t._interval=0,t}return l(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent(),o=Iw.getTicks.call(this,e);return h.H(o,(function(e){var t=e.value,o=Jn(Lw(this.base,t));return o=t===n[0]&&this._fixMin?Bw(o,r[0]):o,{value:o=t===n[1]&&this._fixMax?Bw(o,r[1]):o}}),this)},t.prototype.setExtent=function(e,t){var base=jw(this.base);e=jw(Math.max(0,e))/base,t=jw(Math.max(0,t))/base,Iw.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var base=this.base,e=Mw.getExtent.call(this);e[0]=Lw(base,e[0]),e[1]=Lw(base,e[1]);var t=this._originalScale.getExtent();return this._fixMin&&(e[0]=Bw(e[0],t[0])),this._fixMax&&(e[1]=Bw(e[1],t[1])),e},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var base=this.base;e[0]=jw(e[0])/jw(base),e[1]=jw(e[1])/jw(base),Mw.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(data,e){this.unionExtent(data.getApproximateExtent(e))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,span=t[1]-t[0];if(!(span===1/0||span<=0)){var n,r=(n=span,Math.pow(10,cr(n)));for(e/span*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[Jn(Nw(t[0]/r)*r),Jn(Pw(t[1]/r)*r)];this._interval=r,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){Iw.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return dw(e=jw(e)/jw(this.base),this._extent)},t.prototype.normalize=function(e){return pw(e=jw(e)/jw(this.base),this._extent)},t.prototype.scale=function(e){return e=gw(e,this._extent),Lw(this.base,e)},t.type="log",t}(sw),Fw=Rw.prototype;function Bw(e,t){return Dw(e,er(t))}Fw.getMinorTicks=Iw.getMinorTicks,Fw.getLabel=Iw.getLabel,sw.registerClass(Rw);var zw=Rw,$w=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var o=this._modelMinRaw=t.get("min",!0);Object(h.w)(o)?this._modelMinNum=Ww(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Ww(e,o));var l=this._modelMaxRaw=t.get("max",!0);if(Object(h.w)(l)?this._modelMaxNum=Ww(e,l({min:n[0],max:n[1]})):"dataMax"!==l&&(this._modelMaxNum=Ww(e,l)),r)this._axisDataLen=t.getCategories().length;else{var c=t.get("boundaryGap"),f=Object(h.t)(c)?c:[c||0,c||0];"boolean"==typeof f[0]||"boolean"==typeof f[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Mn(f[0],1),Mn(f[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,span=e?null:n-t||Math.abs(t),l="dataMin"===this._modelMinRaw?t:this._modelMinNum,c="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,f=null!=l,d=null!=c;null==l&&(l=e?r?0:NaN:t-o[0]*span),null==c&&(c=e?r?r-1:NaN:n+o[1]*span),(null==l||!isFinite(l))&&(l=NaN),(null==c||!isFinite(c))&&(c=NaN);var v=Object(h.l)(l)||Object(h.l)(c)||e&&!r;this._needCrossZero&&(l>0&&c>0&&!f&&(l=0),l<0&&c<0&&!d&&(c=0));var m=this._determinedMin,y=this._determinedMax;return null!=m&&(l=m,f=!0),null!=y&&(c=y,d=!0),{min:l,max:c,minFixed:f,maxFixed:d,isBlank:v}},e.prototype.modifyDataMinMax=function(e,t){this[Hw[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[Vw[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),Vw={min:"_determinedMin",max:"_determinedMax"},Hw={min:"_dataMin",max:"_dataMax"};function qw(e,t,n){var r=e.rawExtentInfo;return r||(r=new $w(e,t,n),e.rawExtentInfo=r,r)}function Ww(e,t){return null==t?null:Object(h.l)(t)?NaN:e.parse(t)}function Uw(e,t){var n=e.type,r=qw(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var o=r.min,l=r.max,c=t.ecModel;if(c&&"time"===n){var f=B_("bar",c),d=!1;if(h.k(f,(function(e){d=d||e.getBaseAxis()===t.axis})),d){var v=z_(f),m=function(e,t,n,r){var o=n.axis.getExtent(),l=o[1]-o[0],c=function(e,t,n){if(e&&t){var r=e[F_(t)];return null!=r&&null!=n?r[R_(n)]:r}}(r,n.axis);if(void 0===c)return{min:e,max:t};var f=1/0;h.k(c,(function(e){f=Math.min(e.offset,f)}));var d=-1/0;h.k(c,(function(e){d=Math.max(e.offset+e.width,d)})),f=Math.abs(f),d=Math.abs(d);var v=f+d,m=t-e,y=m/(1-(f+d)/l)-m;return{min:e-=y*(f/v),max:t+=y*(d/v)}}(o,l,t,v);o=m.min,l=m.max}}return{extent:[o,l],fixMin:r.minFixed,fixMax:r.maxFixed}}function Gw(e,t){var n=t,r=Uw(e,n),o=r.extent,l=n.get("splitNumber");e instanceof zw&&(e.base=n.get("logBase"));var c=e.type,h=n.get("interval"),f="interval"===c||"time"===c;e.setExtent(o[0],o[1]),e.calcNiceExtent({splitNumber:l,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:f?n.get("minInterval"):null,maxInterval:f?n.get("maxInterval"):null}),null!=h&&e.setInterval&&e.setInterval(h)}function Yw(e,t){if(t=t||e.get("type"))switch(t){case"category":return new mw({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Aw({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(sw.getClass(t)||_w)}}function Kw(e){var t,n,r=e.getLabelModel().get("formatter"),o="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=r,function(t,r){return e.scale.getFormattedLabel(t,r,n)}):h.C(r)?function(t){return function(n){var label=e.scale.getLabel(n);return t.replace("{value}",null!=label?label:"")}}(r):h.w(r)?(t=r,function(n,r){return null!=o&&(r=n.value-o),t(Xw(e,n),r,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function Xw(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function Zw(e){var t=e.get("interval");return null==t?"auto":t}function Jw(e){return"category"===e.type&&0===Zw(e.getLabelModel())}function Qw(data,e){var t={};return h.k(data.mapDimensionsAll(e),(function(e){t[Hb(data,e)]=!0})),h.F(t)}var eS=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return h.H(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),h.n(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),tS=["x","y"];function nS(e){return"interval"===e.type||"time"===e.type}var rS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=tS,t}return l(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(nS(e)&&nS(t)){var n=e.getExtent(),r=t.getExtent(),o=this.dataToPoint([n[0],r[0]]),l=this.dataToPoint([n[1],r[1]]),c=n[1]-n[0],h=r[1]-r[0];if(c&&h){var f=(l[0]-o[0])/c,d=(l[1]-o[1])/h,v=o[0]-n[0]*f,m=o[1]-r[0]*d,y=this._transform=[f,0,0,d,v,m];this._invTransform=ce([],y)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(data){return this.getAxis("x").containData(data[0])&&this.getAxis("y").containData(data[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),area=this.getArea(),o=new _e(n[0],n[1],r[0]-n[0],r[1]-n[1]);return area.intersect(o)},t.prototype.dataToPoint=function(data,e,t){t=t||[];var n=data[0],r=data[1];if(this._transform&&null!=n&&isFinite(n)&&null!=r&&isFinite(r))return E(t,data,this._transform);var o=this.getAxis("x"),l=this.getAxis("y");return t[0]=o.toGlobalCoord(o.dataToCoord(n,e)),t[1]=l.toGlobalCoord(l.dataToCoord(r,e)),t},t.prototype.clampData=function(data,e){var t=this.getAxis("x").scale,n=this.getAxis("y").scale,r=t.getExtent(),o=n.getExtent(),l=t.parse(data[0]),c=n.parse(data[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),l),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),c),Math.max(o[0],o[1])),e},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return E(n,e,this._invTransform);var r=this.getAxis("x"),o=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=o.coordToData(o.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),r=Math.min(t[0],t[1]),o=Math.max(e[0],e[1])-n,l=Math.max(t[0],t[1])-r;return new _e(n,r,o,l)},t}(eS),iS=rS,oS=jr();function aS(e){return"category"===e.type?function(e){var t=e.getLabelModel(),n=lS(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=Kw(e);return{labels:h.H(t,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}(e)}function sS(e,t){return"category"===e.type?function(e,t){var n,r,o=uS(e,"ticks"),l=Zw(t),c=cS(o,l);if(c)return c;t.get("show")&&!e.scale.isBlank()||(n=[]);if(h.w(l))n=dS(e,l,!0);else if("auto"===l){var f=lS(e,e.getLabelModel());r=f.labelCategoryInterval,n=h.H(f.labels,(function(e){return e.tickValue}))}else n=fS(e,r=l,!0);return hS(o,l,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:h.H(e.scale.getTicks(),(function(e){return e.value}))}}function lS(e,t){var n,r,o=uS(e,"labels"),l=Zw(t),c=cS(o,l);return c||(h.w(l)?n=dS(e,l):(r="auto"===l?function(e){var t=oS(e).autoInterval;return null!=t?t:oS(e).autoInterval=e.calculateCategoryInterval()}(e):l,n=fS(e,r)),hS(o,l,{labels:n,labelCategoryInterval:r}))}function uS(e,t){return oS(e)[t]||(oS(e)[t]=[])}function cS(e,t){for(var i=0;i<e.length;i++)if(e[i].key===t)return e[i].value}function hS(e,t,n){return e.push({key:t,value:n}),n}function fS(e,t,n){var r=Kw(e),o=e.scale,l=o.getExtent(),c=e.getLabelModel(),h=[],f=Math.max((t||0)+1,1),d=l[0],v=o.count();0!==d&&f>1&&v/f>2&&(d=Math.round(Math.ceil(d/f)*f));var m=Jw(e),y=c.get("showMinLabel")||m,_=c.get("showMaxLabel")||m;y&&d!==l[0]&&w(l[0]);for(var x=d;x<=l[1];x+=f)w(x);function w(e){var t={value:e};h.push(n?e:{formattedLabel:r(t),rawLabel:o.getLabel(t),tickValue:e})}return _&&x-f!==l[1]&&w(l[1]),h}function dS(e,t,n){var r=e.scale,o=Kw(e),l=[];return h.k(r.getTicks(),(function(e){var c=r.getLabel(e),h=e.value;t(e.value,c)&&l.push(n?h:{formattedLabel:o(e),rawLabel:c,tickValue:h})})),l}var pS=[0,1];function gS(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var vS=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(data){return this.scale.contain(data)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return nr(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(data,e){var t=this._extent,n=this.scale;return data=n.normalize(data),this.onBand&&"ordinal"===n.type&&gS(t=t.slice(),n.count()),Xn(data,pS,t,e)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&gS(n=n.slice(),r.count());var o=Xn(e,n,pS,t);return this.scale.scale(o)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=sS(this,t).ticks,r=Object(h.H)(n,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);return function(e,t,n,r){var o=t.length;if(!e.onBand||n||!o)return;var l,c,f=e.getExtent();if(1===o)t[0].coord=f[0],l=t[1]={coord:f[0]};else{var d=t[o-1].tickValue-t[0].tickValue,v=(t[o-1].coord-t[0].coord)/d;Object(h.k)(t,(function(e){e.coord-=v/2})),c=1+e.scale.getExtent()[1]-t[o-1].tickValue,l={coord:t[o-1].coord+v*c},t.push(l)}var m=f[0]>f[1];y(t[0].coord,f[0])&&(r?t[0].coord=f[0]:t.shift());r&&y(f[0],t[0].coord)&&t.unshift({coord:f[0]});y(f[1],l.coord)&&(r?l.coord=f[1]:t.pop());r&&y(l.coord,f[1])&&t.push({coord:f[1]});function y(a,b){return a=Jn(a),b=Jn(b),m?a>b:a<b}}(this,r,t.get("alignWithLabel"),e.clamp),r},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");e>0&&e<100||(e=5);var t=this.scale.getMinorTicks(e);return Object(h.H)(t,(function(e){return Object(h.H)(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return aS(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=Kw(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,o=e.scale,l=o.getExtent(),c=o.count();if(l[1]-l[0]<1)return 0;var h=1;c>40&&(h=Math.max(1,Math.floor(c/40)));for(var f=l[0],d=e.dataToCoord(f+1)-e.dataToCoord(f),v=Math.abs(d*Math.cos(r)),m=Math.abs(d*Math.sin(r)),y=0,_=0;f<=l[1];f+=h){var x,w,rect=Cn(n({value:f}),t.font,"center","top");x=1.3*rect.width,w=1.3*rect.height,y=Math.max(y,x,7),_=Math.max(_,w,7)}var S=y/v,k=_/m;isNaN(S)&&(S=1/0),isNaN(k)&&(k=1/0);var O=Math.max(0,Math.floor(Math.min(S,k))),C=oS(e.model),T=e.getExtent(),E=C.lastAutoInterval,A=C.lastTickCount;return null!=E&&null!=A&&Math.abs(E-O)<=1&&Math.abs(A-c)<=1&&E>O&&C.axisExtent0===T[0]&&C.axisExtent1===T[1]?O=E:(C.lastTickCount=c,C.lastAutoInterval=O,C.axisExtent0=T[0],C.axisExtent1=T[1]),O}(this)},e}(),mS=function(e){function t(t,n,r,o,l){var c=e.call(this,t,n,r)||this;return c.index=0,c.type=o||"value",c.position=l||"bottom",c}return l(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(vS),yS=mS;function bS(e,t,n){n=n||{};var r=e.coordinateSystem,o=t.axis,l={},c=o.getAxesOnZeroOf()[0],f=o.position,d=c?"onZero":f,v=o.dim,rect=r.getRect(),m=[rect.x,rect.x+rect.width,rect.y,rect.y+rect.height],y={left:0,right:1,top:0,bottom:1,onZero:2},_=t.get("offset")||0,x="x"===v?[m[2]-_,m[3]+_]:[m[0]-_,m[1]+_];if(c){var w=c.toGlobalCoord(c.dataToCoord(0));x[y.onZero]=Math.max(Math.min(w,x[1]),x[0])}l.position=["y"===v?x[y[d]]:m[0],"x"===v?x[y[d]]:m[3]],l.rotation=Math.PI/2*("x"===v?0:1);l.labelDirection=l.tickDirection=l.nameDirection={top:-1,bottom:1,left:-1,right:1}[f],l.labelOffset=c?x[y[f]]-x[y.onZero]:0,t.get(["axisTick","inside"])&&(l.tickDirection=-l.tickDirection),h.O(n.labelInside,t.get(["axisLabel","inside"]))&&(l.labelDirection=-l.labelDirection);var S=t.get(["axisLabel","rotate"]);return l.labelRotate="top"===d?-S:S,l.z2=1,l}function _S(e){return"cartesian2d"===e.get("coordinateSystem")}function xS(e){var t={xAxisModel:null,yAxisModel:null};return h.k(t,(function(n,r){var o=r.replace(/Model$/,""),l=e.getReferringComponents(o,zr).models[0];t[r]=l})),t}var wS=Math.log;function SS(e,t,n){var r=_w.prototype,o=r.getTicks.call(n),l=r.getTicks.call(n,!0),c=o.length-1,h=r.getInterval.call(n),f=Uw(e,t),d=f.extent,v=f.fixMin,m=f.fixMax;if("log"===e.type){var y=wS(e.base);d=[wS(d[0])/y,wS(d[1])/y]}e.setExtent(d[0],d[1]),e.calcNiceExtent({splitNumber:c,fixMin:v,fixMax:m});var _=r.getExtent.call(e);v&&(d[0]=_[0]),m&&(d[1]=_[1]);var x=r.getInterval.call(e),w=d[0],S=d[1];if(v&&m)x=(S-w)/c;else if(v)for(S=d[0]+x*c;S<d[1]&&isFinite(S)&&isFinite(d[1]);)x=cw(x),S=d[0]+x*c;else if(m)for(w=d[1]-x*c;w>d[0]&&isFinite(w)&&isFinite(d[0]);)x=cw(x),w=d[1]-x*c;else{e.getTicks().length-1>c&&(x=cw(x));var k=x*c;(w=Jn((S=Math.ceil(d[1]/x)*x)-k))<0&&d[0]>=0?(w=0,S=Jn(k)):S>0&&d[1]<=0&&(S=0,w=-Jn(k))}var O=(o[0].value-l[0].value)/h,C=(o[c].value-l[c].value)/h;r.setExtent.call(e,w+x*O,S+x*C),r.setInterval.call(e,x),(O||C)&&r.setNiceExtent.call(e,w+x,S-x)}var kS=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=tS,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=Object(h.F)(e),r=n.length;if(r){for(var o=[],i=r-1;i>=0;i--){var l=e[+n[i]],c=l.model,f=l.scale;lw(f)&&c.get("alignTicks")&&null==c.get("interval")?o.push(l):(Gw(f,c),lw(f)&&(t=l))}o.length&&(t||Gw((t=o.pop()).scale,t.model),Object(h.k)(o,(function(e){SS(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var o={};Object(h.k)(n.x,(function(e){CS(n,"y",e,o)})),Object(h.k)(n.y,(function(e){CS(n,"x",e,o)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),o=!n&&e.get("containLabel"),l=Ql(r,{width:t.getWidth(),height:t.getHeight()});this._rect=l;var c=this._axesList;function f(){Object(h.k)(c,(function(e){var t=e.isHorizontal(),n=t?[0,l.width]:[0,l.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?l.x:l.y)}))}f(),o&&(Object(h.k)(c,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,o,l=n.getExtent();o=n instanceof mw?n.count():(r=n.getTicks()).length;var rect,c,h,f,d,v,m,y=e.getLabelModel(),_=Kw(e),x=1;o>40&&(x=Math.ceil(o/40));for(var i=0;i<o;i+=x){var label=_(r?r[i]:{value:l[0]+i},i),w=(c=y.getTextRect(label),h=void 0,f=void 0,d=void 0,v=void 0,m=void 0,h=(y.get("rotate")||0)*Math.PI/180,f=c.width,d=c.height,v=f*Math.abs(Math.cos(h))+Math.abs(d*Math.sin(h)),m=f*Math.abs(Math.sin(h))+Math.abs(d*Math.cos(h)),new _e(c.x,c.y,v,m));rect?rect.union(w):rect=w}return rect}}(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);l[n]-=t[n]+r,"top"===e.position?l.y+=t.height+r:"left"===e.position&&(l.x+=t.width+r)}}})),f()),Object(h.k)(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(h.A)(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===e||r[i].getAxis("y").index===t)return r[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,o=e.xAxisModel||r&&r.getReferringComponents("xAxis",zr).models[0],l=e.yAxisModel||r&&r.getReferringComponents("yAxis",zr).models[0],c=e.gridModel,f=this._coordsList;if(r)t=r.coordinateSystem,Object(h.r)(f,t)<0&&(t=null);else if(o&&l)t=this.getCartesian(o.componentIndex,l.componentIndex);else if(o)n=this.getAxis("x",o.componentIndex);else if(l)n=this.getAxis("y",l.componentIndex);else if(c){c.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,o=this,l={left:!1,right:!1,top:!1,bottom:!1},c={x:{},y:{}},f={x:0,y:0};if(t.eachComponent("xAxis",d("x"),this),t.eachComponent("yAxis",d("y"),this),!f.x||!f.y)return this._axesMap={},void(this._axesList=[]);function d(t){return function(n,r){if(OS(n,e)){var h=n.get("position");"x"===t?"top"!==h&&"bottom"!==h&&(h=l.bottom?"top":"bottom"):"left"!==h&&"right"!==h&&(h=l.left?"right":"left"),l[h]=!0;var d=new yS(t,Yw(n),[0,0],n.get("type"),h),v="category"===d.type;d.onBand=v&&n.get("boundaryGap"),d.inverse=n.get("inverse"),n.axis=d,d.model=n,d.grid=o,d.index=r,o._axesList.push(d),c[t][r]=d,f[t]++}}}this._axesMap=c,Object(h.k)(c.x,(function(t,n){Object(h.k)(c.y,(function(o,l){var c="x"+n+"y"+l,h=new iS(c);h.master=r,h.model=e,r._coordsMap[c]=h,r._coordsList.push(h),h.addAxis(t),h.addAxis(o)}))}))},e.prototype._updateScale=function(e,t){function n(data,e){Object(h.k)(Qw(data,e.dim),(function(t){e.scale.unionExtentFromData(data,t)}))}Object(h.k)(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(_S(e)){var r=xS(e),o=r.xAxisModel,l=r.yAxisModel;if(!OS(o,t)||!OS(l,t))return;var c=this.getCartesian(o.componentIndex,l.componentIndex),data=e.getData(),h=c.getAxis("x"),f=c.getAxis("y");n(data,h),n(data,f)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Object(h.k)(this.getCartesians(),(function(r){var o=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),l=r.getOtherAxis(o);Object(h.r)(t,o)<0&&t.push(o),Object(h.r)(n,l)<0&&n.push(l)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",(function(o,l){var c=new e(o,t,n);c.name="grid_"+l,c.resize(o,n,!0),o.coordinateSystem=c,r.push(c)})),t.eachSeries((function(e){if(_S(e)){var t=xS(e),n=t.xAxisModel,r=t.yAxisModel;0;var o=n.getCoordSysModel().coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}})),r},e.dimensions=tS,e}();function OS(e,t){return e.getCoordSysModel()===t}function CS(e,t,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,l=e[t],c=n.model,h=c.get(["axisLine","onZero"]),f=c.get(["axisLine","onZeroAxisIndex"]);if(h){if(null!=f)TS(l[f])&&(o=l[f]);else for(var d in l)if(l.hasOwnProperty(d)&&TS(l[d])&&!r[v(l[d])]){o=l[d];break}o&&(r[v(o)]=!0)}function v(e){return e.dim+"_"+e.index}}function TS(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}(e)}var ES=kS,AS=Math.PI,MS=function(){function e(e,t){this.group=new qn,this.opt=t,this.axisModel=e,Object(h.i)(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new qn({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!IS[e]},e.prototype.add=function(e){IS[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,o,l=ar(t-e);return sr(l)?(o=n>0?"top":"bottom",r="center"):sr(l-AS)?(o=n>0?"bottom":"top",r="center"):(o="middle",r=l>0&&l<AS?n>0?"right":"left":n>0?"left":"right"),{rotation:l,textAlign:r,textVerticalAlign:o}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),IS={axisLine:function(e,t,n,r){var o=t.get(["axisLine","show"]);if("auto"===o&&e.handleAutoShown&&(o=e.handleAutoShown("axisLine")),o){var l=t.axis.getExtent(),c=r.transform,f=[l[0],0],d=[l[1],0],v=f[0]>d[0];c&&(E(f,f,c),E(d,d,c));var m=Object(h.m)({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),line=new ld({shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:m,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});qd(line.shape,line.style.lineWidth),line.anid="line",n.add(line);var y=t.get(["axisLine","symbol"]);if(null!=y){var _=t.get(["axisLine","symbolSize"]);Object(h.C)(y)&&(y=[y,y]),(Object(h.C)(_)||Object(h.z)(_))&&(_=[_,_]);var x=Ag(t.get(["axisLine","symbolOffset"])||0,_),w=_[0],S=_[1];Object(h.k)([{rotate:e.rotation+Math.PI/2,offset:x[0],r:0},{rotate:e.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((f[0]-d[0])*(f[0]-d[0])+(f[1]-d[1])*(f[1]-d[1]))}],(function(t,r){if("none"!==y[r]&&null!=y[r]){var symbol=Tg(y[r],-w/2,-S/2,w,S,m.stroke,!0),o=t.r+t.offset,l=v?d:f;symbol.attr({rotation:t.rotate,x:l[0]+o*Math.cos(e.rotation),y:l[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(symbol)}}))}}},axisTickLabel:function(e,t,n,r){var o=function(e,t,n,r){var o=n.axis,l=n.getModel("axisTick"),c=l.get("show");"auto"===c&&r.handleAutoShown&&(c=r.handleAutoShown("axisTick"));if(!c||o.scale.isBlank())return;for(var f=l.getModel("lineStyle"),d=r.tickDirection*l.get("length"),v=LS(o.getTicksCoords(),t.transform,d,Object(h.i)(f.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),i=0;i<v.length;i++)e.add(v[i]);return v}(n,r,t,e),l=function(e,t,n,r){var o=n.axis;if(!Object(h.O)(r.axisLabelShow,n.get(["axisLabel","show"]))||o.scale.isBlank())return;var l=n.getModel("axisLabel"),c=l.get("margin"),f=o.getViewLabels(),d=(Object(h.O)(r.labelRotate,l.get("rotate"))||0)*AS/180,v=MS.innerTextLayout(r.rotation,d,r.labelDirection),m=n.getCategories&&n.getCategories(!0),y=[],_=MS.isLabelSilent(n),x=n.get("triggerEvent");return Object(h.k)(f,(function(f,d){var w="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(f.tickValue):f.tickValue,S=f.formattedLabel,k=f.rawLabel,O=l;if(m&&m[w]){var C=m[w];Object(h.A)(C)&&C.textStyle&&(O=new Ys(C.textStyle,l,n.ecModel))}var T=O.getTextColor()||n.get(["axisLine","lineStyle","color"]),E=o.dataToCoord(w),A=new ua({x:E,y:r.labelOffset+r.labelDirection*c,rotation:v.rotation,silent:_,z2:10+(f.level||0),style:Os(O,{text:S,align:O.getShallow("align",!0)||v.textAlign,verticalAlign:O.getShallow("verticalAlign",!0)||O.getShallow("baseline",!0)||v.textVerticalAlign,fill:Object(h.w)(T)?T("category"===o.type?k:"value"===o.type?w+"":w,d):T})});if(A.anid="label_"+w,x){var M=MS.makeAxisEventDataBase(n);M.targetType="axisLabel",M.value=k,M.tickIndex=d,"category"===o.type&&(M.dataIndex=w),ca(A).eventData=M}t.add(A),A.updateTransform(),y.push(A),e.add(A),A.decomposeTransform()})),y}(n,r,t,e);(function(e,t,n){if(Jw(e.axis))return;var r=e.get(["axisLabel","showMinLabel"]),o=e.get(["axisLabel","showMaxLabel"]);n=n||[];var l=(t=t||[])[0],c=t[1],h=t[t.length-1],f=t[t.length-2],d=n[0],v=n[1],m=n[n.length-1],y=n[n.length-2];!1===r?(DS(l),DS(d)):PS(l,c)&&(r?(DS(c),DS(v)):(DS(l),DS(d)));!1===o?(DS(h),DS(m)):PS(f,h)&&(o?(DS(f),DS(y)):(DS(h),DS(m)))}(t,l,o),function(e,t,n,r){var o=n.axis,l=n.getModel("minorTick");if(!l.get("show")||o.scale.isBlank())return;var c=o.getMinorTicksCoords();if(!c.length)return;for(var f=l.getModel("lineStyle"),d=r*l.get("length"),v=Object(h.i)(f.getLineStyle(),Object(h.i)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),i=0;i<c.length;i++)for(var m=LS(c[i],t.transform,d,v,"minorticks_"+i),y=0;y<m.length;y++)e.add(m[y])}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"]))&&Bm(jm(Object(h.H)(l,(function(label){return{label:label,priority:label.z2,defaultAttr:{ignore:label.ignore}}}))))},axisName:function(e,t,n,r){var o=Object(h.O)(e.axisName,t.get("name"));if(o){var l,c,f=t.get("nameLocation"),d=e.nameDirection,v=t.getModel("nameTextStyle"),m=t.get("nameGap")||0,y=t.axis.getExtent(),_=y[0]>y[1]?-1:1,x=["start"===f?y[0]-_*m:"end"===f?y[1]+_*m:(y[0]+y[1])/2,NS(f)?e.labelOffset+d*m:0],w=t.get("nameRotate");null!=w&&(w=w*AS/180),NS(f)?l=MS.innerTextLayout(e.rotation,null!=w?w:e.rotation,d):(l=function(e,t,n,r){var o,l,c=ar(n-e),h=r[0]>r[1],f="start"===t&&!h||"start"!==t&&h;sr(c-AS/2)?(l=f?"bottom":"top",o="center"):sr(c-1.5*AS)?(l=f?"top":"bottom",o="center"):(l="middle",o=c<1.5*AS&&c>AS/2?f?"left":"right":f?"right":"left");return{rotation:c,textAlign:o,textVerticalAlign:l}}(e.rotation,f,w||0,y),null!=(c=e.axisNameAvailableWidth)&&(c=Math.abs(c/Math.sin(l.rotation)),!isFinite(c)&&(c=null)));var S=v.getFont(),k=t.get("nameTruncate",!0)||{},O=k.ellipsis,C=Object(h.O)(e.nameTruncateMaxWidth,k.maxWidth,c),T=new ua({x:x[0],y:x[1],rotation:l.rotation,silent:MS.isLabelSilent(t),style:Os(v,{text:o,font:S,overflow:"truncate",width:C,ellipsis:O,fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:v.get("align")||l.textAlign,verticalAlign:v.get("verticalAlign")||l.textVerticalAlign}),z2:1});if(op({el:T,componentModel:t,itemName:o}),T.__fullText=o,T.anid="name",t.get("triggerEvent")){var E=MS.makeAxisEventDataBase(t);E.targetType="axisName",E.name=o,ca(T).eventData=E}r.add(T),T.updateTransform(),n.add(T),T.decomposeTransform()}}};function DS(e){e&&(e.ignore=!0)}function PS(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var o=ie([]);return le(o,o,-e.rotation),n.applyTransform(ae([],o,e.getLocalTransform())),r.applyTransform(ae([],o,t.getLocalTransform())),n.intersect(r)}}function NS(e){return"middle"===e||"center"===e}function LS(e,t,n,r,o){for(var l=[],c=[],h=[],i=0;i<e.length;i++){var f=e[i].coord;c[0]=f,c[1]=0,h[0]=f,h[1]=n,t&&(E(c,c,t),E(h,h,t));var d=new ld({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:r,z2:2,autoBatch:!0,silent:!0});qd(d.shape,d.style.lineWidth),d.anid=o+"_"+e[i].tickValue,l.push(d)}return l}var jS=MS;function RS(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),o=t.getComponent("axisPointer"),l=o.get("link",!0)||[],c=[];Object(h.k)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var f=VS(n.model),d=e.coordSysAxesInfo[f]={};e.coordSysMap[f]=n;var v=n.model.getModel("tooltip",r);if(Object(h.k)(n.getAxes(),Object(h.h)(x,!1,null)),n.getTooltipAxes&&r&&v.get("show")){var m="axis"===v.get("trigger"),y="cross"===v.get(["axisPointer","type"]),_=n.getTooltipAxes(v.get(["axisPointer","axis"]));(m||y)&&Object(h.k)(_.baseAxes,Object(h.h)(x,!y||"cross",m)),y&&Object(h.k)(_.otherAxes,Object(h.h)(x,"cross",!1))}}function x(r,f,m){var y=m.model.getModel("axisPointer",o),_=y.get("show");if(_&&("auto"!==_||r||$S(y))){null==f&&(f=y.get("triggerTooltip")),y=r?function(e,t,n,r,o,l){var c=t.getModel("axisPointer"),f=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],d={};Object(h.k)(f,(function(e){d[e]=Object(h.d)(c.get(e))})),d.snap="category"!==e.type&&!!l,"cross"===c.get("type")&&(d.type="line");var v=d.label||(d.label={});if(null==v.show&&(v.show=!1),"cross"===o){var m=c.get(["label","show"]);if(v.show=null==m||m,!l){var y=d.lineStyle=c.get("crossStyle");y&&Object(h.i)(v,y.textStyle)}}return e.model.getModel("axisPointer",new Ys(d,n,r))}(m,v,o,t,r,f):y;var x=y.get("snap"),w=VS(m.model),S=f||x||"category"===m.type,k=e.axesInfo[w]={key:w,axis:m,coordSys:n,axisPointerModel:y,triggerTooltip:f,involveSeries:S,snap:x,useHandle:$S(y),seriesModels:[],linkGroup:null};d[w]=k,e.seriesInvolved=e.seriesInvolved||S;var O=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(FS(o[r+"AxisId"],n.id)||FS(o[r+"AxisIndex"],n.componentIndex)||FS(o[r+"AxisName"],n.name))return i}}(l,m);if(null!=O){var C=c[O]||(c[O]={axesInfo:{}});C.axesInfo[w]=k,C.mapper=l[O].mapper,k.linkGroup=C}}}}))}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),o=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==o&&!1!==t.get(["axisPointer","show"],!0)&&Object(h.k)(e.coordSysAxesInfo[VS(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}(n,e),n}function FS(e,t){return"all"===e||Object(h.t)(e)&&Object(h.r)(e,t)>=0||e===t}function BS(e){var t=zS(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,option=n.option,o=n.get("status"),l=n.get("value");null!=l&&(l=r.parse(l));var c=$S(n);null==o&&(option.status=c?"show":"hide");var h=r.getExtent().slice();h[0]>h[1]&&h.reverse(),(null==l||l>h[1])&&(l=h[1]),l<h[0]&&(l=h[0]),option.value=l,c&&(option.status=t.axis.scale.isBlank()?"hide":"show")}}function zS(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[VS(e)]}function $S(e){return!!e.get(["handle","show"])}function VS(e){return e.type+"||"+e.id}var HS={},qS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(t,n,r,o){this.axisPointerClass&&BS(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var l=function(e){var t=zS(e);return t&&t.axisPointerModel}(e);l?(this._axisPointer||(this._axisPointer=new o)).render(e,l,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){HS[e]=t},t.getAxisPointerClass=function(e){return e&&HS[e]},t.type="axis",t}(rf),WS=qS,US=jr();function GS(e,t,n,r){var o=n.axis;if(!o.scale.isBlank()){var l=n.getModel("splitArea"),c=l.getModel("areaStyle"),f=c.get("color"),d=r.coordinateSystem.getRect(),v=o.getTicksCoords({tickModel:l,clamp:!0});if(v.length){var m=f.length,y=US(e).splitAreaColors,_=h.f(),x=0;if(y)for(var i=0;i<v.length;i++){var w=y.get(v[i].tickValue);if(null!=w){x=(w+(m-1)*i)%m;break}}var S=o.toGlobalCoord(v[0].coord),k=c.getAreaStyle();f=h.t(f)?f:[f];for(i=1;i<v.length;i++){var O=o.toGlobalCoord(v[i].coord),C=void 0,T=void 0,E=void 0,A=void 0;o.isHorizontal()?(C=S,T=d.y,E=O-C,A=d.height,S=C+E):(C=d.x,T=S,E=d.width,S=T+(A=O-T));var M=v[i-1].tickValue;null!=M&&_.set(M,x),t.add(new Go({anid:null!=M?"area_"+M:null,shape:{x:C,y:T,width:E,height:A},style:h.i({fill:f[x]},k),autoBatch:!0,silent:!0})),x=(x+1)%m}US(e).splitAreaColors=_}}}function YS(e){US(e).splitAreaColors=null}var KS=["axisLine","axisTickLabel","axisName"],XS=["splitArea","splitLine","minorSplitLine"],ZS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return l(t,e),t.prototype.render=function(t,n,r,o){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new qn,this.group.add(this._axisGroup),t.get("show")){var c=t.getCoordSysModel(),f=bS(c,t),d=new jS(t,h.m({handleAutoShown:function(e){for(var n=c.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(lw(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},f));h.k(KS,d.add,d),this._axisGroup.add(d.getGroup()),h.k(XS,(function(e){t.get([e,"show"])&&JS[e](this,this._axisGroup,t,c)}),this),o&&"changeAxisOrder"===o.type&&o.isInitSort||Zd(l,this._axisGroup,t),e.prototype.render.call(this,t,n,r,o)}},t.prototype.remove=function(){YS(this)},t.type="cartesianAxis",t}(WS),JS={splitLine:function(e,t,n,r){var o=n.axis;if(!o.scale.isBlank()){var l=n.getModel("splitLine"),c=l.getModel("lineStyle"),f=c.get("color");f=h.t(f)?f:[f];for(var d=r.coordinateSystem.getRect(),v=o.isHorizontal(),m=0,y=o.getTicksCoords({tickModel:l}),_=[],x=[],w=c.getLineStyle(),i=0;i<y.length;i++){var S=o.toGlobalCoord(y[i].coord);v?(_[0]=S,_[1]=d.y,x[0]=S,x[1]=d.y+d.height):(_[0]=d.x,_[1]=S,x[0]=d.x+d.width,x[1]=S);var k=m++%f.length,O=y[i].tickValue,line=new ld({anid:null!=O?"line_"+y[i].tickValue:null,autoBatch:!0,shape:{x1:_[0],y1:_[1],x2:x[0],y2:x[1]},style:h.i({stroke:f[k]},w),silent:!0});qd(line.shape,w.lineWidth),t.add(line)}}},minorSplitLine:function(e,t,n,r){var o=n.axis,l=n.getModel("minorSplitLine").getModel("lineStyle"),c=r.coordinateSystem.getRect(),h=o.isHorizontal(),f=o.getMinorTicksCoords();if(f.length)for(var d=[],v=[],m=l.getLineStyle(),i=0;i<f.length;i++)for(var y=0;y<f[i].length;y++){var _=o.toGlobalCoord(f[i][y].coord);h?(d[0]=_,d[1]=c.y,v[0]=_,v[1]=c.y+c.height):(d[0]=c.x,d[1]=_,v[0]=c.x+c.width,v[1]=_);var line=new ld({anid:"minor_line_"+f[i][y].tickValue,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:v[0],y2:v[1]},style:m,silent:!0});qd(line.shape,m.lineWidth),t.add(line)}},splitArea:function(e,t,n,r){GS(e,t,n,r)}},QS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.type="xAxis",t}(ZS),ek=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=QS.type,t}return l(t,e),t.type="yAxis",t}(ZS),tk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return l(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Go({shape:e.coordinateSystem.getRect(),style:Object(h.i)({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(rf),nk={offset:0};function rk(e){e.registerComponentView(tk),e.registerComponentModel(Gx),e.registerCoordinateSystem("cartesian2d",ES),iw(e,"x",Kx,nk),iw(e,"y",Kx,nk),e.registerComponentView(QS),e.registerComponentView(ek),e.registerPreprocessor((function(option){option.xAxis&&option.yAxis&&!option.grid&&(option.grid={})}))}function ik(e){e.eachSeriesByType("radar",(function(e){var data=e.getData(),t=[],n=e.coordinateSystem;if(n){var r=n.getIndicatorAxes();h.k(r,(function(e,o){data.each(data.mapDimension(r[o].dim),(function(e,r){t[r]=t[r]||[];var l=n.dataToPoint(e,o);t[r][o]=ok(l)?l:ak(n)}))})),data.each((function(e){var r=h.o(t[e],(function(e){return ok(e)}))||ak(n);t[e].push(r.slice()),data.setItemLayout(e,t[e])}))}}))}function ok(e){return!isNaN(e[0])&&!isNaN(e[1])}function ak(e){return[e.cx,e.cy]}function sk(option){var e=option.polar;if(e){h.t(e)||(e=[e]);var t=[];h.k(e,(function(e,n){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),option.radar=option.radar||[],h.t(option.radar)||(option.radar=[option.radar]),option.radar.push(e)):t.push(e)})),option.polar=t}h.k(option.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var lk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n){var o=e.coordinateSystem,l=this.group,data=e.getData(),c=this._data;function f(data,e){var t=data.getItemVisual(e,"symbol")||"circle";if("none"!==t){var n=Eg(data.getItemVisual(e,"symbolSize")),r=Tg(t,-1,-1,2,2),o=data.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:n[0]/2,scaleY:n[1]/2,rotation:o*Math.PI/180||0}),r}}function d(t,n,o,data,l,c){o.removeAll();for(var i=0;i<n.length-1;i++){var h=f(data,l);h&&(h.__dimIdx=i,t[i]?(h.setPosition(t[i]),r[c?"initProps":"updateProps"](h,{x:n[i][0],y:n[i][1]},e,l)):h.setPosition(n[i]),o.add(h))}}function v(e){return h.H(e,(function(e){return[o.cx,o.cy]}))}data.diff(c).add((function(t){var n=data.getItemLayout(t);if(n){var polygon=new ed,polyline=new id,r={shape:{points:n}};polygon.shape.points=v(n),polyline.shape.points=v(n),ps(polygon,r,e,t),ps(polyline,r,e,t);var o=new qn,l=new qn;o.add(polyline),o.add(polygon),o.add(l),d(polyline.shape.points,n,l,data,t,!0),data.setItemGraphicEl(t,o)}})).update((function(t,n){var r=c.getItemGraphicEl(n),polyline=r.childAt(0),polygon=r.childAt(1),o=r.childAt(2),l={shape:{points:data.getItemLayout(t)}};l.shape.points&&(d(polyline.shape.points,l.shape.points,o,data,t,!1),bs(polygon),bs(polyline),ds(polyline,l,e),ds(polygon,l,e),data.setItemGraphicEl(t,r))})).remove((function(e){l.remove(c.getItemGraphicEl(e))})).execute(),data.eachItemGraphicEl((function(e,t){var n=data.getItemModel(t),polyline=e.childAt(0),polygon=e.childAt(1),r=e.childAt(2),o=data.getItemVisual(t,"style"),c=o.fill;l.add(e),polyline.useStyle(h.i(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),os(polyline,n,"lineStyle"),os(polygon,n,"areaStyle");var f=n.getModel("areaStyle"),d=f.isEmpty()&&f.parentModel.isEmpty();polygon.ignore=d,h.k(["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),r=t.isEmpty()&&t.parentModel.isEmpty();polygon.ensureState(e).ignore=r&&d})),polygon.useStyle(h.i(f.getAreaStyle(),{fill:c,opacity:.7,decal:o.decal}));var v=n.getModel("emphasis"),m=v.getModel("itemStyle").getItemStyle();r.eachChild((function(e){if(e instanceof Bo){var r=e.style;e.useStyle(h.m({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},o))}else e.useStyle(o),e.setColor(c),e.style.strokeNoScale=!0;e.ensureState("emphasis").style=h.d(m);var l=data.getStore().get(data.getDimensionIndex(e.__dimIdx),t);(null==l||isNaN(l))&&(l=""),Ss(e,ks(n),{labelFetcher:data.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:l,inheritColor:c,defaultOpacity:o.opacity})})),ts(e,v.get("focus"),v.get("blurScope"),v.get("disabled"))})),this._data=data},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(vp),uk=lk,ck=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return l(t,e),t.prototype.init=function(option){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new jx(h.c(this.getData,this),h.c(this.getRawData,this))},t.prototype.getInitialData=function(option,e){return Nx(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var data=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(e),l=""===o?this.name:o,c=$h(this,e);return Dh("section",{header:l,sortBlocks:!0,blocks:h.H(r,(function(t){var n=data.get(data.mapDimension(t.dim),e);return Dh("nameValue",{markerType:"subItem",markerColor:c,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(h.H(n.dimensions,(function(e){return t.mapDimension(e)})),e),i=0,o=r.length;i<o;i++)if(!isNaN(r[i])){var l=n.getIndicatorAxes();return n.coordToPoint(l[i].dataToCoord(r[i]),i)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(tf),hk=ck,fk=Qx.value;function dk(e,t){return h.i({show:t},e)}var pk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),o=this.get("axisTick"),l=this.get("axisLabel"),c=this.get("axisName"),f=this.get(["axisName","show"]),d=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),m=this.get("triggerEvent"),y=h.H(this.get("indicator")||[],(function(y){null!=y.max&&y.max>0&&!y.min?y.min=0:null!=y.min&&y.min<0&&!y.max&&(y.max=0);var _=c;null!=y.color&&(_=h.i({color:y.color},c));var x=h.I(h.d(y),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:o,axisLabel:l,name:y.text,showName:f,nameLocation:"end",nameGap:v,nameTextStyle:_,triggerEvent:m},!1);if(h.C(d)){var w=x.name;x.name=d.replace("{value}",null!=w?w:"")}else h.w(d)&&(x.name=d(x.name,x));var S=new Ys(x,null,this.ecModel);return h.K(S,Yx.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S}),this);this._indicatorModels=y},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:h.I({lineStyle:{color:"#bbb"}},fk.axisLine),axisLabel:dk(fk.axisLabel,!1),axisTick:dk(fk.axisTick,!1),splitLine:dk(fk.splitLine,!0),splitArea:dk(fk.splitArea,!0),indicator:[]},t}(su),gk=pk,vk=["axisLine","axisTickLabel","axisName"],mk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=h.H(n,(function(e){var n=e.model.get("showName")?e.name:"";return new jS(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));h.k(r,(function(e){h.k(vk,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),o=e.getModel("splitLine"),l=e.getModel("splitArea"),c=o.getModel("lineStyle"),f=l.getModel("areaStyle"),d=o.get("show"),v=l.get("show"),m=c.get("color"),y=f.get("color"),_=h.t(m)?m:[m],x=h.t(y)?y:[y],w=[],S=[];if("circle"===r)for(var k=n[0].getTicksCoords(),O=t.cx,C=t.cy,i=0;i<k.length;i++){if(d)w[N(w,_,i)].push(new Ef({shape:{cx:O,cy:C,r:k[i].coord}}));if(v&&i<k.length-1)S[N(S,x,i)].push(new Xf({shape:{cx:O,cy:C,r0:k[i].coord,r:k[i+1].coord}}))}else{var T,E=h.H(n,(function(e,n){var r=e.getTicksCoords();return T=null==T?r.length-1:Math.min(r.length-1,T),h.H(r,(function(e){return t.coordToPoint(e.coord,n)}))})),A=[];for(i=0;i<=T;i++){for(var M=[],I=0;I<n.length;I++)M.push(E[I][i]);if(M[0]&&M.push(M[0].slice()),d)w[N(w,_,i)].push(new id({shape:{points:M}}));if(v&&A)S[N(S,x,i-1)].push(new ed({shape:{points:M.concat(A)}}));A=M.slice().reverse()}}var D=c.getLineStyle(),P=f.getAreaStyle();h.k(S,(function(e,t){this.group.add(Vd(e,{style:h.i({stroke:"none",fill:x[t%x.length]},P),silent:!0}))}),this),h.k(w,(function(e,t){this.group.add(Vd(e,{style:h.i({fill:"none",stroke:_[t%_.length]},D),silent:!0}))}),this)}function N(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}},t.type="radar",t}(rf),yk=mk,bk=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.type="value",o.angle=0,o.name="",o}return l(t,e),t}(vS),_k=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=Object(h.H)(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,r=new bk(n,new _w);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var o,l=Math.atan2(-n,t),c=1/0,h=-1,i=0;i<this._indicatorAxes.length;i++){var f=this._indicatorAxes[i],d=Math.abs(l-f.angle);d<c&&(o=f,h=i,c=d)}return[h,+(o&&o.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),o=t.getHeight(),l=Math.min(r,o)/2;this.cx=Zn(n[0],r),this.cy=Zn(n[1],o),this.startAngle=e.get("startAngle")*Math.PI/180;var c=e.get("radius");(Object(h.C)(c)||Object(h.z)(c))&&(c=[0,c]),this.r0=Zn(c[0],l),this.r=Zn(c[1],l),Object(h.k)(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;Object(h.k)(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,o){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var data=t.getData();Object(h.k)(n,(function(e){e.scale.unionExtentFromData(data,data.mapDimension(e.dim))}))}}),this);var o=r.get("splitNumber"),l=new _w;l.setExtent(0,o),l.setInterval(1),Object(h.k)(n,(function(e,t){SS(e.scale,e.model,l)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",(function(o){var l=new e(o,t,n);r.push(l),o.coordinateSystem=l})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("radarIndex")||0])})),r},e.dimensions=[],e}();function xk(e){e.registerCoordinateSystem("radar",_k),e.registerComponentModel(gk),e.registerComponentView(yk),e.registerVisual({seriesType:"radar",reset:function(e){var data=e.getData();data.each((function(e){data.setItemVisual(e,"legendIcon","roundRect")})),data.setVisual("legendIcon","roundRect")}})}var wk="\0_ec_interaction_mutex";function Sk(e,t){return!!kk(e)[t]}function kk(e){return e[wk]||(e[wk]={})}function Ok(e,t,n,r,o){e.pointerChecker&&e.pointerChecker(r,o.originX,o.originY)&&(Q(r.event),Ck(e,t,n,r,o))}function Ck(e,t,n,r,o){o.isAvailableBehavior=Object(h.c)(Tk,null,n,r),e.trigger(t,o)}function Tk(e,t,n){var r=n[e];return!e||r&&(!Object(h.C)(r)||t.event[r+"Key"])}im({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},h.L);var Ek=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=Object(h.c)(n._mousedownHandler,n),o=Object(h.c)(n._mousemoveHandler,n),l=Object(h.c)(n._mouseupHandler,n),c=Object(h.c)(n._mousewheelHandler,n),f=Object(h.c)(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=Object(h.i)(Object(h.d)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",o),t.on("mouseup",l)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",c),t.on("pinch",f))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",o),t.off("mouseup",l),t.off("mousewheel",c),t.off("pinch",f)},n}return l(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!ee(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&Tk("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!Sk(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,o=this._y,l=t-r,c=n-o;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&Q(e.event),Ck(this,"pan","moveOnMouseMove",e,{dx:l,dy:c,oldX:r,oldY:o,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){ee(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=Tk("zoomOnMouseWheel",e,this._opt),n=Tk("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,o=Math.abs(r),l=e.offsetX,c=e.offsetY;if(0!==r&&(t||n)){if(t){var h=o>3?1.4:o>1?1.2:1.1;Ok(this,"zoom","zoomOnMouseWheel",e,{scale:r>0?h:1/h,originX:l,originY:c,isAvailableBehavior:null})}if(n){var f=Math.abs(r);Ok(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(r>0?1:-1)*(f>3?.4:f>1?.15:.05),originX:l,originY:c,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){Sk(this._zr,"globalPan")||Ok(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(N);function Ak(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function Mk(e,t,n,r){var o=e.target,l=e.zoomLimit,c=e.zoom=e.zoom||1;if(c*=t,l){var h=l.min||0,f=l.max||1/0;c=Math.max(Math.min(f,c),h)}var d=c/e.zoom;e.zoom=c,o.x-=(n-o.x)*(d-1),o.y-=(r-o.y)*(d-1),o.scaleX*=d,o.scaleY*=d,o.dirty()}var Ik,Dk={axisPointer:1,tooltip:1,brush:1};function Pk(e,t,n){var r=t.getComponentByElement(e.topTarget),o=r&&r.coordinateSystem;return r&&r!==n&&!Dk.hasOwnProperty(r.mainType)&&o&&o.model!==n}function Nk(svg){Object(h.C)(svg)&&(svg=(new DOMParser).parseFromString(svg,"text/xml"));var e=svg;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var Lk={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},jk=Object(h.F)(Lk),Rk={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Fk=Object(h.F)(Rk),Bk=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var svg=Nk(e);this._defsUsePending=[];var n=new qn;this._root=n;var r=[],o=svg.getAttribute("viewBox")||"",l=parseFloat(svg.getAttribute("width")||t.width),c=parseFloat(svg.getAttribute("height")||t.height);isNaN(l)&&(l=null),isNaN(c)&&(c=null),Wk(svg,n,null,!0,!1);for(var h,f,d=svg.firstChild;d;)this._parseNode(d,n,r,null,!1,!1),d=d.nextSibling;if(function(defs,e){for(var i=0;i<e.length;i++){var t=e[i];t[0].style[t[1]]=defs[t[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var v=Kk(o);v.length>=4&&(h={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(h&&null!=l&&null!=c&&(f=eO(h,{x:0,y:0,width:l,height:c}),!t.ignoreViewBox)){var m=n;(n=new qn).add(m),m.scaleX=m.scaleY=f.scale,m.x=f.x,m.y=f.y}return t.ignoreRootClip||null==l||null==c||n.setClipPath(new Go({shape:{x:0,y:0,width:l,height:c}})),{root:n,width:l,height:c,viewBoxRect:h,viewBoxTransform:f,named:r}},e.prototype._parseNode=function(e,t,n,r,o,l){var c,f=e.nodeName.toLowerCase(),d=r;if("defs"===f&&(o=!0),"text"===f&&(l=!0),"defs"===f||"switch"===f)c=t;else{if(!o){var v=Ik[f];if(v&&Object(h.q)(Ik,f)){c=v.call(this,e,t);var m=e.getAttribute("name");if(m){var y={name:m,namedFrom:null,svgNodeTagLower:f,el:c};n.push(y),"g"===f&&(d=y)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:f,el:c});t.add(c)}}var _=zk[f];if(_&&Object(h.q)(zk,f)){var x=_.call(this,e),w=e.getAttribute("id");w&&(this._defs[w]=x)}}if(c&&c.isGroup)for(var S=e.firstChild;S;)1===S.nodeType?this._parseNode(S,c,n,d,o,l):3===S.nodeType&&l&&this._parseText(S,c),S=S.nextSibling},e.prototype._parseText=function(e,t){var text=new Lo({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Hk(t,text),Wk(e,text,this._defsUsePending,!1,!1),function(text,e){var t=e.__selfStyle;if(t){var n=t.textBaseline,r=n;n&&"auto"!==n?"baseline"===n?r="alphabetic":"before-edge"===n||"text-before-edge"===n?r="top":"after-edge"===n||"text-after-edge"===n?r="bottom":"central"!==n&&"mathematical"!==n||(r="middle"):r="alphabetic",text.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var l=o.textAlign,c=l;l&&("middle"===l&&(c="center"),text.style.textAlign=c)}}(text,t);var n=text.style,r=n.fontSize;r&&r<9&&(n.fontSize=9,text.scaleX*=r/9,text.scaleY*=r/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var rect=text.getBoundingRect();return this._textX+=rect.width,t.add(text),text},e.internalField=void(Ik={g:function(e,t){var g=new qn;return Hk(t,g),Wk(e,g,this._defsUsePending,!1,!1),g},rect:function(e,t){var rect=new Go;return Hk(t,rect),Wk(e,rect,this._defsUsePending,!1,!1),rect.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),rect.silent=!0,rect},circle:function(e,t){var circle=new Ef;return Hk(t,circle),Wk(e,circle,this._defsUsePending,!1,!1),circle.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),circle.silent=!0,circle},line:function(e,t){var line=new ld;return Hk(t,line),Wk(e,line,this._defsUsePending,!1,!1),line.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),line.silent=!0,line},ellipse:function(e,t){var ellipse=new If;return Hk(t,ellipse),Wk(e,ellipse,this._defsUsePending,!1,!1),ellipse.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),ellipse.silent=!0,ellipse},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=qk(r));var polygon=new ed({shape:{points:n||[]},silent:!0});return Hk(t,polygon),Wk(e,polygon,this._defsUsePending,!1,!1),polygon},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=qk(r));var polyline=new id({shape:{points:n||[]},silent:!0});return Hk(t,polyline),Wk(e,polyline,this._defsUsePending,!1,!1),polyline},image:function(e,t){var img=new Bo;return Hk(t,img),Wk(e,img,this._defsUsePending,!1,!1),img.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),img.silent=!0,img},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",o=e.getAttribute("dx")||"0",l=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(l);var g=new qn;return Hk(t,g),Wk(e,g,this._defsUsePending,!1,!0),g},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var o=e.getAttribute("dx")||"0",l=e.getAttribute("dy")||"0",g=new qn;return Hk(t,g),Wk(e,g,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(l),g},path:function(e,t){var path=kf(e.getAttribute("d")||"");return Hk(t,path),Wk(e,path,this._defsUsePending,!1,!1),path.silent=!0,path}}),e}(),zk={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),o=parseInt(e.getAttribute("y2")||"0",10),l=new xd(t,n,r,o);return $k(e,l),Vk(e,l),l},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),o=new wd(t,n,r);return $k(e,o),Vk(e,o),o}};function $k(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function Vk(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),o=void 0;o=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var l={};Qk(n,l,l);var c=l.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:o,color:c})}n=n.nextSibling}}function Hk(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(h.i)(t.__inheritedStyle,e.__inheritedStyle))}function qk(e){for(var t=Kk(e),n=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),o=parseFloat(t[i+1]);n.push([r,o])}return n}function Wk(e,t,n,r,o){var l=t,c=l.__inheritedStyle=l.__inheritedStyle||{},f={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],o=null;n.replace(Xk,(function(e,t,n){return r.push(t,n),""}));for(var i=r.length-1;i>0;i-=2){var l=r[i],c=r[i-1],h=Kk(l);switch(o=o||[1,0,0,1,0,0],c){case"translate":se(o,o,[parseFloat(h[0]),parseFloat(h[1]||"0")]);break;case"scale":ue(o,o,[parseFloat(h[0]),parseFloat(h[1]||h[0])]);break;case"rotate":le(o,o,-parseFloat(h[0])*Zk);break;case"skewX":ae(o,[1,0,Math.tan(parseFloat(h[0])*Zk),1,0,0],o);break;case"skewY":ae(o,[1,Math.tan(parseFloat(h[0])*Zk),0,1,0,0],o);break;case"matrix":o[0]=parseFloat(h[0]),o[1]=parseFloat(h[1]),o[2]=parseFloat(h[2]),o[3]=parseFloat(h[3]),o[4]=parseFloat(h[4]),o[5]=parseFloat(h[5])}}t.setLocalTransform(o)}}(e,t),Qk(e,c,f),r||function(e,t,n){for(var i=0;i<jk.length;i++){var r=jk[i];null!=(o=e.getAttribute(r))&&(t[Lk[r]]=o)}for(i=0;i<Fk.length;i++){var o;r=Fk[i];null!=(o=e.getAttribute(r))&&(n[Rk[r]]=o)}}(e,c,f)),l.style=l.style||{},null!=c.fill&&(l.style.fill=Gk(l,"fill",c.fill,n)),null!=c.stroke&&(l.style.stroke=Gk(l,"stroke",c.stroke,n)),Object(h.k)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=c[e]&&(l.style[e]=parseFloat(c[e]))})),Object(h.k)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=c[e]&&(l.style[e]=c[e])})),o&&(l.__selfStyle=f),c.lineDash&&(l.style.lineDash=Object(h.H)(Kk(c.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==c.visibility&&"collapse"!==c.visibility||(l.invisible=!0),"none"===c.display&&(l.ignore=!0)}var Uk=/^url\(\s*#(.*?)\)/;function Gk(e,t,n,r){var o=n&&n.match(Uk);if(!o)return"none"===n&&(n=null),n;var l=Object(h.T)(o[1]);r.push([e,t,l])}var Yk=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Kk(e){return e.match(Yk)||[]}var Xk=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Zk=Math.PI/180;var Jk=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Qk(e,t,n){var r,style=e.getAttribute("style");if(style)for(Jk.lastIndex=0;null!=(r=Jk.exec(style));){var o=r[1],l=Object(h.q)(Lk,o)?Lk[o]:null;l&&(t[l]=r[2]);var c=Object(h.q)(Rk,o)?Rk[o]:null;c&&(n[c]=r[2])}}function eO(e,t){var n=t.width/e.width,r=t.height/e.height,o=Math.min(n,r);return{scale:o,x:-(e.x+e.width/2)*o+(t.x+t.width/2),y:-(e.y+e.height/2)*o+(t.y+t.height/2)}}function tO(a,b){return Math.abs(a-b)<1e-8}function nO(e,t,n){var r=0,p=e[0];if(!p)return!1;for(var i=1;i<e.length;i++){var o=e[i];r+=_o(p[0],p[1],o[0],o[1],t,n),p=o}var l=e[0];return tO(p[0],l[0])&&tO(p[1],l[1])||(r+=_o(p[0],p[1],l[0],l[1],t,n)),0!==r}var rO=[];function iO(e,t){for(var p=0;p<e.length;p++)E(e[p],e[p],t)}function oO(e,t,n,r){for(var i=0;i<e.length;i++){var p=e[i];r&&(p=r.project(p)),p&&isFinite(p[0])&&isFinite(p[1])&&(A(t,t,p),M(n,n,p))}}var aO=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),sO=function(e,t){this.type="polygon",this.exterior=e,this.interiors=t},lO=function(e){this.type="linestring",this.points=e},uO=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.type="geoJSON",o.geometries=n,o._center=r&&[r[0],r[1]],o}return l(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var r=t[i],o=r.exterior,l=o&&o.length;l>n&&(e=r,n=l)}if(e)return function(e){for(var t=0,n=0,r=0,o=e.length,l=e[o-1][0],c=e[o-1][1],i=0;i<o;i++){var h=e[i][0],f=e[i][1],a=l*f-h*c;t+=a,n+=(l+h)*a,r+=(c+f)*a,l=h,c=f}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);var rect=this.getBoundingRect();return[rect.x+rect.width/2,rect.y+rect.height/2]},t.prototype.getBoundingRect=function(e){var rect=this._rect;if(rect&&!e)return rect;var t=[1/0,1/0],n=[-1/0,-1/0],r=this.geometries;return Object(h.k)(r,(function(r){"polygon"===r.type?oO(r.exterior,t,n,e):Object(h.k)(r.points,(function(r){oO(r,t,n,e)}))})),isFinite(t[0])&&isFinite(t[1])&&isFinite(n[0])&&isFinite(n[1])||(t[0]=t[1]=n[0]=n[1]=0),rect=new _e(t[0],t[1],n[0]-t[0],n[1]-t[1]),e||(this._rect=rect),rect},t.prototype.contain=function(e){var rect=this.getBoundingRect(),t=this.geometries;if(!rect.contain(e[0],e[1]))return!1;e:for(var i=0,n=t.length;i<n;i++){var r=t[i];if("polygon"===r.type){var o=r.exterior,l=r.interiors;if(nO(o,e[0],e[1])){for(var c=0;c<(l?l.length:0);c++)if(nO(l[c],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var rect=this.getBoundingRect(),o=rect.width/rect.height;n?r||(r=n/o):n=o*r;for(var l=new _e(e,t,n,r),c=rect.calculateTransform(l),f=this.geometries,i=0;i<f.length;i++){var d=f[i];"polygon"===d.type?(iO(d.exterior,c),Object(h.k)(d.interiors,(function(e){iO(e,c)}))):Object(h.k)(d.points,(function(e){iO(e,c)}))}(rect=this._rect).copy(l),this._center=[rect.x+rect.width/2,rect.y+rect.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(aO),cO=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return l(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,rect=e.getBoundingRect(),t=[rect.x+rect.width/2,rect.y+rect.height/2],n=ie(rO),r=e;r&&!r.isGeoSVGGraphicRoot;)ae(n,r.getLocalTransform(),n),r=r.parent;return ce(n,n),E(t,t,n),t},t}(aO),hO=Object(h.f)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),fO=function(){function e(e,svg){this.type="geoSVG",this._usedGraphicMap=Object(h.f)(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Nk(svg)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function(e){var t=[],n=Object(h.f)();return Object(h.k)(e,(function(e){if(null==e.namedFrom){var r=new cO(e.name,e.el);t.push(r),n.set(e.name,r)}})),{regions:t,regionsMap:n}}(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n,r,o;try{n=(t=e&&(r=e,o={ignoreViewBox:!0,ignoreRootClip:!0},(new Bk).parse(r,o))||{}).root,Object(h.b)(null!=n)}catch(e){throw new Error("Invalid svg format\n"+e.message)}var l=new qn;l.add(n),l.isGeoSVGGraphicRoot=!0;var c=t.width,f=t.height,d=t.viewBoxRect,v=this._boundingRect;if(!v){var m=void 0,y=void 0,_=void 0,x=void 0;if(null!=c?(m=0,_=c):d&&(m=d.x,_=d.width),null!=f?(y=0,x=f):d&&(y=d.y,x=d.height),null==m||null==y){var w=n.getBoundingRect();null==m&&(m=w.x,_=w.width),null==y&&(y=w.y,x=w.height)}v=this._boundingRect=new _e(m,y,_,x)}if(d){var S=eO(d,v);n.scaleX=n.scaleY=S.scale,n.x=S.x,n.y=S.y}l.setClipPath(new Go({shape:v.plain()}));var k=[];return Object(h.k)(t.named,(function(e){var t;null!=hO.get(e.svgNodeTagLower)&&(k.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse((function(e){e.silent=!1})))})),{root:l,boundingRect:v,named:k}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function dO(e,t,n){for(var r=0;r<e.length;r++)e[r]=pO(e[r],t[r],n)}function pO(e,t,n){for(var r=[],o=t[0],l=t[1],i=0;i<e.length;i+=2){var c=e.charCodeAt(i)-64,h=e.charCodeAt(i+1)-64;c=c>>1^-(1&c),h=h>>1^-(1&h),o=c+=o,l=h+=l,r.push([c/n,h/n])}return r}function gO(e,t){return e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var r=t.features;return h.k(r,(function(e){var t=e.geometry,r=t.encodeOffsets,o=t.coordinates;if(r)switch(t.type){case"LineString":t.coordinates=pO(o,r,n);break;case"Polygon":case"MultiLineString":dO(o,r,n);break;case"MultiPolygon":h.k(o,(function(e,t){return dO(e,r[t],n)}))}})),t.UTF8Encoding=!1,t}(e),h.H(h.n(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,r=e.geometry,o=[];switch(r.type){case"Polygon":var l=r.coordinates;o.push(new sO(l[0],l.slice(1)));break;case"MultiPolygon":h.k(r.coordinates,(function(e){e[0]&&o.push(new sO(e[0],e.slice(1)))}));break;case"LineString":o.push(new lO([r.coordinates]));break;case"MultiLineString":o.push(new lO(r.coordinates))}var c=new uO(n[t||"name"],o,n.cp);return c.properties=n,c}))}for(var vO=[126,25],mO="南海诸岛",yO=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],bO=0;bO<yO.length;bO++)for(var _O=0;_O<yO[bO].length;_O++)yO[bO][_O][0]/=10.5,yO[bO][_O][1]/=-14,yO[bO][_O][0]+=vO[0],yO[bO][_O][1]+=vO[1];var xO={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var wO=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var SO=function(){function e(e,t,n){var source;this.type="geoJSON",this._parsedMap=Object(h.f)(),this._mapName=e,this._specialAreas=n,this._geoJSON=(source=t,Object(h.C)(source)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(source):new Function("return ("+source+");")():source)}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:kO(r)})}var o=Object(h.f)(),l=[];return Object(h.k)(n.regions,(function(t){var n=t.name;e&&Object(h.q)(e,n)&&(t=t.cloneShallow(n=e[n])),l.push(t),o.set(n,t)})),{regions:l,boundingRect:n.boundingRect||new _e(0,0,0,0),regionsMap:o}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,r=this._geoJSON;try{t=r?gO(r,e):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return function(e,t){if("china"===e){for(var i=0;i<t.length;i++)if(t[i].name===mO)return;t.push(new uO(mO,h.H(yO,(function(e){return{type:"polygon",exterior:e}})),vO))}}(n,t),Object(h.k)(t,(function(e){var t=e.name;!function(e,t){if("china"===e){var n=xO[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}(n,e),function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:wO[0]})}(n,e);var r=this._specialAreas&&this._specialAreas[t];r&&e.transformTo(r.left,r.top,r.width,r.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function kO(e){for(var rect,i=0;i<e.length;i++){var t=e[i].getBoundingRect();(rect=rect||t.clone()).union(t)}return rect}var OO=Object(h.f)(),CO=function(e,t,n){if(t.svg){var r=new fO(e,t.svg);OO.set(e,r)}else{var o=t.geoJson||t.geoJSON;o&&!t.features?n=t.specialAreas:o=t;r=new SO(e,o,n);OO.set(e,r)}},TO=function(e){return OO.get(e)},EO=function(e){var t=OO.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},AO=function(e,t,n){var r=OO.get(e);if(r)return r.load(t,n)},MO=["rect","circle","line","ellipse","polygon","polyline","path"],IO=h.f(MO),DO=h.f(MO.concat(["g"])),PO=h.f(MO.concat(["g"])),NO=jr();function LO(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function jO(e){var style=e.style;style&&(style.stroke=style.stroke||style.fill,style.fill=null)}var RO=function(){function e(e){var t=new qn;this.uid=Xs("ec_map_draw"),this._controller=new Ek(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new qn),t.add(this._svgGroup=new qn)}return e.prototype.draw=function(e,t,n,r,o){var l="geo"===e.mainType,data=e.getData&&e.getData();l&&t.eachComponent({mainType:"series",subType:"map"},(function(t){data||t.getHostGeoModel()!==e||(data=t.getData())}));var c=e.coordinateSystem,h=this._regionsGroup,f=this.group,d=c.getTransformInfo(),v=d.raw,m=d.roam;!h.childAt(0)||o?(f.x=m.x,f.y=m.y,f.scaleX=m.scaleX,f.scaleY=m.scaleY,f.dirty()):ds(f,m,e);var y=data&&data.getVisual("visualMeta")&&data.getVisual("visualMeta").length>0,_={api:n,geo:c,mapOrGeoModel:e,data:data,isVisualEncodedByVisualMap:y,isGeo:l,transformInfoRaw:v};"geoJSON"===c.resourceType?this._buildGeoJSON(_):"geoSVG"===c.resourceType&&this._buildSVG(_),this._updateController(e,t,n),this._updateMapSelectHandler(e,h,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=h.f(),n=h.f(),r=this._regionsGroup,o=e.transformInfoRaw,l=e.mapOrGeoModel,data=e.data,c=e.geo.projection,f=c&&c.stream;function d(e,t){return t&&(e=t(e)),e&&[e[0]*o.scaleX+o.x,e[1]*o.scaleY+o.y]}function v(e){for(var t=[],n=!f&&c&&c.project,i=0;i<e.length;++i){var r=d(e[i],n);r&&t.push(r)}return t}function m(e){return{shape:{points:v(e)}}}r.removeAll(),h.k(e.geo.regions,(function(o){var v=o.name,y=t.get(v),_=n.get(v)||{},x=_.dataIdx,w=_.regionModel;y||(y=t.set(v,new qn),r.add(y),x=data?data.indexOfName(v):null,w=e.isGeo?l.getRegionModel(v):data?data.getItemModel(x):null,n.set(v,{dataIdx:x,regionModel:w}));var S=[],k=[];h.k(o.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);f&&(t=HO(t,f)),h.k(t,(function(e){S.push(new ed(m(e)))}))}else{var n=e.points;f&&(n=HO(n,f,!0)),h.k(n,(function(e){k.push(new id(m(e)))}))}}));var O=d(o.getCenter(),c&&c.project);function C(t,n){if(t.length){var r=new bd({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});y.add(r),FO(e,r,x,w),BO(e,r,v,w,l,x,O),n&&(jO(r),h.k(r.states,jO))}}C(S),C(k,!0)})),t.each((function(t,r){var o=n.get(r),c=o.dataIdx,h=o.regionModel;zO(e,t,r,h,l,c),$O(e,t,r,h,l),VO(e,t,r,h,l)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=h.f(),o=!1;h.k(this._svgGraphicRecord.named,(function(t){var n=t.name,l=e.mapOrGeoModel,data=e.data,c=t.svgNodeTagLower,h=t.el,f=data?data.indexOfName(n):null,d=l.getRegionModel(n);(null!=IO.get(c)&&h instanceof Mi&&FO(e,h,f,d),h instanceof Mi&&(h.culling=!0),h.z2EmphasisLift=0,t.namedFrom)||(null!=PO.get(c)&&BO(e,h,n,d,l,f,null),zO(e,h,n,d,l,f),$O(e,h,n,d,l),null!=DO.get(c)&&("self"===VO(e,h,n,d,l)&&(o=!0),(r.get(n)||r.set(n,[])).push(h)))}),this),this._enableBlurEntireSVG(o,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){Fa(e);var style=e.ensureState("blur").style||{};null==style.opacity&&null!=n&&(style.opacity=n),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var o=r.get(e);return o?[o]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=TO(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=TO(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,o=this._controller,l=this._controllerHost;l.zoomLimit=e.get("scaleLimit"),l.zoom=r.getZoom(),o.enable(e.get("roam")||!1);var c=e.mainType;function f(){var t={type:"geoRoam",componentType:c};return t[c+"Id"]=e.id,t}o.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,Ak(l,e.dx,e.dy),n.dispatchAction(h.m(f(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),o.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,Mk(l,e.scale,e.originX,e.originY),n.dispatchAction(h.m(f(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),o.setPointerChecker((function(t,o,l){return r.containPoint([o,l])&&!Pk(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var label=e.getTextContent();label&&(label.ignore=NO(label).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,r){var o=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){o._mouseDownFlag=!0})),t.on("click",(function(e){o._mouseDownFlag&&(o._mouseDownFlag=!1)})))},e}();function FO(e,t,n,r){var o=r.getModel("itemStyle"),l=r.getModel(["emphasis","itemStyle"]),c=r.getModel(["blur","itemStyle"]),h=r.getModel(["select","itemStyle"]),f=LO(o),d=LO(l),v=LO(h),m=LO(c),data=e.data;if(data){var style=data.getItemVisual(n,"style"),y=data.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&style.fill&&(f.fill=style.fill),y&&(f.decal=ev(y,e.api))}t.setStyle(f),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=d,t.ensureState("select").style=v,t.ensureState("blur").style=m,Fa(t)}function BO(e,t,n,r,o,l,c){var data=e.data,h=e.isGeo,f=data&&isNaN(data.get(data.mapDimension("value"),l)),d=data&&data.getItemLayout(l);if(h||f||d&&d.showLabel){var v=h?n:l,m=void 0;(!data||l>=0)&&(m=o);var y=c?{normal:{align:"center",verticalAlign:"middle"}}:null;Ss(t,ks(r),{labelFetcher:m,labelDataIndex:v,defaultText:n},y);var _=t.getTextContent();if(_&&(NO(_).ignore=_.ignore,t.textConfig&&c)){var rect=t.getBoundingRect().clone();t.textConfig.layoutRect=rect,t.textConfig.position=[(c[0]-rect.x)/rect.width*100+"%",(c[1]-rect.y)/rect.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function zO(e,t,n,r,o,l){e.data?e.data.setItemGraphicEl(l,t):ca(t).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:r&&r.option||{}}}function $O(e,t,n,r,o){e.data||op({el:t,componentModel:o,itemName:n,itemTooltipOption:r.get("tooltip")})}function VO(e,t,n,r,o){t.highDownSilentOnTouch=!!o.get("selectedMode");var l=r.getModel("emphasis"),c=l.get("focus");return ts(t,c,l.get("blurScope"),l.get("disabled")),e.isGeo&&function(e,t,n){var r=ca(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}(t,o,n),c}function HO(e,t,n){var r,o=[];function l(){r=[]}function c(){r.length&&(o.push(r),r=[])}var f=t({polygonStart:l,polygonEnd:c,lineStart:l,lineEnd:c,point:function(e,t){isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&f.polygonStart(),h.k(e,(function(e){f.lineStart();for(var i=0;i<e.length;i++)f.point(e[i][0],e[i][1]);f.lineEnd()})),!n&&f.polygonEnd(),o}var qO=RO,WO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id)(l=this._mapDraw)&&o.add(l.group);else if(e.needsDrawMap){var l=this._mapDraw||new qO(n);o.add(l.group),l.draw(e,t,n,this,r),this._mapDraw=l}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,o=this.group;r.each(r.mapDimension("value"),(function(t,n){if(!isNaN(t)){var l=r.getItemLayout(n);if(l&&l.point){var c=l.point,h=l.offset,circle=new Ef({style:{fill:e.getData().getVisual("style").fill},shape:{cx:c[0]+9*h,cy:c[1],r:3},silent:!0,z2:8+(h?0:11)});if(!h){var f=e.mainSeries.getData(),d=r.getName(n),v=f.indexOfName(d),m=r.getItemModel(n),y=m.getModel("label"),_=f.getItemGraphicEl(v);Ss(circle,ks(m),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(v,n)}},defaultText:d}),circle.disableLabelAnimation=!0,y.get("position")||circle.setTextConfig({position:"bottom"}),_.onHoverStateChange=function(e){ja(circle,e)}}o.add(circle)}}}))},t.type="map",t}(vp),UO=WO,GO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return l(t,e),t.prototype.getInitialData=function(option){for(var data=Nx(this,{coordDimensions:["value"],encodeDefaulter:h.h(Ou,this)}),e=h.f(),t=[],i=0,n=data.count();i<n;i++){var r=data.getName(i);e.set(r,!0)}var o=AO(this.getMapType(),this.option.nameMap,this.option.nameProperty);return h.k(o.regions,(function(n){var r=n.name;e.get(r)||t.push(r)})),data.appendValues([],t),data},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var data=this.getData();return data.get(data.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var data=this.getData();return data.getItemModel(data.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var data=this.getData(),r=this.getRawValue(e),o=data.getName(e),l=this.seriesGroup,c=[],i=0;i<l.length;i++){var h=l[i].originalData.indexOfName(o),f=data.mapDimension("value");isNaN(l[i].originalData.get(f,h))||c.push(l[i].name)}return Dh("section",{header:c.join(", "),noHeader:!c.length,blocks:[Dh("nameValue",{name:o,value:r})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=Tg(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(tf),YO=GO;function KO(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)})),h.k(t,(function(e,t){for(var n,r,o,data=(n=h.H(e,(function(e){return e.getData()})),r=e[0].get("mapValueCalculation"),o={},h.k(n,(function(data){data.each(data.mapDimension("value"),(function(e,t){var n="ec-"+data.getName(t);o[n]=o[n]||[],isNaN(e)||o[n].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(e,t){for(var l="ec-"+n[0].getName(t),c=0,h=1/0,f=-1/0,d=o[l].length,i=0;i<d;i++)h=Math.min(h,o[l][i]),f=Math.max(f,o[l][i]),c+=o[l][i];return 0===d?NaN:"min"===r?h:"max"===r?f:"average"===r?c/d:c}))),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=0===i&&!e[i].getHostGeoModel(),e[i].setData(data.cloneShallow()),e[i].mainSeries=e[0]}))}function XO(e){var t={};e.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var o={};h.k(n.seriesGroup,(function(t){var n=t.coordinateSystem,data=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&data.each(data.mapDimension("value"),(function(e,t){var r=data.getName(t),l=n.getRegion(r);if(l&&!isNaN(e)){var c=o[r]||0,h=n.dataToPoint(l.getCenter());o[r]=c+1,data.setItemLayout(t,{point:h,offset:c})}}))}));var data=n.getData();data.each((function(e){var t=data.getName(e),n=data.getItemLayout(e)||{};n.showLabel=!o[t],data.setItemLayout(e,n)})),t[r]=!0}}))}var ZO=E;function JO(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var QO=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new _n,n._rawTransformable=new _n,n.name=t,n}return l(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new _e(e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new _e(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var rect=this.getBoundingRect(),o=this._rawTransformable;o.transform=rect.calculateTransform(new _e(e,t,n,r));var l=o.parent;o.parent=null,o.decomposeTransform(),o.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[Zn(e[0],t.getWidth()),Zn(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),o=this.getZoom();r=E([],r,e),n=E([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),oe(this.transform||(this.transform=[]),t.transform||[1,0,0,1,0,0]),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],ce(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new _n;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var rect=this.getBoundingRect().clone();return rect.applyTransform(this.transform),rect},t.prototype.dataToPoint=function(data,e,t){var n=e?this._rawTransform:this.transform;return t=t||[],n?ZO(t,data,n):d(t,data)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?ZO([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=JO(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=JO(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(_n),eC={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},tC=["lng","lat"],nC=function(e){function t(t,map,n){var r=e.call(this,t)||this;r.dimensions=tC,r.type="geo",r._nameCoordMap=h.f(),r.map=map;var o,l=n.projection,source=AO(map,n.nameMap,n.nameProperty),c=TO(map),f=(r.resourceType=c?c.type:null,r.regions=source.regions),d=eC[c.type];if(r._regionsMap=source.regionsMap,r.regions=source.regions,r.projection=l,l)for(var i=0;i<f.length;i++){var v=f[i].getBoundingRect(l);(o=o||v.clone()).union(v)}else o=source.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=l?1:h.P(n.aspectScale,d.aspectScale),r._invertLongitute=!l&&d.invertLongitute,r}return l(t,e),t.prototype._transformTo=function(e,t,n,r){var rect=this.getBoundingRect(),o=this._invertLongitute;rect=rect.clone(),o&&(rect.y=-rect.y-rect.height);var l=this._rawTransformable;l.transform=rect.calculateTransform(new _e(e,t,n,r));var c=l.parent;l.parent=null,l.decomposeTransform(),l.parent=c,o&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,i=0;i<t.length;i++){var n=t[i];if("geoJSON"===n.type&&n.contain(e))return t[i]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(data,e,t){if(h.C(data)&&(data=this.getGeoCoord(data)),data){var n=this.projection;return n&&(data=n.project(data)),data&&this.projectedToPoint(data,e,t)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=rC(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=rC(t);return r===this?r.pointToData(n):null},t}(QO);function rC(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",zr).models[0]||{}).coordinateSystem:null}h.K(nC,QO);var iC=nC;function oC(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],o=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])){var l=this.projection;if(l){var c=r[0],h=r[1],f=o[0],d=o[1];r=[1/0,1/0],o=[-1/0,-1/0];var v=function(e,t,n,c){for(var h=n-e,f=c-t,i=0;i<=100;i++){var p=i/100,d=l.project([e+h*p,t+f*p]);A(r,r,d),M(o,o,d)}};v(c,h,f,h),v(f,h,f,d),v(f,d,c,d),v(c,d,f,h)}this.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1])}else 0}var m,y,_,rect=this.getBoundingRect(),x=e.get("layoutCenter"),w=e.get("layoutSize"),S=t.getWidth(),k=t.getHeight(),O=rect.width/rect.height*this.aspectScale,C=!1;if(x&&w&&(m=[Zn(x[0],S),Zn(x[1],k)],y=Zn(w,Math.min(S,k)),isNaN(m[0])||isNaN(m[1])||isNaN(y)||(C=!0)),C)_={},O>1?(_.width=y,_.height=y/O):(_.height=y,_.width=y*O),_.y=m[1]-_.height/2,_.x=m[0]-_.width/2;else{var T=e.getBoxLayoutParams();T.aspect=O,_=Ql(T,{width:S,height:k})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}var aC=function(){function e(){this.dimensions=tC}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,o){var l=e.get("map"),c=new iC(l+o,l,h.m({nameMap:e.get("nameMap")},r(e)));c.zoomLimit=e.get("scaleLimit"),n.push(c),e.coordinateSystem=c,c.model=e,c.resize=oC,c.resize(e,t)})),e.eachSeries((function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}}));var o={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();o[t]=o[t]||[],o[t].push(e)}})),h.k(o,(function(e,o){var l=h.H(e,(function(e){return e.get("nameMap")})),c=new iC(o,o,h.m({nameMap:h.J(l)},r(e[0])));c.zoomLimit=h.O.apply(null,h.H(e,(function(e){return e.get("scaleLimit")}))),n.push(c),c.resize=oC,c.resize(e[0],t),h.k(e,(function(e){e.coordinateSystem=c,function(e,t){h.k(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}(c,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var o=(e||[]).slice(),l=h.f(),i=0;i<o.length;i++)l.set(o[i].name,o[i]);var source=AO(t,n,r);return h.k(source.regions,(function(e){var t=e.name;!l.get(t)&&o.push({name:t})})),o},e}(),sC=new aC,lC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.init=function(option,e,t){var source=TO(option.map);if(source&&"geoJSON"===source.type){var n=option.itemStyle=option.itemStyle||{};"color"in n||(n.color="#eee")}this.mergeDefaultAndTheme(option,t),Or(option,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,option=this.option;option.regions=sC.getFilledRegions(option.regions,option.map,option.nameMap,option.nameProperty);var t={};this._optionModelMap=h.N(option.regions||[],(function(n,r){var o=r.name;return o&&(n.set(o,new Ys(r,e,e.ecModel)),r.selected&&(t[o]=!0)),n}),h.f()),option.selectedMap||(option.selectedMap=t)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Ys(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};return h.w(r)?(o.status=t,r(o)):h.C(r)?r.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var option=this.option,t=option.selectedMode;t&&("multiple"!==t&&(option.selectedMap=null),(option.selectedMap||(option.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(su),uC=lC;function cC(view,e){return view.pointToProjected?view.pointToProjected(e):view.pointToData(e)}function hC(view,e,t,n){var r=view.getZoom(),o=view.getCenter(),l=e.zoom,c=view.projectedToPoint?view.projectedToPoint(o):view.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(c[0]-=e.dx,c[1]-=e.dy,view.setCenter(cC(view,c),n)),null!=l){if(t){var h=t.min||0,f=t.max||1/0;l=Math.max(Math.min(r*l,f),h)/r}view.scaleX*=l,view.scaleY*=l;var d=(e.originX-view.x)*(l-1),v=(e.originY-view.y)*(l-1);view.x-=d,view.y-=v,view.updateTransform(),view.setCenter(cC(view,c),n),view.setZoom(l*r)}return{center:view.getCenter(),zoom:view.getZoom()}}var fC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return l(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new qO(n));var o=this._mapDraw;o.draw(e,t,n,this,r),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;dg(e.target,(function(e){return null!=(t=ca(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse((function(e){var t=ca(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(rf),dC=fC;function pC(e,t,n){CO(e,t,n)}function gC(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var r={},o=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var l=n.coordinateSystem;Object(h.k)(l.regions,(function(e){r[e.name]=n.isSelected(e.name)||!1}));var c=[];Object(h.k)(r,(function(e,t){r[t]&&c.push(t)})),o.push({geoIndex:n.componentIndex,name:c})})),{selected:r,allSelected:o,name:e.name}}))}e.registerCoordinateSystem("geo",sC),e.registerComponentModel(uC),e.registerComponentView(dC),e.registerImpl("registerMap",pC),e.registerImpl("getMap",(function(e){return EO(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},(function(t){var o=t.coordinateSystem;if("geo"===o.type){var l=hC(o,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(l.center),t.setZoom&&t.setZoom(l.zoom),"series"===r&&Object(h.k)(t.seriesGroup,(function(e){e.setCenter(l.center),e.setZoom(l.zoom)}))}}))}))}function vC(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,o=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){!function(e){var t=e.children,n=t.length,r=0,o=0;for(;--n>=0;){var l=t[n];l.hierNode.prelim+=r,l.hierNode.modifier+=r,o+=l.hierNode.change,r+=l.hierNode.shift+o}}(e);var l=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;o?(e.hierNode.prelim=o.hierNode.prelim+t(e,o),e.hierNode.modifier=e.hierNode.prelim-l):e.hierNode.prelim=l}else o&&(e.hierNode.prelim=o.hierNode.prelim+t(e,o));e.parentNode.hierNode.defaultAncestor=function(e,t,n,r){if(t){for(var o=e,l=e,c=l.parentNode.children[0],h=t,f=o.hierNode.modifier,d=l.hierNode.modifier,v=c.hierNode.modifier,m=h.hierNode.modifier;h=_C(h),l=xC(l),h&&l;){o=_C(o),c=xC(c),o.hierNode.ancestor=e;var y=h.hierNode.prelim+m-l.hierNode.prelim-d+r(h,l);y>0&&(SC(wC(h,e,n),e,y),d+=y,f+=y),m+=h.hierNode.modifier,d+=l.hierNode.modifier,f+=o.hierNode.modifier,v+=c.hierNode.modifier}h&&!_C(o)&&(o.hierNode.thread=h,o.hierNode.modifier+=m-f),l&&!xC(c)&&(c.hierNode.thread=l,c.hierNode.modifier+=d-v,n=e)}return n}(e,o,e.parentNode.hierNode.defaultAncestor||r[0],t)}function mC(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function yC(e){return arguments.length?e:kC}function bC(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function _C(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function xC(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function wC(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function SC(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function kC(e,t){return e.parentNode===t.parentNode?1:2}var OC=function(){this.parentPoint=[],this.childPoints=[]},CC=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new OC},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,o=t.parentPoint,l=n[0],c=n[r-1];if(1===r)return e.moveTo(o[0],o[1]),void e.lineTo(l[0],l[1]);var h=t.orient,f="TB"===h||"BT"===h?0:1,d=1-f,v=Zn(t.forkPosition,1),m=[];m[f]=o[f],m[d]=o[d]+(c[d]-o[d])*v,e.moveTo(o[0],o[1]),e.lineTo(m[0],m[1]),e.moveTo(l[0],l[1]),m[f]=l[f],e.lineTo(m[0],m[1]),m[f]=c[f],e.lineTo(m[0],m[1]),e.lineTo(c[0],c[1]);for(var i=1;i<r-1;i++){var y=n[i];e.moveTo(y[0],y[1]),m[f]=y[f],e.lineTo(m[0],m[1])}},t}(Do),TC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new qn,n}return l(t,e),t.prototype.init=function(e,t){this._controller=new Ek(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var data=e.getData(),r=e.layoutInfo,o=this._mainGroup;"radial"===e.get("layout")?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var l=this._data;data.diff(l).add((function(t){EC(data,t)&&AC(data,t,null,o,e)})).update((function(t,n){var r=l.getItemGraphicEl(n);EC(data,t)?AC(data,t,r,o,e):r&&DC(l,n,r,o,e)})).remove((function(t){var n=l.getItemGraphicEl(t);n&&DC(l,t,n,o,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&data.eachItemGraphicEl((function(t,r){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})}))})),this._data=data},t.prototype._updateViewCoordSys=function(e,t){var data=e.getData(),n=[];data.each((function(e){var t=data.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||n.push([+t.x,+t.y])}));var r=[],o=[];Bi(n,r,o);var l=this._min,c=this._max;o[0]-r[0]==0&&(r[0]=l?l[0]:r[0]-1,o[0]=c?c[0]:o[0]+1),o[1]-r[1]==0&&(r[1]=l?l[1]:r[1]-1,o[1]=c?c[1]:o[1]+1);var h=e.coordinateSystem=new QO;h.zoomLimit=e.get("scaleLimit"),h.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),h.setCenter(e.get("center"),t),h.setZoom(e.get("zoom")),this.group.attr({x:h.x,y:h.y,scaleX:h.scaleX,scaleY:h.scaleY}),this._min=r,this._max=o},t.prototype._updateController=function(e,t,n){var r=this,o=this._controller,l=this._controllerHost,c=this.group;o.setPointerChecker((function(t,r,o){var rect=c.getBoundingRect();return rect.applyTransform(c.transform),rect.contain(r,o)&&!Pk(t,n,e)})),o.enable(e.get("roam")),l.zoomLimit=e.get("scaleLimit"),l.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(t){Ak(l,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Mk(l,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var data=e.getData(),t=this._getNodeGlobalScale(e);data.eachItemGraphicEl((function(e,n){e.setSymbolScale(t)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1;return((t.getZoom()-1)*n+1)/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(vp);function EC(data,e){var t=data.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function AC(data,e,t,n,r){var o=!t,l=data.tree.getNodeByDataIndex(e),c=l.getModel(),f=l.getVisual("style").fill,d=!1===l.isExpand&&0!==l.children.length?f:"#fff",v=data.tree.root,source=l.parentNode===v?l:l.parentNode||l,m=data.getItemGraphicEl(source.dataIndex),y=source.getLayout(),_=m?{x:m.__oldX,y:m.__oldY,rawX:m.__radialOldRawX,rawY:m.__radialOldRawY}:y,x=l.getLayout();o?((t=new Zb(data,e,null,{symbolInnerColor:d,useNameLabel:!0})).x=_.x,t.y=_.y):t.updateData(data,e,null,{symbolInnerColor:d,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=x.rawX,t.__radialRawY=x.rawY,n.add(t),data.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,ds(t,{x:x.x,y:x.y},r);var w=t.getSymbolPath();if("radial"===r.get("layout")){var S=v.children[0],k=S.getLayout(),O=S.children.length,C=void 0,T=void 0;if(x.x===k.x&&!0===l.isExpand&&S.children.length){var E={x:(S.children[0].getLayout().x+S.children[O-1].getLayout().x)/2,y:(S.children[0].getLayout().y+S.children[O-1].getLayout().y)/2};(C=Math.atan2(E.y-k.y,E.x-k.x))<0&&(C=2*Math.PI+C),(T=E.x<k.x)&&(C-=Math.PI)}else(C=Math.atan2(x.y-k.y,x.x-k.x))<0&&(C=2*Math.PI+C),0===l.children.length||0!==l.children.length&&!1===l.isExpand?(T=x.x<k.x)&&(C-=Math.PI):(T=x.x>k.x)||(C-=Math.PI);var A=T?"left":"right",M=c.getModel("label"),I=M.get("rotate"),D=I*(Math.PI/180),P=w.getTextContent();P&&(w.setTextConfig({position:M.get("position")||A,rotation:null==I?-C:D,origin:"center"}),P.setStyle("verticalAlign","middle"))}var N=c.get(["emphasis","focus"]),L="relative"===N?h.e(l.getAncestorsIndices(),l.getDescendantIndices()):"ancestor"===N?l.getAncestorsIndices():"descendant"===N?l.getDescendantIndices():null;L&&(ca(t).focus=L),function(e,t,n,r,o,l,c,f){var d=t.getModel(),v=e.get("edgeShape"),m=e.get("layout"),y=e.getOrient(),_=e.get(["lineStyle","curveness"]),x=e.get("edgeForkPosition"),w=d.getModel("lineStyle").getLineStyle(),S=r.__edge;if("curve"===v)t.parentNode&&t.parentNode!==n&&(S||(S=r.__edge=new pd({shape:PC(m,y,_,o,o)})),ds(S,{shape:PC(m,y,_,l,c)},e));else if("polyline"===v)if("orthogonal"===m){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var k=t.children,O=[],i=0;i<k.length;i++){var C=k[i].getLayout();O.push([C.x,C.y])}S||(S=r.__edge=new CC({shape:{parentPoint:[c.x,c.y],childPoints:[[c.x,c.y]],orient:y,forkPosition:x}})),ds(S,{shape:{parentPoint:[c.x,c.y],childPoints:O}},e)}}else 0;S&&("polyline"!==v||t.isExpand)&&(S.useStyle(h.i({strokeNoScale:!0,fill:null},w)),os(S,d,"lineStyle"),Fa(S),f.add(S))}(r,l,v,t,_,y,x,n),t.__edge&&(t.onHoverStateChange=function(e){if("blur"!==e){var n=l.parentNode&&data.getItemGraphicEl(l.parentNode.dataIndex);n&&1===n.hoverState||ja(t.__edge,e)}})}function MC(e,data,t,n,r){var o=IC(data.tree.root,e),source=o.source,l=o.sourceLayout,c=data.getItemGraphicEl(e.dataIndex);if(c){var h=data.getItemGraphicEl(source.dataIndex).__edge,f=c.__edge||(!1===source.isExpand||1===source.children.length?h:void 0),d=n.get("edgeShape"),v=n.get("layout"),m=n.get("orient"),y=n.get(["lineStyle","curveness"]);f&&("curve"===d?vs(f,{shape:PC(v,m,y,l,l),style:{opacity:0}},n,{cb:function(){t.remove(f)},removeOpt:r}):"polyline"===d&&"orthogonal"===n.get("layout")&&vs(f,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){t.remove(f)},removeOpt:r}))}}function IC(e,t){for(var n,source=t.parentNode===e?t:t.parentNode||t;null==(n=source.getLayout());)source=source.parentNode===e?source:source.parentNode||source;return{source:source,sourceLayout:n}}function DC(data,e,t,n,r){var o=data.tree.getNodeByDataIndex(e),l=IC(data.tree.root,o).sourceLayout,c={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};vs(t,{x:l.x+1,y:l.y+1},r,{cb:function(){n.remove(t),data.setItemGraphicEl(e,null)},removeOpt:c}),t.fadeOut(null,data.hostModel,{fadeLabel:!0,animation:c}),o.children.forEach((function(e){MC(e,data,n,r,c)})),MC(o,data,n,r,c)}function PC(e,t,n,r,o){var l,c,h,f,d,v,m,y;if("radial"===e){d=r.rawX,m=r.rawY,v=o.rawX,y=o.rawY;var _=bC(d,m),x=bC(d,m+(y-m)*n),w=bC(v,y+(m-y)*n),S=bC(v,y);return{x1:_.x||0,y1:_.y||0,x2:S.x||0,y2:S.y||0,cpx1:x.x||0,cpy1:x.y||0,cpx2:w.x||0,cpy2:w.y||0}}return d=r.x,m=r.y,v=o.x,y=o.y,"LR"!==t&&"RL"!==t||(l=d+(v-d)*n,c=m,h=v+(d-v)*n,f=y),"TB"!==t&&"BT"!==t||(l=d,c=m+(y-m)*n,h=v,f=y+(m-y)*n),{x1:d,y1:m,x2:v,y2:y,cpx1:l,cpy1:c,cpx2:h,cpy2:f}}var NC=TC,LC=jr();function jC(e,t){if(LC(data=this).mainData===data){var n=Object(h.m)({},LC(this).datas);n[this.dataType]=t,$C(t,n,e)}else VC(t,this.dataType,LC(this).mainData,e);var data;return t}function RC(e,t){return e.struct&&e.struct.update(),t}function FC(e,t){return Object(h.k)(LC(t).datas,(function(data,n){data!==t&&VC(data.cloneShallow(),n,t,e)})),t}function BC(e){var t=LC(this).mainData;return null==e||null==t?t:LC(t).datas[e]}function zC(){var e=LC(this).mainData;return null==e?[{data:e}]:Object(h.H)(Object(h.F)(LC(e).datas),(function(t){return{type:t,data:LC(e).datas[t]}}))}function $C(e,t,n){LC(e).datas={},Object(h.k)(t,(function(data,t){VC(data,t,e,n)}))}function VC(data,e,t,n){LC(t).datas[e]=data,LC(data).mainData=t,data.dataType=e,n.struct&&(data[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=data),data.getLinkedData=BC,data.getLinkedDataAll=zC}var HC=function(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,$C(t,n,e),Object(h.k)(n,(function(data){Object(h.k)(t.TRANSFERABLE_METHODS,(function(t){data.wrapMethod(t,Object(h.h)(jC,e))}))})),t.wrapMethod("cloneShallow",Object(h.h)(FC,e)),Object(h.k)(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Object(h.h)(RC,e))})),Object(h.b)(n[t.dataType]===t)},qC=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){h.w(e)&&(n=t,t=e,e=null),e=e||{},h.C(e)&&(e={order:e});var r,o=e.order||"preorder",l=this[e.attr||"children"];"preorder"===o&&(r=t.call(n,this));for(var i=0;!r&&i<l.length;i++)l[i].eachNode(e,t,n);"postorder"===o&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var i=0;i<this.children.length;i++){var n=this.children[i];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var i=0,t=this.children,n=t.length;i<n;i++){var r=t[i].getNodeById(e);if(r)return r}},e.prototype.contains=function(e){if(e===this)return!0;for(var i=0,t=this.children,n=t.length;i<n;i++){var r=t[i].contains(e);if(r)return r}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var data=this.hostTree.data;return data.getStore().get(data.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(path){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(path)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,i=0;i<e.length;++i)if(e[i]===this)return i;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}();var WC=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var data=this.data,e=this._nodes,i=0,t=e.length;i<t;i++)e[i].dataIndex=-1;for(i=0,t=data.count();i<t;i++)e[data.getRawIndex(i)].dataIndex=i},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var o=new e(n),l=[],c=1;!function e(t,n){var r=t.value;c=Math.max(c,h.t(r)?r.length:1),l.push(t);var f=new qC(Dr(t.name,""),o);n?function(e,t){var n=t.children;if(e.parentNode===t)return;n.push(e),e.parentNode=t}(f,n):o.root=f,o._nodes.push(f);var d=t.children;if(d)for(var i=0;i<d.length;i++)e(d[i],f)}(t),o.root.updateDepthAndHeight(0);var f=jb(l,{coordDimensions:["value"],dimensionsCount:c}).dimensions,d=new Lb(f,n);return d.initData(l),r&&r(d),HC({mainData:d,struct:o,structAttr:"tree"}),o.update(),o},e}();function UC(e,t,n){if(e&&h.r(t,e.type)>=0){var r=n.getData().tree.root,o=e.targetNode;if(h.C(o)&&(o=r.getNodeById(o)),o&&r.contains(o))return{node:o};var l=e.targetNodeId;if(null!=l&&(o=r.getNodeById(l)))return{node:o}}}function GC(e){for(var path=[];e;)(e=e.parentNode)&&path.push(e);return path.reverse()}function YC(e,t){var n=GC(e);return h.r(n,t)>=0}function KC(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var XC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return l(t,e),t.prototype.getInitialData=function(option){var e={name:option.name,children:option.data},t=option.leaves||{},n=new Ys(t,this,this.ecModel),r=WC.createTree(e,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var o=r.getNodeByDataIndex(t);return o&&o.children.length&&o.isExpand||(e.parentModel=n),e}))}));var o=0;r.eachNode("preorder",(function(e){e.depth>o&&(o=e.depth)}));var l=option.expandAndCollapse&&option.initialTreeDepth>=0?option.initialTreeDepth:o;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,o=r.root.children[0],l=r.getNodeByDataIndex(e),c=l.getValue(),h=l.name;l&&l!==o;)h=l.parentNode.name+"."+h,l=l.parentNode;return Dh("nameValue",{name:h,value:c,noValue:isNaN(c)||null==c})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=KC(r,this),n.collapsed=!r.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(tf),ZC=XC;function JC(e,t){for(var n,r=[e];n=r.pop();)if(t(n),n.isExpand){var o=n.children;if(o.length)for(var i=o.length-1;i>=0;i--)r.push(o[i])}}function QC(e,t){e.eachSeriesByType("tree",(function(e){!function(e,t){var n=function(e,t){return Ql(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=n;var r=e.get("layout"),o=0,l=0,c=null;"radial"===r?(o=2*Math.PI,l=Math.min(n.height,n.width)/2,c=yC((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(o=n.width,l=n.height,c=yC());var h=e.getData().tree.root,f=h.children[0];if(f){!function(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,o=[t];n=o.pop();)if(r=n.children,n.isExpand&&r.length)for(var i=r.length-1;i>=0;i--){var l=r[i];l.hierNode={defaultAncestor:null,ancestor:l,prelim:0,modifier:0,change:0,shift:0,i:i,thread:null},o.push(l)}}(h),function(e,t,n){for(var r,o=[e],l=[];r=o.pop();)if(l.push(r),r.isExpand){var c=r.children;if(c.length)for(var i=0;i<c.length;i++)o.push(c[i])}for(;r=l.pop();)t(r,n)}(f,vC,c),h.hierNode.modifier=-f.hierNode.prelim,JC(f,mC);var d=f,v=f,m=f;JC(f,(function(e){var t=e.getLayout().x;t<d.getLayout().x&&(d=e),t>v.getLayout().x&&(v=e),e.depth>m.depth&&(m=e)}));var y=d===v?1:c(d,v)/2,_=y-d.getLayout().x,x=0,w=0,S=0,k=0;if("radial"===r)x=o/(v.getLayout().x+y+_),w=l/(m.depth-1||1),JC(f,(function(e){S=(e.getLayout().x+_)*x,k=(e.depth-1)*w;var t=bC(S,k);e.setLayout({x:t.x,y:t.y,rawX:S,rawY:k},!0)}));else{var O=e.getOrient();"RL"===O||"LR"===O?(w=l/(v.getLayout().x+y+_),x=o/(m.depth-1||1),JC(f,(function(e){k=(e.getLayout().x+_)*w,S="LR"===O?(e.depth-1)*x:o-(e.depth-1)*x,e.setLayout({x:S,y:k},!0)}))):"TB"!==O&&"BT"!==O||(x=o/(v.getLayout().x+y+_),w=l/(m.depth-1||1),JC(f,(function(e){S=(e.getLayout().x+_)*x,k="TB"===O?(e.depth-1)*w:l-(e.depth-1)*w,e.setLayout({x:S,y:k},!0)})))}}}(e,t)}))}function eT(e){e.eachSeriesByType("tree",(function(e){var data=e.getData();data.tree.eachNode((function(e){var style=e.getModel().getModel("itemStyle").getItemStyle(),t=data.ensureUniqueItemVisual(e.dataIndex,"style");Object(h.m)(t,style)}))}))}var tT=["treemapZoomToNode","treemapRender","treemapMove"];function nT(e){var t=e.getData().tree,n={};t.eachNode((function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var o=Pu(e.ecModel,r.name||r.dataIndex+"",n);t.setVisual("decal",o)}))}var rT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return l(t,e),t.prototype.getInitialData=function(option,e){var t={name:option.name,children:option.data};iT(t);var n=option.levels||[],r=this.designatedVisualItemStyle={},o=new Ys({itemStyle:r},this,e);n=option.levels=function(e,t){var n,r,o=kr(t.get("color")),l=kr(t.get(["aria","decal","decals"]));if(!o)return;e=e||[],h.k(e,(function(e){var t=new Ys(e),o=t.get("color"),l=t.get("decal");(t.get(["itemStyle","color"])||o&&"none"!==o)&&(n=!0),(t.get(["itemStyle","decal"])||l&&"none"!==l)&&(r=!0)}));var c=e[0]||(e[0]={});n||(c.color=o.slice());!r&&l&&(c.decal=l.slice());return e}(n,e);var l=h.H(n||[],(function(t){return new Ys(t,o,e)}),this),c=WC.createTree(t,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=c.getNodeByDataIndex(t),r=n?l[n.depth]:null;return e.parentModel=r||o,e}))}));return c.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var data=this.getData(),r=this.getRawValue(e);return Dh("nameValue",{name:data.getName(e),value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=KC(r,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},h.m(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=h.f(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){nT(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(tf);function iT(e){var t=0;h.k(e.children,(function(e){iT(e);var n=e.value;h.t(n)&&(n=n[0]),t+=n}));var n=e.value;h.t(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),h.t(e.value)?e.value[0]=n:e.value=n}var oT=rT;function aT(e,t,n,r,head,o){var l=[[head?e:e-5,t],[e+n,t],[e+n,t+r],[head?e:e-5,t+r]];return!o&&l.splice(2,0,[e+n+5,t+r/2]),!head&&l.push([e,t+r/2]),l}function sT(e,t,n){ca(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&KC(n,t)}}var lT=function(){function e(e){this.group=new qn,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var o=e.getModel("breadcrumb"),l=this.group;if(l.removeAll(),o.get("show")&&n){var c=o.getModel("itemStyle"),h=o.getModel("emphasis"),f=c.getModel("textStyle"),d=h.getModel(["itemStyle","textStyle"]),v={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,v,f),this._renderContent(e,v,c,h,f,d,r),eu(l,v.pos,v.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var text=Dr(r.getModel().get("name"),""),o=n.getTextRect(text),l=Math.max(o.width+16,t.emptyItemWidth);t.totalWidth+=l+8,t.renderList.push({node:r,text:text,width:l})}},e.prototype._renderContent=function(e,t,n,r,o,l,c){for(var f,d,v,m,y,_,x,w,S,k=0,O=t.emptyItemWidth,C=e.get(["breadcrumb","height"]),T=(f=t.pos,d=t.box,m=d.width,y=d.height,_=Zn(f.left,m),x=Zn(f.top,y),w=Zn(f.right,m),S=Zn(f.bottom,y),(isNaN(_)||isNaN(parseFloat(f.left)))&&(_=0),(isNaN(w)||isNaN(parseFloat(f.right)))&&(w=m),(isNaN(x)||isNaN(parseFloat(f.top)))&&(x=0),(isNaN(S)||isNaN(parseFloat(f.bottom)))&&(S=y),v=$l(v||0),{width:Math.max(w-_-v[1]-v[3],0),height:Math.max(S-x-v[0]-v[2],0)}),E=t.totalWidth,A=t.renderList,M=r.getModel("itemStyle").getItemStyle(),i=A.length-1;i>=0;i--){var I=A[i],D=I.node,P=I.width,text=I.text;E>T.width&&(E-=P-O,P=O,text=null);var N=new ed({shape:{points:aT(k,0,P,C,i===A.length-1,0===i)},style:Object(h.i)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ua({style:Os(o,{text:text})}),textConfig:{position:"inside"},z2:1e5,onclick:Object(h.h)(c,D)});N.disableLabelAnimation=!0,N.getTextContent().ensureState("emphasis").style=Os(l,{text:text}),N.ensureState("emphasis").style=M,ts(N,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(N),sT(N,e,D),k+=P+8}},e.prototype.remove=function(){this.group.removeAll()},e}(),uT=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,o){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:o}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();var cT=qn,hT=Go,fT="label",dT="upperLabel",pT=ti([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),gT=function(e){var t=pT(e);return t.stroke=t.fill=t.lineWidth=null,t},vT=jr(),mT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return l(t,e),t.prototype.render=function(e,t,n,r){var o=t.findComponents({mainType:"series",subType:"treemap",query:r});if(!(Object(h.r)(o,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var l=UC(r,["treemapZoomToNode","treemapRootToNode"],e),c=r&&r.type,f=e.layoutInfo,d=!this._oldTree,v=this._storage,m="treemapRootToNode"===c&&l&&v?{rootNodeGroup:v.nodeGroup[l.node.getRawIndex()],direction:r.direction}:null,y=this._giveContainerGroup(f),_=e.get("animation"),x=this._doRender(y,e,m);!_||d||c&&"treemapZoomToNode"!==c&&"treemapRootToNode"!==c?x.renderFinally():this._doAnimation(y,x,e,m),this._resetController(n),this._renderBreadcrumb(e,n,l)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new cT,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,o=this._oldTree,l={nodeGroup:[],background:[],content:[]},c={nodeGroup:[],background:[],content:[]},f=this._storage,d=[];function v(e,r,o,v){return function(e,t,n,r,o,l,c,f,d,v){if(!c)return;var m=c.getLayout(),data=e.getData(),y=c.getModel();if(data.setItemGraphicEl(c.dataIndex,null),!m||!m.isInView)return;var _=m.width,x=m.height,w=m.borderWidth,S=m.invisible,k=c.getRawIndex(),O=f&&f.getRawIndex(),C=c.viewChildren,T=m.upperHeight,E=C&&C.length,A=y.getModel("itemStyle"),M=y.getModel(["emphasis","itemStyle"]),I=y.getModel(["blur","itemStyle"]),D=y.getModel(["select","itemStyle"]),P=A.get("borderRadius")||0,N=G("nodeGroup",cT);if(!N)return;if(d.add(N),N.x=m.x||0,N.y=m.y||0,N.markRedraw(),vT(N).nodeWidth=_,vT(N).nodeHeight=x,m.isAboveViewRoot)return N;var L=G("background",hT,v,20);L&&$(N,L,E&&m.upperLabelHeight);var j=y.getModel("emphasis"),R=j.get("focus"),F=j.get("blurScope"),B=j.get("disabled"),z="ancestor"===R?c.getAncestorsIndices():"descendant"===R?c.getDescendantIndices():R;if(E)ss(N)&&as(N,!1),L&&(as(L,!B),data.setItemGraphicEl(c.dataIndex,L),ns(L,z,F));else{var content=G("content",hT,v,30);content&&V(N,content),L.disableMorphing=!0,L&&ss(L)&&as(L,!1),as(N,!B),data.setItemGraphicEl(c.dataIndex,N),ns(N,z,F)}return N;function $(t,n,r){var o=ca(n);if(o.dataIndex=c.dataIndex,o.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:_,height:x,r:P}),S)H(n);else{n.invisible=!1;var style=c.getVisual("style"),l=style.stroke,h=gT(A);h.fill=l;var f=pT(M);f.fill=M.get("borderColor");var d=pT(I);d.fill=I.get("borderColor");var v=pT(D);if(v.fill=D.get("borderColor"),r){var m=_-2*w;W(n,l,style.opacity,{x:w,y:0,width:m,height:T})}else n.removeTextContent();n.setStyle(h),n.ensureState("emphasis").style=f,n.ensureState("blur").style=d,n.ensureState("select").style=v,Fa(n)}t.add(n)}function V(t,content){var n=ca(content);n.dataIndex=c.dataIndex,n.seriesIndex=e.seriesIndex;var r=Math.max(_-2*w,0),o=Math.max(x-2*w,0);if(content.culling=!0,content.setShape({x:w,y:w,width:r,height:o,r:P}),S)H(content);else{content.invisible=!1;var l=c.getVisual("style"),h=l.fill,f=gT(A);f.fill=h,f.decal=l.decal;var d=pT(M),v=pT(I),m=pT(D);W(content,h,l.opacity,null),content.setStyle(f),content.ensureState("emphasis").style=d,content.ensureState("blur").style=v,content.ensureState("select").style=m,Fa(content)}t.add(content)}function H(element){!element.invisible&&l.push(element)}function W(t,n,r,o){var l=y.getModel(o?dT:fT),f=Dr(y.get("name"),null),d=l.getShallow("show");Ss(t,ks(y,o?dT:fT),{defaultText:d?f:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:c.dataIndex});var v=t.getTextContent();if(v){var _=v.style,x=Object(h.M)(_.padding||0);o&&(t.setTextConfig({layoutRect:o}),v.disableLabelLayout=!0),v.beforeUpdate=function(){var e=Math.max((o?o.width:t.shape.width)-x[1]-x[3],0),n=Math.max((o?o.height:t.shape.height)-x[0]-x[2],0);_.width===e&&_.height===n||v.setStyle({width:e,height:n})},_.truncateMinChar=2,_.lineOverflow="truncate",U(_,o,m);var w=v.getState("emphasis");U(w?w.style:null,o,m)}}function U(style,t,n){var text=style?style.text:null;if(!t&&n.isLeafRoot&&null!=text){var r=e.get("drillDownIcon",!0);style.text=r?r+" "+text:text}}function G(e,r,l,c){var element=null!=O&&n[e][O],h=o[e];return element?(n[e][O]=null,Y(h,element)):S||((element=new r)instanceof Mi&&(element.z2=function(e,t){return 100*e+t}(l,c)),K(h,element)),t[e][k]=element}function Y(e,element){var t=e[k]={};element instanceof cT?(t.oldX=element.x,t.oldY=element.y):t.oldShape=Object(h.m)({},element.shape)}function K(e,element){var t=e[k]={},n=c.parentNode,l=element instanceof qn;if(n&&(!r||"drillDown"===r.direction)){var h=0,f=0,d=o.background[n.getRawIndex()];!r&&d&&d.oldShape&&(h=d.oldShape.width,f=d.oldShape.height),l?(t.oldX=0,t.oldY=f):t.oldShape={x:h,y:f,width:0,height:0}}t.fadein=!l}}(t,c,f,n,l,d,e,r,o,v)}!function e(t,n,r,o,l){o?(n=t,Object(h.k)(t,(function(e,t){!e.isRemoved()&&f(t,t)}))):new cb(n,t,c,c).add(f).update(f).remove(Object(h.h)(f,null)).execute();function c(e){return e.getId()}function f(c,h){var f=null!=c?t[c]:null,d=null!=h?n[h]:null,m=v(f,d,r,l);m&&e(f&&f.viewChildren||[],d&&d.viewChildren||[],m,o,l+1)}}(r.root?[r.root]:[],o&&o.root?[o.root]:[],e,r===o||!o,0);var m=function(e){var t={nodeGroup:[],background:[],content:[]};return e&&Object(h.k)(e,(function(e,n){var r=t[n];Object(h.k)(e,(function(e){e&&(r.push(e),vT(e).willDelete=!0)}))})),t}(f);return this._oldTree=r,this._storage=c,{lastsForAnimation:l,willDeleteEls:m,renderFinally:function(){Object(h.k)(m,(function(e){Object(h.k)(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(h.k)(d,(function(e){e.invisible=!0,e.dirty()}))}}},t.prototype._doAnimation=function(e,t,n,r){var o=n.get("animationDurationUpdate"),l=n.get("animationEasing"),c=(Object(h.w)(o)?0:o)||0,f=(Object(h.w)(l)?null:l)||"cubicOut",d=new uT;Object(h.k)(t.willDeleteEls,(function(e,t){Object(h.k)(e,(function(e,n){if(!e.invisible){var o,l=e.parent,h=vT(l);if(r&&"drillDown"===r.direction)o=l===r.rootNodeGroup?{shape:{x:0,y:0,width:h.nodeWidth,height:h.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var v=0,m=0;h.willDelete||(v=h.nodeWidth/2,m=h.nodeHeight/2),o="nodeGroup"===t?{x:v,y:m,style:{opacity:0}}:{shape:{x:v,y:m,width:0,height:0},style:{opacity:0}}}o&&d.add(e,o,c,0,f)}}))})),Object(h.k)(this._storage,(function(e,n){Object(h.k)(e,(function(e,r){var o=t.lastsForAnimation[n][r],l={};o&&(e instanceof qn?null!=o.oldX&&(l.x=e.x,l.y=e.y,e.x=o.oldX,e.y=o.oldY):(o.oldShape&&(l.shape=Object(h.m)({},e.shape),e.setShape(o.oldShape)),o.fadein?(e.setStyle("opacity",0),l.style={opacity:1}):1!==e.style.opacity&&(l.style={opacity:1})),d.add(e,l,c,0,f))}))}),this),this._state="animating",d.finished(Object(h.c)((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||((t=this._controller=new Ek(e.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",Object(h.c)(this._onPan,this)),t.on("zoom",Object(h.c)(this._onZoom,this)));var rect=new _e(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return rect.contain(t,n)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var rect=new _e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo,c=[1,0,0,1,0,0];se(c,c,[-(t-=l.x),-(n-=l.y)]),ue(c,c,[e.scale,e.scale]),se(c,c,[t,n]),rect.applyTransform(c),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:rect.x,y:rect.y,width:rect.width,height:rect.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var o=r.node;if(o.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var l=o.hostTree.data.getItemModel(o.dataIndex),link=l.get("link",!0),c=l.get("target",!0)||"blank";link&&Gl(link,c)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new lT(this.group))).render(e,t,n.node,(function(t){"animating"!==r._state&&(YC(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(r){var o=this._storage.background[r.getRawIndex()];if(o){var l=o.transformCoordToLocal(e,t),c=o.shape;if(!(c.x<=l[0]&&l[0]<=c.x+c.width&&c.y<=l[1]&&l[1]<=c.y+c.height))return!1;n={node:r,offsetX:l[0],offsetY:l[1]}}}),this),n},t.type="treemap",t}(vp);var yT=mT,bT=h.k,_T=h.A,xT=-1,wT=function(){function e(option){var t=option.mappingMethod,n=option.type,r=this.option=h.d(option);this.type=n,this.mappingMethod=t,this._normalizeData=DT[t];var o=e.visualHandlers[n];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[t],"piecewise"===t?(ST(r),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,h.k(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}(r)):"category"===t?r.categories?function(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(bT(t,(function(e,t){n[e]=t})),!h.t(r)){var o=[];h.A(r)?bT(r,(function(e,t){var r=n[t];o[null!=r?r:xT]=e})):o[-1]=r,r=IT(e,o)}for(var i=t.length-1;i>=0;i--)null==r[i]&&(delete n[t[i]],t.pop())}(r):ST(r,!0):(h.b("linear"!==t||r.dataExtent),ST(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return h.c(this._normalizeData,this)},e.listVisualTypes=function(){return h.F(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){h.A(e)?h.k(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var o,l=h.t(t)?[]:h.A(t)?{}:(o=!0,null);return e.eachVisual(t,(function(e,t){var c=n.call(r,e,t);o?l=c:l[t]=c})),l},e.retrieveVisuals=function(t){var n,r={};return t&&bT(e.visualHandlers,(function(e,o){t.hasOwnProperty(o)&&(r[o]=t[o],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(h.t(e))e=e.slice();else{if(!_T(e))return[];var t=[];bT(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,o=1/0,i=0,l=t.length;i<l;i++){var c=t[i].value;if(null!=c){if(c===e||h.C(c)&&c===e+"")return i;n&&m(c,i)}}for(i=0,l=t.length;i<l;i++){var f=t[i],d=f.interval,v=f.close;if(d){if(d[0]===-1/0){if(PT(v[1],e,d[1]))return i}else if(d[1]===1/0){if(PT(v[0],d[0],e))return i}else if(PT(v[0],d[0],e)&&PT(v[1],e,d[1]))return i;n&&m(d[0],i),n&&m(d[1],i)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function m(t,n){var l=Math.abs(t-e);l<o&&(o=l,r=n)}},e.visualHandlers={color:{applyVisual:CT("color"),getColorMapper:function(){var e=this.option;return h.c("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),TT.call(this,e)}:function(t,n,r){var o=!!r;return!n&&(t=this._normalizeData(t)),r=_t.a(t,e.parsedVisual,r),o?r:_t.h(r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return _t.h(_t.a(e,this.option.parsedVisual),"rgba")},category:TT,piecewise:function(e,t){var n=MT.call(this,t);return null==n&&(n=_t.h(_t.a(e,this.option.parsedVisual),"rgba")),n},fixed:ET}},colorHue:kT((function(e,t){return _t.f(e,t)})),colorSaturation:kT((function(e,t){return _t.f(e,null,t)})),colorLightness:kT((function(e,t){return _t.f(e,null,null,t)})),colorAlpha:kT((function(e,t){return _t.e(e,t)})),decal:{applyVisual:CT("decal"),_normalizedToVisual:{linear:null,category:TT,piecewise:null,fixed:null}},opacity:{applyVisual:CT("opacity"),_normalizedToVisual:AT([0,1])},liftZ:{applyVisual:CT("liftZ"),_normalizedToVisual:{linear:ET,category:ET,piecewise:ET,fixed:ET}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:OT,category:TT,piecewise:function(e,t){var n=MT.call(this,t);return null==n&&(n=OT.call(this,e)),n},fixed:ET}},symbolSize:{applyVisual:CT("symbolSize"),_normalizedToVisual:AT([0,1])}},e}();function ST(e,t){var n=e.visual,r=[];h.A(n)?bT(n,(function(e){r.push(e)})):null!=n&&r.push(n);t||1!==r.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(r[1]=r[0]),IT(e,r)}function kT(e){return{applyVisual:function(t,n,r){var o=this.mapValueToVisual(t);r("color",e(n("color"),o))},_normalizedToVisual:AT([0,1])}}function OT(e){var t=this.option.visual;return t[Math.round(Xn(e,[0,1],[0,t.length-1],!0))]||{}}function CT(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function TT(e){var t=this.option.visual;return t[this.option.loop&&e!==xT?e%t.length:e]}function ET(){return this.option.visual[0]}function AT(e){return{linear:function(t){return Xn(t,e,this.option.visual,!0)},category:TT,piecewise:function(t,n){var r=MT.call(this,n);return null==r&&(r=Xn(t,e,this.option.visual,!0)),r},fixed:ET}}function MT(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[wT.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function IT(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=h.H(t,(function(e){var t=_t.g(e);return t||[0,0,0,1]}))),t}var DT={linear:function(e){return Xn(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=wT.findPieceIndex(e,t,!0);if(null!=n)return Xn(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?xT:t},fixed:h.L};function PT(e,a,b){return e?a<=b:a<b}var NT=wT,LT=jr(),jT={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||RT(t,{},e.getViewRoot().getAncestors(),e)}};function RT(e,t,n,r){var o=e.getModel(),l=e.getLayout(),data=e.hostTree.data;if(l&&!l.invisible&&l.isInView){var c,f=o.getModel("itemStyle"),d=function(e,t,n){var r=Object(h.m)({},t),o=n.designatedVisualItemStyle;return Object(h.k)(["color","colorAlpha","colorSaturation"],(function(n){o[n]=t[n];var l=e.get(n);o[n]=null,null!=l&&(r[n]=l)})),r}(f,t,r),v=data.ensureUniqueItemVisual(e.dataIndex,"style"),m=f.get("borderColor"),y=f.get("borderColorSaturation");null!=y&&(m=function(e,t){return null!=t?Object(_t.f)(t,null,null,e):null}(y,c=FT(d))),v.stroke=m;var _=e.viewChildren;if(_&&_.length){var x=function(e,t,n,r,o,l){if(!l||!l.length)return;var c=zT(t,"color")||null!=o.color&&"none"!==o.color&&(zT(t,"colorAlpha")||zT(t,"colorSaturation"));if(!c)return;var h=t.get("visualMin"),f=t.get("visualMax"),d=n.dataExtent.slice();null!=h&&h<d[0]&&(d[0]=h),null!=f&&f>d[1]&&(d[1]=f);var v=t.get("colorMappingBy"),m={type:c.name,dataExtent:d,visual:c.range};"color"!==m.type||"index"!==v&&"id"!==v?m.mappingMethod="linear":(m.mappingMethod="category",m.loop=!0);var y=new NT(m);return LT(y).drColorMappingBy=v,y}(0,o,l,0,d,_);Object(h.k)(_,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var l=function(e,t,n,r,o,l){var c=Object(h.m)({},t);if(o){var f=o.type,d="color"===f&&LT(o).drColorMappingBy,v="index"===d?r:"id"===d?l.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));c[f]=o.mapValueToVisual(v)}return c}(o,d,e,t,x,r);RT(e,l,n,r)}}))}else c=FT(d),v.fill=c}}function FT(e){var t=BT(e,"color");if(t){var n=BT(e,"colorAlpha"),r=BT(e,"colorSaturation");return r&&(t=Object(_t.f)(t,null,null,r)),n&&(t=Object(_t.e)(t,n)),t}}function BT(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function zT(e,t){var n=e.get(t);return Object(h.t)(n)&&n.length?{name:t,range:n}:null}var $T=Math.max,VT=Math.min,HT=h.O,qT=h.k,WT=["itemStyle","borderWidth"],UT=["itemStyle","gapWidth"],GT=["upperLabel","show"],YT=["upperLabel","height"],KT={seriesType:"treemap",reset:function(e,t,n,r){var o=n.getWidth(),l=n.getHeight(),c=e.option,f=Ql(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),d=c.size||[],v=Zn(HT(f.width,d[0]),o),m=Zn(HT(f.height,d[1]),l),y=r&&r.type,_=UC(r,["treemapZoomToNode","treemapRootToNode"],e),x="treemapRender"===y||"treemapMove"===y?r.rootRect:null,w=e.getViewRoot(),S=GC(w);if("treemapMove"!==y){var k="treemapZoomToNode"===y?function(e,t,n,r,o){var l,c=(t||{}).node,h=[r,o];if(!c||c===n)return h;var f=r*o,area=f*e.option.zoomToNodeRatio;for(;l=c.parentNode;){for(var d=0,v=l.children,i=0,m=v.length;i<m;i++)d+=v[i].getValue();var y=c.getValue();if(0===y)return h;area*=d/y;var _=l.getModel(),x=_.get(WT);(area+=4*x*x+(3*x+Math.max(x,eE(_)))*Math.pow(area,.5))>or&&(area=or),c=l}area<f&&(area=f);var w=Math.pow(area/f,.5);return[r*w,o*w]}(e,_,w,v,m):x?[x.width,x.height]:[v,m],O=c.sort;O&&"asc"!==O&&"desc"!==O&&(O="desc");var C={squareRatio:c.squareRatio,sort:O,leafDepth:c.leafDepth};w.hostTree.clearLayouts();var T={x:0,y:0,width:k[0],height:k[1],area:k[0]*k[1]};w.setLayout(T),XT(w,C,!1,0),T=w.getLayout(),qT(S,(function(e,t){var n=(S[t+1]||w).getValue();e.setLayout(h.m({dataExtent:[n,n],borderWidth:0,upperHeight:0},T))}))}var E=e.getData().tree.root;E.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var o=n.node,l=o.getLayout();if(!l)return r;var c=[l.width/2,l.height/2],h=o;for(;h;){var f=h.getLayout();c[0]+=f.x,c[1]+=f.y,h=h.parentNode}return{x:e.width/2-c[0],y:e.height/2-c[1]}}(f,x,_),!0),e.setLayoutInfo(f),QT(E,new _e(-f.x,-f.y,o,l),S,w,0)}};function XT(e,t,n,r){var o,l;if(!e.isRemoved()){var c=e.getLayout();o=c.width,l=c.height;var f=e.getModel(),d=f.get(WT),v=f.get(UT)/2,m=eE(f),y=Math.max(d,m),_=d-v,x=y-v;e.setLayout({borderWidth:d,upperHeight:y,upperLabelHeight:m},!0);var w=(o=$T(o-2*_,0))*(l=$T(l-_-x,0)),S=function(e,t,n,r,o,l){var c=e.children||[],f=r.sort;"asc"!==f&&"desc"!==f&&(f=null);var d=null!=r.leafDepth&&r.leafDepth<=l;if(o&&!d)return e.viewChildren=[];c=h.n(c,(function(e){return!e.isRemoved()})),function(e,t){t&&e.sort((function(a,b){var e="asc"===t?a.getValue()-b.getValue():b.getValue()-a.getValue();return 0===e?"asc"===t?a.dataIndex-b.dataIndex:b.dataIndex-a.dataIndex:e}))}(c,f);var v=function(e,t,n){for(var r=0,i=0,o=t.length;i<o;i++)r+=t[i].getValue();var l,c=e.get("visualDimension");t&&t.length?"value"===c&&n?(l=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&l.reverse()):(l=[1/0,-1/0],qT(t,(function(e){var t=e.getValue(c);t<l[0]&&(l[0]=t),t>l[1]&&(l[1]=t)}))):l=[NaN,NaN];return{sum:r,dataExtent:l}}(t,c,f);if(0===v.sum)return e.viewChildren=[];if(v.sum=function(e,t,n,r,o){if(!r)return n;for(var l=e.get("visibleMin"),c=o.length,h=c,i=c-1;i>=0;i--){var f=o["asc"===r?c-i-1:i].getValue();f/n*t<l&&(h=i,n-=f)}return"asc"===r?o.splice(0,c-h):o.splice(h,c-h),n}(t,n,v.sum,f,c),0===v.sum)return e.viewChildren=[];for(var i=0,m=c.length;i<m;i++){var area=c[i].getValue()/v.sum*n;c[i].setLayout({area:area})}d&&(c.length&&e.setLayout({isLeafRoot:!0},!0),c.length=0);return e.viewChildren=c,e.setLayout({dataExtent:v.dataExtent},!0),c}(e,f,w,t,n,r);if(S.length){var rect={x:_,y:x,width:o,height:l},k=VT(o,l),O=1/0,C=[];C.area=0;for(var i=0,T=S.length;i<T;){var E=S[i];C.push(E),C.area+=E.getLayout().area;var A=ZT(C,k,t.squareRatio);A<=O?(i++,O=A):(C.area-=C.pop().getLayout().area,JT(C,k,rect,v,!1),k=VT(rect.width,rect.height),C.length=C.area=0,O=1/0)}if(C.length&&JT(C,k,rect,v,!0),!n){var M=f.get("childrenVisibleMin");null!=M&&w<M&&(n=!0)}for(i=0,T=S.length;i<T;i++)XT(S[i],t,n,r+1)}}}function ZT(e,t,n){for(var r=0,o=1/0,i=0,area=void 0,l=e.length;i<l;i++)(area=e[i].getLayout().area)&&(area<o&&(o=area),area>r&&(r=area));var c=e.area*e.area,h=t*t*n;return c?$T(h*r/c,c/(h*o)):1/0}function JT(e,t,rect,n,r){var o=t===rect.width?0:1,l=1-o,c=["x","y"],h=["width","height"],f=rect[c[o]],d=t?e.area/t:0;(r||d>rect[h[l]])&&(d=rect[h[l]]);for(var i=0,v=e.length;i<v;i++){var m=e[i],y={},_=d?m.getLayout().area/d:0,x=y[h[l]]=$T(d-2*n,0),w=rect[c[o]]+rect[h[o]]-f,S=i===v-1||w<_?w:_,k=y[h[o]]=$T(S-2*n,0);y[c[l]]=rect[c[l]]+VT(n,x/2),y[c[o]]=f+VT(n,k/2),f+=S,m.setLayout(y,!0)}rect[c[l]]+=d,rect[h[l]]-=d}function QT(e,t,n,r,o){var l=e.getLayout(),c=n[o],h=c&&c===e;if(!(c&&!h||o===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!h&&!t.intersect(l),isAboveViewRoot:h},!0);var f=new _e(t.x-l.x,t.y-l.y,t.width,t.height);qT(e.viewChildren||[],(function(e){QT(e,f,n,r,o+1)}))}}function eE(e){return e.get(GT)?e.get(YT):0}function tE(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),data=e.getGraph().data,r=n.mapArray(n.getName);data.filterSelf((function(e){var n=data.getItemModel(e).getShallow("category");if(null!=n){Object(h.z)(n)&&(n=r[n]);for(var i=0;i<t.length;i++)if(!t[i].isSelected(n))return!1}return!0}))}))}function nE(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),data=e.getData(),r={};n.each((function(o){var l=n.getName(o);r["ec-"+l]=o;var c=n.getItemModel(o),style=c.getModel("itemStyle").getItemStyle();style.fill||(style.fill=e.getColorFromPalette(l,t)),n.setItemVisual(o,"style",style);for(var h=["symbol","symbolSize","symbolKeepAspect"],i=0;i<h.length;i++){var f=c.getShallow(h[i],!0);null!=f&&n.setItemVisual(o,h[i],f)}})),n.count()&&data.each((function(e){var t=data.getItemModel(e).getShallow("category");if(null!=t){Object(h.C)(t)&&(t=r["ec-"+t]);var o=n.getItemVisual(t,"style"),style=data.ensureUniqueItemVisual(e,"style");Object(h.m)(style,o);for(var l=["symbol","symbolSize","symbolKeepAspect"],i=0;i<l.length;i++)data.setItemVisual(e,l[i],n.getItemVisual(t,l[i]))}}))}))}function rE(a){return a instanceof Array||(a=[a,a]),a}function iE(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),r=rE(e.get("edgeSymbol")),o=rE(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",o&&o[0]),n.setVisual("toSymbolSize",o&&o[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var r=n.getItemModel(e),o=t.getEdgeByIndex(e),l=rE(r.getShallow("symbol",!0)),c=rE(r.getShallow("symbolSize",!0)),style=r.getModel("lineStyle").getLineStyle(),f=n.ensureUniqueItemVisual(e,"style");switch(Object(h.m)(f,style),f.stroke){case"source":var d=o.node1.getVisual("style");f.stroke=d&&d.fill;break;case"target":d=o.node2.getVisual("style");f.stroke=d&&d.fill}l[0]&&o.setVisual("fromSymbol",l[0]),l[1]&&o.setVisual("toSymbol",l[1]),c[0]&&o.setVisual("fromSymbolSize",c[0]),c[1]&&o.setVisual("toSymbolSize",c[1])}))}))}var oE="--\x3e",aE=function(e){return e.get("autoCurveness")||null},sE=function(e,t){var n=aE(e),r=20,o=[];if(h.z(n))r=n;else if(h.t(n))return void(e.__curvenessList=n);t>r&&(r=t);var l=r%2?r+2:r+3;o=[];for(var i=0;i<l;i++)o.push((i%2?i+1:i)/10*(i%2?-1:1));e.__curvenessList=o},lE=function(e,t,n){var source=[e.id,e.dataIndex].join("."),r=[t.id,t.dataIndex].join(".");return[n.uid,source,r].join(oE)},uE=function(e){var t=e.split(oE);return[t[0],t[2],t[1]].join(oE)},cE=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function hE(e,t,n,r){var o=aE(t),l=h.t(o);if(!o)return null;var c=function(e,t){var n=lE(e.node1,e.node2,t);return t.__edgeMap[n]}(e,t);if(!c)return null;for(var f=-1,i=0;i<c.length;i++)if(c[i]===n){f=i;break}var d=function(e,t){return cE(lE(e.node1,e.node2,t),t)+cE(lE(e.node2,e.node1,t),t)}(e,t);sE(t,d),e.lineStyle=e.lineStyle||{};var v=lE(e.node1,e.node2,t),m=t.__curvenessList,y=l||d%2?0:1;if(c.isForward)return m[y+f];var _=uE(v),x=cE(_,t),w=m[f+x+y];return r?l?o&&0===o[0]?(x+y)%2?w:-w:((x%2?0:1)+y)%2?w:-w:(x+y)%2?w:-w:m[f+x+y]}function fE(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),dE(n,e)}}function dE(e,t){e.eachEdge((function(e,n){var r=h.Q(e.getModel().get(["lineStyle","curveness"]),-hE(e,t,n,!0),0),o=v(e.node1.getLayout()),l=v(e.node2.getLayout()),c=[o,l];+r&&c.push([(o[0]+l[0])/2-(o[1]-l[1])*r,(o[1]+l[1])/2-(l[0]-o[0])*r]),e.setLayout(c)}))}function pE(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),o=[];Object(h.k)(n.dimensions,(function(e){o=o.concat(r.mapDimensionsAll(e))}));for(var l=0;l<r.count();l++){for(var c=[],f=!1,i=0;i<o.length;i++){var d=r.get(o[i],l);isNaN(d)||(f=!0),c.push(d)}f?r.setItemLayout(l,n.dataToPoint(c)):r.setItemLayout(l,[NaN,NaN])}dE(r.graph,e)}else t&&"none"!==t||fE(e)}))}function gE(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX;return((t.getZoom()-1)*n+1)/r}function vE(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var mE=Math.PI,yE=[];function bE(e,t,n,r){var o=e.coordinateSystem;if(!o||"view"===o.type){var rect=o.getBoundingRect(),l=e.getData(),c=l.graph,f=rect.width/2+rect.x,d=rect.height/2+rect.y,m=Math.min(rect.width,rect.height)/2,y=l.count();if(l.setLayout({cx:f,cy:d}),y){if(n){var _=o.pointToData(r),x=_[0],k=_[1],O=[x-f,k-d];S(O,O),w(O,O,m),n.setLayout([f+O[0],d+O[1]],!0),xE(n,e.get(["circular","rotateLabel"]),f,d)}_E[t](e,c,l,m,f,d,y),c.eachEdge((function(t,n){var r,o=h.Q(t.getModel().get(["lineStyle","curveness"]),hE(t,e,n),0),l=v(t.node1.getLayout()),c=v(t.node2.getLayout()),m=(l[0]+c[0])/2,y=(l[1]+c[1])/2;+o&&(r=[f*(o*=3)+m*(1-o),d*o+y*(1-o)]),t.setLayout([l,c,r])}))}}}var _E={value:function(e,t,n,r,o,l,c){var h=0,f=n.getSum("value"),d=2*Math.PI/(f||c);t.eachNode((function(e){var t=e.getValue("value"),n=d*(f?t:1)/2;h+=n,e.setLayout([r*Math.cos(h)+o,r*Math.sin(h)+l]),h+=n}))},symbolSize:function(e,t,n,r,o,l,c){var h=0;yE.length=c;var f=gE(e);t.eachNode((function(e){var t=vE(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=f;var n=Math.asin(t/2/r);isNaN(n)&&(n=mE/2),yE[e.dataIndex]=n,h+=2*n}));var d=(2*mE-h)/c/2,v=0;t.eachNode((function(e){var t=d+yE[e.dataIndex];v+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(v)+o,r*Math.sin(v)+l]),v+=t}))}};function xE(e,t,n,r){var o=e.getGraphicEl();if(o){var l=e.getModel().get(["label","rotate"])||0,c=o.getSymbolPath();if(t){var f=e.getLayout(),d=Math.atan2(f[1]-r,f[0]-n);d<0&&(d=2*Math.PI+d);var v=f[0]<n;v&&(d-=Math.PI);var m=v?"left":"right";c.setTextConfig({rotation:-d,position:m,origin:"center"});var y=c.ensureState("emphasis");h.m(y.textConfig||(y.textConfig={}),{position:m})}else c.setTextConfig({rotation:l*=Math.PI/180})}}function wE(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&bE(e,"symbolSize")}))}var SE=y;function kE(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),o=r.data,l=r.edgeData,c=e.getModel("force"),m=c.get("initLayout");e.preservedPoints?o.each((function(e){var t=o.getId(e);o.setItemLayout(e,n[t]||[NaN,NaN])})):m&&"none"!==m?"circular"===m&&bE(e,"value"):fE(e);var y=o.getDataExtent("value"),x=l.getDataExtent("value"),w=c.get("repulsion"),k=c.get("edgeLength"),O=h.t(w)?w:[w,w],C=h.t(k)?k:[k,k];C=[C[1],C[0]];var T=o.mapArray("value",(function(e,t){var n=o.getItemLayout(t),r=Xn(e,y,O);return isNaN(r)&&(r=(O[0]+O[1])/2),{w:r,rep:r,fixed:o.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),E=l.mapArray("value",(function(t,n){var o=r.getEdgeByIndex(n),l=Xn(t,x,C);isNaN(l)&&(l=(C[0]+C[1])/2);var c=o.getModel(),f=h.Q(o.getModel().get(["lineStyle","curveness"]),-hE(o,e,n,!0),0);return{n1:T[o.node1.dataIndex],n2:T[o.node2.dataIndex],d:l,curveness:f,ignoreForceLayout:c.get("ignoreForceLayout")}})),rect=t.getBoundingRect(),A=function(e,t,n){for(var r=e,o=t,rect=n.rect,l=rect.width,c=rect.height,h=[rect.x+l/2,rect.y+c/2],m=null==n.gravity?.1:n.gravity,i=0;i<r.length;i++){var y=r[i];y.p||(y.p=f(l*(Math.random()-.5)+h[0],c*(Math.random()-.5)+h[1])),y.pp=v(y.p),y.edges=null}var x,w,k=null==n.friction?.6:n.friction,O=k;return{warmUp:function(){O=.8*k},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){x=e},afterStep:function(e){w=e},step:function(e){x&&x(r,o);for(var t,a,b,n=[],l=r.length,i=0;i<o.length;i++){var c=o[i];if(!c.ignoreForceLayout){var f=c.n1;sub(n,(C=c.n2).p,f.p);var v=_(n)-c.d,y=C.w/(f.w+C.w);isNaN(y)&&(y=0),S(n,n),!f.fixed&&SE(f.p,f.p,n,y*v*O),!C.fixed&&SE(C.p,C.p,n,-(1-y)*v*O)}}for(i=0;i<l;i++)(A=r[i]).fixed||(sub(n,h,A.p),SE(A.p,A.p,n,m*O));for(i=0;i<l;i++){f=r[i];for(var k=i+1;k<l;k++){var C;sub(n,(C=r[k]).p,f.p),0===(v=_(n))&&(t=n,a=Math.random()-.5,b=Math.random()-.5,t[0]=a,t[1]=b,v=1);var T=(f.rep+C.rep)/v/v;!f.fixed&&SE(f.pp,f.pp,n,T),!C.fixed&&SE(C.pp,C.pp,n,-T)}}var E=[];for(i=0;i<l;i++){var A;(A=r[i]).fixed||(sub(E,A.p,A.pp),SE(A.p,A.p,E,O),d(A.pp,A.p))}var M=(O*=.992)<.01;w&&w(r,o,M),e&&e(M)}}}(T,E,{rect:rect,gravity:c.get("gravity"),friction:c.get("friction")});A.beforeStep((function(e,t){for(var i=0,n=e.length;i<n;i++)e[i].fixed&&d(e[i].p,r.getNodeByIndex(i).getLayout())})),A.afterStep((function(e,t,l){for(var i=0,c=e.length;i<c;i++)e[i].fixed||r.getNodeByIndex(i).setLayout(e[i].p),n[o.getId(i)]=e[i].p;for(i=0,c=t.length;i<c;i++){var h=t[i],f=r.getEdgeByIndex(i),v=h.n1.p,m=h.n2.p,y=f.getLayout();(y=y?y.slice():[])[0]=y[0]||[],y[1]=y[1]||[],d(y[0],v),d(y[1],m),+h.curveness&&(y[2]=[(v[0]+m[0])/2-(v[1]-m[1])*h.curveness,(v[1]+m[1])/2-(m[0]-v[0])*h.curveness]),f.setLayout(y)}})),e.forceLayout=A,e.preservedPoints=n,A.step()}else e.forceLayout=null}))}function OE(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var o=e.getData(),l=[],c=[];Bi(o.mapArray((function(e){var t=o.getItemModel(e);return[+t.get("x"),+t.get("y")]})),l,c),c[0]-l[0]==0&&(c[0]+=1,l[0]-=1),c[1]-l[1]==0&&(c[1]+=1,l[1]-=1);var f=(c[0]-l[0])/(c[1]-l[1]),d=function(e,t,n){return Ql(Object(h.m)(e.getBoxLayoutParams(),{aspect:n}),{width:t.getWidth(),height:t.getHeight()})}(e,t,f);isNaN(f)&&(l=[d.x,d.y],c=[d.x+d.width,d.y+d.height]);var v=c[0]-l[0],m=c[1]-l[1],y=d.width,_=d.height,x=e.coordinateSystem=new QO;x.zoomLimit=e.get("scaleLimit"),x.setBoundingRect(l[0],l[1],v,m),x.setViewRect(d.x,d.y,y,_),x.setCenter(e.get("center"),t),x.setZoom(e.get("zoom")),n.push(x)}})),n}var CE=ld.prototype,TE=pd.prototype,EE=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}l(t,e)}(EE);function AE(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var ME=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return l(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new EE},t.prototype.buildPath=function(e,t){AE(t)?CE.buildPath.call(this,e,t):TE.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return AE(this.shape)?CE.pointAt.call(this,e):TE.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,p=AE(t)?[t.x2-t.x1,t.y2-t.y1]:TE.tangentAt.call(this,e);return S(p,p)},t}(Do),IE=["fromSymbol","toSymbol"];function DE(e){return"_"+e+"Type"}function PE(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var o=t.getItemVisual(n,e+"Size"),l=t.getItemVisual(n,e+"Rotate"),c=t.getItemVisual(n,e+"Offset"),h=t.getItemVisual(n,e+"KeepAspect"),f=Eg(o),d=Ag(c||0,f),v=Tg(r,-f[0]/2+d[0],-f[1]/2+d[1],f[0],f[1],null,h);return v.__specifiedRotation=null==l||isNaN(l)?void 0:+l*Math.PI/180||0,v.name=e,v}}function NE(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var LE=function(e){function t(t,n,r){var o=e.call(this)||this;return o._createLine(t,n,r),o}return l(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,line=function(e){var line=new ME({name:"line",subPixelOptimize:!0});return NE(line.shape,e),line}(e.getItemLayout(t));line.shape.percent=0,ps(line,{shape:{percent:1}},r,t),this.add(line),Object(h.k)(IE,(function(n){var symbol=PE(n,e,t);this.add(symbol),this[DE(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,line=this.childOfName("line"),o=e.getItemLayout(t),l={shape:{}};NE(l.shape,o),ds(line,l,r,t),Object(h.k)(IE,(function(n){var r=e.getItemVisual(t,n),o=DE(n);if(this[o]!==r){this.remove(this.childOfName(n));var symbol=PE(n,e,t);this.add(symbol)}this[o]=r}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,line=this.childOfName("line"),o=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,c=n&&n.selectLineStyle,f=n&&n.labelStatesModels,d=n&&n.emphasisDisabled,v=n&&n.focus,m=n&&n.blurScope;if(!n||e.hasItemOption){var y=e.getItemModel(t),_=y.getModel("emphasis");o=_.getModel("lineStyle").getLineStyle(),l=y.getModel(["blur","lineStyle"]).getLineStyle(),c=y.getModel(["select","lineStyle"]).getLineStyle(),d=_.get("disabled"),v=_.get("focus"),m=_.get("blurScope"),f=ks(y)}var x=e.getItemVisual(t,"style"),w=x.stroke;line.useStyle(x),line.style.fill=null,line.style.strokeNoScale=!0,line.ensureState("emphasis").style=o,line.ensureState("blur").style=l,line.ensureState("select").style=c,Object(h.k)(IE,(function(e){var symbol=this.childOfName(e);if(symbol){symbol.setColor(w),symbol.style.opacity=x.opacity;for(var i=0;i<va.length;i++){var t=va[i],n=line.getState(t);if(n){var r=n.style||{},o=symbol.ensureState(t),l=o.style||(o.style={});null!=r.stroke&&(l[symbol.__isEmptyBrush?"stroke":"fill"]=r.stroke),null!=r.opacity&&(l.opacity=r.opacity)}}symbol.markRedraw()}}),this);var S=r.getRawValue(t);Ss(this,f,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:w||"#000",defaultOpacity:x.opacity,defaultText:(null==S?e.getName(t):isFinite(S)?Jn(S):S)+""});var label=this.getTextContent();if(label){var k=f.normal;label.__align=label.style.align,label.__verticalAlign=label.style.verticalAlign,label.__position=k.get("position")||"middle";var O=k.get("distance");Object(h.t)(O)||(O=[O,O]),label.__labelDistance=O}this.setTextConfig({position:null,local:!0,inside:!1}),ts(this,v,m,d)},t.prototype.highlight=function(){$a(this)},t.prototype.downplay=function(){Va(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");NE(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),label=e.getTextContent();if(t||n||label&&!label.ignore){for(var r=1,o=this.parent;o;)o.scaleX&&(r/=o.scaleX),o=o.parent;var line=e.childOfName("line");if(this.__dirty||line.__dirty){var l=line.shape.percent,c=line.pointAt(0),h=line.pointAt(l),f=sub([],h,c);if(S(f,f),t&&(t.setPosition(c),A(t,0),t.scaleX=t.scaleY=r*l,t.markRedraw()),n&&(n.setPosition(h),A(n,1),n.scaleX=n.scaleY=r*l,n.markRedraw()),label&&!label.ignore){label.x=label.y=0,label.originX=label.originY=0;var d=void 0,v=void 0,m=label.__labelDistance,y=m[0]*r,_=m[1]*r,x=l/2,w=line.tangentAt(x),k=[w[1],-w[0]],O=line.pointAt(x);k[1]>0&&(k[0]=-k[0],k[1]=-k[1]);var C=w[0]<0?-1:1;if("start"!==label.__position&&"end"!==label.__position){var T=-Math.atan2(w[1],w[0]);h[0]<c[0]&&(T=Math.PI+T),label.rotation=T}var E=void 0;switch(label.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":E=-_,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":E=_,v="top";break;default:E=0,v="middle"}switch(label.__position){case"end":label.x=f[0]*y+h[0],label.y=f[1]*_+h[1],d=f[0]>.8?"left":f[0]<-.8?"right":"center",v=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":label.x=-f[0]*y+c[0],label.y=-f[1]*_+c[1],d=f[0]>.8?"right":f[0]<-.8?"left":"center",v=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":label.x=y*C+c[0],label.y=c[1]+E,d=w[0]<0?"right":"left",label.originX=-y*C,label.originY=-E;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":label.x=O[0],label.y=O[1]+E,d="center",label.originY=-E;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":label.x=-y*C+h[0],label.y=h[1]+E,d=w[0]>=0?"right":"left",label.originX=y*C,label.originY=-E}label.scaleX=label.scaleY=r,label.setStyle({verticalAlign:label.__verticalAlign||v,align:label.__align||d})}}}function A(symbol,e){var t=symbol.__specifiedRotation;if(null==t){var n=line.tangentAt(e);symbol.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))}else symbol.attr("rotation",t)}},t}(qn),jE=LE;function RE(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:ks(t)}}function FE(e){return isNaN(e[0])||isNaN(e[1])}function BE(e){return e&&!FE(e[0])&&!FE(e[1])}var zE=function(){function e(e){this.group=new qn,this._LineCtor=e||jE}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,o=n._lineData;n._lineData=e,o||r.removeAll();var l=RE(e);e.diff(o).add((function(n){t._doAdd(e,n,l)})).update((function(n,r){t._doUpdate(o,e,r,n,l)})).remove((function(e){r.remove(o.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=RE(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r<e.end;r++){if(BE(t.getItemLayout(r))){var o=new this._LineCtor(t,r,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(r,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){sp(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(BE(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,o){var l=e.getItemGraphicEl(n);BE(t.getItemLayout(r))?(l?l.updateData(t,r,o):l=new this._LineCtor(t,r,o),t.setItemGraphicEl(r,l),this.group.add(l)):this.group.remove(l)},e}(),$E=[],VE=[],HE=[],qE=ct,WE=C,UE=Math.abs;function GE(e,t,n){for(var r,o=e[0],l=e[1],c=e[2],h=1/0,f=n*n,d=.1,v=.1;v<=.9;v+=.1){$E[0]=qE(o[0],l[0],c[0],v),$E[1]=qE(o[1],l[1],c[1],v),(y=UE(WE($E,t)-f))<h&&(h=y,r=v)}for(var i=0;i<32;i++){var m=r+d;VE[0]=qE(o[0],l[0],c[0],r),VE[1]=qE(o[1],l[1],c[1],r),HE[0]=qE(o[0],l[0],c[0],m),HE[1]=qE(o[1],l[1],c[1],m);var y=WE(VE,t)-f;if(UE(y)<.01)break;var _=WE(HE,t)-f;d/=2,y<0?_>=0?r+=d:r-=d:_>=0?r-=d:r+=d}return r}function YE(e,t){var n=[],r=pt,o=[[],[],[]],l=[[],[]],c=[];t/=2,e.eachEdge((function(e,h){var f=e.getLayout(),m=e.getVisual("fromSymbol"),_=e.getVisual("toSymbol");f.__original||(f.__original=[v(f[0]),v(f[1])],f[2]&&f.__original.push(v(f[2])));var x=f.__original;if(null!=f[2]){if(d(o[0],x[0]),d(o[1],x[2]),d(o[2],x[1]),m&&"none"!==m){var w=vE(e.node1),k=GE(o,x[0],w*t);r(o[0][0],o[1][0],o[2][0],k,n),o[0][0]=n[3],o[1][0]=n[4],r(o[0][1],o[1][1],o[2][1],k,n),o[0][1]=n[3],o[1][1]=n[4]}if(_&&"none"!==_){w=vE(e.node2),k=GE(o,x[1],w*t);r(o[0][0],o[1][0],o[2][0],k,n),o[1][0]=n[1],o[2][0]=n[2],r(o[0][1],o[1][1],o[2][1],k,n),o[1][1]=n[1],o[2][1]=n[2]}d(f[0],o[0]),d(f[1],o[2]),d(f[2],o[1])}else{if(d(l[0],x[0]),d(l[1],x[1]),sub(c,l[1],l[0]),S(c,c),m&&"none"!==m){w=vE(e.node1);y(l[0],l[0],c,w*t)}if(_&&"none"!==_){w=vE(e.node2);y(l[1],l[1],c,-w*t)}d(f[0],l[0]),d(f[1],l[1])}}))}function KE(e){return"view"===e.type}var XE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.init=function(e,t){var n=new n_,r=new zE,o=this.group;this._controller=new Ek(t.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,o=e.coordinateSystem;this._model=e;var l=this._symbolDraw,c=this._lineDraw,h=this.group;if(KE(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?h.attr(f):ds(h,f,e)}YE(e.getGraph(),gE(e));var data=e.getData();l.updateData(data);var d=e.getEdgeData();c.updateData(d),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var v=e.forceLayout,m=e.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,m);var y=e.get("layout");data.graph.eachNode((function(t){var n=t.dataIndex,o=t.getGraphicEl(),l=t.getModel();if(o){o.off("drag").off("dragend");var c=l.get("draggable");c&&o.on("drag",(function(l){switch(y){case"force":v.warmUp(),!r._layouting&&r._startForceLayoutIteration(v,m),v.setFixed(n),data.setItemLayout(n,[o.x,o.y]);break;case"circular":data.setItemLayout(n,[o.x,o.y]),t.setLayout({fixed:!0},!0),bE(e,"symbolSize",t,[l.offsetX,l.offsetY]),r.updateLayout(e);break;default:data.setItemLayout(n,[o.x,o.y]),dE(e.getGraph(),e),r.updateLayout(e)}})).on("dragend",(function(){v&&v.setUnfixed(n)})),o.setDraggable(c&&!!v,!!l.get("cursor")),"adjacency"===l.get(["emphasis","focus"])&&(ca(o).focus=t.getAdjacentDataIndices())}})),data.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(ca(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var _="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),x=data.getLayout("cx"),w=data.getLayout("cy");data.graph.eachNode((function(e){xE(e,_,x,w)})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;!function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))}()},t.prototype._updateController=function(e,t,n){var r=this,o=this._controller,l=this._controllerHost,c=this.group;o.setPointerChecker((function(t,r,o){var rect=c.getBoundingRect();return rect.applyTransform(c.transform),rect.contain(r,o)&&!Pk(t,n,e)})),KE(e.coordinateSystem)?(o.enable(e.get("roam")),l.zoomLimit=e.get("scaleLimit"),l.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(t){Ak(l,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Mk(l,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),YE(e.getGraph(),gE(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):o.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,data=e.getData(),t=gE(e);data.eachItemGraphicEl((function(e,n){e&&e.setSymbolScale(t)}))},t.prototype.updateLayout=function(e){YE(e.getGraph(),gE(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(vp),ZE=XE;function JE(e){return"_EC_"+e}var QE=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[JE(e)]){var r=new eA(e,t);return r.hostGraph=this,this.nodes.push(r),n[JE(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[JE(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,o=this._edgesMap;if(h.z(e)&&(e=this.nodes[e]),h.z(t)&&(t=this.nodes[t]),e instanceof eA||(e=r[JE(e)]),t instanceof eA||(t=r[JE(t)]),e&&t){var l=e.id+"-"+t.id,c=new tA(e,t,n);return c.hostGraph=this,this._directed&&(e.outEdges.push(c),t.inEdges.push(c)),e.edges.push(c),e!==t&&t.edges.push(c),this.edges.push(c),o[l]=c,c}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof eA&&(e=e.id),t instanceof eA&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof eA||(t=this._nodesMap[JE(t)]),t){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",i=0;i<this.nodes.length;i++)this.nodes[i].__visited=!1;if(!e.call(r,t,null))for(var l=[t];l.length;){var c=l.shift(),h=c[o];for(i=0;i<h.length;i++){var f=h[i],d=f.node1===c?f.node2:f.node1;if(!d.__visited){if(e.call(r,d,c))return;l.push(d),d.__visited=!0}}}}},e.prototype.update=function(){for(var data=this.data,e=this.edgeData,t=this.nodes,n=this.edges,i=0,r=t.length;i<r;i++)t[i].dataIndex=-1;for(i=0,r=data.count();i<r;i++)t[data.getRawIndex(i)].dataIndex=i;e.filterSelf((function(t){var r=n[e.getRawIndex(t)];return r.node1.dataIndex>=0&&r.node2.dataIndex>=0}));for(i=0,r=n.length;i<r;i++)n[i].dataIndex=-1;for(i=0,r=e.count();i<r;i++)n[e.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),eA=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(path){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(path)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},i=0;i<this.edges.length;i++){var t=this.edges[i];t.dataIndex<0||(e.edge.push(t.dataIndex),e.node.push(t.node1.dataIndex,t.node2.dataIndex))}return e},e}(),tA=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(path){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(path)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function nA(e,t){return{getValue:function(n){var data=this[e][t];return data.getStore().get(data.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}h.K(eA,nA("hostGraph","data")),h.K(tA,nA("hostGraph","edgeData"));var rA=QE;function iA(e,t,n,r,o){for(var l=new rA(r),i=0;i<e.length;i++)l.addNode(h.O(e[i].id,e[i].name,i),i);var c=[],f=[],d=0;for(i=0;i<t.length;i++){var link=t[i],source=link.source,v=link.target;l.addEdge(source,v,d)&&(f.push(link),c.push(h.O(Dr(link.id,null),source+" > "+v)),d++)}var m,y=n.get("coordinateSystem");if("cartesian2d"===y||"polar"===y)m=qb(e,n);else{var _=Ku.get(y),x=_&&_.dimensions||[];h.r(x,"value")<0&&x.concat(["value"]);var w=jb(e,{coordDimensions:x,encodeDefine:n.getEncode()}).dimensions;(m=new Lb(w,n)).initData(e)}var S=new Lb(["value"],n);return S.initData(f,c),o&&o(m,S),HC({mainData:m,struct:l,structAttr:"graph",datas:{node:m,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),l.update(),l}var oA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return l(t,e),t.prototype.init=function(option){e.prototype.init.apply(this,arguments);var t=this;function n(){return t._categoriesData}this.legendVisualProvider=new jx(n,n),this.fillDataTextStyle(option.edges||option.links),this._updateCategoriesData()},t.prototype.mergeOption=function(option){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(option.edges||option.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(option){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Or(option,"edgeLabel",["show"])},t.prototype.getInitialData=function(option,e){var t,n=option.edges||option.links||[],r=option.data||option.nodes||[],o=this;if(r&&n){aE(t=this)&&(t.__curvenessList=[],t.__edgeMap={},sE(t));var l=iA(r,n,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e){var t=o._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e}));var n=Ys.prototype.getModel;function r(path,e){var t=n.call(this,path,e);return t.resolveParentPath=l,t}function l(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=l,e.getModel=r,e}))}));return h.k(l.edges,(function(e){!function(e,t,n,r){if(aE(n)){var o=lE(e,t,n),l=n.__edgeMap,c=l[uE(o)];l[o]&&!c?l[o].isForward=!0:c&&l[o]&&(c.isForward=!0,l[o].isForward=!1),l[o]=l[o]||[],l[o].push(r)}}(e.node1,e.node2,this,e.dataIndex)}),this),l.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var r=this.getData(),o=this.getDataParams(e,n),l=r.graph.getEdgeByIndex(e),c=r.getName(l.node1.dataIndex),h=r.getName(l.node2.dataIndex),f=[];return null!=c&&f.push(c),null!=h&&f.push(h),Dh("nameValue",{name:f.join(" > "),value:o.value,noValue:null==o.value})}return qh({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=h.H(this.option.categories||[],(function(e){return null!=e.value?e:h.m({value:0},e)})),t=new Lb(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(tf),aA=oA,sA={type:"graphRoam",event:"graphRoam",update:"none"};var lA=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},uA=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return l(t,e),t.prototype.getDefaultShape=function(){return new lA},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,o=t.r,l=t.width,c=t.angle,h=t.x-n(c)*l*(l>=o/3?1:2),f=t.y-r(c)*l*(l>=o/3?1:2);c=t.angle-Math.PI/2,e.moveTo(h,f),e.lineTo(t.x+n(c)*l,t.y+r(c)*l),e.lineTo(t.x+n(t.angle)*o,t.y+r(t.angle)*o),e.lineTo(t.x-n(c)*l,t.y-r(c)*l),e.lineTo(h,f)},t}(Do);function cA(e,t){var label=null==e?"":e+"";return t&&(Object(h.C)(t)?label=t.replace("{value}",label):Object(h.w)(t)&&(label=t(e))),label}var hA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),o=function(e,t){var n=e.get("center"),r=t.getWidth(),o=t.getHeight(),l=Math.min(r,o);return{cx:Zn(n[0],t.getWidth()),cy:Zn(n[1],t.getHeight()),r:Zn(e.get("radius"),l/2)}}(e,n);this._renderMain(e,t,n,r,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,o){var l=this.group,c=e.get("clockwise"),h=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,d=e.getModel("axisLine"),v=d.get("roundCap")?Z_:Gf,m=d.get("show"),y=d.getModel("lineStyle"),_=y.get("width"),x=[h,f];uo(x,!c);for(var w=(f=x[1])-(h=x[0]),S=h,i=0;m&&i<r.length;i++){var k=new v({shape:{startAngle:S,endAngle:f=h+w*Math.min(Math.max(r[i][0],0),1),cx:o.cx,cy:o.cy,clockwise:c,r0:o.r-_,r:o.r},silent:!0});k.setStyle({fill:r[i][1]}),k.setStyle(y.getLineStyle(["color","width"])),l.add(k),S=f}var O=function(e){if(e<=0)return r[0][1];var i;for(i=0;i<r.length;i++)if(r[i][0]>=e&&(0===i?0:r[i-1][0])<e)return r[i][1];return r[i-1][1]};this._renderTicks(e,t,n,O,o,h,f,c,_),this._renderTitleAndDetail(e,t,n,O,o),this._renderAnchor(e,o),this._renderPointer(e,t,n,O,o,h,f,c,_)},t.prototype._renderTicks=function(e,t,n,r,o,l,c,f,d){for(var v,m,y=this.group,_=o.cx,x=o.cy,w=o.r,S=+e.get("min"),k=+e.get("max"),O=e.getModel("splitLine"),C=e.getModel("axisTick"),T=e.getModel("axisLabel"),E=e.get("splitNumber"),A=C.get("splitNumber"),M=Zn(O.get("length"),w),I=Zn(C.get("length"),w),D=l,P=(c-l)/E,N=P/A,L=O.getModel("lineStyle").getLineStyle(),j=C.getModel("lineStyle").getLineStyle(),R=O.get("distance"),i=0;i<=E;i++){if(v=Math.cos(D),m=Math.sin(D),O.get("show")){var F=new ld({shape:{x1:v*(w-(B=R?R+d:d))+_,y1:m*(w-B)+x,x2:v*(w-M-B)+_,y2:m*(w-M-B)+x},style:L,silent:!0});"auto"===L.stroke&&F.setStyle({stroke:r(i/E)}),y.add(F)}if(T.get("show")){var B=T.get("distance")+R,label=cA(Jn(i/E*(k-S)+S),T.get("formatter")),z=r(i/E),$=v*(w-M-B)+_,V=m*(w-M-B)+x,H=T.get("rotate"),W=0;"radial"===H?(W=-D+2*Math.PI)>Math.PI/2&&(W+=Math.PI):"tangential"===H?W=-D-Math.PI/2:Object(h.z)(H)&&(W=H*Math.PI/180),0===W?y.add(new ua({style:Os(T,{text:label,x:$,y:V,verticalAlign:m<-.8?"top":m>.8?"bottom":"middle",align:v<-.4?"left":v>.4?"right":"center"},{inheritColor:z}),silent:!0})):y.add(new ua({style:Os(T,{text:label,x:$,y:V,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:$,originY:V,rotation:W}))}if(C.get("show")&&i!==E){B=(B=C.get("distance"))?B+d:d;for(var U=0;U<=A;U++){v=Math.cos(D),m=Math.sin(D);var G=new ld({shape:{x1:v*(w-B)+_,y1:m*(w-B)+x,x2:v*(w-I-B)+_,y2:m*(w-I-B)+x},silent:!0,style:j});"auto"===j.stroke&&G.setStyle({stroke:r((i+U/A)/E)}),y.add(G),D+=N}D-=N}else D+=P}},t.prototype._renderPointer=function(e,t,n,r,o,l,c,f,d){var v=this.group,m=this._data,y=this._progressEls,_=[],x=e.get(["pointer","show"]),w=e.getModel("progress"),S=w.get("show"),data=e.getData(),k=data.mapDimension("value"),O=+e.get("min"),C=+e.get("max"),T=[O,C],E=[l,c];function A(t,n){var r,l=data.getItemModel(t).getModel("pointer"),c=Zn(l.get("width"),o.r),h=Zn(l.get("length"),o.r),f=e.get(["pointer","icon"]),d=l.get("offsetCenter"),v=Zn(d[0],o.r),m=Zn(d[1],o.r),y=l.get("keepAspect");return(r=f?Tg(f,v-c/2,m-h,c,h,null,y):new uA({shape:{angle:-Math.PI/2,width:c,r:h,x:v,y:m}})).rotation=-(n+Math.PI/2),r.x=o.cx,r.y=o.cy,r}function M(e,t){var n=w.get("roundCap")?Z_:Gf,r=w.get("overlap"),c=r?w.get("width"):d/data.count(),h=r?o.r-c:o.r-(e+1)*c,v=r?o.r:o.r-e*c,progress=new n({shape:{startAngle:l,endAngle:t,cx:o.cx,cy:o.cy,clockwise:f,r0:h,r:v}});return r&&(progress.z2=C-data.get(k,e)%C),progress}(S||x)&&(data.diff(m).add((function(t){var n=data.get(k,t);if(x){var r=A(t,l);ps(r,{rotation:-((isNaN(+n)?E[0]:Xn(n,T,E,!0))+Math.PI/2)},e),v.add(r),data.setItemGraphicEl(t,r)}if(S){var progress=M(t,l),o=w.get("clip");ps(progress,{shape:{endAngle:Xn(n,T,E,o)}},e),v.add(progress),ha(e.seriesIndex,data.dataType,t,progress),_[t]=progress}})).update((function(t,n){var r=data.get(k,t);if(x){var o=m.getItemGraphicEl(n),c=o?o.rotation:l,h=A(t,c);h.rotation=c,ds(h,{rotation:-((isNaN(+r)?E[0]:Xn(r,T,E,!0))+Math.PI/2)},e),v.add(h),data.setItemGraphicEl(t,h)}if(S){var f=y[n],progress=M(t,f?f.shape.endAngle:l),d=w.get("clip");ds(progress,{shape:{endAngle:Xn(r,T,E,d)}},e),v.add(progress),ha(e.seriesIndex,data.dataType,t,progress),_[t]=progress}})).execute(),data.each((function(e){var t=data.getItemModel(e),n=t.getModel("emphasis"),o=n.get("focus"),l=n.get("blurScope"),c=n.get("disabled");if(x){var f=data.getItemGraphicEl(e),d=data.getItemVisual(e,"style"),v=d.fill;if(f instanceof Bo){var m=f.style;f.useStyle(Object(h.m)({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},d))}else f.useStyle(d),"pointer"!==f.type&&f.setColor(v);f.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===f.style.fill&&f.setStyle("fill",r(Xn(data.get(k,e),T,[0,1],!0))),f.z2EmphasisLift=0,os(f,t),ts(f,o,l,c)}if(S){var progress=_[e];progress.useStyle(data.getItemVisual(e,"style")),progress.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),progress.z2EmphasisLift=0,os(progress,t),ts(progress,o,l,c)}})),this._progressEls=_)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor");if(n.get("show")){var r=n.get("size"),o=n.get("icon"),l=n.get("offsetCenter"),c=n.get("keepAspect"),h=Tg(o,t.cx-r/2+Zn(l[0],t.r),t.cy-r/2+Zn(l[1],t.r),r,r,null,c);h.z2=n.get("showAbove")?1:0,h.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(h)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,o){var l=this,data=e.getData(),c=data.mapDimension("value"),h=+e.get("min"),f=+e.get("max"),d=new qn,v=[],m=[],y=e.isAnimationEnabled(),_=e.get(["pointer","showAbove"]);data.diff(this._data).add((function(e){v[e]=new ua({silent:!0}),m[e]=new ua({silent:!0})})).update((function(e,t){v[e]=l._titleEls[t],m[e]=l._detailEls[t]})).execute(),data.each((function(t){var n=data.getItemModel(t),l=data.get(c,t),x=new qn,w=r(Xn(l,[h,f],[0,1],!0)),S=n.getModel("title");if(S.get("show")){var k=S.get("offsetCenter"),O=o.cx+Zn(k[0],o.r),C=o.cy+Zn(k[1],o.r);(N=v[t]).attr({z2:_?0:2,style:Os(S,{x:O,y:C,text:data.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:w})}),x.add(N)}var T=n.getModel("detail");if(T.get("show")){var E=T.get("offsetCenter"),A=o.cx+Zn(E[0],o.r),M=o.cy+Zn(E[1],o.r),I=Zn(T.get("width"),o.r),D=Zn(T.get("height"),o.r),P=e.get(["progress","show"])?data.getItemVisual(t,"style").fill:w,N=m[t],L=T.get("formatter");N.attr({z2:_?0:2,style:Os(T,{x:A,y:M,text:cA(l,L),width:isNaN(I)?null:I,height:isNaN(D)?null:D,align:"center",verticalAlign:"middle"},{inheritColor:P})}),Ps(N,{normal:T},l,(function(e){return cA(e,L)})),y&&Ns(N,t,data,e,{getFormattedLabel:function(e,t,n,r,o,c){return cA(c?c.interpolatedValue:l,L)}}),x.add(N)}d.add(x)})),this.group.add(d),this._titleEls=v,this._detailEls=m},t.type="gauge",t}(vp),fA=hA,dA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return l(t,e),t.prototype.getInitialData=function(option,e){return Nx(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(tf),pA=dA;var gA=["itemStyle","opacity"],vA=function(e){function t(data,t){var n=e.call(this)||this,polygon=n,r=new id,text=new ua;return polygon.setTextContent(text),n.setTextGuideLine(r),n.updateData(data,t,!0),n}return l(t,e),t.prototype.updateData=function(data,e,t){var polygon=this,n=data.hostModel,r=data.getItemModel(e),o=data.getItemLayout(e),l=r.getModel("emphasis"),c=r.get(gA);c=null==c?1:c,t||bs(polygon),polygon.useStyle(data.getItemVisual(e,"style")),polygon.style.lineJoin="round",t?(polygon.setShape({points:o.points}),polygon.style.opacity=0,ps(polygon,{style:{opacity:c}},n,e)):ds(polygon,{style:{opacity:c},shape:{points:o.points}},n,e),os(polygon,r),this._updateLabel(data,e),ts(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(data,e){var polygon=this,t=this.getTextGuideLine(),n=polygon.getTextContent(),r=data.hostModel,o=data.getItemModel(e),l=data.getItemLayout(e).label,style=data.getItemVisual(e,"style"),c=style.fill;Ss(n,ks(o),{labelFetcher:data.hostModel,labelDataIndex:e,defaultOpacity:style.opacity,defaultText:data.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),polygon.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var h=l.linePoints;t.setShape({points:h}),polygon.textGuideLineConfig={anchor:h?new he(h[0][0],h[0][1]):null},ds(n,{style:{x:l.x,y:l.y}},r,e),n.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Nm(polygon,Lm(o),{stroke:c})},t}(ed),mA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return l(t,e),t.prototype.render=function(e,t,n){var data=e.getData(),r=this._data,o=this.group;data.diff(r).add((function(e){var t=new vA(data,e);data.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(data,e),o.add(n),data.setItemGraphicEl(e,n)})).remove((function(t){ys(r.getItemGraphicEl(t),e,t)})).execute(),this._data=data},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(vp),yA=mA,bA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.init=function(option){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new jx(h.c(this.getData,this),h.c(this.getRawData,this)),this._defaultLabelLine(option)},t.prototype.getInitialData=function(option,e){return Nx(this,{coordDimensions:["value"],encodeDefaulter:h.h(Ou,this)})},t.prototype._defaultLabelLine=function(option){Or(option,"labelLine",["show"]);var e=option.labelLine,t=option.emphasis.labelLine;e.show=e.show&&option.label.show,t.show=t.show&&option.emphasis.label.show},t.prototype.getDataParams=function(t){var data=this.getData(),n=e.prototype.getDataParams.call(this,t),r=data.mapDimension("value"),o=data.getSum(r);return n.percent=o?+(data.get(r,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(tf),_A=bA;function xA(e,t){e.eachSeriesByType("funnel",(function(e){var data=e.getData(),n=data.mapDimension("value"),r=e.get("sort"),o=function(e,t){return Ql(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),l=e.get("orient"),c=o.width,f=o.height,d=function(data,e){for(var t=data.mapDimension("value"),n=data.mapArray(t,(function(e){return e})),r=[],o="ascending"===e,i=0,l=data.count();i<l;i++)r[i]=i;return Object(h.w)(e)?r.sort(e):"none"!==e&&r.sort((function(a,b){return o?n[a]-n[b]:n[b]-n[a]})),r}(data,r),v=o.x,m=o.y,y="horizontal"===l?[Zn(e.get("minSize"),f),Zn(e.get("maxSize"),f)]:[Zn(e.get("minSize"),c),Zn(e.get("maxSize"),c)],_=data.getDataExtent(n),x=e.get("min"),w=e.get("max");null==x&&(x=Math.min(_[0],0)),null==w&&(w=_[1]);var S=e.get("funnelAlign"),k=e.get("gap"),O=(("horizontal"===l?c:f)-k*(data.count()-1))/data.count(),C=function(e,t){if("horizontal"===l){var r=Xn(data.get(n,e)||0,[x,w],y,!0),o=void 0;switch(S){case"top":o=m;break;case"center":o=m+(f-r)/2;break;case"bottom":o=m+(f-r)}return[[t,o],[t,o+r]]}var h,d=Xn(data.get(n,e)||0,[x,w],y,!0);switch(S){case"left":h=v;break;case"center":h=v+(c-d)/2;break;case"right":h=v+c-d}return[[h,t],[h+d,t]]};"ascending"===r&&(O=-O,k=-k,"horizontal"===l?v+=c:m+=f,d=d.reverse());for(var i=0;i<d.length;i++){var T=d[i],E=d[i+1],A=data.getItemModel(T);if("horizontal"===l){var M=A.get(["itemStyle","width"]);null==M?M=O:(M=Zn(M,c),"ascending"===r&&(M=-M));var I=C(T,v),D=C(E,v+M);v+=M+k,data.setItemLayout(T,{points:I.concat(D.slice().reverse())})}else{var P=A.get(["itemStyle","height"]);null==P?P=O:(P=Zn(P,f),"ascending"===r&&(P=-P));I=C(T,m),D=C(E,m+P);m+=P+k,data.setItemLayout(T,{points:I.concat(D.slice().reverse())})}}!function(data){var e=data.hostModel.get("orient");data.each((function(t){var n,r,o,l,c=data.getItemModel(t),h=c.getModel("label").get("position"),f=c.getModel("labelLine"),d=data.getItemLayout(t),v=d.points,m="inner"===h||"inside"===h||"center"===h||"insideLeft"===h||"insideRight"===h;if(m)"insideLeft"===h?(r=(v[0][0]+v[3][0])/2+5,o=(v[0][1]+v[3][1])/2,n="left"):"insideRight"===h?(r=(v[1][0]+v[2][0])/2-5,o=(v[1][1]+v[2][1])/2,n="right"):(r=(v[0][0]+v[1][0]+v[2][0]+v[3][0])/4,o=(v[0][1]+v[1][1]+v[2][1]+v[3][1])/4,n="center"),l=[[r,o],[r,o]];else{var y=void 0,_=void 0,x=void 0,w=void 0,S=f.get("length");"left"===h?(y=(v[3][0]+v[0][0])/2,_=(v[3][1]+v[0][1])/2,r=(x=y-S)-5,n="right"):"right"===h?(y=(v[1][0]+v[2][0])/2,_=(v[1][1]+v[2][1])/2,r=(x=y+S)+5,n="left"):"top"===h?(y=(v[3][0]+v[0][0])/2,o=(w=(_=(v[3][1]+v[0][1])/2)-S)-5,n="center"):"bottom"===h?(y=(v[1][0]+v[2][0])/2,o=(w=(_=(v[1][1]+v[2][1])/2)+S)+5,n="center"):"rightTop"===h?(y="horizontal"===e?v[3][0]:v[1][0],_="horizontal"===e?v[3][1]:v[1][1],"horizontal"===e?(o=(w=_-S)-5,n="center"):(r=(x=y+S)+5,n="top")):"rightBottom"===h?(y=v[2][0],_=v[2][1],"horizontal"===e?(o=(w=_+S)+5,n="center"):(r=(x=y+S)+5,n="bottom")):"leftTop"===h?(y=v[0][0],_="horizontal"===e?v[0][1]:v[1][1],"horizontal"===e?(o=(w=_-S)-5,n="center"):(r=(x=y-S)-5,n="right")):"leftBottom"===h?(y="horizontal"===e?v[1][0]:v[3][0],_="horizontal"===e?v[1][1]:v[2][1],"horizontal"===e?(o=(w=_+S)+5,n="center"):(r=(x=y-S)-5,n="right")):(y=(v[1][0]+v[2][0])/2,_=(v[1][1]+v[2][1])/2,"horizontal"===e?(o=(w=_+S)+5,n="center"):(r=(x=y+S)+5,n="left")),"horizontal"===e?r=x=y:o=w=_,l=[[y,_],[x,w]]}d.label={linePoints:l,x:r,y:o,verticalAlign:"middle",textAlign:n,inside:m}}))}(data)}))}var wA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new qn,n._initialized=!1,n}return l(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var o=this._dataGroup,data=e.getData(),l=this._data,c=e.coordinateSystem,h=c.dimensions,f=OA(e);if(data.diff(l).add((function(e){CA(kA(data,o,e,h,c),data,e,f)})).update((function(t,n){var line=l.getItemGraphicEl(n),r=SA(data,t,h,c);data.setItemGraphicEl(t,line),ds(line,{shape:{points:r}},e,t),bs(line),CA(line,data,t,f)})).remove((function(e){var line=l.getItemGraphicEl(e);o.remove(line)})).execute(),!this._initialized){this._initialized=!0;var d=function(e,t,n){var r=e.model,rect=e.getRect(),o=new Go({shape:{x:rect.x,y:rect.y,width:rect.width,height:rect.height}}),l="horizontal"===r.get("layout")?"width":"height";return o.setShape(l,0),ps(o,{shape:{width:rect.width,height:rect.height}},t,n),o}(c,e,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(d)}this._data=data},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var data=t.getData(),r=t.coordinateSystem,o=r.dimensions,l=OA(t),c=this._progressiveEls=[],h=e.start;h<e.end;h++){var line=kA(data,this._dataGroup,h,o,r);line.incremental=!0,CA(line,data,h,l),c.push(line)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(vp);function SA(data,e,t,n){for(var r,o=[],i=0;i<t.length;i++){var l=t[i],c=data.get(data.mapDimension(l),e);r=c,("category"===n.getAxis(l).type?null==r:null==r||isNaN(r))||o.push(n.dataToPoint(c,l))}return o}function kA(data,e,t,n,r){var o=SA(data,t,n,r),line=new id({shape:{points:o},z2:10});return e.add(line),data.setItemGraphicEl(t,line),line}function OA(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),t=gr(t),Object(h.l)(t)&&(t=0),{smooth:t}}function CA(e,data,t,n){e.useStyle(data.getItemVisual(t,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var r=data.getItemModel(t),o=r.getModel("emphasis");os(e,r,"lineStyle"),ts(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var TA=wA,EA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return l(t,e),t.prototype.getInitialData=function(option,e){return qb(null,this,{useEncodeDefaulter:Object(h.c)(AA,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,data=this.getData(),n=[];return t.eachActiveState(data,(function(t,r){e===t&&n.push(data.getRawIndex(r))})),n},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(tf);function AA(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Object(h.k)(t.dimensions,(function(e){var t=+e.replace("dim","");n[e]=t})),n}}var MA=EA,IA=["lineStyle","opacity"],DA={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,data){n.eachActiveState(data,(function(e,t){var n=r[e];if("normal"===e&&data.hasItemOption){var o=data.getItemModel(t).get(IA,!0);null!=o&&(n=o)}data.ensureUniqueItemVisual(t,"style").opacity=n}),e.start,e.end)}}}};function PA(option){!function(option){if(option.parallel)return;var e=!1;h.k(option.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(option.parallel=[{}])}(option),function(option){var e=kr(option.parallelAxis);h.k(e,(function(e){if(h.A(e)){var t=e.parallelIndex||0,n=kr(option.parallel)[t];n&&n.parallelAxisDefault&&h.I(e,n.parallelAxisDefault,!1)}}))}(option)}var NA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Object(h.k)(LA,(function(e,t){n.getZr().on(t,this._handlers[t]=Object(h.c)(e,this))}),this)),xp(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){wp(this,"_throttledDispatchExpand"),Object(h.k)(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Object(h.m)({type:"parallelAxisExpand"},e))},t.type="parallel",t}(rf),LA={mousedown:function(e){jA(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(jA(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&jA(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function jA(view,e){var t=view._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var RA=NA,FA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&h.I(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){h.k(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=h.n(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);h.k(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(su),BA=FA,zA=function(e){function t(t,n,r,o,l){var c=e.call(this,t,n,r)||this;return c.type=o||"value",c.axisIndex=l,c}return l(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(vS);function $A(e,t,n,r,o,l){e=e||0;var c=n[1]-n[0];if(null!=o&&(o=HA(o,[0,c])),null!=l&&(l=Math.max(l,null!=o?o:0)),"all"===r){var h=Math.abs(t[1]-t[0]);h=HA(h,[0,c]),o=l=HA(h,[o,l]),r=0}t[0]=HA(t[0],n),t[1]=HA(t[1],n);var f=VA(t,r);t[r]+=e;var d,v=o||0,m=n.slice();return f.sign<0?m[0]+=v:m[1]-=v,t[r]=HA(t[r],m),d=VA(t,r),null!=o&&(d.sign!==f.sign||d.span<o)&&(t[1-r]=t[r]+f.sign*o),d=VA(t,r),null!=l&&d.span>l&&(t[1-r]=t[r]+d.sign*l),t}function VA(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function HA(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var qA=h.k,WA=Math.min,UA=Math.max,GA=Math.floor,YA=Math.ceil,KA=Jn,XA=Math.PI;function ZA(e,t){return WA(UA(e,t[0]),t[1])}function JA(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function QA(e,t){var n,r,o=t.layoutLength,l=t.axisExpandWidth,c=t.axisCount,h=t.axisCollapseWidth,f=t.winInnerIndices,d=h,v=!1;return e<f[0]?(n=e*h,r=h):e<=f[1]?(n=t.axisExpandWindow0Pos+e*l-t.axisExpandWindow[0],d=l,v=!0):(n=o-(c-1-e)*h,r=h),{position:n,axisNameAvailableWidth:d,axisLabelShow:v,nameTruncateMaxWidth:r}}var eM=function(){function e(e,t,n){this.type="parallel",this._axesMap=h.f(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,o=e.parallelAxisIndex;qA(r,(function(e,n){var r=o[n],l=t.getComponent("parallelAxis",r),c=this._axesMap.set(e,new zA(e,Yw(l),[0,0],l.get("type"),r)),h="category"===c.type;c.onBand=h&&l.get("boundaryGap"),c.inverse=l.get("inverse"),l.axis=c,c.model=l,c.coordinateSystem=l.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,o=t.pixelDimIndex,l=e[1-o],c=e[o];return l>=n&&l<=n+t.axisLength&&c>=r&&c<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var data=n.getData();qA(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(data,data.mapDimension(e)),Gw(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=Ql(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,rect=this._rect,n=["x","y"],r=["width","height"],o=t.get("layout"),l="horizontal"===o?0:1,c=rect[r[l]],h=[0,c],f=this.dimensions.length,d=ZA(t.get("axisExpandWidth"),h),v=ZA(t.get("axisExpandCount")||0,[0,f]),m=t.get("axisExpandable")&&f>3&&f>v&&v>1&&d>0&&c>0,y=t.get("axisExpandWindow");y?(e=ZA(y[1]-y[0],h),y[1]=y[0]+e):(e=ZA(d*(v-1),h),(y=[d*(t.get("axisExpandCenter")||GA(f/2))-e/2])[1]=y[0]+e);var _=(c-e)/(f-v);_<3&&(_=0);var x=[GA(KA(y[0]/d,1))+1,YA(KA(y[1]/d,1))-1],w=_/d*y[0];return{layout:o,pixelDimIndex:l,layoutBase:rect[n[l]],layoutLength:c,axisBase:rect[n[1-l]],axisLength:rect[r[1-l]],axisExpandable:m,axisExpandWidth:d,axisCollapseWidth:_,axisExpandWindow:y,axisCount:f,winInnerIndices:x,axisExpandWindow0Pos:w}},e.prototype._layoutAxes=function(){var rect=this._rect,e=this._axesMap,t=this.dimensions,n=this._makeLayoutInfo(),r=n.layout;e.each((function(e){var t=[0,n.axisLength],r=e.inverse?1:0;e.setExtent(t[r],t[1-r])})),qA(t,(function(e,t){var o=(n.axisExpandable?QA:JA)(t,n),l={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},c={horizontal:XA/2,vertical:0},h=[l[r].x+rect.x,l[r].y+rect.y],f=c[r],d=[1,0,0,1,0,0];le(d,d,f),se(d,d,h),this._axesLayout[e]={position:h,rotation:f,transform:d,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(data,e,t,n){null==t&&(t=0),null==n&&(n=data.count());var r=this._axesMap,o=this.dimensions,l=[],c=[];h.k(o,(function(e){l.push(data.mapDimension(e)),c.push(r.get(e).model)}));for(var f=this.hasAxisBrushed(),d=t;d<n;d++){var v=void 0;if(f){v="active";for(var m=data.getValues(l,d),y=0,_=o.length;y<_;y++){if("inactive"===c[y].getActiveState(m[y])){v="inactive";break}}}else v="normal";e(v,d)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,o=e.length;r<o;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){return Yd([e,0],this._axesLayout[t].transform)},e.prototype.getAxisLayout=function(e){return h.d(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),o=r[1]-r[0],l=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var c,h=e[n]-t.layoutBase-t.axisExpandWindow0Pos,f="slide",d=t.axisCollapseWidth,v=this._model.get("axisExpandSlideTriggerArea"),m=null!=v[0];if(d)m&&d&&h<o*v[0]?(f="jump",c=h-o*v[2]):m&&d&&h>o*(1-v[0])?(f="jump",c=h-o*(1-v[2])):(c=h-o*v[1])>=0&&(c=h-o*(1-v[1]))<=0&&(c=0),(c*=t.axisExpandWidth/d)?$A(c,r,l,"all"):f="none";else{var y=r[1]-r[0];(r=[UA(0,l[1]*h/y-y/2)])[1]=WA(l[1],r[0]+y),r[0]=r[1]-y}return{axisExpandWindow:r,behavior:f}},e}();var tM={create:function(e,t){var n=[];return e.eachComponent("parallel",(function(r,o){var l=new eM(r,e,t);l.name="parallel_"+o,l.resize(r,t),r.coordinateSystem=l,l.model=r,n.push(l)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",zr).models[0];e.coordinateSystem=t.coordinateSystem}})),n}},nM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return l(t,e),t.prototype.getAreaSelectStyle=function(){return ti([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=h.d(e);if(t)for(var i=t.length-1;i>=0;i--)Qn(t[i])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;i<r;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(su);h.K(nM,Yx);var rM=nM,iM=!0,oM=Math.min,aM=Math.max,sM=Math.pow,lM="globalPan",uM={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},cM={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},hM={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},fM=0,dM=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new qn,n._uid="brushController_"+fM++,Object(h.k)(zM,(function(e,t){this._handlers[t]=Object(h.c)(e,this)}),n),n}return l(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||function(e,t,n){kk(e)[t]=n}(t,lM,this._uid),Object(h.k)(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Object(h.I)(Object(h.d)(hM),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var r=kk(e);r[t]===n&&(r[t]=null)}(e,lM,this._uid),Object(h.k)(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Object(h.k)(e,(function(e){t[e.panelId]=Object(h.d)(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Object(h.H)(e,(function(e){return Object(h.I)(Object(h.d)(hM),e,!0)}));var t=this._covers,n=this._covers=[],r=this,o=this._creatingCover;return new cb(t,e,(function(e,t){return l(e.__brushOption,t)}),l).add(c).update(c).remove((function(e){t[e]!==o&&r.group.remove(t[e])})).execute(),this;function l(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function c(l,c){var h=e[l];if(null!=c&&t[c]===o)n[l]=t[c];else{var f=n[l]=null!=c?(t[c].__brushOption=h,t[c]):gM(r,pM(r,h));yM(r,f)}}},t.prototype.unmount=function(){return this.enableBrush(!1),wM(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(N);function pM(e,t){var n=VM[t.brushType].createCover(e,t);return n.__brushOption=t,mM(n,t),e.group.add(n),n}function gM(e,t){var n=bM(t);return n.endCreating&&(n.endCreating(e,t),mM(t,t.__brushOption)),t}function vM(e,t){var n=t.__brushOption;bM(t).updateCoverShape(e,t,n.range,n)}function mM(e,t){var n=t.z;null==n&&(n=1e4),e.traverse((function(e){e.z=n,e.z2=n}))}function yM(e,t){bM(t).updateCommon(e,t),vM(e,t)}function bM(e){return VM[e.__brushOption.brushType]}function _M(e,t,n){var r,o=e._panels;if(!o)return iM;var l=e._transform;return Object(h.k)(o,(function(e){e.isTargetByCursor(t,n,l)&&(r=e)})),r}function xM(e,t){var n=e._panels;if(!n)return iM;var r=t.__brushOption.panelId;return null!=r?n[r]:iM}function wM(e){var t=e._covers,n=t.length;return Object(h.k)(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function SM(e,t){var n=Object(h.H)(e._covers,(function(e){var t=e.__brushOption,n=Object(h.d)(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function kM(track){var e=track.length-1;return e<0&&(e=0),[track[0],track[e]]}function OM(e,t,n,r){var o=new qn;return o.add(new Go({name:"main",style:AM(n),silent:!0,draggable:!0,cursor:"move",drift:Object(h.h)(DM,e,t,o,["n","s","w","e"]),ondragend:Object(h.h)(SM,t,{isEnd:!0})})),Object(h.k)(r,(function(n){o.add(new Go({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(h.h)(DM,e,t,o,n),ondragend:Object(h.h)(SM,t,{isEnd:!0})}))})),o}function CM(e,t,n,r){var o=r.brushStyle.lineWidth||0,l=aM(o,6),c=n[0][0],h=n[1][0],f=c-o/2,d=h-o/2,v=n[0][1],m=n[1][1],y=v-l+o/2,_=m-l+o/2,x=v-c,w=m-h,S=x+o,k=w+o;EM(e,t,"main",c,h,x,w),r.transformable&&(EM(e,t,"w",f,d,l,k),EM(e,t,"e",y,d,l,k),EM(e,t,"n",f,d,S,l),EM(e,t,"s",f,_,S,l),EM(e,t,"nw",f,d,l,l),EM(e,t,"ne",y,d,l,l),EM(e,t,"sw",f,_,l,l),EM(e,t,"se",y,_,l,l))}function TM(e,t){var n=t.__brushOption,r=n.transformable,o=t.childAt(0);o.useStyle(AM(n)),o.attr({silent:!r,cursor:r?"move":"default"}),Object(h.k)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var o=t.childOfName(n.join("")),l=1===n.length?IM(e,n[0]):function(e,t){var n=[IM(e,t[0]),IM(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);o&&o.attr({silent:!r,invisible:!r,cursor:r?cM[l]+"-resize":null})}))}function EM(e,t,n,r,o,l,c){var h,f,d,v,m,y=t.childOfName(n);y&&y.setShape((h=LM(e,t,[[r,o],[r+l,o+c]]),f=oM(h[0][0],h[1][0]),d=oM(h[0][1],h[1][1]),v=aM(h[0][0],h[1][0]),m=aM(h[0][1],h[1][1]),{x:f,y:d,width:v-f,height:m-d}))}function AM(e){return Object(h.i)({strokeNoScale:!0},e.brushStyle)}function MM(e,t,n,r){var o=[oM(e,n),oM(t,r)],l=[aM(e,n),aM(t,r)];return[[o[0],l[0]],[o[1],l[1]]]}function IM(e,t){var n=Kd({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return Gd(e.group)}(e));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function DM(e,t,n,r,o,l){var c=n.__brushOption,f=e.toRectRange(c.range),d=NM(t,o,l);Object(h.k)(r,(function(e){var t=uM[e];f[t[0]][t[1]]+=d[t[0]]})),c.range=e.fromRectRange(MM(f[0][0],f[1][0],f[0][1],f[1][1])),yM(t,n),SM(t,{isEnd:!1})}function PM(e,t,n,r){var o=t.__brushOption.range,l=NM(e,n,r);Object(h.k)(o,(function(e){e[0]+=l[0],e[1]+=l[1]})),yM(e,t),SM(e,{isEnd:!1})}function NM(e,t,n){var r=e.group,o=r.transformCoordToLocal(t,n),l=r.transformCoordToLocal(0,0);return[o[0]-l[0],o[1]-l[1]]}function LM(e,t,data){var n=xM(e,t);return n&&n!==iM?n.clipPath(data,e._transform):Object(h.d)(data)}function jM(e){var t=e.event;t.preventDefault&&t.preventDefault()}function RM(e,t,n){return e.childOfName("main").contain(t,n)}function FM(e,t,n,r){var o,l=e._creatingCover,c=e._creatingPanel,f=e._brushOption;if(e._track.push(n.slice()),function(e){var track=e._track;if(!track.length)return!1;var t=track[track.length-1],n=track[0],r=t[0]-n[0],o=t[1]-n[1];return sM(r*r+o*o,.5)>6}(e)||l){if(c&&!l){"single"===f.brushMode&&wM(e);var d=Object(h.d)(f);d.brushType=BM(d.brushType,c),d.panelId=c===iM?null:c.panelId,l=e._creatingCover=pM(e,d),e._covers.push(l)}if(l){var v=VM[BM(e._brushType,c)];l.__brushOption.range=v.getCreatingRange(LM(e,l,e._track)),r&&(gM(e,l),v.updateCommon(e,l)),vM(e,l),o={isEnd:r}}}else r&&"single"===f.brushMode&&f.removeOnClick&&_M(e,t,n)&&wM(e)&&(o={isEnd:r,removeOnClick:!0});return o}function BM(e,t){return"auto"===e?t.defaultBrushType:e}var zM={mousedown:function(e){if(this._dragging)$M(this,e);else if(!e.target||!e.target.draggable){jM(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=_M(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}(e,t.offsetX,t.offsetY)){var r=e._zr,o=e._covers,l=_M(e,t,n);if(!e._dragging)for(var i=0;i<o.length;i++){var c=o[i].__brushOption;if(l&&(l===iM||c.panelId===l.panelId)&&VM[c.brushType].contain(o[i],n[0],n[1]))return}l&&r.setCursorStyle("crosshair")}}(this,e,r),this._dragging){jM(e);var o=FM(this,e,r,!1);o&&SM(this,o)}},mouseup:function(e){$M(this,e)}};function $M(e,t){if(e._dragging){jM(t);var n=t.offsetX,r=t.offsetY,o=e.group.transformCoordToLocal(n,r),l=FM(e,t,o,!0);e._dragging=!1,e._track=[],e._creatingCover=null,l&&SM(e,l)}}var VM={lineX:HM(0),lineY:HM(1),rect:{createCover:function(e,t){function n(e){return e}return OM({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=kM(e);return MM(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){CM(e,t,n,r)},updateCommon:TM,contain:RM},polygon:{createCover:function(e,t){var n=new qn;return n.add(new id({name:"main",style:AM(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new ed({name:"main",draggable:!0,drift:Object(h.h)(PM,e,t),ondragend:Object(h.h)(SM,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:LM(e,t,n)})},updateCommon:TM,contain:RM}};function HM(e){return{createCover:function(t,n){return OM({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=kM(t);return[oM(n[0][e],n[1][e]),aM(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,o){var l,c=xM(t,n);if(c!==iM&&c.getLinearBrushOtherExtent)l=c.getLinearBrushOtherExtent(e);else{var h=t._zr;l=[0,[h.getWidth(),h.getHeight()][1-e]]}var f=[r,l];e&&f.reverse(),CM(t,n,f,o)},updateCommon:TM,contain:RM}}var qM=dM;function WM(rect){return rect=YM(rect),function(e){return Jd(e,rect)}}function UM(rect,e){return rect=YM(rect),function(t){var n=null!=e?e:t,r=n?rect.width:rect.height,base=n?rect.x:rect.y;return[base,base+(r||0)]}}function GM(rect,e,t){var n=YM(rect);return function(r,o){return n.contain(o[0],o[1])&&!Pk(r,e,t)}}function YM(rect){return _e.create(rect)}var KM=["axisLine","axisTickLabel","axisName"],XM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new qM(n.getZr())).on("brush",h.c(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!function(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new qn,this.group.add(this._axisGroup),e.get("show")){var l=function(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}(e,t),c=l.coordinateSystem,f=e.getAreaSelectStyle(),d=f.width,v=e.axis.dim,m=c.getAxisLayout(v),y=h.m({strokeContainThreshold:d},m),_=new jS(e,y);h.k(KM,_.add,_),this._axisGroup.add(_.getGroup()),this._refreshBrushController(y,f,e,l,d,n),Zd(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,o,l){var c=n.axis.getExtent(),f=c[1]-c[0],d=Math.min(30,.1*Math.abs(f)),rect=_e.create({x:c[0],y:-o/2,width:f,height:o});rect.x-=d,rect.width+=2*d,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:WM(rect),isTargetByCursor:GM(rect,l,r),getLinearBrushOtherExtent:UM(rect,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return h.H(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,o=h.H(t,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(rf);var ZM=XM,JM={type:"axisAreaSelect",event:"axisAreaSelected"};var QM={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function eI(e){e.registerComponentView(RA),e.registerComponentModel(BA),e.registerCoordinateSystem("parallel",tM),e.registerPreprocessor(PA),e.registerComponentModel(rM),e.registerComponentView(ZM),iw(e,"parallel",rM,QM),function(e){e.registerAction(JM,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}(e)}var tI=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},nI=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getDefaultShape=function(){return new tI},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){$a(this)},t.prototype.downplay=function(){Va(this)},t}(Do),rI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return l(t,e),t.prototype.render=function(e,t,n){var r=this,o=e.getGraph(),l=this.group,c=e.layoutInfo,f=c.width,d=c.height,v=e.getData(),m=e.getData("edge"),y=e.get("orient");this._model=e,l.removeAll(),l.x=c.x,l.y=c.y,o.eachEdge((function(t){var n=new nI,r=ca(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var o,c,v,_,x,w,S,k,O=t.getModel(),C=O.getModel("lineStyle"),T=C.get("curveness"),E=t.node1.getLayout(),A=t.node1.getModel(),M=A.get("localX"),I=A.get("localY"),D=t.node2.getLayout(),P=t.node2.getModel(),N=P.get("localX"),L=P.get("localY"),j=t.getLayout();switch(n.shape.extent=Math.max(1,j.dy),n.shape.orient=y,"vertical"===y?(o=(null!=M?M*f:E.x)+j.sy,c=(null!=I?I*d:E.y)+E.dy,v=(null!=N?N*f:D.x)+j.ty,x=o,w=c*(1-T)+(_=null!=L?L*d:D.y)*T,S=v,k=c*T+_*(1-T)):(o=(null!=M?M*f:E.x)+E.dx,c=(null!=I?I*d:E.y)+j.sy,x=o*(1-T)+(v=null!=N?N*f:D.x)*T,w=c,S=o*T+v*(1-T),k=_=(null!=L?L*d:D.y)+j.ty),n.setShape({x1:o,y1:c,x2:v,y2:_,cpx1:x,cpy1:w,cpx2:S,cpy2:k}),n.useStyle(C.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var R=t.node1.getVisual("color"),F=t.node2.getVisual("color");Object(h.C)(R)&&Object(h.C)(F)&&(n.style.fill=new xd(0,0,+("horizontal"===y),+("vertical"===y),[{color:R,offset:0},{color:F,offset:1}]))}var B=O.getModel("emphasis");os(n,O,"lineStyle",(function(e){return e.getItemStyle()})),l.add(n),m.setItemGraphicEl(t.dataIndex,n);var z=B.get("focus");ts(n,"adjacency"===z?t.getAdjacentDataIndices():z,B.get("blurScope"),B.get("disabled")),ca(n).dataType="edge"})),o.eachNode((function(t){var n=t.getLayout(),r=t.getModel(),o=r.get("localX"),c=r.get("localY"),h=r.getModel("emphasis"),rect=new Go({shape:{x:null!=o?o*f:n.x,y:null!=c?c*d:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});Ss(rect,ks(r),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),rect.disableLabelAnimation=!0,rect.setStyle("fill",t.getVisual("color")),rect.setStyle("decal",t.getVisual("style").decal),os(rect,r),l.add(rect),v.setItemGraphicEl(t.dataIndex,rect),ca(rect).dataType="node";var m=h.get("focus");ts(rect,"adjacency"===m?t.getAdjacentDataIndices():m,h.get("blurScope"),h.get("disabled"))})),v.eachItemGraphicEl((function(t,o){v.getItemModel(o).get("draggable")&&(t.drift=function(t,l){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=l,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:v.getRawIndex(o),localX:this.shape.x/f,localY:this.shape.y/d})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&l.setClipPath(function(rect,e,t){var n=new Go({shape:{x:rect.x-10,y:rect.y-10,width:0,height:rect.height+20}});return ps(n,{shape:{width:rect.width+20}},e,t),n}(l.getBoundingRect(),e,(function(){l.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(vp);var iI=rI,oI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.getInitialData=function(option,e){var t=option.edges||option.links,n=option.data||option.nodes,r=option.levels;this.levelModels=[];for(var o=this.levelModels,i=0;i<r.length;i++)null!=r[i].depth&&r[i].depth>=0&&(o[r[i].depth]=new Ys(r[i],this,e));if(n&&t)return iA(n,t,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var o=r.depth,l=n.levelModels[o];l&&(e.parentModel=l)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var o=r.depth,l=n.levelModels[o];l&&(e.parentModel=l)}return e}))})).data},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||null==e}if("edge"===n){var o=this.getDataParams(e,n),l=o.data,c=o.value;return Dh("nameValue",{name:l.source+" -- "+l.target,value:c,noValue:r(c)})}var h=this.getGraph().getNodeByIndex(e).getLayout().value,f=this.getDataParams(e,n).data.name;return Dh("nameValue",{name:null!=f?f+"":null,value:h,noValue:r(h)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var o=this.getGraph().getNodeByIndex(t).getLayout().value;r.value=o}return r},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(tf),aI=oI;function sI(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),o=function(e,t){return Ql(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=o;var l=o.width,c=o.height,f=e.getGraph(),d=f.nodes,v=f.edges;!function(e){h.k(e,(function(e){var t=mI(e.outEdges,vI),n=mI(e.inEdges,vI),r=e.getValue()||0,o=Math.max(t,n,r);e.setLayout({value:o},!0)}))}(d),function(e,t,n,r,o,l,c,f,d){(function(e,t,n,r,o,l,c){for(var f=[],d=[],v=[],m=[],y=0,i=0;i<t.length;i++)f[i]=1;for(i=0;i<e.length;i++)d[i]=e[i].inEdges.length,0===d[i]&&v.push(e[i]);var _=-1;for(;v.length;){for(var x=0;x<v.length;x++){var w=v[x],S=w.hostGraph.data.getRawDataItem(w.dataIndex),k=null!=S.depth&&S.depth>=0;k&&S.depth>_&&(_=S.depth),w.setLayout({depth:k?S.depth:y},!0),"vertical"===l?w.setLayout({dy:n},!0):w.setLayout({dx:n},!0);for(var O=0;O<w.outEdges.length;O++){var C=w.outEdges[O];f[t.indexOf(C)]=0;var T=C.node2;0==--d[e.indexOf(T)]&&m.indexOf(T)<0&&m.push(T)}}++y,v=m,m=[]}for(i=0;i<f.length;i++)if(1===f[i])throw new Error("Sankey is a DAG, the original data has cycle!");var E=_>y-1?_:y-1;c&&"left"!==c&&function(e,t,n,r){if("right"===t){for(var o=[],l=e,c=0;l.length;){for(var i=0;i<l.length;i++){var f=l[i];f.setLayout({skNodeHeight:c},!0);for(var d=0;d<f.inEdges.length;d++){var v=f.inEdges[d];o.indexOf(v.node1)<0&&o.push(v.node1)}}l=o,o=[],++c}h.k(e,(function(e){lI(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&function(e,t){h.k(e,(function(e){lI(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}(e,r)}(e,c,0,E);!function(e,t,n){h.k(e,(function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)}))}(e,"vertical"===l?(o-n)/E:(r-n)/E,l)})(e,t,n,o,l,f,d),function(e,t,n,r,o,l,c){var f=function(e,t){var n=[],r="vertical"===t?"y":"x",o=qr(e,(function(e){return e.getLayout()[r]}));return o.keys.sort((function(a,b){return a-b})),h.k(o.keys,(function(e){n.push(o.buckets.get(e))})),n}(e,c);(function(e,t,n,r,o,l){var c=1/0;h.k(e,(function(e){var t=e.length,f=0;h.k(e,(function(e){f+=e.getLayout().value}));var d="vertical"===l?(r-(t-1)*o)/f:(n-(t-1)*o)/f;d<c&&(c=d)})),h.k(e,(function(e){h.k(e,(function(e,i){var t=e.getLayout().value*c;"vertical"===l?(e.setLayout({x:i},!0),e.setLayout({dx:t},!0)):(e.setLayout({y:i},!0),e.setLayout({dy:t},!0))}))})),h.k(t,(function(e){var t=+e.getValue()*c;e.setLayout({dy:t},!0)}))})(f,t,n,r,o,c),uI(f,o,n,r,c);for(var d=1;l>0;l--)cI(f,d*=.99,c),uI(f,o,n,r,c),yI(f,d,c),uI(f,o,n,r,c)}(e,t,l,o,r,c,f),function(e,t){var n="vertical"===t?"x":"y";h.k(e,(function(e){e.outEdges.sort((function(a,b){return a.node2.getLayout()[n]-b.node2.getLayout()[n]})),e.inEdges.sort((function(a,b){return a.node1.getLayout()[n]-b.node1.getLayout()[n]}))})),h.k(e,(function(e){var t=0,n=0;h.k(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),h.k(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}(e,f)}(d,v,n,r,l,c,0!==h.n(d,(function(e){return 0===e.getLayout().value})).length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))}))}function lI(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function uI(e,t,n,r,o){var l="vertical"===o?"x":"y";h.k(e,(function(e){var c,h,f;e.sort((function(a,b){return a.getLayout()[l]-b.getLayout()[l]}));for(var d=0,v=e.length,m="vertical"===o?"dx":"dy",i=0;i<v;i++)(f=d-(h=e[i]).getLayout()[l])>0&&(c=h.getLayout()[l]+f,"vertical"===o?h.setLayout({x:c},!0):h.setLayout({y:c},!0)),d=h.getLayout()[l]+h.getLayout()[m]+t;if((f=d-t-("vertical"===o?r:n))>0){c=h.getLayout()[l]-f,"vertical"===o?h.setLayout({x:c},!0):h.setLayout({y:c},!0),d=c;for(i=v-2;i>=0;--i)(f=(h=e[i]).getLayout()[l]+h.getLayout()[m]+t-d)>0&&(c=h.getLayout()[l]-f,"vertical"===o?h.setLayout({x:c},!0):h.setLayout({y:c},!0)),d=h.getLayout()[l]}}))}function cI(e,t,n){h.k(e.slice().reverse(),(function(e){h.k(e,(function(e){if(e.outEdges.length){var r=mI(e.outEdges,hI,n)/mI(e.outEdges,vI);if(isNaN(r)){var o=e.outEdges.length;r=o?mI(e.outEdges,fI,n)/o:0}if("vertical"===n){var l=e.getLayout().x+(r-gI(e,n))*t;e.setLayout({x:l},!0)}else{var c=e.getLayout().y+(r-gI(e,n))*t;e.setLayout({y:c},!0)}}}))}))}function hI(e,t){return gI(e.node2,t)*e.getValue()}function fI(e,t){return gI(e.node2,t)}function dI(e,t){return gI(e.node1,t)*e.getValue()}function pI(e,t){return gI(e.node1,t)}function gI(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function vI(e){return e.getValue()}function mI(e,t,n){for(var r=0,o=e.length,i=-1;++i<o;){var l=+t(e[i],n);isNaN(l)||(r+=l)}return r}function yI(e,t,n){h.k(e,(function(e){h.k(e,(function(e){if(e.inEdges.length){var r=mI(e.inEdges,dI,n)/mI(e.inEdges,vI);if(isNaN(r)){var o=e.inEdges.length;r=o?mI(e.inEdges,pI,n)/o:0}if("vertical"===n){var l=e.getLayout().x+(r-gI(e,n))*t;e.setLayout({x:l},!0)}else{var c=e.getLayout().y+(r-gI(e,n))*t;e.setLayout({y:c},!0)}}}))}))}function bI(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph().nodes;if(t.length){var n=1/0,r=-1/0;h.k(t,(function(e){var t=e.getLayout().value;t<n&&(n=t),t>r&&(r=t)})),h.k(t,(function(t){var o=new NT({type:"color",mappingMethod:"linear",dataExtent:[n,r],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),l=t.getModel().get(["itemStyle","color"]);null!=l?(t.setVisual("color",l),t.setVisual("style",{fill:l})):(t.setVisual("color",o),t.setVisual("style",{fill:o}))}))}}))}var _I=function(){function e(){}return e.prototype.getInitialData=function(option,e){var t,n,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),l=r.get("type"),c=o.get("type");"category"===l?(option.layout="horizontal",t=r.getOrdinalMeta(),n=!0):"category"===c?(option.layout="vertical",t=o.getOrdinalMeta(),n=!0):option.layout=option.layout||"horizontal";var f=["x","y"],d="horizontal"===option.layout?0:1,v=this._baseAxisDim=f[d],m=f[1-d],y=[r,o],_=y[d].get("type"),x=y[1-d].get("type"),data=option.data;if(data&&n){var w=[];h.k(data,(function(e,t){var n;h.t(e)?(n=e.slice(),e.unshift(t)):h.t(e.value)?((n=h.m({},e)).value=n.value.slice(),e.value.unshift(t)):n=e,w.push(n)})),option.data=w}var S=this.defaultValueDimensions,k=[{name:v,type:db(_),ordinalMeta:t,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:m,type:db(x),dimsDef:S.slice()}];return Nx(this,{coordDimensions:k,dimensionsCount:S.length+1,encodeDefaulter:h.h(ku,k,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),xI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return l(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(tf);Object(h.K)(xI,_I,!0);var wI=xI,SI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n){var data=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var l="horizontal"===e.get("layout")?1:0;data.diff(o).add((function(e){if(data.hasValue(e)){var t=CI(data.getItemLayout(e),data,e,l,!0);data.setItemGraphicEl(e,t),r.add(t)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(data.hasValue(e)){var c=data.getItemLayout(e);n?(bs(n),TI(c,n,data,e)):n=CI(c,data,e,l),r.add(n),data.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=data},t.prototype.remove=function(e){var t=this.group,data=this._data;this._data=null,data&&data.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(vp),kI=function(){},OI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return l(t,e),t.prototype.getDefaultShape=function(){return new kI},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(Do);function CI(e,data,t,n,r){var o=e.ends,l=new OI({shape:{points:r?EI(o,n,e):o}});return TI(e,l,data,t,r),l}function TI(e,t,data,n,o){var l=data.hostModel;(0,r[o?"initProps":"updateProps"])(t,{shape:{points:e.ends}},l,n),t.useStyle(data.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var c=data.getItemModel(n),h=c.getModel("emphasis");os(t,c),ts(t,h.get("focus"),h.get("blurScope"),h.get("disabled"))}function EI(e,t,n){return h.H(e,(function(e){return(e=e.slice())[t]=n.initBaseline,e}))}var AI=SI;function MI(e,t){}var II=h.k;function DI(e){var t=function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var r=e.getBaseAxis(),o=h.r(n,r);o<0&&(o=n.length,n[o]=r,t[o]={axis:r,seriesModels:[]}),t[o].seriesModels.push(e)})),t}(e);II(t,(function(e){var t=e.seriesModels;t.length&&(!function(e){var t,n=e.axis,r=e.seriesModels,o=r.length,l=e.boxWidthList=[],c=e.boxOffsetList=[],f=[];if("category"===n.type)t=n.getBandWidth();else{var d=0;II(r,(function(e){d=Math.max(d,e.getData().count())}));var v=n.getExtent();t=Math.abs(v[1]-v[0])/d}II(r,(function(e){var n=e.get("boxWidth");h.t(n)||(n=[n,n]),f.push([Zn(n[0],t)||0,Zn(n[1],t)||0])}));var m=.8*t-2,y=m/o*.3,_=(m-y*(o-1))/o,base=_/2-m/2;II(r,(function(e,t){c.push(base),base+=y+_,l.push(Math.min(Math.max(_,f[t][0]),f[t][1]))}))}(e),II(t,(function(t,n){!function(e,t,n){var r=e.coordinateSystem,data=e.getData(),o=n/2,l="horizontal"===e.get("layout")?0:1,c=1-l,h=["x","y"],f=data.mapDimension(h[l]),d=data.mapDimensionsAll(h[c]);if(null==f||d.length<5)return;for(var v=0;v<data.count();v++){var m=data.get(f,v),y=O(m,d[2],v),_=O(m,d[0],v),x=O(m,d[1],v),w=O(m,d[3],v),S=O(m,d[4],v),k=[];C(k,x,!1),C(k,w,!0),k.push(_,x,S,w),T(k,_),T(k,S),T(k,y),data.setItemLayout(v,{initBaseline:y[c],ends:k})}function O(e,n,o){var h,f=data.get(n,o),p=[];return p[l]=e,p[c]=f,isNaN(e)||isNaN(f)?h=[NaN,NaN]:(h=r.dataToPoint(p))[l]+=t,h}function C(e,t,n){var r=t.slice(),c=t.slice();r[l]+=o,c[l]-=o,n?e.push(r,c):e.push(c,r)}function T(e,t){var n=t.slice(),r=t.slice();n[l]-=o,r[l]+=o,e.push(n,r)}}(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}var PI={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==du){0,Bu("")}var n=function(e,t){for(var n=[],r=[],o=(t=t||{}).boundIQR,l="none"===o||0===o,i=0;i<e.length;i++){var c=Qn(e[i].slice()),f=dr(c,.25),d=dr(c,.5),v=dr(c,.75),m=c[0],y=c[c.length-1],_=(null==o?1.5:o)*(v-f),x=l?m:Math.max(m,f-_),w=l?y:Math.min(y,v+_),S=t.itemNameFormatter,k=Object(h.w)(S)?S({value:i}):Object(h.C)(S)?S.replace("{value}",i+""):i+"";n.push([k,x,f,d,v,w]);for(var O=0;O<c.length;O++){var C=c[O];if(C<x||C>w){var T=[k,C];r.push(T)}}}return{boxData:n,outliers:r}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var NI=["color","borderColor"],LI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){sp(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var data=e.getData(),t=this._data,n=this.group,r=data.getLayout("isSimpleBox"),o=e.get("clip",!0),l=e.coordinateSystem,c=l.getArea&&l.getArea();this._data||n.removeAll(),data.diff(t).add((function(t){if(data.hasValue(t)){var l=data.getItemLayout(t);if(o&&BI(c,l))return;var h=FI(l,t,!0);ps(h,{shape:{points:l.ends}},e,t),zI(h,data,t,r),n.add(h),data.setItemGraphicEl(t,h)}})).update((function(l,h){var f=t.getItemGraphicEl(h);if(data.hasValue(l)){var d=data.getItemLayout(l);o&&BI(c,d)?n.remove(f):(f?(ds(f,{shape:{points:d.ends}},e,l),bs(f)):f=FI(d,l),zI(f,data,l,r),n.add(f),data.setItemGraphicEl(l,f))}else n.remove(f)})).remove((function(e){var r=t.getItemGraphicEl(e);r&&n.remove(r)})).execute(),this._data=data},t.prototype._renderLarge=function(e){this._clear(),qI(e,this.group);var t=e.get("clip",!0)?y_(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,data=t.getData(),r=data.getLayout("isSimpleBox");null!=(n=e.next());){var o=FI(data.getItemLayout(n),n);zI(o,data,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){qI(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(vp),jI=function(){},RI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return l(t,e),t.prototype.getDefaultShape=function(){return new jI},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Do);function FI(e,t,n){var r=e.ends;return new RI({shape:{points:n?$I(r,e):r},z2:100})}function BI(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function zI(e,data,t,n){var r=data.getItemModel(t);e.useStyle(data.getItemVisual(t,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,os(e,r)}function $I(e,t){return h.H(e,(function(e){return(e=e.slice())[1]=t.initBaseline,e}))}var VI=function(){},HI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return l(t,e),t.prototype.getDefaultShape=function(){return new VI},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];e.moveTo(r,n[i++]),e.lineTo(r,n[i++])}else i+=3},t}(Do);function qI(e,t,n,r){var data=e.getData(),o=data.getLayout("largePoints"),l=new HI({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(l);var c=new HI({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(c),WI(1,l,e,data),WI(-1,c,e,data),r&&(l.incremental=!0,c.incremental=!0),n&&n.push(l,c)}function WI(e,t,n,data){var r=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(NI);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var UI=LI,GI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return l(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,data,t){var n=data.getItemLayout(e);return n&&t.rect(n.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(tf);Object(h.K)(GI,_I,!0);var YI=GI;function KI(option){option&&h.t(option.series)&&h.k(option.series,(function(e){h.A(e)&&"k"===e.type&&(e.type="candlestick")}))}var XI=["itemStyle","borderColor"],ZI=["itemStyle","borderColor0"],JI=["itemStyle","color"],QI=["itemStyle","color0"],eD={seriesType:"candlestick",plan:of(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?JI:QI)}function r(e,t){return t.get(e>0?XI:ZI)}if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,data){for(var t;null!=(t=e.next());){var o=data.getItemModel(t),l=data.getItemLayout(t).sign,style=o.getItemStyle();style.fill=n(l,o),style.stroke=r(l,o)||style.fill;var c=data.ensureUniqueItemVisual(t,"style");Object(h.m)(c,style)}}}}};function tD(e,t,n,r,o){return n>r?-1:n<r?1:t>0?e.get(o,t-1)<=r?1:-1:1}var nD={seriesType:"candlestick",plan:of(),reset:function(e){var t=e.coordinateSystem,data=e.getData(),n=function(e,data){var t,n=e.getBaseAxis(),r="category"===n.type?n.getBandWidth():(t=n.getExtent(),Math.abs(t[1]-t[0])/data.count()),o=Zn(Object(h.P)(e.get("barMaxWidth"),r),r),l=Zn(Object(h.P)(e.get("barMinWidth"),1),r),c=e.get("barWidth");return null!=c?Zn(c,r):Math.max(Math.min(r/2,o),l)}(e,data),r=["x","y"],o=data.getDimensionIndex(data.mapDimension(r[0])),l=Object(h.H)(data.mapDimensionsAll(r[1]),data.getDimensionIndex,data),c=l[0],f=l[1],d=l[2],v=l[3];if(data.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(o<0||l.length<4))return{progress:e.pipelineContext.large?function(e,data){var n,r,l=s_(4*e.count),h=0,m=[],y=[],_=data.getStore();for(;null!=(r=e.next());){var x=_.get(o,r),w=_.get(c,r),S=_.get(f,r),k=_.get(d,r),O=_.get(v,r);isNaN(x)||isNaN(k)||isNaN(O)?(l[h++]=NaN,h+=3):(l[h++]=tD(_,r,w,S,f),m[0]=x,m[1]=k,n=t.dataToPoint(m,null,y),l[h++]=n?n[0]:NaN,l[h++]=n?n[1]:NaN,m[1]=O,n=t.dataToPoint(m,null,y),l[h++]=n?n[1]:NaN)}data.setLayout("largePoints",l)}:function(e,data){var r,l=data.getStore();for(;null!=(r=e.next());){var h=l.get(o,r),m=l.get(c,r),y=l.get(f,r),_=l.get(d,r),x=l.get(v,r),w=Math.min(m,y),S=Math.max(m,y),k=A(w,h),O=A(S,h),C=A(_,h),T=A(x,h),E=[];M(E,O,0),M(E,k,1),E.push(D(T),D(O),D(C),D(k)),data.setItemLayout(r,{sign:tD(l,r,m,y,f),initBaseline:m>y?O[1]:k[1],ends:E,brushRect:I(_,x,h)})}function A(e,n){var p=[];return p[0]=n,p[1]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(p)}function M(e,t,r){var o=t.slice(),l=t.slice();o[0]=Ud(o[0]+n/2,1,!1),l[0]=Ud(l[0]-n/2,1,!0),r?e.push(o,l):e.push(l,o)}function I(e,t,r){var o=A(e,r),l=A(t,r);return o[0]-=n/2,l[0]-=n/2,{x:o[0],y:o[1],width:n,height:l[1]-o[1]}}function D(e){return e[0]=Ud(e[0],1),e}}}}};function rD(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var iD=function(e){function t(data,t){var n=e.call(this)||this,symbol=new Zb(data,t),r=new qn;return n.add(symbol),n.add(r),n.updateData(data,t),n}return l(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,o=this.childAt(1),i=0;i<r;i++){var l=Tg(t,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var c=-i/r*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(c).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(c).start(),o.add(l)}rD(o,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var o=r[i];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}rD(n,e)},t.prototype.highlight=function(){$a(this)},t.prototype.downplay=function(){Va(this)},t.prototype.getSymbolType=function(){var symbol=this.childAt(0);return symbol&&symbol.getSymbolType()},t.prototype.updateData=function(data,e){var t=this,n=data.hostModel;this.childAt(0).updateData(data,e);var r=this.childAt(1),o=data.getItemModel(e),l=data.getItemVisual(e,"symbol"),c=Eg(data.getItemVisual(e,"symbolSize")),h=data.getItemVisual(e,"style"),f=h&&h.fill,d=o.getModel("emphasis");r.setScale(c),r.traverse((function(e){e.setStyle("fill",f)}));var v=Ag(data.getItemVisual(e,"symbolOffset"),c);v&&(r.x=v[0],r.y=v[1]);var m=data.getItemVisual(e,"symbolRotate");r.rotation=(m||0)*Math.PI/180||0;var y={};y.showEffectOn=n.get("showEffectOn"),y.rippleScale=o.get(["rippleEffect","scale"]),y.brushType=o.get(["rippleEffect","brushType"]),y.period=1e3*o.get(["rippleEffect","period"]),y.effectOffset=e/data.count(),y.z=n.getShallow("z")||0,y.zlevel=n.getShallow("zlevel")||0,y.symbolType=l,y.color=f,y.rippleEffectColor=o.get(["rippleEffect","color"]),y.rippleNumber=o.get(["rippleEffect","number"]),"render"===y.showEffectOn?(this._effectCfg?this.updateEffectAnimation(y):this.startEffectAnimation(y),this._effectCfg=y):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==y.showEffectOn&&t.startEffectAnimation(y):"normal"===e&&"render"!==y.showEffectOn&&t.stopEffectAnimation()}),this._effectCfg=y,ts(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(qn),oD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.init=function(){this._symbolDraw=new n_(iD)},t.prototype.render=function(e,t,n){var data=e.getData(),r=this._symbolDraw;r.updateData(data,{clipShape:this._getClipShape(e)}),this.group.add(r.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var data=e.getData();this.group.dirty();var r=D_("").reset(e,t,n);r.progress&&r.progress({start:0,end:data.count(),count:data.count()},data),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var a,b,t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=(a=t.getRoamTransform(),oe(b=[1,0,0,1,0,0],a),b),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(vp),aD=oD,sD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return l(t,e),t.prototype.getInitialData=function(option,e){return qb(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,data,t){return t.point(data.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(tf),lD=sD;var uD=function(e){function t(t,n,r){var o=e.call(this)||this;return o.add(o.createLine(t,n,r)),o._updateEffectSymbol(t,n),o}return l(t,e),t.prototype.createLine=function(e,t,n){return new jE(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),r=n.get("symbolSize"),o=n.get("symbol");h.t(r)||(r=[r,r]);var l=e.getItemVisual(t,"style"),c=n.get("color")||l&&l.stroke,symbol=this.childAt(1);this._symbolType!==o&&(this.remove(symbol),(symbol=Tg(o,-.5,-.5,1,1,c)).z2=100,symbol.culling=!0,this.add(symbol)),symbol&&(symbol.setStyle("shadowColor",c),symbol.setStyle(n.getItemStyle(["color"])),symbol.scaleX=r[0],symbol.scaleY=r[1],symbol.setColor(c),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var symbol=this.childAt(1);if(symbol){var r=e.getItemLayout(n),o=1e3*t.get("period"),l=t.get("loop"),c=t.get("roundTrip"),f=t.get("constantSpeed"),d=h.O(t.get("delay"),(function(t){return t/e.count()*o/3}));if(symbol.ignore=!0,this._updateAnimationPoints(symbol,r),f>0&&(o=this._getLineLength(symbol)/f*1e3),o!==this._period||l!==this._loop||c!==this._roundTrip){symbol.stopAnimation();var v=void 0;v=h.w(d)?d(n):d,symbol.__t>0&&(v=-o*symbol.__t),this._animateSymbol(symbol,o,v,l,c)}this._period=o,this._loop=l,this._roundTrip=c}},t.prototype._animateSymbol=function(symbol,e,t,n,r){if(e>0){symbol.__t=0;var o=this,l=symbol.animate("",n).when(r?2*e:e,{__t:r?2:1}).delay(t).during((function(){o._updateSymbolPosition(symbol)}));n||l.done((function(){o.remove(symbol)})),l.start()}},t.prototype._getLineLength=function(symbol){return O(symbol.__p1,symbol.__cp1)+O(symbol.__cp1,symbol.__p2)},t.prototype._updateAnimationPoints=function(symbol,e){symbol.__p1=e[0],symbol.__p2=e[1],symbol.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(symbol){var e=symbol.__p1,t=symbol.__p2,n=symbol.__cp1,r=symbol.__t<1?symbol.__t:2-symbol.__t,o=[symbol.x,symbol.y],l=o.slice(),c=ct,h=ht;o[0]=c(e[0],n[0],t[0],r),o[1]=c(e[1],n[1],t[1],r);var f=symbol.__t<1?h(e[0],n[0],t[0],r):h(t[0],n[0],e[0],1-r),d=symbol.__t<1?h(e[1],n[1],t[1],r):h(t[1],n[1],e[1],1-r);symbol.rotation=-Math.atan2(d,f)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==symbol.__lastT&&symbol.__lastT<symbol.__t?(symbol.scaleY=1.05*O(l,o),1===r&&(o[0]=l[0]+(o[0]-l[0])/2,o[1]=l[1]+(o[1]-l[1])/2)):1===symbol.__lastT?symbol.scaleY=2*O(e,o):symbol.scaleY=this._symbolScale[1]),symbol.__lastT=symbol.__t,symbol.ignore=!1,symbol.x=o[0],symbol.y=o[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(qn),cD=function(e){function t(t,n,r){var o=e.call(this)||this;return o._createPolyline(t,n,r),o}return l(t,e),t.prototype._createPolyline=function(e,t,n){var r=e.getItemLayout(t),line=new id({shape:{points:r}});this.add(line),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;ds(this.childAt(0),{shape:{points:e.getItemLayout(t)}},r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var line=this.childAt(0),r=e.getItemModel(t),o=n&&n.emphasisLineStyle,l=n&&n.focus,c=n&&n.blurScope,h=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var f=r.getModel("emphasis");o=f.getModel("lineStyle").getLineStyle(),h=f.get("disabled"),l=f.get("focus"),c=f.get("blurScope")}line.useStyle(e.getItemVisual(t,"style")),line.style.fill=null,line.style.strokeNoScale=!0,line.ensureState("emphasis").style=o,ts(this,l,c,h)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(qn),hD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return l(t,e),t.prototype.createLine=function(e,t,n){return new cD(e,t,n)},t.prototype._updateAnimationPoints=function(symbol,e){this._points=e;for(var t=[0],n=0,i=1;i<e.length;i++){var r=e[i-1],o=e[i];n+=O(r,o),t.push(n)}if(0!==n){for(i=0;i<t.length;i++)t[i]/=n;this._offsets=t,this._length=n}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(symbol){var e=symbol.__t<1?symbol.__t:2-symbol.__t,t=this._points,n=this._offsets,r=t.length;if(n){var o,l=this._lastFrame;if(e<this._lastFramePercent){for(o=Math.min(l+1,r-1);o>=0&&!(n[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=l;o<r&&!(n[o]>e);o++);o=Math.min(o-1,r-2)}var p=(e-n[o])/(n[o+1]-n[o]),c=t[o],h=t[o+1];symbol.x=c[0]*(1-p)+p*h[0],symbol.y=c[1]*(1-p)+p*h[1];var f=symbol.__t<1?h[0]-c[0]:c[0]-h[0],d=symbol.__t<1?h[1]-c[1]:c[1]-h[1];symbol.rotation=-Math.atan2(d,f)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,symbol.ignore=!1}},t}(uD),fD=hD,dD=function(){this.polyline=!1,this.curveness=0,this.segs=[]},pD=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return l(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dD},t.prototype.buildPath=function(e,t){var i,n=t.segs,r=t.curveness;if(t.polyline)for(i=this._off;i<n.length;){var o=n[i++];if(o>0){e.moveTo(n[i++],n[i++]);for(var l=1;l<o;l++)e.lineTo(n[i++],n[i++])}}else for(i=this._off;i<n.length;){var c=n[i++],h=n[i++],f=n[i++],d=n[i++];if(e.moveTo(c,h),r>0){var v=(c+f)/2-(h-d)*r,m=(h+d)/2-(f-c)*r;e.quadraticCurveTo(v,m,f,d)}else e.lineTo(f,d)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,o=n.curveness,l=this.style.lineWidth;if(n.polyline)for(var c=0,i=0;i<r.length;){var h=r[i++];if(h>0)for(var f=r[i++],d=r[i++],v=1;v<h;v++){if(fo(f,d,m=r[i++],y=r[i++],l,e,t))return c}c++}else for(c=0,i=0;i<r.length;){f=r[i++],d=r[i++];var m=r[i++],y=r[i++];if(o>0){if(go(f,d,(f+m)/2-(d-y)*o,(d+y)/2-(m-f)*o,m,y,l,e,t))return c}else if(fo(f,d,m,y,l,e,t))return c;c++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),rect=this.getBoundingRect();return e=n[0],t=n[1],rect.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var rect=this._rect;if(!rect){for(var e=this.shape.segs,t=1/0,n=1/0,r=-1/0,o=-1/0,i=0;i<e.length;){var l=e[i++],c=e[i++];t=Math.min(l,t),r=Math.max(l,r),n=Math.min(c,n),o=Math.max(c,o)}rect=this._rect=new _e(t,n,r,o)}return rect},t}(Do),gD=function(){function e(){this.group=new qn}return e.prototype.updateData=function(data){this._clear();var e=this._create();e.setShape({segs:data.getLayout("linesPoints")}),this._setCommon(e,data)},e.prototype.incrementalPrepareUpdate=function(data){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,data){var t=this._newAdded[0],n=data.getLayout("linesPoints"),r=t&&t.shape.segs;if(r&&r.length<2e4){var o=r.length,l=new Float32Array(o+n.length);l.set(r),l.set(n,o),t.setShape({segs:l})}else{this._newAdded=[];var c=this._create();c.incremental=!0,c.setShape({segs:n}),this._setCommon(c,data),c.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new pD({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,data,t){var n=data.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var style=data.getVisual("style");style&&style.stroke&&e.setStyle("stroke",style.stroke),e.setStyle("fill",null);var r=ca(e);r.seriesIndex=n.seriesIndex,e.on("mousemove",(function(t){r.dataIndex=null;var n=e.hoverDataIdx;n>0&&(r.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),vD={seriesType:"lines",plan:of(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(o,l){var c=[];if(r){var h=void 0,f=o.end-o.start;if(n){for(var d=0,i=o.start;i<o.end;i++)d+=e.getLineCoordsCount(i);h=new Float32Array(f+2*d)}else h=new Float32Array(4*f);var v=0,m=[];for(i=o.start;i<o.end;i++){var y=e.getLineCoords(i,c);n&&(h[v++]=y);for(var _=0;_<y;_++)m=t.dataToPoint(c[_],!1,m),h[v++]=m[0],h[v++]=m[1]}l.setLayout("linesPoints",h)}else for(i=o.start;i<o.end;i++){var x=l.getItemModel(i),w=(y=e.getLineCoords(i,c),[]);if(n)for(var S=0;S<y;S++)w.push(t.dataToPoint(c[S]));else{w[0]=t.dataToPoint(c[0]),w[1]=t.dataToPoint(c[1]);var k=x.get(["lineStyle","curveness"]);+k&&(w[2]=[(w[0][0]+w[1][0])/2-(w[0][1]-w[1][1])*k,(w[0][1]+w[1][1])/2-(w[1][0]-w[0][0])*k])}l.setItemLayout(i,w)}}}}}},mD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n){var data=e.getData(),r=this._updateLineDraw(data,e),o=e.get("zlevel"),l=e.get(["effect","trailLength"]),c=n.getZr(),h="svg"===c.painter.getType();h||c.painter.getLayer(o).clear(!0),null==this._lastZlevel||h||c.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&(h||c.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),r.updateData(data);var f=e.get("clip",!0)&&y_(e.coordinateSystem,!1,e);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var data=e.getData();this._updateLineDraw(data,e).incrementalPrepareUpdate(data),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var data=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=vD.reset(e,t,n);o.progress&&o.progress({start:0,end:data.count(),count:data.count()},data),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(data,e){var t=this._lineDraw,n=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return t&&n===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(t&&t.remove(),t=this._lineDraw=o?new gD:new zE(r?n?fD:cD:n?uD:jE),this._hasEffet=n,this._isPolyline=r,this._isLargeDraw=o),this.group.add(t.group),t},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(vp),yD=mD,bD="undefined"==typeof Uint32Array?Array:Uint32Array,_D="undefined"==typeof Float64Array?Array:Float64Array;function xD(e){var data=e.data;data&&data[0]&&data[0][0]&&data[0][0].coord&&(e.data=Object(h.H)(data,(function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),Object(h.J)([t,e[0],e[1]])})))}var wD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return l(t,e),t.prototype.init=function(option){option.data=option.data||[],xD(option);var t=this._processFlatCoordsArray(option.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(option.data=new Float32Array(t.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(option){if(xD(option),option.data){var t=this._processFlatCoordsArray(option.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(option.data=new Float32Array(t.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(h.e)(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(h.e)(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow("coords")},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+2*i],t[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(e);for(i=0;i<o.length;i++)t[i]=t[i]||[],t[i][0]=o[i][0],t[i][1]=o[i][1];return o.length},t.prototype._processFlatCoordsArray=function(data){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(h.z)(data[0])){for(var t=data.length,n=new bD(t),r=new _D(t),o=0,l=0,c=0,i=0;i<t;){c++;var f=data[i++];n[l++]=o+e,n[l++]=f;for(var d=0;d<f;d++){var v=data[i++],m=data[i++];r[o++]=v,r[o++]=m}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:r,count:c}}return{flatCoordsOffset:null,flatCoords:null,count:data.length}},t.prototype.getInitialData=function(option,e){var t=new Lb(["value"],this);return t.hasItemOption=!1,t.initData(option.data,[],(function(e,n,r,o){if(e instanceof Array)return NaN;t.hasItemOption=!0;var l=e.value;return null!=l?l instanceof Array?l[o]:l:void 0})),t},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().getItemModel(e),o=r.get("name");if(o)return o;var l=r.get("fromName"),c=r.get("toName"),h=[];return null!=l&&h.push(l),null!=c&&h.push(c),Dh("nameValue",{name:h.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(tf),SD=wD;function kD(a){return a instanceof Array||(a=[a,a]),a}var OD={seriesType:"lines",reset:function(e){var t=kD(e.get("symbol")),n=kD(e.get("symbolSize")),data=e.getData();return data.setVisual("fromSymbol",t&&t[0]),data.setVisual("toSymbol",t&&t[1]),data.setVisual("fromSymbolSize",n&&n[0]),data.setVisual("toSymbolSize",n&&n[1]),{dataEach:data.hasItemOption?function(data,e){var t=data.getItemModel(e),n=kD(t.getShallow("symbol",!0)),r=kD(t.getShallow("symbolSize",!0));n[0]&&data.setItemVisual(e,"fromSymbol",n[0]),n[1]&&data.setItemVisual(e,"toSymbol",n[1]),r[0]&&data.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&data.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var CD=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var canvas=wn.d.createCanvas();this.canvas=canvas}return e.prototype.update=function(data,e,t,n,r,o){var l=this._getBrush(),c=this._getGradient(r,"inRange"),h=this._getGradient(r,"outOfRange"),f=this.pointSize+this.blurSize,canvas=this.canvas,d=canvas.getContext("2d"),v=data.length;canvas.width=e,canvas.height=t;for(var i=0;i<v;++i){var p=data[i],m=p[0],y=p[1],_=n(p[2]);d.globalAlpha=_,d.drawImage(l,m-f,y-f)}if(!canvas.width||!canvas.height)return canvas;for(var x=d.getImageData(0,0,canvas.width,canvas.height),w=x.data,S=0,k=w.length,O=this.minOpacity,C=this.maxOpacity-O;S<k;){_=w[S+3]/256;var T=4*Math.floor(255*_);if(_>0){var E=o(_)?c:h;_>0&&(_=_*C+O),w[S++]=E[T],w[S++]=E[T+1],w[S++]=E[T+2],w[S++]=E[T+3]*_*256}else S+=4}return d.putImageData(x,0,0),canvas},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=wn.d.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),o=[0,0,0,0],l=0,i=0;i<256;i++)e[t](i/255,!0,o),r[l++]=o[0],r[l++]=o[1],r[l++]=o[2],r[l++]=o[3];return r},e}(),TD=CD;function ED(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var AD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):ED(o)&&this._renderOnGeo(o,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var o=t.coordinateSystem;o&&(ED(o)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){sp(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,o){var l,c,h,f,d=e.coordinateSystem,v=b_(d,"cartesian2d");if(v){var m=d.getAxis("x"),y=d.getAxis("y");0,l=m.getBandWidth()+.5,c=y.getBandWidth()+.5,h=m.scale.getExtent(),f=y.scale.getExtent()}for(var _=this.group,data=e.getData(),x=e.getModel(["emphasis","itemStyle"]).getItemStyle(),w=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),k=e.get(["itemStyle","borderRadius"]),O=ks(e),C=e.getModel("emphasis"),T=C.get("focus"),E=C.get("blurScope"),A=C.get("disabled"),M=v?[data.mapDimension("x"),data.mapDimension("y"),data.mapDimension("value")]:[data.mapDimension("time"),data.mapDimension("value")],I=n;I<r;I++){var rect=void 0,style=data.getItemVisual(I,"style");if(v){var D=data.get(M[0],I),P=data.get(M[1],I);if(isNaN(data.get(M[2],I))||D<h[0]||D>h[1]||P<f[0]||P>f[1])continue;var N=d.dataToPoint([D,P]);rect=new Go({shape:{x:N[0]-l/2,y:N[1]-c/2,width:l,height:c},style:style})}else{if(isNaN(data.get(M[1],I)))continue;rect=new Go({z2:1,shape:d.dataToRect([data.get(M[0],I)]).contentShape,style:style})}if(data.hasItemOption){var L=data.getItemModel(I),j=L.getModel("emphasis");x=j.getModel("itemStyle").getItemStyle(),w=L.getModel(["blur","itemStyle"]).getItemStyle(),S=L.getModel(["select","itemStyle"]).getItemStyle(),k=L.get(["itemStyle","borderRadius"]),T=j.get("focus"),E=j.get("blurScope"),A=j.get("disabled"),O=ks(L)}rect.shape.r=k;var R=e.getRawValue(I),F="-";R&&null!=R[2]&&(F=R[2]+""),Ss(rect,O,{labelFetcher:e,labelDataIndex:I,defaultOpacity:style.opacity,defaultText:F}),rect.ensureState("emphasis").style=x,rect.ensureState("blur").style=w,rect.ensureState("select").style=S,ts(rect,T,E,A),rect.incremental=o,o&&(rect.states.emphasis.hoverLayer=!0),_.add(rect),data.setItemGraphicEl(I,rect),this._progressiveEls&&this._progressiveEls.push(rect)}},t.prototype._renderOnGeo=function(e,t,n,r){var o=n.targetVisuals.inRange,l=n.targetVisuals.outOfRange,data=t.getData(),c=this._hmLayer||this._hmLayer||new TD;c.blurSize=t.get("blurSize"),c.pointSize=t.get("pointSize"),c.minOpacity=t.get("minOpacity"),c.maxOpacity=t.get("maxOpacity");var rect=e.getViewRect().clone(),f=e.getRoamTransform();rect.applyTransform(f);var d=Math.max(rect.x,0),v=Math.max(rect.y,0),m=Math.min(rect.width+rect.x,r.getWidth()),y=Math.min(rect.height+rect.y,r.getHeight()),_=m-d,x=y-v,w=[data.mapDimension("lng"),data.mapDimension("lat"),data.mapDimension("value")],S=data.mapArray(w,(function(t,n,r){var o=e.dataToPoint([t,n]);return o[0]-=d,o[1]-=v,o.push(r),o})),k=n.getExtent(),O="visualMap.continuous"===n.type?function(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}(k,n.option.range):function(e,t,n){var r=e[1]-e[0],o=(t=h.H(t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}))).length,l=0;return function(e){var i;for(i=l;i<o;i++)if((r=t[i].interval)[0]<=e&&e<=r[1]){l=i;break}if(i===o)for(i=l-1;i>=0;i--){var r;if((r=t[i].interval)[0]<=e&&e<=r[1]){l=i;break}}return i>=0&&i<o&&n[i]}}(k,n.getPieceList(),n.option.selected);c.update(S,_,x,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:l.color.getColorMapper()},O);var img=new Bo({style:{width:_,height:x,x:d,y:v,image:c.canvas},silent:!0});this.group.add(img)},t.type="heatmap",t}(vp),MD=AD,ID=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.getInitialData=function(option,e){return qb(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Ku.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(tf),DD=ID;var PD=["itemStyle","borderWidth"],ND=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],LD=new Ef,jD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n){var r=this.group,data=e.getData(),o=this._data,l=e.coordinateSystem,c=l.getBaseAxis().isHorizontal(),h=l.master.getRect(),f={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:c,valueDim:ND[+c],categoryDim:ND[1-+c]};return data.diff(o).add((function(e){if(data.hasValue(e)){var t=qD(data,e),n=RD(data,e,t,f),o=GD(data,f,n);data.setItemGraphicEl(e,o),r.add(o),JD(o,f,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(data.hasValue(e)){var l=qD(data,e),c=RD(data,e,l,f),h=KD(data,c);n&&h!==n.__pictorialShapeStr&&(r.remove(n),data.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var r=n.animationModel,o=n.dataIndex;ds(e.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,o),n.symbolRepeat?zD(e,t,n,!0):$D(e,t,n,!0);VD(e,n,!0),HD(e,t,n,!0)}(n,f,c):n=GD(data,f,c,!0),data.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=c,r.add(n),JD(n,f,c)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&YD(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=data,this.group},t.prototype.remove=function(e,t){var n=this.group,data=this._data;e.get("animation")?data&&data.eachItemGraphicEl((function(t){YD(data,ca(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(vp);function RD(data,e,t,n){var r=data.getItemLayout(e),o=t.get("symbolRepeat"),l=t.get("symbolClip"),c=t.get("symbolPosition")||"start",f=(t.get("symbolRotate")||0)*Math.PI/180||0,d=t.get("symbolPatternSize")||2,v=t.isAnimationEnabled(),m={dataIndex:e,layout:r,itemModel:t,symbolType:data.getItemVisual(e,"symbol")||"circle",style:data.getItemVisual(e,"style"),symbolClip:l,symbolRepeat:o,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:d,rotation:f,animationModel:v?t:null,hoverScale:v&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};!function(e,t,n,r,o){var l,c=r.valueDim,f=e.get("symbolBoundingData"),d=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),v=d.toGlobalCoord(d.dataToCoord(0)),m=1-+(n[c.wh]<=0);if(h.t(f)){var y=[FD(d,f[0])-v,FD(d,f[1])-v];y[1]<y[0]&&y.reverse(),l=y[m]}else l=null!=f?FD(d,f)-v:t?r.coordSysExtent[c.index][m]-v:n[c.wh];o.boundingLength=l,t&&(o.repeatCutLength=n[c.wh]);o.pxSign=l>0?1:-1}(t,o,r,n,m),function(data,e,t,n,r,o,l,c,f,d){var v,m=f.valueDim,y=f.categoryDim,_=Math.abs(t[y.wh]),x=data.getItemVisual(e,"symbolSize");v=h.t(x)?x.slice():null==x?["100%","100%"]:[x,x];v[y.index]=Zn(v[y.index],_),v[m.index]=Zn(v[m.index],n?_:Math.abs(o)),d.symbolSize=v,(d.symbolScale=[v[0]/c,v[1]/c])[m.index]*=(f.isHorizontal?-1:1)*l}(data,e,r,o,0,m.boundingLength,m.pxSign,d,n,m),function(e,t,n,r,o){var l=e.get(PD)||0;l&&(LD.attr({scaleX:t[0],scaleY:t[1],rotation:n}),LD.updateTransform(),l/=LD.getLineScale(),l*=t[r.valueDim.index]);o.valueLineWidth=l||0}(t,m.symbolScale,f,n,m);var y=m.symbolSize,_=Ag(t.get("symbolOffset"),y);return function(e,t,n,r,o,l,c,f,d,v,m,y){var _=m.categoryDim,x=m.valueDim,w=y.pxSign,S=Math.max(t[x.index]+f,0),k=S;if(r){var O=Math.abs(d),C=h.O(e.get("symbolMargin"),"15%")+"",T=!1;C.lastIndexOf("!")===C.length-1&&(T=!0,C=C.slice(0,C.length-1));var E=Zn(C,t[x.index]),A=Math.max(S+2*E,0),M=T?0:2*E,I=vr(r),D=I?r:QD((O+M)/A);A=S+2*(E=(O-D*S)/2/(T?D:Math.max(D-1,1))),M=T?0:2*E,I||"fixed"===r||(D=v?QD((Math.abs(v)+M)/A):0),k=D*A-M,y.repeatTimes=D,y.symbolMargin=E}var P=w*(k/2),N=y.pathPosition=[];N[_.index]=n[_.wh]/2,N[x.index]="start"===c?P:"end"===c?d-P:d/2,l&&(N[0]+=l[0],N[1]+=l[1]);var L=y.bundlePosition=[];L[_.index]=n[_.xy],L[x.index]=n[x.xy];var j=y.barRectShape=h.m({},n);j[x.wh]=w*Math.max(Math.abs(n[x.wh]),Math.abs(N[x.index]+P)),j[_.wh]=n[_.wh];var R=y.clipShape={};R[_.xy]=-n[_.xy],R[_.wh]=m.ecSize[_.wh],R[x.xy]=0,R[x.wh]=n[x.wh]}(t,y,r,o,0,_,c,m.valueLineWidth,m.boundingLength,m.repeatCutLength,n,m),m}function FD(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function BD(e){var t=e.symbolPatternSize,path=Tg(e.symbolType,-t/2,-t/2,t,t);return path.attr({culling:!0}),"image"!==path.type&&path.setStyle({strokeNoScale:!0}),path}function zD(e,t,n,r){var o=e.__pictorialBundle,l=n.symbolSize,c=n.valueLineWidth,h=n.pathPosition,f=t.valueDim,d=n.repeatTimes||0,v=0,m=l[t.valueDim.index]+c+2*n.symbolMargin;for(XD(e,(function(path){path.__pictorialAnimationIndex=v,path.__pictorialRepeatTimes=d,v<d?ZD(path,null,_(v),n,r):ZD(path,null,{scaleX:0,scaleY:0},n,r,(function(){o.remove(path)})),v++}));v<d;v++){var path=BD(n);path.__pictorialAnimationIndex=v,path.__pictorialRepeatTimes=d,o.add(path);var y=_(v);ZD(path,{x:y.x,y:y.y,scaleX:0,scaleY:0},{scaleX:y.scaleX,scaleY:y.scaleY,rotation:y.rotation},n,r)}function _(e){var t=h.slice(),r=n.pxSign,i=e;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=d-1-e),t[f.index]=m*(i-d/2+.5)+h[f.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function $D(e,t,n,r){var o=e.__pictorialBundle,l=e.__pictorialMainPath;l?ZD(l,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(l=e.__pictorialMainPath=BD(n),o.add(l),ZD(l,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function VD(e,t,n){var r=h.m({},t.barRectShape),o=e.__pictorialBarRect;o?ZD(o,null,{shape:r},t,n):((o=e.__pictorialBarRect=new Go({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,e.add(o))}function HD(e,t,n,o){if(n.symbolClip){var l=e.__pictorialClipPath,c=h.m({},n.clipShape),f=t.valueDim,d=n.animationModel,v=n.dataIndex;if(l)ds(l,{shape:c},d,v);else{c[f.wh]=0,l=new Go({shape:c}),e.__pictorialBundle.setClipPath(l),e.__pictorialClipPath=l;var m={};m[f.wh]=n.clipShape[f.wh],r[o?"updateProps":"initProps"](l,{shape:m},d,v)}}}function qD(data,e){var t=data.getItemModel(e);return t.getAnimationDelayParams=WD,t.isAnimationEnabled=UD,t}function WD(path){return{index:path.__pictorialAnimationIndex,count:path.__pictorialRepeatTimes}}function UD(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function GD(data,e,t,n){var r=new qn,o=new qn;return r.add(o),r.__pictorialBundle=o,o.x=t.bundlePosition[0],o.y=t.bundlePosition[1],t.symbolRepeat?zD(r,e,t):$D(r,0,t),VD(r,t,n),HD(r,e,t,n),r.__pictorialShapeStr=KD(data,t),r.__pictorialSymbolMeta=t,r}function YD(data,e,t,n){var r=n.__pictorialBarRect;r&&r.removeTextContent();var o=[];XD(n,(function(path){o.push(path)})),n.__pictorialMainPath&&o.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),h.k(o,(function(path){vs(path,{scaleX:0,scaleY:0},t,e,(function(){n.parent&&n.parent.remove(n)}))})),data.setItemGraphicEl(e,null)}function KD(data,e){return[data.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function XD(e,t,n){h.k(e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function ZD(e,t,n,o,l,c){t&&e.attr(t),o.symbolClip&&!l?n&&e.attr(n):n&&r[l?"updateProps":"initProps"](e,n,o.animationModel,o.dataIndex,c)}function JD(e,t,n){var r=n.dataIndex,o=n.itemModel,l=o.getModel("emphasis"),c=l.getModel("itemStyle").getItemStyle(),f=o.getModel(["blur","itemStyle"]).getItemStyle(),d=o.getModel(["select","itemStyle"]).getItemStyle(),v=o.getShallow("cursor"),m=l.get("focus"),y=l.get("blurScope"),_=l.get("scale");XD(e,(function(path){if(path instanceof Bo){var e=path.style;path.useStyle(h.m({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else path.useStyle(n.style);var t=path.ensureState("emphasis");t.style=c,_&&(t.scaleX=1.1*path.scaleX,t.scaleY=1.1*path.scaleY),path.ensureState("blur").style=f,path.ensureState("select").style=d,v&&(path.cursor=v),path.z2=n.z2}));var x=t.valueDim.posDesc[+(n.boundingLength>0)];Ss(e.__pictorialBarRect,ks(o),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:Gb(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:x}),ts(e,m,y,l.get("disabled"))}function QD(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var eP=jD,tP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return l(t,e),t.prototype.getInitialData=function(option){return option.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Zs(G_.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(G_),nP=tP;var rP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return l(t,e),t.prototype.render=function(e,t,n){var data=e.getData(),r=this,o=this.group,l=e.getLayerSeries(),c=data.getLayout("layoutInfo"),rect=c.rect,f=c.boundaryGap;function d(e){return e.name}o.x=0,o.y=rect.y+f[0];var v=new cb(this._layersSeries||[],l,d,d),m=[];function y(t,n,c){var h=r._layers;if("remove"!==t){for(var style,polygon,f=[],d=[],v=l[n].indices,y=0;y<v.length;y++){var _=data.getItemLayout(v[y]),x=_.x,w=_.y0,S=_.y;f.push(x,w),d.push(x,w+S),style=data.getItemVisual(v[y],"style")}var k=data.getItemLayout(v[0]),O=e.getModel("label").get("margin"),C=e.getModel("emphasis");if("add"===t){var T=m[n]=new qn;polygon=new g_({shape:{points:f,stackedOnPoints:d,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),T.add(polygon),o.add(T),e.isAnimationEnabled()&&polygon.setClipPath(function(rect,e,t){var n=new Go({shape:{x:rect.x-10,y:rect.y-10,width:0,height:rect.height+20}});return ps(n,{shape:{x:rect.x-50,width:rect.width+100,height:rect.height+20}},e,t),n}(polygon.getBoundingRect(),e,(function(){polygon.removeClipPath()})))}else{T=h[c];polygon=T.childAt(0),o.add(T),m[n]=T,ds(polygon,{shape:{points:f,stackedOnPoints:d}},e),bs(polygon)}Ss(polygon,ks(e),{labelDataIndex:v[y-1],defaultText:data.getName(v[y-1]),inheritColor:style.fill},{normal:{verticalAlign:"middle"}}),polygon.setTextConfig({position:null,local:!0});var E=polygon.getTextContent();E&&(E.x=k.x-O,E.y=k.y0+k.y/2),polygon.useStyle(style),data.setItemGraphicEl(n,polygon),os(polygon,e),ts(polygon,C.get("focus"),C.get("blurScope"),C.get("disabled"))}else o.remove(h[n])}v.add(Object(h.c)(y,this,"add")).update(Object(h.c)(y,this,"update")).remove(Object(h.c)(y,this,"remove")).execute(),this._layersSeries=l,this._layers=m},t.type="themeRiver",t}(vp);var iP=rP,oP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.init=function(option){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new jx(h.c(this.getData,this),h.c(this.getRawData,this))},t.prototype.fixData=function(data){var e=data.length,t={},n=qr(data,(function(e){return t.hasOwnProperty(e[0]+"")||(t[e[0]+""]=-1),e[2]})),r=[];n.buckets.each((function(e,t){r.push({name:t,dataList:e})}));for(var o=r.length,l=0;l<o;++l){for(var c=r[l].name,h=0;h<r[l].dataList.length;++h){var f=r[l].dataList[h][0]+"";t[f]=l}for(var f in t)t.hasOwnProperty(f)&&t[f]!==l&&(t[f]=l,data[e]=[f,0,c],e++)}return data},t.prototype.getInitialData=function(option,e){for(var t=this.getReferringComponents("singleAxis",zr).models[0].get("type"),n=h.n(option.data,(function(e){return void 0!==e[2]})),data=this.fixData(n||[]),r=[],o=this.nameMap=h.f(),l=0,i=0;i<data.length;++i)r.push(data[i][2]),o.get(data[i][2])||(o.set(data[i][2],l),l++);var c=jb(data,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:db(t)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,f=new Lb(c,this);return f.initData(data),f},t.prototype.getLayerSeries=function(){for(var data=this.getData(),e=data.count(),t=[],i=0;i<e;++i)t[i]=i;var n=data.mapDimension("single"),r=qr(t,(function(e){return data.get("name",e)})),o=[];return r.buckets.each((function(e,t){e.sort((function(e,t){return data.get(n,e)-data.get(n,t)})),o.push({name:t,indices:e})})),o},t.prototype.getAxisTooltipData=function(e,t,n){h.t(e)||(e=e?[e]:[]);for(var r,data=this.getData(),o=this.getLayerSeries(),l=[],c=o.length,i=0;i<c;++i){for(var f=Number.MAX_VALUE,d=-1,v=o[i].indices.length,m=0;m<v;++m){var y=data.get(e[0],o[i].indices[m]),_=Math.abs(y-t);_<=f&&(r=y,f=_,d=o[i].indices[m])}l.push(d)}return{dataIndices:l,nestestValue:r}},t.prototype.formatTooltip=function(e,t,n){var data=this.getData();return Dh("nameValue",{name:data.getName(e),value:data.get(data.mapDimension("value"),e)})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(tf),aP=oP;function sP(e,t){e.eachSeriesByType("themeRiver",(function(e){var data=e.getData(),t=e.coordinateSystem,n={},rect=t.getRect();n.rect=rect;var r=e.get("boundaryGap"),o=t.getAxis();(n.boundaryGap=r,"horizontal"===o.orient)?(r[0]=Zn(r[0],rect.height),r[1]=Zn(r[1],rect.height),lP(data,e,rect.height-r[0]-r[1])):(r[0]=Zn(r[0],rect.width),r[1]=Zn(r[1],rect.width),lP(data,e,rect.width-r[0]-r[1]));data.setLayout("layoutInfo",n)}))}function lP(data,e,t){if(data.count())for(var n,r=e.coordinateSystem,o=e.getLayerSeries(),l=data.mapDimension("single"),c=data.mapDimension("value"),f=h.H(o,(function(e){return h.H(e.indices,(function(e){var t=r.dataToPoint(data.get(l,e));return t[1]=data.get(c,e),t}))})),base=function(data){for(var e=data.length,t=data[0].length,n=[],r=[],o=0,i=0;i<t;++i){for(var l=0,c=0;c<e;++c)l+=data[c][i][1];l>o&&(o=l),n.push(l)}for(var h=0;h<t;++h)r[h]=(o-n[h])/2;o=0;for(var f=0;f<t;++f){var d=n[f]+r[f];d>o&&(o=d)}return{y0:r,max:o}}(f),d=base.y0,v=t/base.max,m=o.length,y=o[0].indices.length,_=0;_<y;++_){n=d[_]*v,data.setItemLayout(o[0].indices[_],{layerIndex:0,x:f[0][_][0],y0:n,y:f[0][_][1]*v});for(var i=1;i<m;++i)n+=f[i-1][_][1]*v,data.setItemLayout(o[i].indices[_],{layerIndex:i,x:f[i][_][0],y0:n,y:f[i][_][1]*v})}}var uP=function(e){function t(t,n,r,o){var l=e.call(this)||this;l.z2=2,l.textConfig={inside:!0},ca(l).seriesIndex=n.seriesIndex;var text=new ua({z2:4,silent:t.getModel().get(["label","silent"])});return l.setTextContent(text),l.updateData(!0,t,n,r,o),l}return l(t,e),t.prototype.updateData=function(e,t,n,r,o){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var l=this;ca(l).dataIndex=t.dataIndex;var c=t.getModel(),f=c.getModel("emphasis"),d=t.getLayout(),v=h.m({},d);v.label=null;var m=t.getVisual("style");m.lineJoin="bevel";var y=t.getVisual("decal");y&&(m.decal=ev(y,o));var _=Mx(c.getModel("itemStyle"),v,!0);h.m(v,_),h.k(va,(function(e){var t=l.ensureState(e),n=c.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=Mx(n,v);r&&(t.shape=r)})),e?(l.setShape(v),l.shape.r=d.r0,ds(l,{shape:{r:d.r}},n,t.dataIndex)):(ds(l,{shape:v},n),bs(l)),l.useStyle(m),this._updateLabel(n);var x=c.getShallow("cursor");x&&l.attr("cursor",x),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var w=f.get("focus");ts(this,"ancestor"===w?t.getAncestorsIndices():"descendant"===w?t.getDescendantIndices():w,f.get("blurScope"),f.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),o=this.node.getLayout(),l=o.endAngle-o.startAngle,c=(o.startAngle+o.endAngle)/2,f=Math.cos(c),d=Math.sin(c),v=this,label=v.getTextContent(),m=this.node.dataIndex,y=r.get("minAngle")/180*Math.PI,_=r.get("show")&&!(null!=y&&Math.abs(l)<y);function x(e,t){var n=e.get(t);return null==n?r.get(t):n}label.ignore=!_,h.k(ma,(function(r){var y="normal"===r?n.getModel("label"):n.getModel([r,"label"]),_="normal"===r,w=_?label:label.ensureState(r),text=e.getFormattedLabel(m,r);_&&(text=text||t.node.name),w.style=Os(y,{},null,"normal"!==r,!0),text&&(w.style.text=text);var S=y.get("show");null==S||_||(w.ignore=!S);var k,O=x(y,"position"),C=_?v:v.states[r],T=C.style.fill;C.textConfig={outsideFill:"inherit"===y.get("color")?T:null,inside:"outside"!==O};var E=x(y,"distance")||0,A=x(y,"align");"outside"===O?(k=o.r+E,A=c>Math.PI/2?"right":"left"):A&&"center"!==A?"left"===A?(k=o.r0+E,c>Math.PI/2&&(A="right")):"right"===A&&(k=o.r-E,c>Math.PI/2&&(A="left")):(k=l===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,A="center"),w.style.align=A,w.style.verticalAlign=x(y,"verticalAlign")||"middle",w.x=k*f+o.cx,w.y=k*d+o.cy;var M=x(y,"rotate"),I=0;"radial"===M?(I=-c)<-Math.PI/2&&(I+=Math.PI):"tangential"===M?(I=Math.PI/2-c)>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI):h.z(M)&&(I=M*Math.PI/180),w.rotation=I})),label.dirtyStyle()},t}(Gf),cP="sunburstRootToNode",hP="sunburstHighlight";var fP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n,r){var o=this;this.seriesModel=e,this.api=n,this.ecModel=t;var data=e.getData(),l=data.tree.root,c=e.getViewRoot(),f=this.group,d=e.get("renderLabelForZeroData"),v=[];c.eachNode((function(e){v.push(e)}));var m=this._oldChildren||[];!function(r,o){if(0===r.length&&0===o.length)return;function c(e){return e.getId()}function v(c,h){!function(r,o){d||!r||r.getValue()||(r=null);if(r!==l&&o!==l)if(o&&o.piece)r?(o.piece.updateData(!1,r,e,t,n),data.setItemGraphicEl(r.dataIndex,o.piece)):function(e){if(!e)return;e.piece&&(f.remove(e.piece),e.piece=null)}(o);else if(r){var c=new uP(r,e,t,n);f.add(c),data.setItemGraphicEl(r.dataIndex,c)}}(null==c?null:r[c],null==h?null:o[h])}new cb(o,r,c,c).add(v).update(v).remove(h.h(v,null)).execute()}(v,m),function(r,l){l.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,r,e,t,n):(o.virtualPiece=new uP(r,e,t,n),f.add(o.virtualPiece)),l.piece.off("click"),o.virtualPiece.on("click",(function(e){o._rootToNode(l.parentNode)}))):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}(l,c),this._initEvents(),this._oldChildren=v},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1;e.seriesModel.getViewRoot().eachNode((function(r){if(!n&&r.piece&&r.piece===t.target){var o=r.getModel().get("nodeClick");if("rootToNode"===o)e._rootToNode(r);else if("link"===o){var l=r.getModel(),link=l.get("link");if(link)Gl(link,l.get("target",!0)||"_blank")}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:cP,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,o=e[1]-n.cy,l=Math.sqrt(r*r+o*o);return l<=n.r&&l>=n.r0}},t.type="sunburst",t}(vp),dP=fP,pP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return l(t,e),t.prototype.getInitialData=function(option,e){var t={name:option.name,children:option.data};gP(t);var n=this._levelModels=h.H(option.levels||[],(function(t){return new Ys(t,this,e)}),this),r=WC.createTree(t,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var o=r.getNodeByDataIndex(t),l=n[o.depth];return l&&(e.parentModel=l),e}))}));return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=KC(r,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){nT(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(tf);function gP(e){var t=0;h.k(e.children,(function(e){gP(e);var n=e.value;h.t(n)&&(n=n[0]),t+=n}));var n=e.value;h.t(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),h.t(e.value)?e.value[0]=n:e.value=n}var vP=pP,mP=Math.PI/180;function yP(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),r=e.get("radius");h.t(r)||(r=[0,r]),h.t(t)||(t=[t,t]);var o=n.getWidth(),l=n.getHeight(),c=Math.min(o,l),f=Zn(t[0],o),d=Zn(t[1],l),v=Zn(r[0],c/2),m=Zn(r[1],c/2),y=-e.get("startAngle")*mP,_=e.get("minAngle")*mP,x=e.getData().tree.root,w=e.getViewRoot(),S=w.depth,k=e.get("sort");null!=k&&bP(w,k);var O=0;h.k(w.children,(function(e){!isNaN(e.getValue())&&O++}));var C=w.getValue(),T=Math.PI/(C||O)*2,E=w.depth>0,A=w.height-(E?-1:1),M=(m-v)/(A||1),I=e.get("clockwise"),D=e.get("stillShowZeroSum"),P=I?1:-1,N=function(t,n){if(t){var r=n;if(t!==x){var o=t.getValue(),l=0===C&&D?T:o*T;l<_&&(l=_),r=n+P*l;var m=t.depth-S-(E?-1:1),y=v+M*m,w=v+M*(m+1),k=e.getLevelModel(t);if(k){var O=k.get("r0",!0),A=k.get("r",!0),L=k.get("radius",!0);null!=L&&(O=L[0],A=L[1]),null!=O&&(y=Zn(O,c/2)),null!=A&&(w=Zn(A,c/2))}t.setLayout({angle:l,startAngle:n,endAngle:r,clockwise:I,cx:f,cy:d,r0:y,r:w})}if(t.children&&t.children.length){var j=0;h.k(t.children,(function(e){j+=N(e,n+j)}))}return r-n}};if(E){var L=v,j=v+M,R=2*Math.PI;x.setLayout({angle:R,startAngle:y,endAngle:y+R,clockwise:I,cx:f,cy:d,r0:L,r:j})}N(w,y)}))}function bP(e,t){var n=e.children||[];e.children=function(e,t){if(h.w(t)){var n=h.H(e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(a,b){return t(a.params,b.params)})),h.H(n,(function(t){return e[t.index]}))}var r="asc"===t;return e.sort((function(a,b){var e=(a.getValue()-b.getValue())*(r?1:-1);return 0===e?(a.dataIndex-b.dataIndex)*(r?-1:1):e}))}(n,t),n.length&&h.k(e.children,(function(e){bP(e,t)}))}function _P(e){var t={};e.eachSeriesByType("sunburst",(function(e){var data=e.getData(),n=data.tree;n.eachNode((function(r){var style=r.getModel().getModel("itemStyle").getItemStyle();style.fill||(style.fill=function(e,n,r){for(var o=e;o&&o.depth>1;)o=o.parentNode;var l=n.getColorFromPalette(o.name||o.dataIndex+"",t);return e.depth>1&&Object(h.C)(l)&&(l=Object(_t.c)(l,(e.depth-1)/(r-1)*.5)),l}(r,e,n.root.height));var o=data.ensureUniqueItemVisual(r.dataIndex,"style");Object(h.m)(o,style)}))}))}var xP={color:"fill",borderColor:"stroke"},wP={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},SP=jr(),kP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(option,e){return qb(null,this)},t.prototype.getDataParams=function(t,n,r){var o=e.prototype.getDataParams.call(this,t,n);return r&&(o.info=SP(r).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(tf),OP=kP;function CP(e,t){return t=t||[0,0],h.H(["x","y"],(function(n,r){var o=this.getAxis(n),l=t[r],c=e[r]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(l-c)-o.dataToCoord(l+c))}),this)}function TP(e,t){return t=t||[0,0],h.H([0,1],(function(n){var r=t[n],o=e[n]/2,l=[],c=[];return l[n]=r-o,c[n]=r+o,l[1-n]=c[1-n]=t[1-n],Math.abs(this.dataToPoint(l)[n]-this.dataToPoint(c)[n])}),this)}function EP(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,o=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-o)-n.dataToCoord(r+o))}function AP(e,t){return t=t||[0,0],h.H(["Radius","Angle"],(function(n,r){var o=this["get"+n+"Axis"](),l=t[r],c=e[r]/2,h="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(l-c)-o.dataToCoord(l+c));return"Angle"===n&&(h=h*Math.PI/180),h}),this)}function MP(style,e,t,n){return style&&(style.legacy||!1!==style.legacy&&!t&&!n&&"tspan"!==e&&("text"===e||Object(h.q)(style,"text")))}function IP(e,t,n){var r,o,l,c=e;if("text"===t)l=c;else{l={},Object(h.q)(c,"text")&&(l.text=c.text),Object(h.q)(c,"rich")&&(l.rich=c.rich),Object(h.q)(c,"textFill")&&(l.fill=c.textFill),Object(h.q)(c,"textStroke")&&(l.stroke=c.textStroke),Object(h.q)(c,"fontFamily")&&(l.fontFamily=c.fontFamily),Object(h.q)(c,"fontSize")&&(l.fontSize=c.fontSize),Object(h.q)(c,"fontStyle")&&(l.fontStyle=c.fontStyle),Object(h.q)(c,"fontWeight")&&(l.fontWeight=c.fontWeight),o={type:"text",style:l,silent:!0},r={};var f=Object(h.q)(c,"textPosition");n?r.position=f?c.textPosition:"inside":f&&(r.position=c.textPosition),Object(h.q)(c,"textPosition")&&(r.position=c.textPosition),Object(h.q)(c,"textOffset")&&(r.offset=c.textOffset),Object(h.q)(c,"textRotation")&&(r.rotation=c.textRotation),Object(h.q)(c,"textDistance")&&(r.distance=c.textDistance)}return DP(l,e),Object(h.k)(l.rich,(function(e){DP(e,e)})),{textConfig:r,textContent:o}}function DP(e,t){t&&(t.font=t.textFont||t.font,Object(h.q)(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(h.q)(t,"textAlign")&&(e.align=t.textAlign),Object(h.q)(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(h.q)(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(h.q)(t,"textWidth")&&(e.width=t.textWidth),Object(h.q)(t,"textHeight")&&(e.height=t.textHeight),Object(h.q)(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(h.q)(t,"textPadding")&&(e.padding=t.textPadding),Object(h.q)(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(h.q)(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(h.q)(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(h.q)(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(h.q)(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(h.q)(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(h.q)(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function PP(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var o=r.textPosition.indexOf("inside")>=0,l=e.fill||"#000";NP(r,t);var c=null==r.textFill;return o?c&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=l),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(c&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Object(h.k)(t.rich,(function(e){NP(e,e)})),r}function NP(e,t){t&&(Object(h.q)(t,"fill")&&(e.textFill=t.fill),Object(h.q)(t,"stroke")&&(e.textStroke=t.fill),Object(h.q)(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(h.q)(t,"font")&&(e.font=t.font),Object(h.q)(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(h.q)(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(h.q)(t,"fontSize")&&(e.fontSize=t.fontSize),Object(h.q)(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(h.q)(t,"align")&&(e.textAlign=t.align),Object(h.q)(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(h.q)(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(h.q)(t,"width")&&(e.textWidth=t.width),Object(h.q)(t,"height")&&(e.textHeight=t.height),Object(h.q)(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(h.q)(t,"padding")&&(e.textPadding=t.padding),Object(h.q)(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(h.q)(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(h.q)(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(h.q)(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(h.q)(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(h.q)(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(h.q)(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(h.q)(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(h.q)(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(h.q)(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(h.q)(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var LP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},jP=Object(h.F)(LP),RP=(Object(h.N)(yn,(function(e,t){return e[t]=1,e}),{}),yn.join(", "),["","style","shape","extra"]),FP=jr();function BP(e,t,n,r,o){var l=e+"Animation",c=hs(e,r,o)||{},f=FP(t).userDuring;return c.duration>0&&(c.during=f?Object(h.c)(UP,{el:t,userDuring:f}):null,c.setToFinal=!0,c.scope=e),Object(h.m)(c,n[l]),c}function zP(e,t,n,r){var o=(r=r||{}).dataIndex,l=r.isInit,c=r.clearStyle,f=n.isAnimationEnabled(),d=FP(e),v=t.style;d.userDuring=t.during;var m={},y={};if(function(e,t,n){for(var i=0;i<jP.length;i++){var r=jP[i],o=LP[r],l=t[r];l&&(n[o[0]]=l[0],n[o[1]]=l[1])}for(i=0;i<yn.length;i++){var c=yn[i];null!=t[c]&&(n[c]=t[c])}}(0,t,y),YP("shape",t,y),YP("extra",t,y),!l&&f&&(function(e,t,n){for(var r=t.transition,o=HP(r)?yn:kr(r||[]),i=0;i<o.length;i++){var l=o[i];if("style"!==l&&"shape"!==l&&"extra"!==l){var c=e[l];0,n[l]=c}}}(e,t,m),GP("shape",e,t,m),GP("extra",e,t,m),function(e,t,n,r){if(!n)return;var o,l=e.style;if(l){var c=n.transition,f=t.transition;if(c&&!HP(c)){var d=kr(c);!o&&(o=r.style={});for(var i=0;i<d.length;i++){var v=l[x=d[i]];o[x]=v}}else if(e.getAnimationStyleProps&&(HP(f)||HP(c)||Object(h.r)(f,"style")>=0)){var m=e.getAnimationStyleProps(),y=m?m.style:null;if(y){!o&&(o=r.style={});var _=Object(h.F)(n);for(i=0;i<_.length;i++){var x;if(y[x=_[i]]){v=l[x];o[x]=v}}}}}}(e,t,v,m)),y.style=v,function(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var o=e.animators,i=0;i<o.length;i++){var l=o[i];"style"===l.targetName&&l.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}(e,y,c),function(e,t){Object(h.q)(t,"silent")&&(e.silent=t.silent),Object(h.q)(t,"ignore")&&(e.ignore=t.ignore),e instanceof Mi&&Object(h.q)(t,"invisible")&&(e.invisible=t.invisible);e instanceof Do&&Object(h.q)(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}(e,t),f)if(l){var _={};Object(h.k)(RP,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(_[e]=_[e]||{}),Object(h.m)(e?_[e]:_,n.enterFrom))}));var x=BP("enter",e,t,n,o);x.duration>0&&e.animateFrom(_,x)}else!function(e,t,n,r,o){if(o){var l=BP("update",e,t,r,n);l.duration>0&&e.animateFrom(o,l)}}(e,t,o||0,n,m);$P(e,t),v?e.dirty():e.markRedraw()}function $P(e,t){for(var n=FP(e).leaveToProps,i=0;i<RP.length;i++){var r=RP[i],o=r?t[r]:t;o&&o.leaveTo&&(n||(n=FP(e).leaveToProps={}),r&&(n[r]=n[r]||{}),Object(h.m)(r?n[r]:n,o.leaveTo))}}function VP(e,t,n,r){if(e){var o=e.parent,l=FP(e).leaveToProps;if(l){var c=BP("update",e,t,n,0);c.done=function(){o.remove(e),r&&r()},e.animateTo(l,c)}else o.remove(e),r&&r()}}function HP(e){return"all"===e}var qP={},WP={setTransform:function(e,t){return qP.el[e]=t,this},getTransform:function(e){return qP.el[e]},setShape:function(e,t){var n=qP.el;return(n.shape||(n.shape={}))[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=qP.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=qP.el,style=n.style;return style&&(style[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var style=qP.el.style;if(style)return style[e]},setExtra:function(e,t){return(qP.el.extra||(qP.el.extra={}))[e]=t,this},getExtra:function(e){var t=qP.el.extra;if(t)return t[e]}};function UP(){var e=this,t=e.el;if(t){var n=FP(t).userDuring,r=e.userDuring;n===r?(qP.el=t,r(WP)):e.el=e.userDuring=null}}function GP(e,t,n,r){var o=n[e];if(o){var l,c=t[e];if(c){var f=n.transition,d=o.transition;if(d)if(!l&&(l=r[e]={}),HP(d))Object(h.m)(l,c);else for(var v=kr(d),i=0;i<v.length;i++){var m=c[_=v[i]];l[_]=m}else if(HP(f)||Object(h.r)(f,e)>=0){!l&&(l=r[e]={});var y=Object(h.F)(c);for(i=0;i<y.length;i++){var _;m=c[_=y[i]];KP(o[_],m)&&(l[_]=m)}}}}}function YP(e,t,n){var r=t[e];if(r)for(var o=n[e]={},l=Object(h.F)(r),i=0;i<l.length;i++){var c=l[i];o[c]=At(r[c])}}function KP(e,t){return Object(h.u)(e)?e!==t:null!=e&&isFinite(e)}var XP=jr(),ZP=["percent","easing","shape","style","extra"];function JP(e){e.stopAnimation("keyframe"),e.attr(XP(e))}function QP(e,t,n){if(n.isAnimationEnabled()&&t)if(Object(h.t)(t))Object(h.k)(t,(function(t){QP(e,t,n)}));else{var r=t.keyframes,o=t.duration;if(n&&null==o){var l=hs("enter",n,0);o=l&&l.duration}if(r&&o){var c=XP(e);Object(h.k)(RP,(function(n){if(!n||e[n]){var l;r.sort((function(a,b){return a.percent-b.percent})),Object(h.k)(r,(function(r){var f=e.animators,d=n?r[n]:r;if(d){var v=Object(h.F)(d);if(n||(v=Object(h.n)(v,(function(e){return Object(h.r)(ZP,e)<0}))),v.length){l||((l=e.animate(n,t.loop,!0)).scope="keyframe");for(var i=0;i<f.length;i++)f[i]!==l&&f[i].targetName===l.targetName&&f[i].stopTracks(v);n&&(c[n]=c[n]||{});var m=n?c[n]:c;Object(h.k)(v,(function(t){m[t]=((n?e[n]:e)||{})[t]})),l.whenWithKeys(o*r.percent,d,v,r.easing)}}})),l&&l.delay(t.delay||0).duration(o).start(t.easing)}}))}}}var eN="emphasis",tN="normal",nN="blur",rN="select",iN=[tN,eN,nN,rN],oN={normal:["itemStyle"],emphasis:[eN,"itemStyle"],blur:[nN,"itemStyle"],select:[rN,"itemStyle"]},aN={normal:["label"],emphasis:[eN,"label"],blur:[nN,"label"],select:[rN,"label"]},sN=["x","y"],lN={normal:{},emphasis:{},blur:{},select:{}},uN={cartesian2d:function(e){var rect=e.master.getRect();return{coordSys:{type:"cartesian2d",x:rect.x,y:rect.y,width:rect.width,height:rect.height},api:{coord:function(data){return e.dataToPoint(data)},size:h.c(CP,e)}}},geo:function(e){var rect=e.getBoundingRect();return{coordSys:{type:"geo",x:rect.x,y:rect.y,width:rect.width,height:rect.height,zoom:e.getZoom()},api:{coord:function(data){return e.dataToPoint(data)},size:h.c(TP,e)}}},single:function(e){var rect=e.getRect();return{coordSys:{type:"singleAxis",x:rect.x,y:rect.y,width:rect.width,height:rect.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(h.c)(EP,e)}}},polar:function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(data){var r=t.dataToRadius(data[0]),o=n.dataToAngle(data[1]),l=e.coordToPoint([r,o]);return l.push(r,o*Math.PI/180),l},size:h.c(AP,e)}}},calendar:function(e){var rect=e.getRect(),t=e.getRangeInfo();return{coordSys:{type:"calendar",x:rect.x,y:rect.y,width:rect.width,height:rect.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(data,t){return e.dataToPoint(data,t)}}}}};function cN(e){return e instanceof Do}function hN(e){return e instanceof Mi}var fN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var o=this._data,data=e.getData(),l=this.group,c=yN(e,data,t,n);o||l.removeAll(),data.diff(o).add((function(t){_N(n,null,t,c(t,r),e,l,data)})).remove((function(t){var n=o.getItemGraphicEl(t);n&&VP(n,SP(n).option,e)})).update((function(t,h){var f=o.getItemGraphicEl(h);_N(n,f,t,c(t,r),e,l,data)})).execute();var h=e.get("clip",!0)?y_(e.coordinateSystem,!1,e):null;h?l.setClipPath(h):l.removeClipPath(),this._data=data},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,o){var data=t.getData(),l=yN(t,data,n,r),c=this._progressiveEls=[];function h(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var f=e.start;f<e.end;f++){var d=_N(null,null,f,l(f,o),t,this.group,data);d&&(d.traverse(h),c.push(d))}},t.prototype.eachRendered=function(e){sp(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var o=t.element;if(null==o||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t}(vp),dN=fN;function pN(e){var t,n=e.type;if("path"===n){var r=e.shape,o=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,l=MN(r);t=Bd(l,null,o,r.layout||"center"),SP(t).customPathData=l}else if("image"===n)t=new Bo({}),SP(t).customImagePath=e.style.image;else if("text"===n)t=new ua({});else if("group"===n)t=new qn;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var c=Fd(n);if(!c){0,Bu("")}t=new c}return SP(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function gN(e,t,n,r,o,l,c){JP(t);var f=o&&o.normal.cfg;f&&t.setTextConfig(f),r&&null==r.transition&&(r.transition=sN);var d=r&&r.style;if(d){if("text"===t.type){var v=d;Object(h.q)(v,"textFill")&&(v.fill=v.textFill),Object(h.q)(v,"textStroke")&&(v.stroke=v.textStroke)}var m=void 0,y=cN(t)?d.decal:null;e&&y&&(y.dirty=!0,m=ev(y,e)),d.__decalPattern=m}hN(t)&&(d&&(m=d.__decalPattern)&&(d.decal=m));zP(t,r,l,{dataIndex:n,isInit:c,clearStyle:!0}),QP(t,r.keyframeAnimation,l)}function vN(e,t,n,r,o){var l=t.isGroup?null:t,c=o&&o[e].cfg;if(l){var h=l.ensureState(e);if(!1===r){var f=l.getState(e);f&&(f.style=null)}else h.style=r||null;c&&(h.textConfig=c),Fa(l)}}function mN(e,t,n){var r=n===tN,o=r?t:kN(t,n),l=o?o.z2:null;null!=l&&((r?e:e.ensureState(n)).z2=l||0)}function yN(e,data,t,n){var r=e.get("renderItem"),o=e.coordinateSystem,l={};o&&(l=o.prepareCustoms?o.prepareCustoms(o):uN[o.type](o));for(var c,f,d=Object(h.i)({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:function(e,t){return null==t&&(t=c),data.getStore().get(data.getDimensionIndex(e||0),t)},style:function(t,n){0;null==n&&(n=c);var style=data.getItemVisual(n,"style"),r=style&&style.fill,o=style&&style.opacity,l=k(n,tN).getItemStyle();null!=r&&(l.fill=r),null!=o&&(l.opacity=o);var f={inheritColor:Object(h.C)(r)?r:"#000"},d=O(n,tN),v=Os(d,null,f,!1,!0);v.text=d.getShallow("show")?Object(h.P)(e.getFormattedLabel(n,tN),Gb(data,n)):null;var m=Cs(d,f,!1);return T(t,l),l=PP(l,v,m),t&&C(l,t),l.legacy=!0,l},ordinalRawValue:function(e,t){null==t&&(t=c),e=e||0;var n=data.getDimensionInfo(e);if(!n){var r=data.getDimensionIndex(e);return r>=0?data.getStore().get(r,t):void 0}var o=data.get(n.name,t),l=n&&n.ordinalMeta;return l?l.categories[o]:o},styleEmphasis:function(t,n){0;null==n&&(n=c);var r=k(n,eN).getItemStyle(),o=O(n,eN),l=Os(o,null,null,!0,!0);l.text=o.getShallow("show")?Object(h.Q)(e.getFormattedLabel(n,eN),e.getFormattedLabel(n,tN),Gb(data,n)):null;var f=Cs(o,null,!0);return T(t,r),r=PP(r,l,f),t&&C(r,t),r.legacy=!0,r},visual:function(e,t){if(null==t&&(t=c),Object(h.q)(xP,e)){var n=data.getItemVisual(t,"style");return n?n[xP[e]]:null}if(Object(h.q)(wP,e))return data.getItemVisual(t,e)},barLayout:function(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return function(e){var t=[],n=e.axis,r="axis0";if("category"===n.type){for(var o=n.getBandWidth(),i=0;i<e.count;i++)t.push(Object(h.i)({bandWidth:o,axisKey:r,stackId:j_+i},e));var l=$_(t),c=[];for(i=0;i<e.count;i++){var f=l.axis0[j_+i];f.offsetCenter=f.offset+f.width/2,c.push(f)}return c}}(Object(h.i)({axis:t},e))}},currentSeriesIndices:function(){return t.getCurrentSeriesIndices()},font:function(e){return Is(e,t)}},l.api||{}),v={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:l.coordSys,dataInsideLength:data.count(),encode:bN(e.getData())},m={},y={},_={},x={},i=0;i<iN.length;i++){var w=iN[i];_[w]=e.getModel(oN[w]),x[w]=e.getModel(aN[w])}function S(e){return e===c?f||(f=data.getItemModel(e)):data.getItemModel(e)}function k(e,t){return data.hasItemOption?e===c?m[t]||(m[t]=S(e).getModel(oN[t])):S(e).getModel(oN[t]):_[t]}function O(e,t){return data.hasItemOption?e===c?y[t]||(y[t]=S(e).getModel(aN[t])):S(e).getModel(aN[t]):x[t]}return function(e,t){return c=e,f=null,m={},y={},r&&r(Object(h.i)({dataIndexInside:e,dataIndex:data.getRawIndex(e),actionType:t?t.type:null},v),d)};function C(e,t){for(var n in t)Object(h.q)(t,n)&&(e[n]=t[n])}function T(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function bN(data){var e={};return Object(h.k)(data.dimensions,(function(t){var n=data.getDimensionInfo(t);if(!n.isExtraCoord){var r=n.coordDim;(e[r]=e[r]||[])[n.coordDimIndex]=data.getDimensionIndex(t)}})),e}function _N(e,t,n,r,o,l,data){if(r){var c=xN(e,t,n,r,o,l);return c&&data.setItemGraphicEl(n,c),c&&ts(c,r.focus,r.blurScope,r.emphasisDisabled),c}l.remove(t)}function xN(e,t,n,r,o,l){var c=-1,f=t;t&&wN(t,r,o)&&(c=Object(h.r)(l.childrenRef(),t),t=null);var d,v,m=!t,y=t;y?y.clearStates():(y=pN(r),f&&(d=f,(v=y).copyTransform(d),hN(v)&&hN(d)&&(v.setStyle(d.style),v.z=d.z,v.z2=d.z2,v.zlevel=d.zlevel,v.invisible=d.invisible,v.ignore=d.ignore,cN(v)&&cN(d)&&v.setShape(d.shape)))),!1===r.morph?y.disableMorphing=!0:y.disableMorphing&&(y.disableMorphing=!1),lN.normal.cfg=lN.normal.conOpt=lN.emphasis.cfg=lN.emphasis.conOpt=lN.blur.cfg=lN.blur.conOpt=lN.select.cfg=lN.select.conOpt=null,lN.isLegacy=!1,function(e,t,n,r,o,l){if(e.isGroup)return;SN(n,null,l),SN(n,eN,l);var c=l.normal.conOpt,h=l.emphasis.conOpt,f=l.blur.conOpt,d=l.select.conOpt;if(null!=c||null!=h||null!=d||null!=f){var v=e.getTextContent();if(!1===c)v&&e.removeTextContent();else{c=l.normal.conOpt=c||{type:"text"},v?v.clearStates():(v=pN(c),e.setTextContent(v)),gN(null,v,t,c,null,r,o);for(var m=c&&c.style,i=0;i<iN.length;i++){var y=iN[i];if(y!==tN){var _=l[y].conOpt;vN(y,v,0,ON(c,_,y),null)}}m?v.dirty():v.markRedraw()}}}(y,n,r,o,m,lN),function(e,t,n,r,o){var l=n.clipPath;if(!1===l)e&&e.getClipPath()&&e.removeClipPath();else if(l){var c=e.getClipPath();c&&wN(c,l,r)&&(c=null),c||(c=pN(l),e.setClipPath(c)),gN(null,c,t,l,null,r,o)}}(y,n,r,o,m),gN(e,y,n,r,lN,o,m),Object(h.q)(r,"info")&&(SP(y).info=r.info);for(var i=0;i<iN.length;i++){var _=iN[i];if(_!==tN){var x=kN(r,_);vN(_,y,0,ON(r,x,_),lN)}}return function(e,t,n){if(!e.isGroup){var r=e,o=n.currentZ,l=n.currentZLevel;r.z=o,r.zlevel=l;var c=t.z2;null!=c&&(r.z2=c||0);for(var i=0;i<iN.length;i++)mN(r,t,iN[i])}}(y,r,o),"group"===r.type&&function(e,t,n,r,o){var l=r.children,c=l?l.length:0,h=r.$mergeChildren,f="byName"===h||r.diffChildrenByName,d=!1===h;if(!c&&!f&&!d)return;if(f)return v={api:e,oldChildren:t.children()||[],newChildren:l||[],dataIndex:n,seriesModel:o,group:t},void new cb(v.oldChildren,v.newChildren,TN,TN,v).add(EN).update(EN).remove(AN).execute();var v;d&&t.removeAll();for(var m=0;m<c;m++){var y=l[m],_=t.childAt(m);y?(null==y.ignore&&(y.ignore=!1),xN(e,_,n,y,o,t)):_.ignore=!0}for(var i=t.childCount()-1;i>=m;i--){var x=t.childAt(i);CN(t,x,o)}}(e,y,n,r,o),c>=0?l.replaceAt(y,c):l.add(y),y}function wN(e,t,n){var r,o=SP(e),l=t.type,c=t.shape,f=t.style;return n.isUniversalTransitionEnabled()||null!=l&&l!==o.customGraphicType||"path"===l&&((r=c)&&(Object(h.q)(r,"pathData")||Object(h.q)(r,"d")))&&MN(c)!==o.customPathData||"image"===l&&Object(h.q)(f,"image")&&f.image!==o.customImagePath}function SN(e,t,n){var r=t?kN(e,t):e,o=t?ON(e,r,eN):e.style,l=e.type,c=r?r.textConfig:null,h=e.textContent,f=h?t?kN(h,t):h:null;if(o&&(n.isLegacy||MP(o,l,!!c,!!f))){n.isLegacy=!0;var d=IP(o,l,!t);!c&&d.textConfig&&(c=d.textConfig),!f&&d.textContent&&(f=d.textContent)}if(!t&&f){var v=f;!v.type&&(v.type="text")}var m=t?n[t]:n.normal;m.cfg=c,m.conOpt=f}function kN(e,t){return t?e?e[t]:null:e}function ON(e,t,n){var style=t&&t.style;return null==style&&n===eN&&e&&(style=e.styleEmphasis),style}function CN(e,t,n){t&&VP(t,SP(e).option,n)}function TN(e,t){var n=e&&e.name;return null!=n?n:"e\0\0"+t}function EN(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,o=null!=t?n.oldChildren[t]:null;xN(n.api,o,n.dataIndex,r,n.seriesModel,n.group)}function AN(e){var t=this.context,n=t.oldChildren[e];n&&VP(n,SP(n).option,t.seriesModel)}function MN(e){return e&&(e.pathData||e.d)}var IN=jr(),DN=h.d,PN=h.c,NN=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var o=t.get("value"),l=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==o||this._lastStatus!==l){this._lastValue=o,this._lastStatus=l;var c=this._group,f=this._handle;if(!l||"hide"===l)return c&&c.hide(),void(f&&f.hide());c&&c.show(),f&&f.show();var d={};this.makeElOption(d,o,e,t,n);var v=d.graphicKey;v!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=v;var m=this._moveAnimation=this.determineAnimation(e,t);if(c){var y=h.h(LN,t,m);this.updatePointerEl(c,d,y),this.updateLabelEl(c,d,y,t)}else c=this._group=new qn,this.createPointerEl(c,d,e,t),this.createLabelEl(c,d,e,t),n.getZr().add(c);BN(c,t,!0),this._renderHandle(o)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,o="category"===r.type,l=t.get("snap");if(!l&&!o)return!1;if("auto"===n||null==n){var c=this.animationThreshold;if(o&&r.getBandWidth()>c)return!0;if(l){var h=zS(e).seriesDataCount,f=r.getExtent();return Math.abs(f[0]-f[1])/h>c}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,o){},e.prototype.createPointerEl=function(e,t,n,o){var l=t.pointer;if(l){var c=IN(e).pointerEl=new r[l.type](DN(t.pointer));e.add(c)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var o=IN(e).labelEl=new ua(DN(t.label));e.add(o),RN(o,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=IN(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var o=IN(e).labelEl;o&&(o.setStyle(t.label.style),n(o,{x:t.label.x,y:t.label.y}),RN(o,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),o=this._handle,l=n.getModel("handle"),c=n.get("status");if(!l.get("show")||!c||"hide"===c)return o&&r.remove(o),void(this._handle=null);this._handle||(t=!0,o=this._handle=ep(l.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){Q(e.event)},onmousedown:PN(this._onHandleDragMove,this,0,0),drift:PN(this._onHandleDragMove,this),ondragend:PN(this._onHandleDragEnd,this)}),r.add(o)),BN(o,n,!1),o.setStyle(l.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var f=l.get("size");h.t(f)||(f=[f,f]),o.scaleX=f[0]/2,o.scaleY=f[1]/2,xp(this,"_doDispatchAxisPointer",l.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){LN(this._axisPointerModel,!t&&this._moveAnimation,this._handle,FN(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(FN(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(FN(r)),IN(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),wp(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function LN(e,t,n,r){jN(IN(n).lastProp,r)||(IN(n).lastProp=r,t?ds(n,r,e):(n.stopAnimation(),n.attr(r)))}function jN(e,t){if(h.A(e)&&h.A(t)){var n=!0;return h.k(t,(function(t,r){n=n&&jN(e[r],t)})),!!n}return e===t}function RN(e,t){e[t.get(["label","show"])?"show":"hide"]()}function FN(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function BN(e,t,n){var r=t.get("z"),o=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=o&&(e.zlevel=o),e.silent=n)}))}var zN=NN;function $N(e){var style,t=e.get("type"),n=e.getModel(t+"Style");return"line"===t?(style=n.getLineStyle()).fill=null:"shadow"===t&&((style=n.getAreaStyle()).stroke=null),style}function VN(e,t,n,r,o){var text=HN(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),c=$l(l.get("padding")||0),h=l.getFont(),f=Cn(text,h),d=o.position,v=f.width+c[1]+c[3],m=f.height+c[0]+c[2],y=o.align;"right"===y&&(d[0]-=v),"center"===y&&(d[0]-=v/2);var _=o.verticalAlign;"bottom"===_&&(d[1]-=m),"middle"===_&&(d[1]-=m/2),function(e,t,n,r){var o=r.getWidth(),l=r.getHeight();e[0]=Math.min(e[0]+t,o)-t,e[1]=Math.min(e[1]+n,l)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(d,v,m,r);var x=l.get("backgroundColor");x&&"auto"!==x||(x=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:Os(l,{text:text,font:h,fill:l.getTextColor(),padding:c,backgroundColor:x}),z2:10}}function HN(e,t,n,r,o){e=t.scale.parse(e);var text=t.scale.getLabel({value:e},{precision:o.precision}),l=o.formatter;if(l){var c={value:Xw(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};h.k(r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,o=t&&t.getDataParams(r);o&&c.seriesData.push(o)})),h.C(l)?text=l.replace("{value}",text):h.w(l)&&(text=l(c))}return text}function qN(e,t,n){var r=[1,0,0,1,0,0];return le(r,r,n.rotation),se(r,r,n.position),Yd([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function WN(e,t,n,r,o,l){var c=jS.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),VN(t,r,o,l,{position:qN(r.axis,e,n),align:c.textAlign,verticalAlign:c.textVerticalAlign})}function UN(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function GN(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function YN(e,t,n,r,o,l){return{cx:e,cy:t,r0:n,r:r,startAngle:o,endAngle:l,clockwise:!0}}var KN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.makeElOption=function(e,t,n,r,o){var l=n.axis,c=l.grid,h=r.get("type"),f=XN(c,l).getOtherAxis(l).getGlobalExtent(),d=l.toGlobalCoord(l.dataToCoord(t,!0));if(h&&"none"!==h){var v=$N(r),m=ZN[h](l,d,f);m.style=v,e.graphicKey=m.type,e.pointer=m}WN(t,e,bS(c.model,n),n,r,o)},t.prototype.getHandleTransform=function(e,t,n){var r=bS(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var o=qN(t.axis,e,r);return{x:o[0],y:o[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var o=n.axis,l=o.grid,c=o.getGlobalExtent(!0),h=XN(l,o).getOtherAxis(o).getGlobalExtent(),f="x"===o.dim?0:1,d=[e.x,e.y];d[f]+=t[f],d[f]=Math.min(c[1],d[f]),d[f]=Math.max(c[0],d[f]);var v=(h[1]+h[0])/2,m=[v,v];m[f]=d[f];return{x:d[0],y:d[1],rotation:e.rotation,cursorPoint:m,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][f]}},t}(zN);function XN(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var ZN={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:UN([t,n[0]],[t,n[1]],JN(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),span=n[1]-n[0];return{type:"Rect",shape:GN([t-r/2,n[0]],[r,span],JN(e))}}};function JN(e){return"x"===e.dim?0:1}var QN=KN,eL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(su),tL=eL,nL=jr(),rL=h.k;function iL(e,t,n){if(!c.a.node){var r=t.getZr();nL(r).records||(nL(r).records={}),function(e,t){if(nL(e).initialized)return;function n(n,r){e.on(n,(function(n){var o=function(e){var t={showTip:[],hideTip:[]},n=function(r){var o=t[r.type];o?o.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);rL(nL(e).records,(function(e){e&&r(e,n,o.dispatchAction)})),function(e,t){var n,r=e.showTip.length,o=e.hideTip.length;r?n=e.showTip[r-1]:o&&(n=e.hideTip[o-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(o.pendings,t)}))}nL(e).initialized=!0,n("click",h.h(aL,"click")),n("mousemove",h.h(aL,"mousemove")),n("globalout",oL)}(r,t),(nL(r).records[e]||(nL(r).records[e]={})).handler=n}}function oL(e,t,n){e.handler("leave",null,n)}function aL(e,t,n,r){t.handler(e,n,r)}function sL(e,t){if(!c.a.node){var n=t.getZr();(nL(n).records||{})[e]&&(nL(n).records[e]=null)}}var lL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),o=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";iL("axisPointer",n,(function(e,t,n){"none"!==o&&("leave"===e||o.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){sL("axisPointer",t)},t.prototype.dispose=function(e,t){sL("axisPointer",t)},t.type="axisPointer",t}(rf),uL=lL;function cL(e,t){var n,r=[],o=e.seriesIndex;if(null==o||!(n=t.getSeriesByIndex(o)))return{point:[]};var data=n.getData(),l=Lr(data,e);if(null==l||l<0||h.t(l))return{point:[]};var c=data.getItemGraphicEl(l),f=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(l)||[];else if(f&&f.dataToPoint)if(e.isStacked){var d=f.getBaseAxis(),v=f.getOtherAxis(d).dim,m=d.dim,y="x"===v||"radius"===v?1:0,_=data.mapDimension(m),x=[];x[y]=data.get(_,l),x[1-y]=data.get(data.getCalculationInfo("stackResultDimension"),l),r=f.dataToPoint(x)||[]}else r=f.dataToPoint(data.getValues(h.H(f.dimensions,(function(e){return data.mapDimension(e)})),l))||[];else if(c){var rect=c.getBoundingRect().clone();rect.applyTransform(c.transform),r=[rect.x+rect.width/2,rect.y+rect.height/2]}return{point:r,el:c}}var hL=jr();function fL(e,t,n){var r=e.currTrigger,o=[e.x,e.y],l=e,c=e.dispatchAction||Object(h.c)(n.dispatchAction,n),f=t.getComponent("axisPointer").coordSysAxesInfo;if(f){mL(o)&&(o=cL({seriesIndex:l.seriesIndex,dataIndex:l.dataIndex},t).point);var d=mL(o),v=l.axesInfo,m=f.axesInfo,y="leave"===r||mL(o),_={},x={},w={list:[],map:{}},S={showPointer:Object(h.h)(pL,x),showTooltip:Object(h.h)(gL,w)};Object(h.k)(f.coordSysMap,(function(e,t){var n=d||e.containPoint(o);Object(h.k)(f.coordSysAxesInfo[t],(function(e,t){var r=e.axis,l=function(e,t){for(var i=0;i<(e||[]).length;i++){var n=e[i];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}(v,e);if(!y&&n&&(!v||l)){var c=l&&l.value;null!=c||d||(c=r.pointToData(o)),null!=c&&dL(e,c,S,!1,_)}}))}));var k={};return Object(h.k)(m,(function(e,t){var n=e.linkGroup;n&&!x[t]&&Object(h.k)(n.axesInfo,(function(t,r){var o=x[r];if(t!==e&&o){var l=o.value;n.mapper&&(l=e.axis.scale.parse(n.mapper(l,vL(t),vL(e)))),k[e.key]=l}}))})),Object(h.k)(k,(function(e,t){dL(m[t],e,S,!0,_)})),function(e,t,n){var r=n.axesInfo=[];Object(h.k)(t,(function(t,n){var option=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(option.status="show"),option.value=o.value,option.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(option.status="hide"),"show"===option.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:option.value})}))}(x,m,_),function(e,t,n,r){if(mL(t)||!e.list.length)return void r({type:"hideTip"});var o=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:e.list})}(w,o,e,c),function(e,t,n){var r=n.getZr(),o="axisPointerLastHighlights",l=hL(r)[o]||{},c=hL(r)[o]={};Object(h.k)(e,(function(e,t){var option=e.axisPointerModel.option;"show"===option.status&&Object(h.k)(option.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;c[t]=e}))}));var f=[],d=[];Object(h.k)(l,(function(e,t){!c[t]&&d.push(e)})),Object(h.k)(c,(function(e,t){!l[t]&&f.push(e)})),d.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:d}),f.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:f})}(m,0,n),_}}function dL(e,t,n,r,o){var l=e.axis;if(!l.scale.isBlank()&&l.containData(t))if(e.involveSeries){var c=function(e,t){var n=t.axis,r=n.dim,o=e,l=[],c=Number.MAX_VALUE,f=-1;return Object(h.k)(t.seriesModels,(function(t,d){var v,m,y=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var _=t.getAxisTooltipData(y,e,n);m=_.dataIndices,v=_.nestestValue}else{if(!(m=t.getData().indicesOfNearest(y[0],e,"category"===n.type?.5:null)).length)return;v=t.getData().get(y[0],m[0])}if(null!=v&&isFinite(v)){var x=e-v,w=Math.abs(x);w<=c&&((w<c||x>=0&&f<0)&&(c=w,f=x,o=v,l.length=0),Object(h.k)(m,(function(e){l.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:l,snapToValue:o}}(t,e),f=c.payloadBatch,d=c.snapToValue;f[0]&&null==o.seriesIndex&&Object(h.m)(o,f[0]),!r&&e.snap&&l.containData(d)&&null!=d&&(t=d),n.showPointer(e,t,f),n.showTooltip(e,c,d)}else n.showPointer(e,t)}function pL(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function gL(e,t,n,r){var o=n.payloadBatch,l=t.axis,c=l.model,h=t.axisPointerModel;if(t.triggerTooltip&&o.length){var f=t.coordSys.model,d=VS(f),v=e.map[d];v||(v=e.map[d]={coordSysId:f.id,coordSysIndex:f.componentIndex,coordSysType:f.type,coordSysMainType:f.mainType,dataByAxis:[]},e.list.push(v)),v.dataByAxis.push({axisDim:l.dim,axisIndex:c.componentIndex,axisType:c.type,axisId:c.id,value:r,valueLabelOpt:{precision:h.get(["label","precision"]),formatter:h.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function vL(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function mL(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function yL(e){WS.registerAxisPointerClass("CartesianAxisPointer",QN),e.registerComponentModel(tL),e.registerComponentView(uL),e.registerPreprocessor((function(option){if(option){(!option.axisPointer||0===option.axisPointer.length)&&(option.axisPointer={});var link=option.axisPointer.link;link&&!Object(h.t)(link)&&(option.axisPointer.link=[link])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=RS(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},fL)}var bL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.makeElOption=function(e,t,n,r,o){var l=n.axis;"angle"===l.dim&&(this.animationThreshold=Math.PI/18);var c=l.polar,h=c.getOtherAxis(l).getExtent(),f=l.dataToCoord(t),d=r.get("type");if(d&&"none"!==d){var v=$N(r),m=_L[d](l,c,f,h);m.style=v,e.graphicKey=m.type,e.pointer=m}var y=function(e,t,n,r,o){var l=t.axis,c=l.dataToCoord(e),h=r.getAngleAxis().getExtent()[0];h=h/180*Math.PI;var f,d,v,m=r.getRadiusAxis().getExtent();if("radius"===l.dim){var y=[1,0,0,1,0,0];le(y,y,h),se(y,y,[r.cx,r.cy]),f=Yd([c,-o],y);var _=t.getModel("axisLabel").get("rotate")||0,x=jS.innerTextLayout(h,_*Math.PI/180,-1);d=x.textAlign,v=x.textVerticalAlign}else{var w=m[1];f=r.coordToPoint([w+o,c]);var S=r.cx,k=r.cy;d=Math.abs(f[0]-S)/w<.3?"center":f[0]>S?"left":"right",v=Math.abs(f[1]-k)/w<.3?"middle":f[1]>k?"top":"bottom"}return{position:f,align:d,verticalAlign:v}}(t,n,0,c,r.get(["label","margin"]));VN(e,n,r,o,y)},t}(zN);var _L={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:UN(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var o=Math.max(1,e.getBandWidth()),l=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:YN(t.cx,t.cy,r[0],r[1],(-n-o/2)*l,(o/2-n)*l)}:{type:"Sector",shape:YN(t.cx,t.cy,n-o/2,n+o/2,0,2*Math.PI)}}},xL=bL,wL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(su),SL=wL,kL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",zr).models[0]},t.type="polarAxis",t}(su);h.K(kL,Yx);var OL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.type="angleAxis",t}(kL),CL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.type="radiusAxis",t}(kL),TL=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return l(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(vS);TL.prototype.dataToRadius=vS.prototype.dataToCoord,TL.prototype.radiusToData=vS.prototype.coordToData;var EL=TL,AL=jr(),ML=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return l(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),o=n.count();if(r[1]-r[0]<1)return 0;var l=r[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),h=Math.abs(c),rect=Cn(null==l?"":l+"",t.getFont(),"center","top"),f=Math.max(rect.height,7)/h;isNaN(f)&&(f=1/0);var d=Math.max(0,Math.floor(f)),v=AL(e.model),m=v.lastAutoInterval,y=v.lastTickCount;return null!=m&&null!=y&&Math.abs(m-d)<=1&&Math.abs(y-o)<=1&&m>d?d=m:(v.lastTickCount=o,v.lastAutoInterval=d),d},t}(vS);ML.prototype.dataToAngle=vS.prototype.dataToCoord,ML.prototype.angleToData=vS.prototype.coordToData;var IL=ML,DL=["radius","angle"];function PL(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var NL=function(){function e(e){this.dimensions=DL,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new EL,this._angleAxis=new IL,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(data){return this._radiusAxis.containData(data[0])&&this._angleAxis.containData(data[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(data,e){return this.coordToPoint([this._radiusAxis.dataToRadius(data[0],e),this._angleAxis.dataToAngle(data[1],e)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),o=r.getExtent(),l=Math.min(o[0],o[1]),c=Math.max(o[0],o[1]);r.inverse?l=c-360:c=l+360;var h=Math.sqrt(t*t+n*n);t/=h,n/=h;for(var f=Math.atan2(-n,t)/Math.PI*180,d=f<l?1:-1;f<l||f>c;)f+=360*d;return[h,f]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,o=n*n+r*r-1e-4,l=this.r,c=this.r0;return o<=l*l&&o>=c*c}}},e.prototype.convertToPixel=function(e,t,n){return PL(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return PL(t)===this?this.pointToData(n):null},e}();function LL(e,t){var n=this,r=n.getAngleAxis(),o=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();h.k(Qw(t,"radius"),(function(e){o.scale.unionExtentFromData(t,e)})),h.k(Qw(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),Gw(r.scale,r.model),Gw(o.scale,o.model),"category"===r.type&&!r.onBand){var l=r.getExtent(),c=360/r.scale.count();r.inverse?l[1]+=c:l[1]-=c,r.setExtent(l[0],l[1])}}function jL(e,t){if(e.type=t.get("type"),e.scale=Yw(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),function(e){return"angleAxis"===e.mainType}(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var RL={dimensions:DL,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var o=new NL(r+"");o.update=LL;var l=o.getRadiusAxis(),c=o.getAngleAxis(),f=e.findAxisModel("radiusAxis"),d=e.findAxisModel("angleAxis");jL(l,f),jL(c,d),function(e,t,n){var r=t.get("center"),o=n.getWidth(),l=n.getHeight();e.cx=Zn(r[0],o),e.cy=Zn(r[1],l);var c=e.getRadiusAxis(),f=Math.min(o,l)/2,d=t.get("radius");null==d?d=[0,"100%"]:h.t(d)||(d=[0,d]);var v=[Zn(d[0],f),Zn(d[1],f)];c.inverse?c.setExtent(v[1],v[0]):c.setExtent(v[0],v[1])}(o,e,t),n.push(o),e.coordinateSystem=o,o.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",zr).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},FL=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function BL(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),o=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:o[0],y2:o[1]}}function zL(e){return e.getRadiusAxis().inverse?0:1}function $L(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var VL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return l(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,o=r.getRadiusAxis().getExtent(),l=n.getTicksCoords(),c=n.getMinorTicksCoords(),f=h.H(n.getViewLabels(),(function(e){e=h.d(e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));$L(f),$L(l),h.k(FL,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||HL[t](this.group,e,r,l,c,o,f)}),this)}},t.type="angleAxis",t}(WS),HL={axisLine:function(e,t,n,r,o,l){var c,h=t.getModel(["axisLine","lineStyle"]),f=zL(n),d=f?0:1;(c=0===l[d]?new Ef({shape:{cx:n.cx,cy:n.cy,r:l[f]},style:h.getLineStyle(),z2:1,silent:!0}):new Xf({shape:{cx:n.cx,cy:n.cy,r:l[f],r0:l[d]},style:h.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(c)},axisTick:function(e,t,n,r,o,l){var c=t.getModel("axisTick"),f=(c.get("inside")?-1:1)*c.get("length"),d=l[zL(n)],v=h.H(r,(function(e){return new ld({shape:BL(n,[d,d+f],e.coord)})}));e.add(Vd(v,{style:h.i(c.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,o,l){if(o.length){for(var c=t.getModel("axisTick"),f=t.getModel("minorTick"),d=(c.get("inside")?-1:1)*f.get("length"),v=l[zL(n)],m=[],i=0;i<o.length;i++)for(var y=0;y<o[i].length;y++)m.push(new ld({shape:BL(n,[v,v+d],o[i][y].coord)}));e.add(Vd(m,{style:h.i(f.getModel("lineStyle").getLineStyle(),h.i(c.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,o,l,c){var f=t.getCategories(!0),d=t.getModel("axisLabel"),v=d.get("margin"),m=t.get("triggerEvent");h.k(c,(function(r,o){var c=d,y=r.tickValue,_=l[zL(n)],p=n.coordToPoint([_+v,r.coord]),x=n.cx,w=n.cy,S=Math.abs(p[0]-x)/_<.3?"center":p[0]>x?"left":"right",k=Math.abs(p[1]-w)/_<.3?"middle":p[1]>w?"top":"bottom";if(f&&f[y]){var O=f[y];h.A(O)&&O.textStyle&&(c=new Ys(O.textStyle,d,d.ecModel))}var C=new ua({silent:jS.isLabelSilent(t),style:Os(c,{x:p[0],y:p[1],fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:S,verticalAlign:k})});if(e.add(C),m){var T=jS.makeAxisEventDataBase(t);T.targetType="axisLabel",T.value=r.rawLabel,ca(C).eventData=T}}),this)},splitLine:function(e,t,n,r,o,l){var c=t.getModel("splitLine").getModel("lineStyle"),f=c.get("color"),d=0;f=f instanceof Array?f:[f];for(var v=[],i=0;i<r.length;i++){var m=d++%f.length;v[m]=v[m]||[],v[m].push(new ld({shape:BL(n,l,r[i].coord)}))}for(i=0;i<v.length;i++)e.add(Vd(v[i],{style:h.i({stroke:f[i%f.length]},c.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,o,l){if(o.length){for(var c=t.getModel("minorSplitLine").getModel("lineStyle"),h=[],i=0;i<o.length;i++)for(var f=0;f<o[i].length;f++)h.push(new ld({shape:BL(n,l,o[i][f].coord)}));e.add(Vd(h,{style:c.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,o,l){if(r.length){var c=t.getModel("splitArea").getModel("areaStyle"),f=c.get("color"),d=0;f=f instanceof Array?f:[f];for(var v=[],m=Math.PI/180,y=-r[0].coord*m,_=Math.min(l[0],l[1]),x=Math.max(l[0],l[1]),w=t.get("clockwise"),i=1,S=r.length;i<=S;i++){var k=i===S?r[0].coord:r[i].coord,O=d++%f.length;v[O]=v[O]||[],v[O].push(new Gf({shape:{cx:n.cx,cy:n.cy,r0:_,r:x,startAngle:y,endAngle:-k*m,clockwise:w},silent:!0})),y=-k*m}for(i=0;i<v.length;i++)e.add(Vd(v[i],{style:h.i({fill:f[i%f.length]},c.getAreaStyle()),silent:!0}))}}},qL=VL,WL=["axisLine","axisTickLabel","axisName"],UL=["splitLine","splitArea","minorSplitLine"],GL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return l(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new qn;this.group.add(r);var o=e.axis,l=o.polar,c=l.getAngleAxis(),f=o.getTicksCoords(),d=o.getMinorTicksCoords(),v=c.getExtent()[0],m=o.getExtent(),y=function(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}(l,e,v),_=new jS(e,y);h.k(WL,_.add,_),r.add(_.getGroup()),Zd(n,r,e),h.k(UL,(function(t){e.get([t,"show"])&&!o.scale.isBlank()&&YL[t](this.group,e,l,v,m,f,d)}),this)}},t.type="radiusAxis",t}(WS),YL={splitLine:function(e,t,n,r,o,l){var c=t.getModel("splitLine").getModel("lineStyle"),f=c.get("color"),d=0;f=f instanceof Array?f:[f];for(var v=[],i=0;i<l.length;i++){var m=d++%f.length;v[m]=v[m]||[],v[m].push(new Ef({shape:{cx:n.cx,cy:n.cy,r:Math.max(l[i].coord,0)}}))}for(i=0;i<v.length;i++)e.add(Vd(v[i],{style:h.i({stroke:f[i%f.length],fill:null},c.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,o,l,c){if(c.length){for(var f=t.getModel("minorSplitLine").getModel("lineStyle"),d=[],i=0;i<c.length;i++)for(var v=0;v<c[i].length;v++)d.push(new Ef({shape:{cx:n.cx,cy:n.cy,r:c[i][v].coord}}));e.add(Vd(d,{style:h.i({fill:null},f.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,o,l){if(l.length){var c=t.getModel("splitArea").getModel("areaStyle"),f=c.get("color"),d=0;f=f instanceof Array?f:[f];for(var v=[],m=l[0].coord,i=1;i<l.length;i++){var y=d++%f.length;v[y]=v[y]||[],v[y].push(new Gf({shape:{cx:n.cx,cy:n.cy,r0:m,r:l[i].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),m=l[i].coord}for(i=0;i<v.length;i++)e.add(Vd(v[i],{style:h.i({fill:f[i%f.length]},c.getAreaStyle()),silent:!0}))}}};var KL=GL;function XL(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function ZL(e,t){return t.dim+e.model.componentIndex}var JL=function(e,t,n){var r={},o=function(e){var t={};h.k(e,(function(e,n){var data=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),l=ZL(r,o),c=o.getExtent(),h="category"===o.type?o.getBandWidth():Math.abs(c[1]-c[0])/data.count(),f=t[l]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var v=XL(e);d[v]||f.autoWidthCount++,d[v]=d[v]||{width:0,maxWidth:0};var m=Zn(e.get("barWidth"),h),y=Zn(e.get("barMaxWidth"),h),_=e.get("barGap"),x=e.get("barCategoryGap");m&&!d[v].width&&(m=Math.min(f.remainedWidth,m),d[v].width=m,f.remainedWidth-=m),y&&(d[v].maxWidth=y),null!=_&&(f.gap=_),null!=x&&(f.categoryGap=x)}));var n={};return h.k(t,(function(e,t){n[t]={};var r=e.stacks,o=e.bandWidth,l=Zn(e.categoryGap,o),c=Zn(e.gap,1),f=e.remainedWidth,d=e.autoWidthCount,v=(f-l)/(d+(d-1)*c);v=Math.max(v,0),h.k(r,(function(e,t){var n=e.maxWidth;n&&n<v&&(n=Math.min(n,f),e.width&&(n=Math.min(n,e.width)),f-=n,e.width=n,d--)})),v=(f-l)/(d+(d-1)*c),v=Math.max(v,0);var m,y=0;h.k(r,(function(e,t){e.width||(e.width=v),m=e,y+=e.width*(1+c)})),m&&(y-=m.width*c);var _=-y/2;h.k(r,(function(e,r){n[t][r]=n[t][r]||{offset:_,width:e.width},_+=e.width*(1+c)}))})),n}(h.n(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var data=e.getData(),t=e.coordinateSystem,n=t.getBaseAxis(),l=ZL(t,n),c=XL(e),h=o[l][c],f=h.offset,d=h.width,v=t.getOtherAxis(n),m=e.coordinateSystem.cx,y=e.coordinateSystem.cy,_=e.get("barMinHeight")||0,x=e.get("barMinAngle")||0;r[c]=r[c]||[];for(var w=data.mapDimension(v.dim),S=data.mapDimension(n.dim),k=Vb(data,w),O="radius"!==n.dim||!e.get("roundCap",!0),C=v.dataToCoord(0),T=0,E=data.count();T<E;T++){var A=data.get(w,T),M=data.get(S,T),I=A>=0?"p":"n",D=C;k&&(r[c][M]||(r[c][M]={p:C,n:C}),D=r[c][M][I]);var P=void 0,N=void 0,L=void 0,j=void 0;if("radius"===v.dim){var R=v.dataToCoord(A)-C,F=n.dataToCoord(M);Math.abs(R)<_&&(R=(R<0?-1:1)*_),P=D,N=D+R,j=(L=F-f)-d,k&&(r[c][M][I]=N)}else{var B=v.dataToCoord(A,O)-C,z=n.dataToCoord(M);Math.abs(B)<x&&(B=(B<0?-1:1)*x),N=(P=z+f)+d,L=D,j=D+B,k&&(r[c][M][I]=j)}data.setItemLayout(T,{cx:m,cy:y,r0:P,r:N,startAngle:-L*Math.PI/180,endAngle:-j*Math.PI/180,clockwise:L>=j})}}}))},QL={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},ej={splitNumber:5},tj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.type="polar",t}(rf);function nj(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,o={},l=r.position,c=r.orient,rect=n.getRect(),f=[rect.x,rect.x+rect.width,rect.y,rect.y+rect.height],d={horizontal:{top:f[2],bottom:f[3]},vertical:{left:f[0],right:f[1]}};o.position=["vertical"===c?d.vertical[l]:f[0],"horizontal"===c?d.horizontal[l]:f[3]];o.rotation=Math.PI/2*{horizontal:0,vertical:1}[c];o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,right:1,left:-1}[l],e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),h.O(t.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=t.rotate;return null==v&&(v=e.get(["axisLabel","rotate"])),o.labelRotation="top"===l?-v:v,o.z2=1,o}var rj=["axisLine","axisTickLabel","axisName"],ij=["splitArea","splitLine"],oj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return l(t,e),t.prototype.render=function(t,n,r,o){var l=this.group;l.removeAll();var c=this._axisGroup;this._axisGroup=new qn;var f=nj(t),d=new jS(t,f);h.k(rj,d.add,d),l.add(this._axisGroup),l.add(d.getGroup()),h.k(ij,(function(e){t.get([e,"show"])&&aj[e](this,this.group,this._axisGroup,t)}),this),Zd(c,this._axisGroup,t),e.prototype.render.call(this,t,n,r,o)},t.prototype.remove=function(){YS(this)},t.type="singleAxis",t}(WS),aj={splitLine:function(e,t,n,r){var o=r.axis;if(!o.scale.isBlank()){var l=r.getModel("splitLine"),c=l.getModel("lineStyle"),f=c.get("color");f=f instanceof Array?f:[f];for(var d=c.get("width"),v=r.coordinateSystem.getRect(),m=o.isHorizontal(),y=[],_=0,x=o.getTicksCoords({tickModel:l}),w=[],S=[],i=0;i<x.length;++i){var k=o.toGlobalCoord(x[i].coord);m?(w[0]=k,w[1]=v.y,S[0]=k,S[1]=v.y+v.height):(w[0]=v.x,w[1]=k,S[0]=v.x+v.width,S[1]=k);var line=new ld({shape:{x1:w[0],y1:w[1],x2:S[0],y2:S[1]},silent:!0});qd(line.shape,d);var O=_++%f.length;y[O]=y[O]||[],y[O].push(line)}var C=c.getLineStyle(["color"]);for(i=0;i<y.length;++i)t.add(Vd(y[i],{style:h.i({stroke:f[i%f.length]},C),silent:!0}))}},splitArea:function(e,t,n,r){GS(e,n,r,r)}},sj=oj,lj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(su);Object(h.K)(lj,Yx.prototype);var uj=lj,cj=function(e){function t(t,n,r,o,l){var c=e.call(this,t,n,r)||this;return c.type=o||"value",c.position=l||"bottom",c}return l(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(vS),hj=["single"];function fj(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var dj=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=hj,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,o=new cj(r,Yw(e),[0,0],e.get("type"),e.get("position")),l="category"===o.type;o.onBand=l&&e.get("boundaryGap"),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Object(h.k)(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),Gw(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=Ql({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var rect=this._rect,e=this._axis,t=e.isHorizontal(),n=t?[0,rect.width]:[0,rect.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),this._updateAxisTransform(e,t?rect.x:rect.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],o=e.isHorizontal();e.toGlobalCoord=o?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=o?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var rect=this.getRect(),t=this.getAxis();return"horizontal"===t.orient?t.contain(t.toLocalCoord(e[0]))&&e[1]>=rect.y&&e[1]<=rect.y+rect.height:t.contain(t.toLocalCoord(e[1]))&&e[0]>=rect.y&&e[0]<=rect.y+rect.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),rect=this.getRect(),n=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),n[r]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-r]=0===r?rect.y+rect.height/2:rect.x+rect.width/2,n},e.prototype.convertToPixel=function(e,t,n){return fj(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return fj(t)===this?this.pointToData(n):null},e}();var pj={create:function(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,o){var l=new dj(r,e,t);l.name="single_"+o,l.resize(r,t),r.coordinateSystem=l,n.push(l)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",zr).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n},dimensions:hj},gj=["x","y"],vj=["width","height"],mj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.makeElOption=function(e,t,n,r,o){var l=n.axis,c=l.coordinateSystem,h=_j(c,1-bj(l)),f=c.dataToPoint(t)[0],d=r.get("type");if(d&&"none"!==d){var v=$N(r),m=yj[d](l,f,h);m.style=v,e.graphicKey=m.type,e.pointer=m}WN(t,e,nj(n),n,r,o)},t.prototype.getHandleTransform=function(e,t,n){var r=nj(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var o=qN(t.axis,e,r);return{x:o[0],y:o[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var o=n.axis,l=o.coordinateSystem,c=bj(o),h=_j(l,c),f=[e.x,e.y];f[c]+=t[c],f[c]=Math.min(h[1],f[c]),f[c]=Math.max(h[0],f[c]);var d=_j(l,1-c),v=(d[1]+d[0])/2,m=[v,v];return m[c]=f[c],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:m,tooltipOption:{verticalAlign:"middle"}}},t}(zN),yj={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:UN([t,n[0]],[t,n[1]],bj(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),span=n[1]-n[0];return{type:"Rect",shape:GN([t-r/2,n[0]],[r,span],bj(e))}}};function bj(e){return e.isHorizontal()?0:1}function _j(e,t){var rect=e.getRect();return[rect[gj[t]],rect[gj[t]]+rect[vj[t]]]}var xj=mj,wj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.type="single",t}(rf);var Sj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.init=function(option,t,n){var r=ru(option);e.prototype.init.apply(this,arguments),kj(option,r)},t.prototype.mergeOption=function(option){e.prototype.mergeOption.apply(this,arguments),kj(this.option,option)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(su);function kj(e,t){var n,r=e.cellSize;1===(n=h.t(r)?r:e.cellSize=[r,r]).length&&(n[1]=n[0]);var o=h.H([0,1],(function(e){return function(option,e){return null!=option[Xl[e][0]]||null!=option[Xl[e][1]]&&null!=option[Xl[e][2]]}(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));nu(e,t,{type:"box",ignoreSize:o})}var Oj=Sj,Cj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var o=e.coordinateSystem,l=o.getRangeInfo(),c=o.getOrient(),h=t.getLocaleModel();this._renderDayRect(e,l,r),this._renderLines(e,l,c,r),this._renderYearText(e,l,c,r),this._renderMonthText(e,h,c,r),this._renderWeekText(e,h,l,c,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),l=r.getCellWidth(),c=r.getCellHeight(),i=t.start.time;i<=t.end.time;i=r.getNextNDay(i,1).time){var h=r.dataToRect([i],!1).tl,rect=new Go({shape:{x:h[0],y:h[1],width:l,height:c},cursor:"default",style:o});n.add(rect)}},t.prototype._renderLines=function(e,t,n,r){var o=this,l=e.coordinateSystem,c=e.getModel(["splitLine","lineStyle"]).getLineStyle(),h=e.get(["splitLine","show"]),f=c.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=t.start,i=0;d.time<=t.end.time;i++){m(d.formatedDate),0===i&&(d=l.getDateInfo(t.start.y+"-"+t.start.m));var v=d.date;v.setMonth(v.getMonth()+1),d=l.getDateInfo(v)}function m(t){o._firstDayOfMonth.push(l.getDateInfo(t)),o._firstDayPoints.push(l.dataToRect([t],!1).tl);var f=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(f[0]),o._blpoints.push(f[f.length-1]),h&&o._drawSplitline(f,c,r)}m(l.getNextNDay(t.end.time,1).formatedDate),h&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),c,r),h&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),c,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],o="horizontal"===n?0:1;return r[0][o]=r[0][o]-t/2,r[1][o]=r[1][o]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new id({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,o=r.getDateInfo(t),l=[],i=0;i<7;i++){var c=r.getNextNDay(o.time,i),h=r.dataToRect([c.time],!1);l[2*c.day]=h.tl,l[2*c.day+1]=h["horizontal"===n?"bl":"tr"]}return l},t.prototype._formatterLabel=function(e,t){return Object(h.C)(e)&&e?(n=e,param=t,h.k(param,(function(e,t){n=n.replace("{"+t+"}",r?H(e):e)})),n):Object(h.w)(e)?e(t):t.nameMap;var n,param,r},t.prototype._yearTextPositionControl=function(e,t,n,r,o){var l=t[0],c=t[1],h=["center","bottom"];"bottom"===r?(c+=o,h=["center","top"]):"left"===r?l-=o:"right"===r?(l+=o,h=["center","top"]):c-=o;var f=0;return"left"!==r&&"right"!==r||(f=Math.PI/2),{rotation:f,x:l,y:c,style:{align:h[0],verticalAlign:h[1]}}},t.prototype._renderYearText=function(e,t,n,r){var o=e.getModel("yearLabel");if(o.get("show")){var l=o.get("margin"),c=o.get("position");c||(c="horizontal"!==n?"top":"left");var h=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(h[0][0]+h[1][0])/2,d=(h[0][1]+h[1][1])/2,v="horizontal"===n?0:1,m={top:[f,h[v][1]],bottom:[f,h[1-v][1]],left:[h[1-v][0],d],right:[h[v][0],d]},y=t.start.y;+t.end.y>+t.start.y&&(y=y+"-"+t.end.y);var _=o.get("formatter"),x={start:t.start.y,end:t.end.y,nameMap:y},content=this._formatterLabel(_,x),w=new ua({z2:30,style:Os(o,{text:content})});w.attr(this._yearTextPositionControl(w,m[c],n,c,l)),r.add(w)}},t.prototype._monthTextPositionControl=function(e,t,n,r,o){var l="left",c="top",h=e[0],f=e[1];return"horizontal"===n?(f+=o,t&&(l="center"),"start"===r&&(c="bottom")):(h+=o,t&&(c="middle"),"start"===r&&(l="right")),{x:h,y:f,align:l,verticalAlign:c}},t.prototype._renderMonthText=function(e,t,n,r){var o=e.getModel("monthLabel");if(o.get("show")){var l=o.get("nameMap"),c=o.get("margin"),f=o.get("position"),d=o.get("align"),v=[this._tlpoints,this._blpoints];l&&!Object(h.C)(l)||(l&&(t=al(l)||t),l=t.get(["time","monthAbbr"])||[]);var m="start"===f?0:1,y="horizontal"===n?0:1;c="start"===f?-c:c;for(var _="center"===d,i=0;i<v[m].length-1;i++){var x=v[m][i].slice(),w=this._firstDayOfMonth[i];if(_){var S=this._firstDayPoints[i];x[y]=(S[y]+v[0][i+1][y])/2}var k=o.get("formatter"),O=l[+w.m-1],C={yyyy:w.y,yy:(w.y+"").slice(2),MM:w.m,M:+w.m,nameMap:O},content=this._formatterLabel(k,C),T=new ua({z2:30,style:Object(h.m)(Os(o,{text:content}),this._monthTextPositionControl(x,_,n,f,c))});r.add(T)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,o){var l="center",c="middle",h=e[0],f=e[1],d="start"===n;return"horizontal"===t?(h=h+r+(d?1:-1)*o[0]/2,l=d?"right":"left"):(f=f+r+(d?1:-1)*o[1]/2,c=d?"bottom":"top"),{x:h,y:f,align:l,verticalAlign:c}},t.prototype._renderWeekText=function(e,t,n,r,o){var l=e.getModel("dayLabel");if(l.get("show")){var c=e.coordinateSystem,f=l.get("position"),d=l.get("nameMap"),v=l.get("margin"),m=c.getFirstDayOfWeek();if(!d||Object(h.C)(d))d&&(t=al(d)||t),d=t.get(["time","dayOfWeekShort"])||Object(h.H)(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}));var y=c.getNextNDay(n.end.time,7-n.lweek).time,_=[c.getCellWidth(),c.getCellHeight()];v=Zn(v,Math.min(_[1],_[0])),"start"===f&&(y=c.getNextNDay(n.start.time,-(7+n.fweek)).time,v=-v);for(var i=0;i<7;i++){var x,w=c.getNextNDay(y,i),S=c.dataToRect([w.time],!1).center;x=Math.abs((i+m)%7);var k=new ua({z2:30,style:Object(h.m)(Os(l,{text:d[x]}),this._weekTextPositionControl(S,r,f,v,_))});o.add(k)}}},t.type="calendar",t}(rf),Tj=Cj,Ej=864e5;function Aj(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var Mj=function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){var t=(e=ur(e)).getFullYear(),n=e.getMonth()+1,r=n<10?"0"+n:""+n,o=e.getDate(),l=o<10?"0"+o:""+o,c=e.getDay();return{y:t+"",m:r,d:l,day:c=Math.abs((c+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+r+"-"+l,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],o=this._model.getCellSize().slice(),l=this._model.getBoxLayoutParams(),c="horizontal"===this._orient?[n,7]:[7,n];h.k([0,1],(function(e){v(o,e)&&(l[r[e]]=o[e]*c[e])}));var f={width:t.getWidth(),height:t.getHeight()},d=this._rect=Ql(l,f);function v(e,t){return null!=e[t]&&"auto"!==e[t]}h.k([0,1],(function(e){v(o,e)||(o[e]=d[r[e]]/c[e])})),this._sw=o[0],this._sh=o[1]},e.prototype.dataToPoint=function(data,e){h.t(data)&&(data=data[0]),null==e&&(e=!0);var t=this.getDateInfo(data),n=this._rangeInfo,r=t.formatedDate;if(e&&!(t.time>=n.start.time&&t.time<n.end.time+Ej))return[NaN,NaN];var o=t.day,l=this._getRangeInfo([n.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]:[this._rect.x+l*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(data,e){var t=this.dataToPoint(data,e);return{contentShape:{x:t[0]-(this._sw-this._lineWidth)/2,y:t[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:t,tl:[t[0]-this._sw/2,t[1]-this._sh/2],tr:[t[0]+this._sw/2,t[1]-this._sh/2],br:[t[0]+this._sw/2,t[1]+this._sh/2],bl:[t[0]-this._sw/2,t[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=Aj(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=Aj(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(h.t(t)&&1===t.length&&(t=t[0]),h.t(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),o=r.date;o.setMonth(o.getMonth()+1);var l=this.getNextNDay(o,-1);e=[r.formatedDate,l.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var c=this._getRangeInfo(e);return c.start.time>c.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var r=Math.floor(n[1].time/Ej)-Math.floor(n[0].time/Ej)+1,o=new Date(n[0].time),l=o.getDate(),c=n[1].date.getDate();o.setDate(l+r-1);var h=o.getDate();if(h!==c)for(var f=o.getTime()-n[1].time>0?1:-1;(h=o.getDate())!==c&&(o.getTime()-n[1].time)*f>0;)r-=f,o.setDate(h-f);var d=Math.floor((r+n[0].day+6)/7),v=t?1-d:d-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:d,nthWeek:v,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var o=7*(e-1)-r.fweek+t,l=new Date(r.start.time);return l.setDate(+r.start.d+o),this.getDateInfo(l)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",(function(o){var l=new e(o,t,n);r.push(l),o.coordinateSystem=l})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])})),r},e.dimensions=["time","value"],e}();function Ij(e,t){var n;return h.k(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}var Dj=["transition","enterFrom","leaveTo"],Pj=Dj.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Nj(e,source,t){if(t&&(!e[t]&&source[t]&&(e[t]={}),e=e[t],source=source[t]),e&&source)for(var n=t?Dj:Pj,i=0;i<n.length;i++){var r=n[i];null==e[r]&&null!=source[r]&&(e[r]=source[r])}}var Lj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return l(t,e),t.prototype.mergeOption=function(option,t){var n=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,option,t),this.option.elements=n},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,o=n.elements=t?[]:n.elements,l=[];this._flatten(r,l,null);var c=Ar(o,l,"normalMerge"),f=this._elOptionsToUpdate=[];h.k(c,(function(e,t){var n=e.newOption;n&&(f.push(n),function(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var r=h.m({},n),o=e[t],l=n.$action||"merge";"merge"===l?o?(h.I(o,r,!0),nu(o,r,{ignoreSize:!0}),iu(n,o),Nj(n,o),Nj(n,o,"shape"),Nj(n,o,"style"),Nj(n,o,"extra"),n.clipPath=o.clipPath):e[t]=r:"replace"===l?e[t]=r:"remove"===l&&o&&(e[t]=null)}(o,t,n),function(e,t){if(e&&(e.hv=t.hv=[Ij(t,["left","right"]),Ij(t,["top","bottom"])],"group"===e.type)){var n=e,r=t;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(o[t],n))}),this),n.elements=h.n(o,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){h.k(e,(function(option){if(option){n&&(option.parentOption=n),t.push(option);var e=option.children;e&&e.length&&this._flatten(e,t,option),delete option.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(su),jj={path:null,compoundPath:null,group:qn,image:Bo,text:ua},Rj=jr(),Fj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.init=function(){this._elMap=h.f()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,o=e.get("z"),l=e.get("zlevel");h.k(t,(function(t){var c=Dr(t.id,null),f=null!=c?n.get(c):null,d=Dr(t.parentId,null),v=null!=d?n.get(d):r,m=t.type,y=t.style;"text"===m&&y&&t.hv&&t.hv[1]&&(y.textVerticalAlign=y.textBaseline=y.verticalAlign=y.align=null);var _=t.textContent,x=t.textConfig;if(y&&MP(y,m,!!x,!!_)){var w=IP(y,m,!0);!x&&w.textConfig&&(x=t.textConfig=w.textConfig),!_&&w.textContent&&(_=w.textContent)}var S=function(e){return e=h.m({},e),h.k(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Kl),(function(t){delete e[t]})),e}(t);var k=t.$action||"merge",O="merge"===k,C="replace"===k;if(O){var T=f;(N=!f)?T=zj(c,v,t.type,n):(T&&(Rj(T).isNew=!1),JP(T)),T&&(zP(T,S,e,{isInit:N}),Vj(T,t,o,l))}else if(C){$j(f,t,n,e);var E=zj(c,v,t.type,n);E&&(zP(E,S,e,{isInit:!0}),Vj(E,t,o,l))}else"remove"===k&&($P(f,t),$j(f,t,n,e));var A=n.get(c);if(A&&_)if(O){var M=A.getTextContent();M?M.attr(_):A.setTextContent(new ua(_))}else C&&A.setTextContent(new ua(_));if(A){var I=t.clipPath;if(I){var D=I.type,P=void 0,N=!1;if(O){var L=A.getClipPath();P=(N=!L||Rj(L).type!==D)?Bj(D):L}else C&&(N=!0,P=Bj(D));A.setClipPath(P),zP(P,I,e,{isInit:N}),QP(P,I.keyframeAnimation,e)}var j=Rj(A);A.setTextConfig(x),j.option=t,function(e,t,n){var r=ca(e).eventData;e.silent||e.ignore||r||(r=ca(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});r&&(r.info=n.info)}(A,e,t),op({el:A,componentModel:e,itemName:A.name,itemTooltipOption:t.tooltip}),QP(A,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,o=this._elMap,l=t.getWidth(),c=t.getHeight(),f=["x","y"],i=0;i<n.length;i++){if((x=null!=(_=Dr((y=n[i]).id,null))?o.get(_):null)&&x.isGroup){var d=(w=x.parent)===r,v=Rj(x),m=Rj(w);v.width=Zn(v.option.width,d?l:m.width)||0,v.height=Zn(v.option.height,d?c:m.height)||0}}for(i=n.length-1;i>=0;i--){var y,_,x;if(x=null!=(_=Dr((y=n[i]).id,null))?o.get(_):null){var w=x.parent,S=(m=Rj(w),{}),k=eu(x,y,w===r?{width:l,height:c}:{width:m.width,height:m.height},null,{hv:y.hv,boundingMode:y.bounding},S);if(!Rj(x).isNew&&k){for(var O=y.transition,C={},T=0;T<f.length;T++){var E=f[T],A=S[E];O&&(HP(O)||h.r(O,E)>=0)?C[E]=A:x[E]=A}ds(x,C,e,0)}else x.attr(S)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){$j(n,Rj(n).option,t,e._lastGraphicModel)})),this._elMap=h.f()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(rf);function Bj(e){var t=new(h.q(jj,e)?jj[e]:Fd(e))({});return Rj(t).type=e,t}function zj(e,t,n,r){var o=Bj(n);return t.add(o),r.set(e,o),Rj(o).id=e,Rj(o).isNew=!0,o}function $j(e,t,n,r){e&&e.parent&&("group"===e.type&&e.traverse((function(e){$j(e,t,n,r)})),VP(e,t,r),n.removeKey(Rj(e).id))}function Vj(e,t,n,r){e.isGroup||h.k([["cursor",Mi.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];h.q(t,r)?e[r]=h.P(t[r],n[1]):null==e[r]&&(e[r]=n[1])})),h.k(h.F(t),(function(n){if(0===n.indexOf("on")){var r=t[n];e[n]=h.w(r)?r:null}})),h.q(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}var Hj=["x","y","radius","angle","single"],qj=["cartesian2d","polar","singleAxis"];function Wj(e){return e+"Axis"}function Uj(e,t){var n,r=Object(h.f)(),o=[],l=Object(h.f)();e.eachComponent({mainType:"dataZoom",query:t},(function(e){l.get(e.uid)||f(e)}));do{n=!1,e.eachComponent("dataZoom",c)}while(n);function c(e){!l.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis((function(e,n){var o=r.get(e);o&&o[n]&&(t=!0)})),t}(e)&&(f(e),n=!0)}function f(e){l.set(e.uid,!0),o.push(e),e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return o}function Gj(e){var t=e.ecModel,n={infoList:[],infoMap:Object(h.f)()};return e.eachTargetAxis((function(e,r){var o=t.getComponent(Wj(e),r);if(o){var l=o.getCoordSysModel();if(l){var c=l.uid,h=n.infoMap.get(c);h||(h={model:l,axisModels:[]},n.infoList.push(h),n.infoMap.set(c,h)),h.axisModels.push(o)}}})),n}var Yj=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),Kj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return l(t,e),t.prototype.init=function(option,e,t){var n=Xj(option);this.settledOption=n,this.mergeDefaultAndTheme(option,t),this._doInit(n)},t.prototype.mergeOption=function(e){var t=Xj(e);Object(h.I)(this.option,e,!0),Object(h.I)(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(h.k)([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(h.f)();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(h.k)(Hj,(function(n){var r=this.getReferringComponents(Wj(n),$r);if(r.specified){t=!0;var o=new Yj;Object(h.k)(r.models,(function(e){o.add(e.componentIndex)})),e.set(n,o)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var o="vertical"===t?"y":"x";l(n.findComponents({mainType:o+"Axis"}),o)}r&&l(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function l(t,n){var o=t[0];if(o){var l=new Yj;if(l.add(o.componentIndex),e.set(n,l),r=!1,"x"===n||"y"===n){var c=o.getReferringComponents("grid",zr).models[0];c&&Object(h.k)(t,(function(e){o.componentIndex!==e.componentIndex&&c===e.getReferringComponents("grid",zr).models[0]&&l.add(e.componentIndex)}))}}}r&&Object(h.k)(Hj,(function(t){if(r){var o=n.findComponents({mainType:Wj(t),filter:function(e){return"category"===e.get("type",!0)}});if(o[0]){var l=new Yj;l.add(o[0].componentIndex),e.set(t,l),r=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(h.k)([["start","startValue"],["end","endValue"]],(function(r,o){var l=null!=e[r[0]],c=null!=e[r[1]];l&&!c?t[o]="percent":!l&&c?t[o]="value":n?t[o]=n[o]:l&&(t[o]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(Wj(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){Object(h.k)(n.indexList,(function(n){e.call(t,r,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(Wj(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(h.k)([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var option=this.option;Object(h.k)(["start","startValue","end","endValue"],(function(t){option[t]=e[t]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),l=0;l<o.indexList.length;l++){var c=this.getAxisProxy(r,o.indexList[l]);if(c.hostedBy(this))return c;t||(t=c)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(su);function Xj(option){var e={};return Object(h.k)(["start","end","startValue","endValue","throttle"],(function(t){option.hasOwnProperty(t)&&(e[t]=option[t])})),e}var Zj=Kj,Jj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.type="dataZoom.select",t}(Zj),Qj=Jj,eR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(rf),tR=eR,nR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.type="dataZoom.select",t}(tR),rR=nR,iR=h.k,oR=Qn;var aR=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(function(e){var t=e.get("coordinateSystem");return Object(h.r)(qj,t)>=0}(t)){var n=Wj(this._dimName),r=t.getReferringComponents(n,zr).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return h.d(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel().axis.scale,o=this._dataZoomModel.getRangePropMode(),l=[0,100],c=[],h=[];iR(["start","end"],(function(f,d){var v=e[f],m=e[f+"Value"];"percent"===o[d]?(null==v&&(v=l[d]),m=r.parse(Xn(v,l,n))):(t=!0,v=Xn(m=null==m?n[d]:r.parse(m),n,l)),h[d]=m,c[d]=v})),oR(h),oR(c);var f=this._minMaxSpan;function d(e,t,n,o,l){var c=l?"Span":"ValueSpan";$A(0,e,n,"all",f["min"+c],f["max"+c]);for(var i=0;i<2;i++)t[i]=Xn(e[i],n,o,!0),l&&(t[i]=r.parse(t[i]))}return t?d(h,c,n,l,!1):d(c,h,l,n,!0),{valueWindow:h,percentWindow:c}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var r=[1/0,-1/0];iR(n,(function(e){!function(e,data,t){data&&h.k(Qw(data,t),(function(t){var n=data.getApproximateExtent(t);n[0]<e[0]&&(e[0]=n[0]),n[1]>e[1]&&(e[1]=n[1])}))}(r,e.getData(),t)}));var o=e.getAxisModel(),l=qw(o.axis.scale,o,r).calculate();return[l.min,l.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),o=e.get("filterMode"),l=this._valueWindow;"none"!==o&&iR(r,(function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===o){var c=t.getStore(),f=h.H(r,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,o,i=0;i<r.length;i++){var h=c.get(f[i],e),d=!isNaN(h),v=h<l[0],m=h>l[1];if(d&&!v&&!m)return!0;d&&(o=!0),v&&(t=!0),m&&(n=!0)}return o&&t&&n}))}else iR(r,(function(n){if("empty"===o)e.setData(t=t.map(n,(function(e){return function(e){return e>=l[0]&&e<=l[1]}(e)?e:NaN})));else{var r={};r[n]=l,t.selectRange(r)}}));iR(r,(function(e){t.setApproximateExtent(l,e)}))}}))}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;iR(["min","max"],(function(r){var o=t.get(r+"Span"),l=t.get(r+"ValueSpan");null!=l&&(l=this.getAxisModel().axis.scale.parse(l)),null!=l?o=Xn(n[0]+l,n,[0,100],!0):null!=o&&(l=Xn(o,[0,100],n,!0)-n[0]),e[r+"Span"]=o,e[r+"ValueSpan"]=l}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=nr(n,[0,500]);r=Math.min(r,20);var o=e.axis.scale.rawExtentInfo;0!==t[0]&&o.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&o.setDeterminedMinMax("max",+n[1].toFixed(r)),o.freeze()}},e}(),sR={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,o){var l=e.getComponent(Wj(r),o);t(r,o,l,n)}))}))}t((function(e,t,n,r){n.__dzAxisProxy=null}));var n=[];t((function(t,r,o,l){o.__dzAxisProxy||(o.__dzAxisProxy=new aR(t,r,l,e),n.push(o.__dzAxisProxy))}));var r=Object(h.f)();return Object(h.k)(n,(function(e){Object(h.k)(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}};var lR=!1;function uR(e){lR||(lR=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,sR),function(e){e.registerAction("dataZoom",(function(e,t){var n=Uj(t,e);Object(h.k)(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function cR(e){e.registerComponentModel(Qj),e.registerComponentView(rR),uR(e)}var hR=function(){},fR={};function dR(e,t){fR[e]=t}function pR(e){return fR[e]}var gR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;h.k(this.option.feature,(function(e,n){var r=pR(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),h.I(e,r.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(su),vR=gR;function mR(rect,e){var t=$l(e.get("padding")),style=e.getItemStyle(["color","opacity"]);return style.fill=e.get("backgroundColor"),rect=new Go({shape:{x:rect.x-t[3],y:rect.y-t[0],width:rect.width+t[1]+t[3],height:rect.height+t[0]+t[2],r:e.get("borderRadius")},style:style,silent:!0,z2:-1})}var yR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(e,t,n,r){var o=this.group;if(o.removeAll(),e.get("show")){var l=+e.get("itemSize"),c="vertical"===e.get("orient"),f=e.get("feature")||{},d=this._features||(this._features={}),v=[];h.k(f,(function(e,t){v.push(t)})),new cb(this._featureNames||[],v).add(m).update(m).remove(h.h(m,null)).execute(),this._featureNames=v,function(e,t,n){var r=t.getBoxLayoutParams(),o=t.get("padding"),l={width:n.getWidth(),height:n.getHeight()},rect=Ql(r,l,o);Jl(t.get("orient"),e,t.get("itemGap"),rect.width,rect.height),eu(e,r,l,o)}(o,e,n),o.add(mR(o.getBoundingRect(),e)),c||o.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),c=r.textConfig||(r.textConfig={}),f=e.getTextContent(),d=f&&f.ensureState("emphasis");if(d&&!h.w(d)&&t){var v=d.style||(d.style={}),rect=Cn(t,ua.makeFont(v)),m=e.x+o.x,y=!1;e.y+o.y+l+rect.height>n.getHeight()&&(c.position="top",y=!0);var _=y?-5-rect.height:l+10;m+rect.width/2>n.getWidth()?(c.position=["100%",_],v.align="right"):m-rect.width/2<0&&(c.position=[0,_],v.align="left")}}))}function m(m,y){var _,x=v[m],w=v[y],S=f[x],k=new Ys(S,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===x&&(S.title=r.newTitle),x&&!w){if(function(e){return 0===e.indexOf("my")}(x))_={onclick:k.option.onclick,featureName:x};else{var O=pR(x);if(!O)return;_=new O}d[x]=_}else if(!(_=d[w]))return;_.uid=Xs("toolbox-feature"),_.model=k,_.ecModel=t,_.api=n;var C=_ instanceof hR;x||!w?!k.get("show")||C&&_.unusable?C&&_.remove&&_.remove(t,n):(!function(r,f,d){var v,m,y=r.getModel("iconStyle"),_=r.getModel(["emphasis","iconStyle"]),x=f instanceof hR&&f.getIcons?f.getIcons():r.get("icon"),w=r.get("title")||{};h.C(x)?(v={})[d]=x:v=x;h.C(w)?(m={})[d]=w:m=w;var S=r.iconPaths={};h.k(v,(function(d,v){var path=ep(d,{},{x:-l/2,y:-l/2,width:l,height:l});path.setStyle(y.getItemStyle()),path.ensureState("emphasis").style=_.getItemStyle();var x=new ua({style:{text:m[v],align:_.get("textAlign"),borderRadius:_.get("textBorderRadius"),padding:_.get("textPadding"),fill:null},ignore:!0});path.setTextContent(x),op({el:path,componentModel:e,itemName:v,formatterParamsExtra:{title:m[v]}}),path.__title=m[v],path.on("mouseover",(function(){var t=_.getItemStyle(),r=c?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";x.setStyle({fill:_.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:_.get("textBackgroundColor")}),path.setTextConfig({position:_.get("textPosition")||r}),x.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",v])&&n.leaveEmphasis(this),x.hide()})),("emphasis"===r.get(["iconStatus",v])?$a:Va)(path),o.add(path),path.on("click",h.c(f.onclick,f,t,n,v)),S[v]=path}))}(k,_,x),k.setIconStatus=function(e,t){var option=this.option,n=this.iconPaths;option.iconStatus=option.iconStatus||{},option.iconStatus[e]=t,n[e]&&("emphasis"===t?$a:Va)(n[e])},_ instanceof hR&&_.render&&_.render(k,t,n,r)):C&&_.dispose&&_.dispose(t,n)}},t.prototype.updateView=function(e,t,n,r){h.k(this._features,(function(e){e instanceof hR&&e.updateView&&e.updateView(e.model,t,n,r)}))},t.prototype.remove=function(e,t){h.k(this._features,(function(n){n instanceof hR&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){h.k(this._features,(function(n){n instanceof hR&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(rf);var bR=yR,_R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.onclick=function(e,t){var n=this.model,title=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",l=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),f=c.a.browser;if(Object(h.w)(MouseEvent)&&(f.newEdge||!f.ie&&!f.edge)){var d=document.createElement("a");d.download=title+"."+o,d.target="_blank",d.href=l;var v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});d.dispatchEvent(v)}else if(window.navigator.msSaveOrOpenBlob||r){var m=l.split(","),y=m[0].indexOf("base64")>-1,_=r?decodeURIComponent(m[1]):m[1];y&&(_=window.atob(_));var x=title+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var w=_.length,S=new Uint8Array(w);w--;)S[w]=_.charCodeAt(w);var k=new Blob([S]);window.navigator.msSaveOrOpenBlob(k,x)}else{var O=document.createElement("iframe");document.body.appendChild(O);var C=O.contentWindow,T=C.document;T.open("image/svg+xml","replace"),T.write(_),T.close(),C.focus(),T.execCommand("SaveAs",!0,x),document.body.removeChild(O)}}else{var E=n.get("lang"),html='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(E&&E[0]||"")+'" /></body>',A=window.open();A.document.write(html),A.document.title=title}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(hR),xR=_R,wR="__ec_magicType_stack__",SR=[["line","bar"],["stack"]],kR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return h.k(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,o=r.get(["seriesIndex",n]);if(OR[n]){var l,c={series:[]};h.k(SR,(function(e){h.r(e,n)>=0&&h.k(e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},(function(e){var t=e.subType,o=e.id,l=OR[n](t,o,e,r);l&&(h.i(l,e.option),c.series.push(l));var f=e.coordinateSystem;if(f&&"cartesian2d"===f.type&&("line"===n||"bar"===n)){var d=f.getAxesByScale("ordinal")[0];if(d){var v=d.dim+"Axis",m=e.getReferringComponents(v,zr).models[0].componentIndex;c[v]=c[v]||[];for(var i=0;i<=m;i++)c[v][m]=c[v][m]||{};c[v][m].boundaryGap="bar"===n}}}));var f=n;"stack"===n&&(l=h.I({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(f="tiled")),t.dispatchAction({type:"changeMagicType",currentType:f,newOption:c,newTitle:l,featureName:"magicType"})}},t}(hR),OR={line:function(e,t,n,r){if("bar"===e)return h.I({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return h.I({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var o=n.get("stack")===wR;if("line"===e||"bar"===e)return r.setIconStatus("stack",o?"normal":"emphasis"),h.I({id:t,stack:o?"":wR},r.get(["option","stack"])||{},!0)}};im({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var CR=kR,TR=new Array(60).join("-"),ER="\t";function AR(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var MR=new RegExp("[\t]+","g");function IR(e,t){var n=e.split(new RegExp("\n*"+TR+"\n*","g")),r={series:[]};return h.k(n,(function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(ER)>=0)return!0}(e)){var o=function(e){for(var t=e.split(/\n+/g),n=AR(t.shift()).split(MR),r=[],o=h.H(n,(function(header){return{name:header,data:[]}})),i=0;i<t.length;i++){var l=AR(t[i]).split(MR);r.push(l.shift());for(var c=0;c<l.length;c++)o[c]&&(o[c].data[i]=l[c])}return{series:o,categories:r}}(e),l=t[n],c=l.axisDim+"Axis";l&&(r[c]=r[c]||[],r[c][l.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{o=function(e){for(var t=e.split(/\n+/g),n=AR(t.shift()),data=[],i=0;i<t.length;i++){var line=AR(t[i]);if(line){var r=line.split(MR),o="",l=void 0,c=!1;isNaN(r[0])?(c=!0,o=r[0],r=r.slice(1),data[i]={name:o,value:[]},l=data[i].value):l=data[i]=[];for(var h=0;h<r.length;h++)l.push(+r[h]);1===l.length&&(c?data[i].value=l[0]:data[i]=l[0])}}return{name:n,data:data}}(e);r.series.push(o)}})),r}var DR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=r.get("backgroundColor")||"#fff";var header=document.createElement("h4"),l=r.get("lang")||[];header.innerHTML=l[0]||r.get("title"),header.style.cssText="margin:10px 20px",header.style.color=r.get("textColor");var c=document.createElement("div"),textarea=document.createElement("textarea");c.style.cssText="overflow:auto";var f=r.get("optionToContent"),d=r.get("contentToOption"),v=function(e){var t,n,r,o=function(e){var t={},n=[],meta=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var l=o.dim+"_"+o.index;t[l]||(t[l]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},meta.push({axisDim:o.dim,axisIndex:o.index})),t[l].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:meta}}(e);return{value:h.n([(n=o.seriesGroupByCategoryAxis,r=[],h.k(n,(function(e,t){var n=e.categoryAxis,o=e.valueAxis.dim,l=[" "].concat(h.H(e.series,(function(e){return e.name}))),c=[n.model.getCategories()];h.k(e.series,(function(e){var t=e.getRawData();c.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var f=[l.join(ER)],i=0;i<c[0].length;i++){for(var d=[],v=0;v<c.length;v++)d.push(c[v][i]);f.push(d.join(ER))}r.push(f.join("\n"))})),r.join("\n\n"+TR+"\n\n")),(t=o.other,h.H(t,(function(e){var data=e.getRawData(),t=[e.name],n=[];return data.each(data.dimensions,(function(){for(var e=arguments.length,r=arguments[e-1],o=data.getName(r),i=0;i<e-1;i++)n[i]=arguments[i];t.push((o?o+ER:"")+n.join(ER))})),t.join("\n")})).join("\n\n"+TR+"\n\n"))],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+TR+"\n\n"),meta:o.meta}}(e);if(h.w(f)){var m=f(t.getOption());h.C(m)?c.innerHTML=m:h.v(m)&&c.appendChild(m)}else{textarea.readOnly=r.get("readOnly");var style=textarea.style;style.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",style.color=r.get("textColor"),style.borderColor=r.get("textareaBorderColor"),style.backgroundColor=r.get("textareaColor"),textarea.value=v.value,c.appendChild(textarea)}var y=v.meta,_=document.createElement("div");_.style.cssText="position:absolute;bottom:5px;left:0;right:0";var x="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document.createElement("div"),S=document.createElement("div");x+=";background-color:"+r.get("buttonColor"),x+=";color:"+r.get("buttonTextColor");var k=this;function O(){n.removeChild(o),k._dom=null}J(w,"click",O),J(S,"click",(function(){if(null==d&&null!=f||null!=d&&null==f)O();else{var e;try{e=h.w(d)?d(c,t.getOption()):IR(textarea.value,y)}catch(e){throw O(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),O()}})),w.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=w.style.cssText=x,!r.get("readOnly")&&_.appendChild(S),_.appendChild(w),o.appendChild(header),o.appendChild(c),o.appendChild(_),c.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(hR);function PR(e,t){return h.H(e,(function(e,n){var r=t&&t[n];if(h.A(r)&&!h.t(r)){h.A(e)&&!h.t(e)||(e={value:e});var o=null!=r.name&&null==e.name;return e=h.i(e,r),o&&delete e.name,e}return e}))}im({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];h.k(e.newOption.series,(function(e){var r=t.getSeriesByName(e.name)[0];if(r){var o=r.get("data");n.push({name:e.name,data:PR(e.data,o)})}else n.push(h.m({type:"scatter"},e))})),t.mergeOption(h.i({series:n},e.newOption))}));var NR=DR,LR=h.k,jR=jr();function RR(e){var t=jR(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var FR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.onclick=function(e,t){!function(e){jR(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(hR);im({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var BR=FR,zR=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],$R=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var o=HR(t,e);Object(h.k)(qR,(function(e,t){(!n||!n.include||Object(h.r)(n.include,t)>=0)&&e(o,r._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(area,e,t){if((area.coordRanges||(area.coordRanges=[])).push(e),!area.coordRange){area.coordRange=e;var n=GR[area.brushType](0,t,e);area.__rangeOffset={offset:KR[area.brushType](n.values,area.range,[1,1]),xyMinMax:n.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(h.k)(e,(function(area){var e=this.findTargetInfo(area,t);e&&!0!==e&&Object(h.k)(e.coordSyses,(function(e){var r=GR[area.brushType](1,e,area.range,!0);n(area,r.values,e,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(h.k)(e,(function(area){var e,n,r,o,l,c=this.findTargetInfo(area,t);if(area.range=area.range||[],c&&!0!==c){area.panelId=c.panelId;var h=GR[area.brushType](0,c.coordSys,area.coordRange),f=area.__rangeOffset;area.range=f?KR[area.brushType](h.values,f.offset,(e=h.xyMinMax,n=f.xyMinMax,r=ZR(e),o=ZR(n),l=[r[0]/o[0],r[1]/o[1]],isNaN(l[0])&&(l[0]=1),isNaN(l[1])&&(l[1]=1),l)):h.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(h.H)(this._targetInfoList,(function(n){var rect=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:WM(rect),isTargetByCursor:GM(rect,e,n.coordSysModel),getLinearBrushOtherExtent:UM(rect)}}))},e.prototype.controlSeries=function(area,e,t){var n=this.findTargetInfo(area,t);return!0===n||n&&Object(h.r)(n.coordSyses,e.coordinateSystem)>=0},e.prototype.findTargetInfo=function(area,e){for(var t=this._targetInfoList,n=HR(e,area),i=0;i<t.length;i++){var r=t[i],o=area.panelId;if(o){if(r.panelId===o)return r}else for(var l=0;l<WR.length;l++)if(WR[l](n,r))return r}return!0},e}();function VR(e){return e[0]>e[1]&&e.reverse(),e}function HR(e,t){return Fr(e,t,{includeMainTypes:zR})}var qR={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,o=e.gridModels,l=Object(h.f)(),c={},f={};(n||r||o)&&(Object(h.k)(n,(function(e){var t=e.axis.grid.model;l.set(t.id,t),c[t.id]=!0})),Object(h.k)(r,(function(e){var t=e.axis.grid.model;l.set(t.id,t),f[t.id]=!0})),Object(h.k)(o,(function(e){l.set(e.id,e),c[e.id]=!0,f[e.id]=!0})),l.each((function(e){var o=e.coordinateSystem,l=[];Object(h.k)(o.getCartesians(),(function(e,t){(Object(h.r)(n,e.getAxis("x").model)>=0||Object(h.r)(r,e.getAxis("y").model)>=0)&&l.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:l[0],coordSyses:l,getPanelRect:UR.grid,xAxisDeclared:c[e.id],yAxisDeclared:f[e.id]})})))},geo:function(e,t){Object(h.k)(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:UR.geo})}))}},WR=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,o=e.gridModel;return!o&&n&&(o=n.axis.grid.model),!o&&r&&(o=r.axis.grid.model),o&&o===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],UR={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,rect=e.getBoundingRect().clone();return rect.applyTransform(Gd(e)),rect}},GR={lineX:Object(h.h)(YR,0),lineY:Object(h.h)(YR,1),rect:function(e,t,n,r){var o=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),l=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),c=[VR([o[0],l[0]]),VR([o[1],l[1]])];return{values:c,xyMinMax:c}},polygon:function(e,t,n,r){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(h.H)(n,(function(n){var p=e?t.pointToData(n,r):t.dataToPoint(n,r);return o[0][0]=Math.min(o[0][0],p[0]),o[1][0]=Math.min(o[1][0],p[1]),o[0][1]=Math.max(o[0][1],p[0]),o[1][1]=Math.max(o[1][1],p[1]),p})),xyMinMax:o}}};function YR(e,t,n,r){var o=n.getAxis(["x","y"][e]),l=VR(Object(h.H)([0,1],(function(i){return t?o.coordToData(o.toLocalCoord(r[i]),!0):o.toGlobalCoord(o.dataToCoord(r[i]))}))),c=[];return c[e]=l,c[1-e]=[NaN,NaN],{values:l,xyMinMax:c}}var KR={lineX:Object(h.h)(XR,0),lineY:Object(h.h)(XR,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(h.H)(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function XR(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function ZR(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var JR,QR,eF=$R,tF=h.k,nF=Sr+"toolbox-dataZoom_",rF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new qM(n.getZr()),this._brushController.on("brush",h.c(this._onBrush,this)).mount()),function(e,t,view,n,r){var o=view._isZoomActive;n&&"takeGlobalCursor"===n.type&&(o="dataZoomSelect"===n.key&&n.dataZoomSelectActive);view._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var l=new eF(oF(e),t,{include:["grid"]}).makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));view._brushController.setPanels(l).enableBrush(!(!o||!l.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,r,n),function(e,t){e.setIconStatus("back",function(e){return RR(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){iF[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new eF(oF(this.model),r,{include:["grid"]}).matchOutputRanges(t,r,(function(area,e,t){if("cartesian2d"===t.type){var n=area.brushType;"rect"===n?(o("x",t,e[0]),o("y",t,e[1])):o({lineX:"x",lineY:"y"}[n],t,e)}})),function(e,t){var n=RR(e);LR(t,(function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var l=o.getPercentRange();n[0][r]={dataZoomId:r,start:l[0],end:l[1]}}}})),n.push(t)}(r,n),this._dispatchZoomAction(n)}function o(e,t,o){var l=t.getAxis(e),c=l.model,h=function(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)})),r}(e,c,r),f=h.findRepresentativeAxisProxy(c).getMinMaxSpan();null==f.minValueSpan&&null==f.maxValueSpan||(o=$A(0,o.slice(),l.scale.getExtent(),0,f.minValueSpan,f.maxValueSpan)),h&&(n[h.id]={dataZoomId:h.id,startValue:o[0],endValue:o[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];tF(e,(function(e,n){t.push(h.d(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(hR),iF={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=RR(e),head=t[t.length-1];t.length>1&&t.pop();var n={};return LR(head,(function(e,r){for(var i=t.length-1;i>=0;i--)if(e=t[i][r]){n[r]=e;break}})),n}(this.ecModel))}};function oF(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}JR="dataZoom",QR=function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),o=[],l=Fr(e,oF(r));return tF(l.xAxisModels,(function(e){return c(e,"xAxis","xAxisIndex")})),tF(l.yAxisModels,(function(e){return c(e,"yAxis","yAxisIndex")})),o}function c(e,t,n){var l=e.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:nF+t+l};c[n]=l,o.push(c)}},Object(h.b)(null==Au.get(JR)&&QR),Au.set(JR,QR);var aF=rF;var sF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(su),lF=sF;function uF(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function cF(e){if(c.a.domSupported)for(var style=document.documentElement.style,i=0,t=e.length;i<t;i++)if(e[i]in style)return e[i]}var hF=cF(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function fF(e,t){if(!e)return t;t=zl(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var dF=fF(cF(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),pF=fF(hF,"transform"),gF="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(c.a.transform3dSupported?"will-change:transform;":"");function vF(e,t,n){var r=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!c.a.transformSupported)return n?"top:"+o+";left:"+r+";":[["top",o],["left",r]];var l=c.a.transform3dSupported,h="translate"+(l?"3d":"")+"("+r+","+o+(l?",0":"")+")";return n?"top:0;left:0;"+pF+":"+h+";":[["top",0],["left",0],[hF,h]]}function mF(e,t,n){var r=[],o=e.get("transitionDuration"),l=e.get("backgroundColor"),f=e.get("shadowBlur"),d=e.get("shadowColor"),v=e.get("shadowOffsetX"),m=e.get("shadowOffsetY"),y=e.getModel("textStyle"),_=Vh(e,"html"),x=v+"px "+m+"px "+f+"px "+d;return r.push("box-shadow:"+x),t&&o&&r.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,o="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,o+=c.a.transformSupported?","+pF+r:",left"+r+",top"+r),dF+":"+o}(o,n)),l&&r.push("background-color:"+l),Object(h.k)(["width","color","radius"],(function(t){var n="border-"+t,o=zl(n),l=e.get(o);null!=l&&r.push(n+":"+l+("color"===t?"":"px"))})),r.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var o=e.get("textShadowColor"),l=e.get("textShadowBlur")||0,c=e.get("textShadowOffsetX")||0,f=e.get("textShadowOffsetY")||0;return o&&l&&t.push("text-shadow:"+c+"px "+f+"px "+l+"px "+o),Object(h.k)(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}(y)),null!=_&&r.push("padding:"+$l(_).join("px ")+"px"),r.join(";")+";"}function yF(e,t,n,r,o){var l=t&&t.painter;if(n){var c=l&&l.getViewportRoot();c&&function(e,t,n,r,o){B(F,t,r,o,!0)&&B(e,n,F[0],F[1])}(e,c,document.body,r,o)}else{e[0]=r,e[1]=o;var h=l&&l.getViewportRootOffset();h&&(e[0]+=h.offsetLeft,e[1]+=h.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var bF=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,c.a.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var o=this._zr=t.getZr(),l=this._appendToBody=n&&n.appendToBody;yF(this._styleCoord,o,l,t.getWidth()/2,t.getHeight()/2),l?document.body.appendChild(r):e.appendChild(r),this._container=e;var h=this;r.onmouseenter=function(){h._enterable&&(clearTimeout(h._hideTimeout),h._show=!0),h._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!h._enterable){var t=o.handler;Z(o.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},r.onmouseleave=function(){h._inContent=!1,h._enterable&&h._show&&h.hideLater(h._hideDelay)}}return e.prototype.update=function(e){var t,style,n,r=this._container,o=(style="position",(n=(t=r).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t))?style?n[style]:n:null),l=r.style;"absolute"!==l.position&&"absolute"!==o&&(l.position="relative"),e.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,style=n.style,r=this._styleCoord;n.innerHTML?style.cssText=gF+mF(e,!this._firstShow,this._longHide)+vF(r[0],r[1],!0)+"border-color:"+Ul(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):style.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(content,e,t,n,r){var o=this.el;if(null!=content){var l="";if(Object(h.C)(r)&&"item"===t.get("trigger")&&!uF(t)&&(l=function(e,t,n){if(!Object(h.C)(n)||"inside"===n)return"";var r=e.get("backgroundColor"),o=e.get("borderWidth");t=Ul(t);var l,c,f="left"===(l=n)?"right":"right"===l?"left":"top"===l?"bottom":"top",d=Math.max(1.5*Math.round(o),6),v="",m=pF+":";Object(h.r)(["left","right"],f)>-1?(v+="top:50%",m+="translateY(-50%) rotate("+(c="left"===f?-225:-45)+"deg)"):(v+="left:50%",m+="translateX(-50%) rotate("+(c="top"===f?225:45)+"deg)");var y=c*Math.PI/180,_=d+o,x=_*Math.abs(Math.cos(y))+_*Math.abs(Math.sin(y)),w=t+" solid "+o+"px;";return'<div style="'+["position:absolute;width:"+d+"px;height:"+d+"px;",(v+=";"+f+":-"+Math.round(100*((x-Math.SQRT2*o)/2+Math.SQRT2*o-(x-_)/2))/100+"px")+";"+m+";","border-bottom:"+w,"border-right:"+w,"background-color:"+r+";"].join("")+'"></div>'}(t,n,r)),Object(h.C)(content))o.innerHTML=content+l;else if(content){o.innerHTML="",Object(h.t)(content)||(content=[content]);for(var i=0;i<content.length;i++)Object(h.v)(content[i])&&content[i].parentNode!==o&&o.appendChild(content[i]);if(l&&o.childNodes.length){var c=document.createElement("div");c.innerHTML=l,o.appendChild(c)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(yF(n,this._zr,this._appendToBody,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style,o=vF(n[0],n[1]);Object(h.k)(o,(function(e){r[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,style=this.el.style;style.visibility="hidden",style.opacity="0",c.a.transform3dSupported&&(style.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(time){!this._show||this._inContent&&this._enterable||(time?(this._hideDelay=time,this._show=!1,this._hideTimeout=setTimeout(Object(h.c)(this.hide,this),time)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();function _F(e){return Math.max(0,e)}function xF(style){var e=_F(style.shadowBlur||0),t=_F(style.shadowOffsetX||0),n=_F(style.shadowOffsetY||0);return{left:_F(e-t),right:_F(e+t),top:_F(e-n),bottom:_F(e+n)}}function wF(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var SF=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),wF(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){e.get("alwaysShowContent")&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(content,e,t,n,r){var o=this;h.A(content)&&Bu(""),this.el&&this._zr.remove(this.el);var l=t.getModel("textStyle");this.el=new ua({style:{rich:e.richTextStyles,text:content,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:l.get("textShadowColor"),fill:t.get(["textStyle","color"]),padding:Vh(t,"richText"),verticalAlign:"top",align:"left"},z:t.get("z")}),h.k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=t.get(e)})),h.k(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=l.get(e)||0})),this._zr.add(this.el);var c=this;this.el.on("mouseover",(function(){c._enterable&&(clearTimeout(c._hideTimeout),c._show=!0),c._inContent=!0})),this.el.on("mouseout",(function(){c._enterable&&c._show&&c.hideLater(c._hideDelay),c._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=xF(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;wF(r,this._zr,e,t),e=r[0],t=r[1];var style=n.style,o=_F(style.borderWidth||0),l=xF(style);n.x=e+o+l.left,n.y=t+o+l.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(time){!this._show||this._inContent&&this._enterable||(time?(this._hideDelay=time,this._show=!1,this._hideTimeout=setTimeout(h.c(this.hide,this),time)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}(),kF=new Go({shape:{x:-1,y:-1,width:2,height:2}}),OF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.init=function(e,t){if(!c.a.node&&t.getDom()){var n,r=e.getComponent("tooltip"),o=this._renderMode="auto"===(n=r.get("renderMode"))?c.a.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===o?new SF(t):new bF(t.getDom(),t,{appendToBody:r.get("appendToBody",!0)})}},t.prototype.render=function(e,t,n){if(!c.a.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._alwaysShowContent=e.get("alwaysShowContent");var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?xp(this,"_updatePosition",50,"fixRate"):wp(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");iL("itemTooltip",this._api,Object(h.c)((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&o.manuallyShowTip(e,t,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!c.a.node&&n.getDom()){var o=TF(r,n);this._ticket="";var l=r.dataByCoordSys,h=function(e,t,n){var r=Br(e).queryOptionMap,o=r.keys()[0];if(!o||"series"===o)return;var l,c=Vr(t,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!c)return;if(n.getViewOfComponentModel(c).group.traverse((function(t){var n=ca(t).tooltipConfig;if(n&&n.name===e.name)return l=t,!0})),l)return{componentMainType:o,componentIndex:c.componentIndex,el:l}}(r,t,n);if(h){var rect=h.el.getBoundingRect().clone();rect.applyTransform(h.el.transform),this._tryShow({offsetX:rect.x+rect.width/2,offsetY:rect.y+rect.height/2,target:h.el,position:r.position,positionDefault:"bottom"},o)}else if(r.tooltip&&null!=r.x&&null!=r.y){var f=kF;f.x=r.x,f.y=r.y,f.update(),ca(f).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:f},o)}else if(l)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:l,tooltipOption:r.tooltipOption},o);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var d=cL(r,t),v=d.point[0],m=d.point[1];null!=v&&null!=m&&this._tryShow({offsetX:v,offsetY:m,target:d.el,position:r.position,positionDefault:"bottom"},o)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},o))}},t.prototype.manuallyHideTip=function(e,t,n,r){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(TF(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var o=r.seriesIndex,l=r.dataIndex,c=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=l&&null!=c){var h=t.getSeriesByIndex(o);if(h)if("axis"===CF([h.getData().getItemModel(l),h,(h.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:l,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var o,l;this._lastDataByCoordSys=null,dg(n,(function(e){return null!=ca(e).dataIndex?(o=e,!0):null!=ca(e).tooltipConfig?(l=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):l?this._showComponentItemTooltip(e,l,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Object(h.c)(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,o=[t.offsetX,t.offsetY],l=CF([t.tooltipOption],r),c=this._renderMode,f=[],d=Dh("section",{blocks:[],noHeader:!0}),v=[],m=new Hh;Object(h.k)(e,(function(e){Object(h.k)(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),o=e.value;if(t&&null!=o){var l=HN(o,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),y=Dh("section",{header:l,noHeader:!Object(h.T)(l),sortBlocks:!0,blocks:[]});d.blocks.push(y),Object(h.k)(e.seriesDataIndices,(function(d){var _=n.getSeriesByIndex(d.seriesIndex),x=d.dataIndexInside,w=_.getDataParams(x);if(!(w.dataIndex<0)){w.axisDim=e.axisDim,w.axisIndex=e.axisIndex,w.axisType=e.axisType,w.axisId=e.axisId,w.axisValue=Xw(t.axis,{value:o}),w.axisValueLabel=l,w.marker=m.makeTooltipMarker("item",Ul(w.color),c);var S=Gc(_.formatTooltip(x,!0,null)),k=S.frag;if(k){var O=CF([_],r).get("valueFormatter");y.blocks.push(O?Object(h.m)({valueFormatter:O},k):k)}S.text&&v.push(S.text),f.push(w)}}))}}))})),d.blocks.reverse(),v.reverse();var y=t.position,_=l.get("order"),x=Fh(d,m,c,_,n.get("useUTC"),l.get("textStyle"));x&&v.unshift(x);var w="richText"===c?"\n\n":"<br/>",S=v.join(w);this._showOrMove(l,(function(){this._updateContentNotChangedOnAxis(e,f)?this._updatePosition(l,y,o[0],o[1],this._tooltipContent,f):this._showTooltipContent(l,S,f,Math.random()+"",o[0],o[1],y,null,m)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,o=ca(t),l=o.seriesIndex,c=r.getSeriesByIndex(l),f=o.dataModel||c,d=o.dataIndex,v=o.dataType,data=f.getData(v),m=this._renderMode,y=e.positionDefault,_=CF([data.getItemModel(d),f,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),x=_.get("trigger");if(null==x||"item"===x){var w=f.getDataParams(d,v),S=new Hh;w.marker=S.makeTooltipMarker("item",Ul(w.color),m);var k=Gc(f.formatTooltip(d,!1,v)),O=_.get("order"),C=_.get("valueFormatter"),T=k.frag,E=T?Fh(C?Object(h.m)({valueFormatter:C},T):T,S,m,O,r.get("useUTC"),_.get("textStyle")):k.text,A="item_"+f.name+"_"+d;this._showOrMove(_,(function(){this._showTooltipContent(_,E,w,A,e.offsetX,e.offsetY,e.position,e.target,S)})),n({type:"showTip",dataIndexInside:d,dataIndex:data.getRawIndex(d),seriesIndex:l,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=ca(t),o=r.tooltipConfig.option||{};if(Object(h.C)(o)){o={content:o,formatter:o}}var l=[o],c=this._ecModel.getComponent(r.componentMainType,r.componentIndex);c&&l.push(c),l.push({formatter:o.content});var f=e.positionDefault,d=CF(l,this._tooltipModel,f?{position:f}:null),v=d.get("content"),m=Math.random()+"",y=new Hh;this._showOrMove(d,(function(){var n=Object(h.d)(d.get("formatterParams")||{});this._showTooltipContent(d,v,n,m,e.offsetX,e.offsetY,e.position,t,y)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,o,l,c,f,d){if(this._ticket="",e.get("showContent")&&e.get("show")){var v=this._tooltipContent;v.setEnterable(e.get("enterable"));var m=e.get("formatter");c=c||e.get("position");var html=t,y=this._getNearestPoint([o,l],n,e.get("trigger"),e.get("borderColor")).color;if(m)if(Object(h.C)(m)){var _=e.ecModel.get("useUTC"),x=Object(h.t)(n)?n[0]:n;html=m,x&&x.axisType&&x.axisType.indexOf("time")>=0&&(html=wl(x.axisValue,html,_)),html=Wl(html,n,!0)}else if(Object(h.w)(m)){var w=Object(h.c)((function(t,html){t===this._ticket&&(v.setContent(html,d,e,y,c),this._updatePosition(e,c,o,l,v,n,f))}),this);this._ticket=r,html=m(n,r,w)}else html=m;v.setContent(html,d,e,y,c),v.show(e,y),this._updatePosition(e,c,o,l,v,n,f)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||Object(h.t)(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(h.t)(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,content,o,l){var c=this._api.getWidth(),f=this._api.getHeight();t=t||e.get("position");var d=content.getSize(),v=e.get("align"),m=e.get("verticalAlign"),rect=l&&l.getBoundingRect().clone();if(l&&rect.applyTransform(l.transform),Object(h.w)(t)&&(t=t([n,r],o,content.el,rect,{viewSize:[c,f],contentSize:d.slice()})),Object(h.t)(t))n=Zn(t[0],c),r=Zn(t[1],f);else if(Object(h.A)(t)){var y=t;y.width=d[0],y.height=d[1];var _=Ql(y,{width:c,height:f});n=_.x,r=_.y,v=null,m=null}else if(Object(h.C)(t)&&l){var x=function(e,rect,t,n){var r=t[0],o=t[1],l=Math.ceil(Math.SQRT2*n)+8,c=0,h=0,f=rect.width,d=rect.height;switch(e){case"inside":c=rect.x+f/2-r/2,h=rect.y+d/2-o/2;break;case"top":c=rect.x+f/2-r/2,h=rect.y-o-l;break;case"bottom":c=rect.x+f/2-r/2,h=rect.y+d+l;break;case"left":c=rect.x-r-l,h=rect.y+d/2-o/2;break;case"right":c=rect.x+f+l,h=rect.y+d/2-o/2}return[c,h]}(t,rect,d,e.get("borderWidth"));n=x[0],r=x[1]}else{x=function(e,t,content,n,r,o,l){var c=content.getSize(),h=c[0],f=c[1];null!=o&&(e+h+o+2>n?e-=h+o:e+=o);null!=l&&(t+f+l>r?t-=f+l:t+=l);return[e,t]}(n,r,content,c,f,v?null:20,m?null:20);n=x[0],r=x[1]}if(v&&(n-=EF(v)?d[0]/2:"right"===v?d[0]:0),m&&(r-=EF(m)?d[1]/2:"bottom"===m?d[1]:0),uF(e)){x=function(e,t,content,n,r){var o=content.getSize(),l=o[0],c=o[1];return e=Math.min(e+l,n)-l,t=Math.min(t+c,r)-c,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,content,c,f);n=x[0],r=x[1]}content.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,o=!!n&&n.length===e.length;return o&&Object(h.k)(n,(function(n,l){var c=n.dataByAxis||[],f=(e[l]||{}).dataByAxis||[];(o=o&&c.length===f.length)&&Object(h.k)(c,(function(e,n){var l=f[n]||{},c=e.seriesDataIndices||[],d=l.seriesDataIndices||[];(o=o&&e.value===l.value&&e.axisType===l.axisType&&e.axisId===l.axisId&&c.length===d.length)&&Object(h.k)(c,(function(e,t){var n=d[t];o=o&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),r&&Object(h.k)(e.seriesDataIndices,(function(e){var n=e.seriesIndex,l=t[n],c=r[n];l&&c&&c.data!==l.data&&(o=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!c.a.node&&t.getDom()&&(wp(this,"_updatePosition"),this._tooltipContent.dispose(),sL("itemTooltip",t))},t.type="tooltip",t}(rf);function CF(e,t,n){var r,o=t.ecModel;n?(r=new Ys(n,o,o),r=new Ys(t.option,r,o)):r=t;for(var i=e.length-1;i>=0;i--){var l=e[i];l&&(l instanceof Ys&&(l=l.get("tooltip",!0)),Object(h.C)(l)&&(l={formatter:l}),l&&(r=new Ys(l,r,o)))}return r}function TF(e,t){return e.dispatchAction||Object(h.c)(t.dispatchAction,t)}function EF(e){return"center"===e||"middle"===e}var AF=OF;var MF=["rect","polygon","keep","clear"];function IF(option,e){var t=kr(option?option.brush:[]);if(t.length){var n=[];h.k(t,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(n=n.concat(t))}));var r=option&&option.toolbox;h.t(r)&&(r=r[0]),r||(r={feature:{}},option.toolbox=[r]);var o,map,l=r.feature||(r.feature={}),c=l.brush||(l.brush={}),f=c.type||(c.type=[]);f.push.apply(f,n),o=f,map={},h.k(o,(function(e){map[e]=1})),o.length=0,h.k(map,(function(e,t){o.push(t)})),e&&!f.length&&f.push.apply(f,MF)}}var DF=h.k;function PF(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function NF(option,e,t){var n={};return DF(e,(function(e){var r,o=n[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);DF(option[e],(function(n,r){if(NT.isValidType(r)){var l={type:r,visual:n};t&&t(l,e),o[r]=new NT(l),"opacity"===r&&((l=h.d(l)).type="colorAlpha",o.__hidden.__alphaForOpacity=new NT(l))}}))})),n}function LF(e,t,n){var r;h.k(n,(function(e){t.hasOwnProperty(e)&&PF(t[e])&&(r=!0)})),r&&h.k(n,(function(n){t.hasOwnProperty(n)&&PF(t[n])?e[n]=h.d(t[n]):delete e[n]}))}var jF={lineX:RF(0),lineY:RF(1),rect:{point:function(e,t,area){return e&&area.boundingRect.contain(e[0],e[1])},rect:function(e,t,area){return e&&area.boundingRect.intersect(e)}},polygon:{point:function(e,t,area){return e&&area.boundingRect.contain(e[0],e[1])&&nO(area.range,e[0],e[1])},rect:function(e,t,area){var n=area.range;if(!e||n.length<=1)return!1;var r=e.x,o=e.y,l=e.width,c=e.height,p=n[0];return!!(nO(n,r,o)||nO(n,r+l,o)||nO(n,r,o+c)||nO(n,r+l,o+c)||_e.create(e).contain(p[0],p[1])||tp(r,o,r+l,o,n)||tp(r,o,r,o+c,n)||tp(r+l,o,r+l,o+c,n)||tp(r,o+c,r+l,o+c,n))||void 0}}};function RF(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,area){if(t){var r=area.range;return FF(t[e],r)}},rect:function(r,o,area){if(r){var l=area.range,c=[r[t[e]],r[t[e]]+r[n[e]]];return c[1]<c[0]&&c.reverse(),FF(c[0],l)||FF(c[1],l)||FF(l[0],c)||FF(l[1],c)}}}}function FF(p,e){return e[0]<=p&&p<=e[1]}var BF=["inBrush","outOfBrush"],zF="__ecBrushSelect",$F="__ecInBrushSelectEvent";function VF(e){e.eachComponent({mainType:"brush"},(function(t){(t.brushTargetManager=new eF(t.option,e)).setInputRanges(t.areas,e)}))}function HF(e,t,n){var r,o,l=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),VF(e),e.eachComponent({mainType:"brush"},(function(t,n){var c={brushId:t.id,brushIndex:n,brushName:t.name,areas:h.d(t.areas),selected:[]};l.push(c);var f=t.option,d=f.brushLink,v=[],m=[],y=[],_=!1;n||(r=f.throttleType,o=f.throttleDelay);var x=h.H(t.areas,(function(area){var e=UF[area.brushType],t=h.i({boundingRect:e?e(area):void 0},area);return t.selectors=function(area){var e=area.brushType,t={point:function(n){return jF[e].point(n,t,area)},rect:function(n){return jF[e].rect(n,t,area)}};return t}(t),t})),w=NF(t.option,BF,(function(e){e.mappingMethod="fixed"}));function S(e){return"all"===d||!!v[e]}function k(e){return!!e.length}h.t(d)&&h.k(d,(function(e){v[e]=1})),e.eachSeries((function(n,r){var o=y[r]=[];"parallel"===n.subType?function(e,t){var n=e.coordinateSystem;_=_||n.hasAxisBrushed(),S(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(m[t]=1)}))}(n,r):function(n,r,o){if(!n.brushSelector||function(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(h.t(n)?h.r(n,t)<0:t!==n)}(t,r))return;if(h.k(x,(function(area){t.brushTargetManager.controlSeries(area,n,e)&&o.push(area),_=_||k(o)})),S(r)&&k(o)){var l=n.getData();l.each((function(e){WF(n,o,l,e)&&(m[e]=1)}))}}(n,r,o)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};c.selected.push(n);var r=y[t],data=e.getData(),o=S(t)?function(e){return m[e]?(n.dataIndex.push(data.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return WF(e,r,data,t)?(n.dataIndex.push(data.getRawIndex(t)),"inBrush"):"outOfBrush"};(S(t)?_:k(r))&&function(e,t,data,n,r,o){var l,c={};function f(e){return lg(data,l,e)}function d(e,t){cg(data,l,e,t)}function v(e,h){l=null==o?e:h;var v=data.getRawDataItem(l);if(!v||!1!==v.visualMap)for(var m=n.call(r,e),y=t[m],_=c[m],i=0,x=_.length;i<x;i++){var w=_[i];y[w]&&y[w].applyVisual(e,f,d)}}h.k(e,(function(e){var n=NT.prepareVisualTypes(t[e]);c[e]=n})),null==o?data.each(v):data.each([o],v)}(BF,w,data,o)}))})),function(e,t,n,r,o){if(!o)return;var l=e.getZr();if(l[$F])return;l.__ecBrushSelect||(l.__ecBrushSelect=qF);xp(l,zF,n,t)(e,r)}(t,r,o,l,n)}function qF(e,t){if(!e.isDisposed()){var n=e.getZr();n[$F]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[$F]=!1}}function WF(e,t,data,n){for(var i=0,r=t.length;i<r;i++){var area=t[i];if(e.brushSelector(n,data,area.selectors,area))return!0}}var UF={rect:function(area){return GF(area.range)},polygon:function(area){for(var e,t=area.range,i=0,n=t.length;i<n;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var r=t[i];r[0]<e[0][0]&&(e[0][0]=r[0]),r[0]>e[0][1]&&(e[0][1]=r[0]),r[1]<e[1][0]&&(e[1][0]=r[1]),r[1]>e[1][1]&&(e[1][1]=r[1])}return e&&GF(e)}};function GF(e){return new _e(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var YF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new qM(t.getZr())).on("brush",h.c(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){VF(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:h.d(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:h.d(n),$from:t})},t.type="brush",t}(rf),KF=YF,XF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return l(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&LF(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=h.H(e,(function(area){return ZF(this.option,area)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=ZF(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(su);function ZF(option,e){return h.I({brushType:option.brushType,brushMode:option.brushMode,transformable:option.transformable,brushStyle:new Ys(option.brushStyle).getItemStyle(),removeOnClick:option.removeOnClick,z:option.z},e,!0)}var JF=XF,QF=["rect","polygon","lineX","lineY","keep","clear"],eB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(e,t,n){var r,o,l;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,o=e.brushOption.brushMode||"single",l=l||!!e.areas.length})),this._brushType=r,this._brushMode=o,h.k(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?l:t===r)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return h.k(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,o=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},t.getDefaultOption=function(e){return{show:!0,type:QF.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])}},t}(hR),tB=eB;var nB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return l(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(su),rB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,o=e.getModel("textStyle"),l=e.getModel("subtextStyle"),c=e.get("textAlign"),f=h.P(e.get("textBaseline"),e.get("textVerticalAlign")),d=new ua({style:Os(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=d.getBoundingRect(),m=e.get("subtext"),y=new ua({style:Os(l,{text:m,fill:l.getTextColor(),y:v.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),link=e.get("link"),_=e.get("sublink"),x=e.get("triggerEvent",!0);d.silent=!link&&!x,y.silent=!_&&!x,link&&d.on("click",(function(){Gl(link,"_"+e.get("target"))})),_&&y.on("click",(function(){Gl(_,"_"+e.get("subtarget"))})),ca(d).eventData=ca(y).eventData=x?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(d),m&&r.add(y);var w=r.getBoundingRect(),S=e.getBoxLayoutParams();S.width=w.width,S.height=w.height;var k=Ql(S,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));c||("middle"===(c=e.get("left")||e.get("right"))&&(c="center"),"right"===c?k.x+=k.width:"center"===c&&(k.x+=k.width/2)),f||("center"===(f=e.get("top")||e.get("bottom"))&&(f="middle"),"bottom"===f?k.y+=k.height:"middle"===f&&(k.y+=k.height/2),f=f||"top"),r.x=k.x,r.y=k.y,r.markRedraw();var O={align:c,verticalAlign:f};d.setStyle(O),y.setStyle(O),w=r.getBoundingRect();var C=k.margin,style=e.getItemStyle(["color","opacity"]);style.fill=e.get("backgroundColor");var rect=new Go({shape:{x:w.x-C[3],y:w.y-C[0],width:w.width+C[1]+C[3],height:w.height+C[0]+C[2],r:e.get("borderRadius")},style:style,subPixelOptimize:!0,silent:!0});r.add(rect)}},t.type="title",t}(rf);var iB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return l(t,e),t.prototype.init=function(option,e,t){this.mergeDefaultAndTheme(option,t),this._initData()},t.prototype.mergeOption=function(option){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],r=t.axisType,o=this._names=[];"category"===r?(e=[],Object(h.k)(n,(function(t,n){var r,l=Dr(Tr(t),"");Object(h.A)(t)?(r=Object(h.d)(t)).value=n:r=n,e.push(r),o.push(l)}))):e=n;var l={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new Lb([{name:"value",type:l}],this)).initData(e,o)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(su),oB=iB,aB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.type="timeline.slider",t.defaultOption=Zs(oB.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(oB);Object(h.K)(aB,Uc.prototype);var sB=aB,lB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.type="timeline",t}(rf),uB=lB,cB=function(e){function t(t,n,r,o){var l=e.call(this,t,n,r)||this;return l.type=o||"value",l}return l(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(vS),hB=Math.PI,fB=jr(),dB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,n),o=this._createGroup("_mainGroup"),l=this._createGroup("_labelGroup"),c=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return Dh("nameValue",{noName:!0,value:c.scale.getLabel({value:e})})},Object(h.k)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,o,c,e)}),this),this._renderAxisLabel(r,l,c,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,r,o,l,c=e.get(["label","position"]),f=e.get("orient"),d=function(e,t){return Ql(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t),v={horizontal:"center",vertical:(n=null==c||"auto"===c?"horizontal"===f?d.y+d.height/2<t.getHeight()/2?"-":"+":d.x+d.width/2<t.getWidth()/2?"+":"-":Object(h.C)(c)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[f][c]:c)>=0||"+"===n?"left":"right"},m={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},y={horizontal:0,vertical:hB/2},_="vertical"===f?d.height:d.width,x=e.getModel("controlStyle"),w=x.get("show",!0),S=w?x.get("itemSize"):0,k=w?x.get("itemGap"):0,O=S+k,C=e.get(["label","rotate"])||0;C=C*hB/180;var T=x.get("position",!0),E=w&&x.get("showPlayBtn",!0),A=w&&x.get("showPrevBtn",!0),M=w&&x.get("showNextBtn",!0),I=0,D=_;"left"===T||"bottom"===T?(E&&(r=[0,0],I+=O),A&&(o=[I,0],I+=O),M&&(l=[D-S,0],D-=O)):(E&&(r=[D-S,0],D-=O),A&&(o=[0,0],I+=O),M&&(l=[D-S,0],D-=O));var P=[I,D];return e.get("inverse")&&P.reverse(),{viewRect:d,mainLength:_,orient:f,rotation:y[f],labelRotation:C,labelPosOpt:n,labelAlign:e.get(["label","align"])||v[f],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||m[f],playPosition:r,prevBtnPosition:o,nextBtnPosition:l,axisExtent:P,controlSize:S,controlGap:k}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,o=e.viewRect;if("vertical"===e.orient){var l=[1,0,0,1,0,0],c=o.x,f=o.y+o.height;se(l,l,[-c,-f]),le(l,l,-hB/2),se(l,l,[c,f]),(o=o.clone()).applyTransform(l)}var d=k(o),v=k(n.getBoundingRect()),m=k(r.getBoundingRect()),y=[n.x,n.y],_=[r.x,r.y];_[0]=y[0]=d[0][0];var x,w=e.labelPosOpt;null==w||Object(h.C)(w)?(O(y,v,d,1,x="+"===w?0:1),O(_,m,d,1,1-x)):(O(y,v,d,1,x=w>=0?0:1),_[1]=y[1]+w);function S(e){e.originX=d[0][0]-e.x,e.originY=d[1][0]-e.y}function k(rect){return[[rect.x,rect.x+rect.width],[rect.y,rect.y+rect.height]]}function O(e,t,n,r,o){e[r]+=n[r][o]-t[r][o]}n.setPosition(y),r.setPosition(_),n.rotation=r.rotation=e.rotation,S(n),S(r)},t.prototype._createAxis=function(e,t){var data=t.getData(),n=t.get("axisType"),r=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new mw({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new Aw({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new _w}}(t,n);r.getTicks=function(){return data.mapArray(["value"],(function(e){return{value:e}}))};var o=data.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var l=new cB("value",r,e.axisExtent,n);return l.model=t,l},t.prototype._createGroup=function(e){var t=this[e]=new qn;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var o=n.getExtent();if(r.get(["lineStyle","show"])){var line=new ld({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Object(h.m)({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(line);var l=this._progressLine=new ld({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Object(h.i)({lineCap:"round",lineWidth:line.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(l)}},t.prototype._renderAxisTick=function(e,t,n,r){var o=this,data=r.getData(),l=n.scale.getTicks();this._tickSymbols=[],Object(h.k)(l,(function(e){var l=n.dataToCoord(e.value),c=data.getItemModel(e.value),f=c.getModel("itemStyle"),d=c.getModel(["emphasis","itemStyle"]),v=c.getModel(["progress","itemStyle"]),m={x:l,y:0,onclick:Object(h.c)(o._changeTimeline,o,e.value)},y=pB(c,f,t,m);y.ensureState("emphasis").style=d.getItemStyle(),y.ensureState("progress").style=v.getItemStyle(),es(y);var _=ca(y);c.get("tooltip")?(_.dataIndex=e.value,_.dataModel=r):_.dataIndex=_.dataModel=null,o._tickSymbols.push(y)}))},t.prototype._renderAxisLabel=function(e,t,n,r){var o=this;if(n.getLabelModel().get("show")){var data=r.getData(),l=n.getViewLabels();this._tickLabels=[],Object(h.k)(l,(function(r){var l=r.tickValue,c=data.getItemModel(l),f=c.getModel("label"),d=c.getModel(["emphasis","label"]),v=c.getModel(["progress","label"]),m=n.dataToCoord(r.tickValue),y=new ua({x:m,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(h.c)(o._changeTimeline,o,l),silent:!1,style:Os(f,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Os(d),y.ensureState("progress").style=Os(v),t.add(y),es(y),fB(y).dataIndex=l,o._tickLabels.push(y)}))}},t.prototype._renderControl=function(e,t,n,r){var o=e.controlSize,l=e.rotation,c=r.getModel("controlStyle").getItemStyle(),f=r.getModel(["emphasis","controlStyle"]).getItemStyle(),d=r.getPlayState(),v=r.get("inverse",!0);function m(e,n,d,v){if(e){var m=Mn(Object(h.P)(r.get(["controlStyle",n+"BtnSize"]),o),o),y=function(e,t,rect,n){var style=n.style,r=ep(e.get(["controlStyle",t]),n||{},new _e(rect[0],rect[1],rect[2],rect[3]));style&&r.setStyle(style);return r}(r,n+"Icon",[0,-m/2,m,m],{x:e[0],y:e[1],originX:o/2,originY:0,rotation:v?-l:0,rectHover:!0,style:c,onclick:d});y.ensureState("emphasis").style=f,t.add(y),es(y)}}m(e.nextBtnPosition,"next",Object(h.c)(this._changeTimeline,this,v?"-":"+")),m(e.prevBtnPosition,"prev",Object(h.c)(this._changeTimeline,this,v?"+":"-")),m(e.playPosition,d?"stop":"play",Object(h.c)(this._handlePlayClick,this,!d),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var data=r.getData(),o=r.getCurrentIndex(),l=data.getItemModel(o).getModel("checkpointStyle"),c=this,f={onCreate:function(e){e.draggable=!0,e.drift=Object(h.c)(c._handlePointerDrag,c),e.ondragend=Object(h.c)(c._handlePointerDragend,c),gB(e,c._progressLine,o,n,r,!0)},onUpdate:function(e){gB(e,c._progressLine,o,n,r)}};this._currentPointer=pB(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=Qn(this._axis.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var o=this._findNearestTick(n),l=this.model;(t||o!==l.getCurrentIndex()&&l.get("realtime"))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){return Yd(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t,data=this.model.getData(),n=1/0,r=this._axis;return data.each(["value"],(function(o,l){var c=r.dataToCoord(o),h=Math.abs(c-e);h<n&&(n=h,t=l)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",fB(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(uB);function pB(e,t,n,r,symbol,o){var l=t.get("color");symbol?(symbol.setColor(l),n.add(symbol),o&&o.onUpdate(symbol)):((symbol=Tg(e.get("symbol"),-1,-1,2,2,l)).setStyle("strokeNoScale",!0),n.add(symbol),o&&o.onCreate(symbol));var c=t.getItemStyle(["color"]);symbol.setStyle(c),r=Object(h.I)({rectHover:!0,z2:100},r,!0);var f=Eg(e.get("symbolSize"));r.scaleX=f[0]/2,r.scaleY=f[1]/2;var d=Ag(e.get("symbolOffset"),f);d&&(r.x=(r.x||0)+d[0],r.y=(r.y||0)+d[1]);var v=e.get("symbolRotate");return r.rotation=(v||0)*Math.PI/180||0,symbol.attr(r),symbol.updateTransform(),symbol}function gB(e,t,n,r,o,l){if(!e.dragging){var c=o.getModel("checkpointStyle"),h=r.dataToCoord(o.getData().get("value",n));if(l||!c.get("animation",!0))e.attr({x:h,y:0}),t&&t.attr({shape:{x2:h}});else{var f={duration:c.get("animationDuration",!0),easing:c.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:h,y:0},f),t&&t.animateTo({shape:{x2:h}},f)}}}var vB=dB;function mB(option){var e=option&&option.timeline;h.t(e)||(e=e?[e]:[]),h.k(e,(function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};n[t]&&(e.axisType=n[t],delete e.type);if(yB(e),bB(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});bB(r,"position")||(r.position=e.controlPosition),"none"!==r.position||bB(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}h.k(e.data||[],(function(e){h.A(e)&&!h.t(e)&&(!bB(e,"value")&&bB(e,"name")&&(e.value=e.name),yB(e))}))}(e)}))}function yB(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),label=e.label||e.label||{},r=label.normal||(label.normal={}),o={normal:1,emphasis:1};h.k(label,(function(e,t){o[t]||bB(r,t)||(r[t]=e)})),n.label&&!bB(label,"emphasis")&&(label.emphasis=n.label,delete n.label)}function bB(e,t){return e.hasOwnProperty(t)}function _B(e,t){if(!e)return!1;for(var n=Object(h.t)(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function xB(e){Or(e,"label",["show"])}var wB=jr(),SB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return l(t,e),t.prototype.init=function(option,e,t){this.mergeDefaultAndTheme(option,t),this._mergeOption(option,t,!1,!0)},t.prototype.isAnimationEnabled=function(){if(c.a.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var o=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),l=wB(e)[o];n&&n.data?(l?l._mergeOption(n,t,!0):(r&&xB(n),h.k(n.data,(function(e){e instanceof Array?(xB(e[0]),xB(e[1])):xB(e)})),l=this.createMarkerModelFromSeries(n,this,t),h.m(l,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),l.__hostSeries=e),wB(e)[o]=l):wB(e)[o]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var data=this.getData(),r=this.getRawValue(e),o=data.getName(e);return Dh("section",{header:this.name,blocks:[Dh("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(data){this._data=data},t.getMarkerModelFromSeries=function(e,t){return wB(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(su);h.K(SB,Uc.prototype);var kB=SB,OB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(kB),CB=OB;function TB(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function EB(e,data,t,n,r,o){var l=[],c=Vb(data,n)?data.getCalculationInfo("stackResultDimension"):n,h=NB(data,c,e),f=data.indicesOfNearest(c,h)[0];l[r]=data.get(t,f),l[o]=data.get(c,f);var d=data.get(n,f),v=er(data.get(n,f));return(v=Math.min(v,20))>=0&&(l[o]=+l[o].toFixed(v)),[l,d]}var AB={min:Object(h.h)(EB,"min"),max:Object(h.h)(EB,"max"),average:Object(h.h)(EB,"average"),median:Object(h.h)(EB,"median")};function MB(e,t){var data=e.getData(),n=e.coordinateSystem;if(t&&!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!Object(h.t)(t.coord)&&n){var r=n.dimensions,o=IB(t,data,n,e);if((t=Object(h.d)(t)).type&&AB[t.type]&&o.baseAxis&&o.valueAxis){var l=Object(h.r)(r,o.baseAxis.dim),c=Object(h.r)(r,o.valueAxis.dim),f=AB[t.type](data,o.baseDataDim,o.valueDataDim,l,c);t.coord=f[0],t.value=f[1]}else{for(var d=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],i=0;i<2;i++)AB[d[i]]&&(d[i]=NB(data,data.mapDimension(r[i]),d[i]));t.coord=d}}return t}function IB(e,data,t,n){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?data.getDimension(e.valueIndex):e.valueDim,r.valueAxis=t.getAxis(function(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}(n,r.valueDataDim)),r.baseAxis=t.getOtherAxis(r.valueAxis),r.baseDataDim=data.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=t.getOtherAxis(r.baseAxis),r.baseDataDim=data.mapDimension(r.baseAxis.dim),r.valueDataDim=data.mapDimension(r.valueAxis.dim)),r}function DB(e,t){return!(e&&e.containData&&t.coord&&!TB(t))||e.containData(t.coord)}function PB(e,t){return e?function(e,n,r,o){return Zc(o<2?e.coord&&e.coord[o]:e.value,t[o])}:function(e,n,r,o){return Zc(e.value,t[o])}}function NB(data,e,t){if("average"===t){var n=0,r=0;return data.each(e,(function(e,t){isNaN(e)||(n+=e,r++)})),n/r}return"median"===t?data.getMedian(e):data.getDataExtent(e)["max"===t?1:0]}var LB=jr(),jB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.init=function(){this.markerGroupMap=Object(h.f)()},t.prototype.render=function(e,t,n){var r=this,o=this.markerGroupMap;o.each((function(e){LB(e).keep=!1})),t.eachSeries((function(e){var o=kB.getMarkerModelFromSeries(e,r.type);o&&r.renderSeries(e,o,t,n)})),o.each((function(e){!LB(e).keep&&r.group.remove(e.group)}))},t.prototype.markKeep=function(e){LB(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(h.k)(e,(function(e){var r=kB.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl((function(e){e&&(t?Ha(e):qa(e))}))}))},t.type="marker",t}(rf),RB=jB;function FB(e,t,n){var r=t.coordinateSystem;e.each((function(o){var l,c=e.getItemModel(o),h=Zn(c.get("x"),n.getWidth()),f=Zn(c.get("y"),n.getHeight());if(isNaN(h)||isNaN(f)){if(t.getMarkerPosition)l=t.getMarkerPosition(e.getValues(e.dimensions,o));else if(r){var d=e.get(r.dimensions[0],o),v=e.get(r.dimensions[1],o);l=r.dataToPoint([d,v])}}else l=[h,f];isNaN(h)||(l[0]=h),isNaN(f)||(l[1]=f),e.setItemLayout(o,l)}))}var BB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=kB.getMarkerModelFromSeries(e,"markPoint");t&&(FB(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,r){var o=e.coordinateSystem,l=e.id,c=e.getData(),f=this.markerGroupMap,d=f.get(l)||f.set(l,new n_),v=function(e,t,n){var r;r=e?Object(h.H)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(h.m)(Object(h.m)({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new Lb(r,n),l=Object(h.H)(n.get("data"),Object(h.h)(MB,t));e&&(l=Object(h.n)(l,Object(h.h)(DB,e)));var c=PB(!!e,r);return o.initData(l,null,c),o}(o,e,t);t.setData(v),FB(t.getData(),e,r),v.each((function(e){var n=v.getItemModel(e),symbol=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),l=n.getShallow("symbolOffset"),f=n.getShallow("symbolKeepAspect");if(Object(h.w)(symbol)||Object(h.w)(r)||Object(h.w)(o)||Object(h.w)(l)){var d=t.getRawValue(e),m=t.getDataParams(e);Object(h.w)(symbol)&&(symbol=symbol(d,m)),Object(h.w)(r)&&(r=r(d,m)),Object(h.w)(o)&&(o=o(d,m)),Object(h.w)(l)&&(l=l(d,m))}var style=n.getModel("itemStyle").getItemStyle(),y=ug(c,"color");style.fill||(style.fill=y),v.setItemVisual(e,{symbol:symbol,symbolSize:r,symbolRotate:o,symbolOffset:l,symbolKeepAspect:f,style:style})})),d.updateData(v),this.group.add(d.group),v.eachItemGraphicEl((function(e){e.traverse((function(e){ca(e).dataModel=t}))})),this.markKeep(d),d.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(RB);var zB=BB;var $B=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(kB),VB=$B,HB=jr(),qB=function(e,t,n,r){var o,data=e.getData();if(Object(h.t)(r))o=r;else{var l=r.type;if("min"===l||"max"===l||"average"===l||"median"===l||null!=r.xAxis||null!=r.yAxis){var c=void 0,f=void 0;if(null!=r.yAxis||null!=r.xAxis)c=t.getAxis(null!=r.yAxis?"y":"x"),f=Object(h.O)(r.yAxis,r.xAxis);else{var d=IB(r,data,t,e);c=d.valueAxis,f=NB(data,Hb(data,d.valueDataDim),l)}var v="x"===c.dim?0:1,m=1-v,y=Object(h.d)(r),_={coord:[]};y.type=null,y.coord=[],y.coord[m]=-1/0,_.coord[m]=1/0;var x=n.get("precision");x>=0&&Object(h.z)(f)&&(f=+f.toFixed(Math.min(x,20))),y.coord[v]=_.coord[v]=f,o=[y,_,{type:l,valueIndex:r.valueIndex,value:f}]}else o=[]}var w=[MB(e,o[0]),MB(e,o[1]),Object(h.m)({},o[2])];return w[2].type=w[2].type||null,Object(h.I)(w[2],w[0]),Object(h.I)(w[2],w[1]),w};function WB(e){return!isNaN(e)&&!isFinite(e)}function UB(e,t,n,r){var o=1-e,l=r.dimensions[e];return WB(t[o])&&WB(n[o])&&t[e]===n[e]&&r.getAxis(l).containData(t[e])}function GB(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(UB(1,n,r,e)||UB(0,n,r,e)))return!0}return DB(e,t[0])&&DB(e,t[1])}function YB(data,e,t,n,r){var o,l=n.coordinateSystem,c=data.getItemModel(e),h=Zn(c.get("x"),r.getWidth()),f=Zn(c.get("y"),r.getHeight());if(isNaN(h)||isNaN(f)){if(n.getMarkerPosition)o=n.getMarkerPosition(data.getValues(data.dimensions,e));else{var d=l.dimensions,v=data.get(d[0],e),m=data.get(d[1],e);o=l.dataToPoint([v,m])}if(b_(l,"cartesian2d")){var y=l.getAxis("x"),_=l.getAxis("y");d=l.dimensions;WB(data.get(d[0],e))?o[0]=y.toGlobalCoord(y.getExtent()[t?0:1]):WB(data.get(d[1],e))&&(o[1]=_.toGlobalCoord(_.getExtent()[t?0:1]))}isNaN(h)||(o[0]=h),isNaN(f)||(o[1]=f)}else o=[h,f];data.setItemLayout(e,o)}var KB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=kB.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),o=HB(t).from,l=HB(t).to;o.each((function(t){YB(o,t,!0,e,n),YB(l,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[o.getItemLayout(e),l.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,r){var o=e.coordinateSystem,l=e.id,c=e.getData(),f=this.markerGroupMap,d=f.get(l)||f.set(l,new zE);this.group.add(d.group);var v=function(e,t,n){var r;r=e?Object(h.H)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(h.m)(Object(h.m)({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new Lb(r,n),l=new Lb(r,n),c=new Lb([],n),f=Object(h.H)(n.get("data"),Object(h.h)(qB,t,e,n));e&&(f=Object(h.n)(f,Object(h.h)(GB,e)));var d=PB(!!e,r);return o.initData(Object(h.H)(f,(function(e){return e[0]})),null,d),l.initData(Object(h.H)(f,(function(e){return e[1]})),null,d),c.initData(Object(h.H)(f,(function(e){return e[2]}))),c.hasItemOption=!0,{from:o,to:l,line:c}}(o,e,t),m=v.from,y=v.to,_=v.line;HB(t).from=m,HB(t).to=y,t.setData(_);var x=t.get("symbol"),w=t.get("symbolSize"),S=t.get("symbolRotate"),k=t.get("symbolOffset");function O(data,t,n){var o=data.getItemModel(t);YB(data,t,n,e,r);var style=o.getModel("itemStyle").getItemStyle();null==style.fill&&(style.fill=ug(c,"color")),data.setItemVisual(t,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(h.P)(o.get("symbolOffset",!0),k[n?0:1]),symbolRotate:Object(h.P)(o.get("symbolRotate",!0),S[n?0:1]),symbolSize:Object(h.P)(o.get("symbolSize"),w[n?0:1]),symbol:Object(h.P)(o.get("symbol",!0),x[n?0:1]),style:style})}Object(h.t)(x)||(x=[x,x]),Object(h.t)(w)||(w=[w,w]),Object(h.t)(S)||(S=[S,S]),Object(h.t)(k)||(k=[k,k]),v.from.each((function(e){O(m,e,!0),O(y,e,!1)})),_.each((function(e){var t=_.getItemModel(e).getModel("lineStyle").getLineStyle();_.setItemLayout(e,[m.getItemLayout(e),y.getItemLayout(e)]),null==t.stroke&&(t.stroke=m.getItemVisual(e,"style").fill),_.setItemVisual(e,{fromSymbolKeepAspect:m.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:m.getItemVisual(e,"symbolOffset"),fromSymbolRotate:m.getItemVisual(e,"symbolRotate"),fromSymbolSize:m.getItemVisual(e,"symbolSize"),fromSymbol:m.getItemVisual(e,"symbol"),toSymbolKeepAspect:y.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:y.getItemVisual(e,"symbolOffset"),toSymbolRotate:y.getItemVisual(e,"symbolRotate"),toSymbolSize:y.getItemVisual(e,"symbolSize"),toSymbol:y.getItemVisual(e,"symbol"),style:t})})),d.updateData(_),v.line.eachItemGraphicEl((function(e){ca(e).dataModel=t,e.traverse((function(e){ca(e).dataModel=t}))})),this.markKeep(d),d.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(RB);var XB=KB;var ZB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(kB),JB=ZB,QB=jr(),ez=function(e,t,n,r){var o=MB(e,r[0]),l=MB(e,r[1]),c=o.coord,f=l.coord;c[0]=Object(h.O)(c[0],-1/0),c[1]=Object(h.O)(c[1],-1/0),f[0]=Object(h.O)(f[0],1/0),f[1]=Object(h.O)(f[1],1/0);var d=Object(h.J)([{},o,l]);return d.coord=[o.coord,l.coord],d.x0=o.x,d.y0=o.y,d.x1=l.x,d.y1=l.y,d};function tz(e){return!isNaN(e)&&!isFinite(e)}function nz(e,t,n,r){var o=1-e;return tz(t[o])&&tz(n[o])}function rz(e,t){var n=t.coord[0],r=t.coord[1],o={coord:n,x:t.x0,y:t.y0},l={coord:r,x:t.x1,y:t.y1};return b_(e,"cartesian2d")?!(!n||!r||!nz(1,n,r)&&!nz(0,n,r))||function(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!TB(t)&&!TB(n))||e.containZone(t.coord,n.coord)}(e,o,l):DB(e,o)||DB(e,l)}function iz(data,e,t,n,r){var o,l=n.coordinateSystem,c=data.getItemModel(e),h=Zn(c.get(t[0]),r.getWidth()),f=Zn(c.get(t[1]),r.getHeight());if(isNaN(h)||isNaN(f)){if(n.getMarkerPosition)o=n.getMarkerPosition(data.getValues(t,e));else{var d=[y=data.get(t[0],e),_=data.get(t[1],e)];l.clampData&&l.clampData(d,d),o=l.dataToPoint(d,!0)}if(b_(l,"cartesian2d")){var v=l.getAxis("x"),m=l.getAxis("y"),y=data.get(t[0],e),_=data.get(t[1],e);tz(y)?o[0]=v.toGlobalCoord(v.getExtent()["x0"===t[0]?0:1]):tz(_)&&(o[1]=m.toGlobalCoord(m.getExtent()["y0"===t[1]?0:1]))}isNaN(h)||(o[0]=h),isNaN(f)||(o[1]=f)}else o=[h,f];return o}var oz=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],az=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=kB.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each((function(t){var o=Object(h.H)(oz,(function(o){return iz(r,t,o,e,n)}));r.setItemLayout(t,o),r.getItemGraphicEl(t).setShape("points",o)}))}}),this)},t.prototype.renderSeries=function(e,t,n,r){var o=e.coordinateSystem,l=e.id,c=e.getData(),f=this.markerGroupMap,d=f.get(l)||f.set(l,{group:new qn});this.group.add(d.group),this.markKeep(d);var v=function(e,t,n){var r,o,l=["x0","y0","x1","y1"];if(e){var c=Object(h.H)(e&&e.dimensions,(function(e){var data=t.getData(),n=data.getDimensionInfo(data.mapDimension(e))||{};return Object(h.m)(Object(h.m)({},n),{name:e,ordinalMeta:null})}));o=Object(h.H)(l,(function(e,t){return{name:e,type:c[t%2].type}})),r=new Lb(o,n)}else r=new Lb(o=[{name:"value",type:"float"}],n);var f=Object(h.H)(n.get("data"),Object(h.h)(ez,t,e,n));e&&(f=Object(h.n)(f,Object(h.h)(rz,e)));var d=e?function(e,t,n,r){return Zc(e.coord[Math.floor(r/2)][r%2],o[r])}:function(e,t,n,r){return Zc(e.value,o[r])};return r.initData(f,null,d),r.hasItemOption=!0,r}(o,e,t);t.setData(v),v.each((function(t){var n=Object(h.H)(oz,(function(n){return iz(v,t,n,e,r)})),l=o.getAxis("x").scale,f=o.getAxis("y").scale,d=l.getExtent(),m=f.getExtent(),y=[l.parse(v.get("x0",t)),l.parse(v.get("x1",t))],_=[f.parse(v.get("y0",t)),f.parse(v.get("y1",t))];Qn(y),Qn(_);var x=!!(d[0]>y[1]||d[1]<y[0]||m[0]>_[1]||m[1]<_[0]);v.setItemLayout(t,{points:n,allClipped:x});var style=v.getItemModel(t).getModel("itemStyle").getItemStyle(),w=ug(c,"color");style.fill||(style.fill=w,Object(h.C)(style.fill)&&(style.fill=_t.e(style.fill,.4))),style.stroke||(style.stroke=w),v.setItemVisual(t,"style",style)})),v.diff(QB(d).data).add((function(e){var t=v.getItemLayout(e);if(!t.allClipped){var polygon=new ed({shape:{points:t.points}});v.setItemGraphicEl(e,polygon),d.group.add(polygon)}})).update((function(e,n){var polygon=QB(d).data.getItemGraphicEl(n),r=v.getItemLayout(e);r.allClipped?polygon&&d.group.remove(polygon):(polygon?ds(polygon,{shape:{points:r.points}},t,e):polygon=new ed({shape:{points:r.points}}),v.setItemGraphicEl(e,polygon),d.group.add(polygon))})).remove((function(e){var polygon=QB(d).data.getItemGraphicEl(e);d.group.remove(polygon)})).execute(),v.eachItemGraphicEl((function(polygon,e){var n=v.getItemModel(e),style=v.getItemVisual(e,"style");polygon.useStyle(v.getItemVisual(e,"style")),Ss(polygon,ks(n),{labelFetcher:t,labelDataIndex:e,defaultText:v.getName(e)||"",inheritColor:Object(h.C)(style.fill)?_t.e(style.fill,1):"#000"}),os(polygon,n),ts(polygon,null,null,n.get(["emphasis","disabled"])),ca(polygon).dataModel=t})),QB(d).data=v,d.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(RB);var sz=az;var lz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return l(t,e),t.prototype.init=function(option,e,t){this.mergeDefaultAndTheme(option,t),option.selected=option.selected||{},this._updateSelector(option)},t.prototype.mergeOption=function(option,t){e.prototype.mergeOption.call(this,option,t),this._updateSelector(option)},t.prototype._updateSelector=function(option){var e=option.selector,t=this.ecModel;!0===e&&(e=option.selector=["all","inverse"]),h.t(e)&&h.k(e,(function(n,r){h.C(n)&&(n={type:n}),e[r]=h.I(n,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(t,n.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,i=0;i<e.length;i++){var n=e[i].get("name");if(this.isSelected(n)){this.select(n),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(r){var o,l=r.name;if(n.push(l),r.legendVisualProvider){var c=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(c)),c.length?t=t.concat(c):o=!0}else o=!0;o&&Pr(r)&&t.push(r.name)})),this._availableNames=n;var r=this.get("data")||t,o=h.H(r,(function(e){return(h.C(e)||h.z(e))&&(e={name:e}),new Ys(e,this,this.ecModel)}),this);this._data=o},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if("single"===this.get("selectedMode")){var data=this._data;h.k(data,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var data=this._data,e=this.option.selected;h.k(data,(function(t){e[t.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var data=this._data,e=this.option.selected;h.k(data,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&h.r(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(su),uz=lz,cz=h.h,hz=h.k,fz=qn,dz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return l(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new fz),this.group.add(this._selectorGroup=new fz),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var o=e.get("align"),l=e.get("orient");o&&"auto"!==o||(o="right"===e.get("left")&&"vertical"===l?"right":"left");var c=e.get("selector",!0),f=e.get("selectorPosition",!0);!c||f&&"auto"!==f||(f="horizontal"===l?"end":"start"),this.renderInner(o,e,t,n,c,l,f);var d=e.getBoxLayoutParams(),v={width:n.getWidth(),height:n.getHeight()},m=e.get("padding"),y=Ql(d,v,m),_=this.layoutInner(e,o,y,r,c,f),x=Ql(h.i({width:_.width,height:_.height},d),v,m);this.group.x=x.x-_.x,this.group.y=x.y-_.y,this.group.markRedraw(),this.group.add(this._backgroundEl=mR(_,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,o,l,c){var f=this.getContentGroup(),d=h.f(),v=t.get("selectedMode"),m=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&m.push(e.id)})),hz(t.getData(),(function(o,l){var c=o.get("name");if(!this.newlineDisabled&&(""===c||"\n"===c)){var g=new fz;return g.newline=!0,void f.add(g)}var y=n.getSeriesByName(c)[0];if(!d.get(c)){if(y){var data=y.getData(),_=data.getVisual("legendLineStyle")||{},x=data.getVisual("legendIcon"),style=data.getVisual("style");this._createItem(y,c,l,o,t,e,_,style,x,v,r).on("click",cz(pz,c,null,r,m)).on("mouseover",cz(vz,y.name,null,r,m)).on("mouseout",cz(mz,y.name,null,r,m)),d.set(c,!0)}else n.eachRawSeries((function(n){if(!d.get(c)&&n.legendVisualProvider){var f=n.legendVisualProvider;if(!f.containName(c))return;var y=f.indexOfName(c),style=f.getItemVisual(y,"style"),_=f.getItemVisual(y,"legendIcon"),x=Object(_t.g)(style.fill);x&&0===x[3]&&(x[3]=.2,style=h.m(h.m({},style),{fill:Object(_t.h)(x,"rgba")})),this._createItem(n,c,l,o,t,e,{},style,_,v,r).on("click",cz(pz,null,c,r,m)).on("mouseover",cz(vz,null,c,r,m)).on("mouseout",cz(mz,null,c,r,m)),d.set(c,!0)}}),this);0}}),this),o&&this._createSelector(o,t,r,l,c)},t.prototype._createSelector=function(e,t,n,r,o){var l=this.getSelectorGroup();hz(e,(function(e){var r=e.type,o=new ua({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});l.add(o),Ss(o,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),es(o)}))},t.prototype._createItem=function(e,t,n,r,o,l,c,f,d,v,m){var y=e.visualDrawType,_=o.get("itemWidth"),x=o.get("itemHeight"),w=o.isSelected(t),S=r.get("symbolRotate"),k=r.get("symbolKeepAspect"),O=r.get("icon"),style=function(e,t,n,r,o,l,c){function h(style,e){"auto"===style.lineWidth&&(style.lineWidth=e.lineWidth>0?2:0),hz(style,(function(t,n){"inherit"===style[n]&&(style[n]=e[n])}))}var f=t.getModel("itemStyle"),d=f.getItemStyle(),v=0===e.lastIndexOf("empty",0)?"fill":"stroke",m=f.getShallow("decal");d.decal=m&&"inherit"!==m?ev(m,c):r.decal,"inherit"===d.fill&&(d.fill=r[o]);"inherit"===d.stroke&&(d.stroke=r[v]);"inherit"===d.opacity&&(d.opacity=("fill"===o?r:n).opacity);h(d,r);var y=t.getModel("lineStyle"),_=y.getLineStyle();if(h(_,n),"auto"===d.fill&&(d.fill=r.fill),"auto"===d.stroke&&(d.stroke=r.fill),"auto"===_.stroke&&(_.stroke=r.fill),!l){var x=t.get("inactiveBorderWidth"),w=d[v];d.lineWidth="auto"===x?r.lineWidth>0&&w?2:0:d.lineWidth,d.fill=t.get("inactiveColor"),d.stroke=t.get("inactiveBorderColor"),_.stroke=y.get("inactiveColor"),_.lineWidth=y.get("inactiveWidth")}return{itemStyle:d,lineStyle:_}}(d=O||d||"roundRect",r,c,f,y,w,m),C=new fz,T=r.getModel("textStyle");if(!h.w(e.getLegendIcon)||O&&"inherit"!==O){var E="inherit"===O&&e.getData().getVisual("symbol")?"inherit"===S?e.getData().getVisual("symbolRotate"):S:0;C.add(function(e){var t=e.icon||"roundRect",n=Tg(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:_,itemHeight:x,icon:d,iconRotate:E,itemStyle:style.itemStyle,lineStyle:style.lineStyle,symbolKeepAspect:k}))}else C.add(e.getLegendIcon({itemWidth:_,itemHeight:x,icon:d,iconRotate:S,itemStyle:style.itemStyle,lineStyle:style.lineStyle,symbolKeepAspect:k}));var A="left"===l?_+5:-5,M=l,I=o.get("formatter"),content=t;h.C(I)&&I?content=I.replace("{name}",null!=t?t:""):h.w(I)&&(content=I(t));var D=r.get("inactiveColor");C.add(new ua({style:Os(T,{text:content,x:A,y:x/2,fill:w?T.getTextColor():D,align:M,verticalAlign:"middle"})}));var P=new Go({shape:C.getBoundingRect(),invisible:!0}),N=r.getModel("tooltip");return N.get("show")&&op({el:P,componentModel:o,itemName:t,itemTooltipOption:N.option}),C.add(P),C.eachChild((function(e){e.silent=!0})),P.silent=!v,this.getContentGroup().add(C),es(C),C.__legendDataIndex=n,C},t.prototype.layoutInner=function(e,t,n,r,o,l){var c=this.getContentGroup(),h=this.getSelectorGroup();Jl(e.get("orient"),c,e.get("itemGap"),n.width,n.height);var f=c.getBoundingRect(),d=[-f.x,-f.y];if(h.markRedraw(),c.markRedraw(),o){Jl("horizontal",h,e.get("selectorItemGap",!0));var v=h.getBoundingRect(),m=[-v.x,-v.y],y=e.get("selectorButtonGap",!0),_=e.getOrient().index,x=0===_?"width":"height",w=0===_?"height":"width",S=0===_?"y":"x";"end"===l?m[_]+=f[x]+y:d[_]+=v[x]+y,m[1-_]+=f[w]/2-v[w]/2,h.x=m[0],h.y=m[1],c.x=d[0],c.y=d[1];var k={x:0,y:0};return k[x]=f[x]+y+v[x],k[w]=Math.max(f[w],v[w]),k[S]=Math.min(0,v[S]+m[1-_]),k}return c.x=d[0],c.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(rf);function pz(e,t,n,r){mz(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),vz(e,t,n,r)}function gz(e){for(var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(t=n[i].states.emphasis);)i++;return t&&t.hoverLayer}function vz(e,t,n,r){gz(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function mz(e,t,n,r){gz(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}var yz=dz;function bz(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0}))}function _z(e,t,n){var r,o={},l="toggleSelected"===e;return n.eachComponent("legend",(function(n){l&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name));var c=n.getData();Object(h.k)(c,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);o.hasOwnProperty(t)?o[t]=o[t]&&r:o[t]=r}}))})),"allSelect"===e||"inverseSelect"===e?{selected:o}:{name:t.name,selected:o}}function xz(e){e.registerComponentModel(uz),e.registerComponentView(yz),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,bz),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(e){e.registerAction("legendToggleSelect","legendselectchanged",Object(h.h)(_z,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Object(h.h)(_z,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Object(h.h)(_z,"inverseSelect")),e.registerAction("legendSelect","legendselected",Object(h.h)(_z,"select")),e.registerAction("legendUnSelect","legendunselected",Object(h.h)(_z,"unSelect"))}(e)}var wz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(option,t,n){var r=ru(option);e.prototype.init.call(this,option,t,n),Sz(this,option,r)},t.prototype.mergeOption=function(option,t){e.prototype.mergeOption.call(this,option,t),Sz(this,this.option,option)},t.type="legend.scroll",t.defaultOption=Zs(uz.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(uz);function Sz(e,t,n){var r=[1,1];r[e.getOrient().index]=0,nu(t,n,{type:"box",ignoreSize:!!r})}var kz=wz,Oz=qn,Cz=["width","height"],Tz=["x","y"],Ez=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return l(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Oz),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Oz)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,o,l,c,f){var d=this;e.prototype.renderInner.call(this,t,n,r,o,l,c,f);var v=this._controllerGroup,m=n.get("pageIconSize",!0),y=h.t(m)?m:[m,m];x("pagePrev",0);var _=n.getModel("pageTextStyle");function x(e,t){var r=e+"DataIndex",l=ep(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:h.c(d._pageGo,d,r,n,o)},{x:-y[0]/2,y:-y[1]/2,width:y[0],height:y[1]});l.name=e,v.add(l)}v.add(new ua({name:"pageText",style:{text:"xx/xx",fill:_.getTextColor(),font:_.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),x("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,o,l){var c=this.getSelectorGroup(),f=e.getOrient().index,d=Cz[f],v=Tz[f],m=Cz[1-f],y=Tz[1-f];o&&Jl("horizontal",c,e.get("selectorItemGap",!0));var _=e.get("selectorButtonGap",!0),x=c.getBoundingRect(),w=[-x.x,-x.y],S=h.d(n);o&&(S[d]=n[d]-x[d]-_);var k=this._layoutContentAndController(e,r,S,f,d,m,y,v);if(o){if("end"===l)w[f]+=k[d]+_;else{var O=x[d]+_;w[f]-=O,k[v]-=O}k[d]+=x[d]+_,w[1-f]+=k[y]+k[m]/2-x[m]/2,k[m]=Math.max(k[m],x[m]),k[y]=Math.min(k[y],x[y]+w[1-f]),c.x=w[0],c.y=w[1],c.markRedraw()}return k},t.prototype._layoutContentAndController=function(e,t,n,r,o,l,c,f){var d=this.getContentGroup(),v=this._containerGroup,m=this._controllerGroup;Jl(e.get("orient"),d,e.get("itemGap"),r?n.width:null,r?null:n.height),Jl("horizontal",m,e.get("pageButtonItemGap",!0));var y=d.getBoundingRect(),_=m.getBoundingRect(),x=this._showController=y[o]>n[o],w=[-y.x,-y.y];t||(w[r]=d[f]);var S=[0,0],k=[-_.x,-_.y],O=h.P(e.get("pageButtonGap",!0),e.get("itemGap",!0));x&&("end"===e.get("pageButtonPosition",!0)?k[r]+=n[o]-_[o]:S[r]+=_[o]+O);k[1-r]+=y[l]/2-_[l]/2,d.setPosition(w),v.setPosition(S),m.setPosition(k);var C={x:0,y:0};if(C[o]=x?n[o]:y[o],C[l]=Math.max(y[l],_[l]),C[c]=Math.min(0,_[c]+k[1-r]),v.__rectSize=n[o],x){var T={x:0,y:0};T[o]=Math.max(n[o]-_[o]-O,0),T[l]=C[l],v.setClipPath(new Go({shape:T})),v.__rectSize=T[o]}else m.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var E=this._getPageInfo(e);return null!=E.pageIndex&&ds(d,{x:E.contentPosition[0],y:E.contentPosition[1]},x?e:null),this._updatePageInfoView(e,E),C},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;h.k(["pagePrev","pageNext"],(function(r){var o=null!=t[r+"DataIndex"],l=n.childOfName(r);l&&(l.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),l.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),o=e.get("pageFormatter"),l=t.pageIndex,c=null!=l?l+1:0,f=t.pageCount;r&&o&&r.setStyle("text",h.C(o)?o.replace("{current}",null==c?"":c+"").replace("{total}",null==f?"":f+""):o({current:c,total:f}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,o=e.getOrient().index,l=Cz[o],c=Tz[o],h=this._findTargetItemIndex(t),f=n.children(),d=f[h],v=f.length,m=v?1:0,y={contentPosition:[n.x,n.y],pageCount:m,pageIndex:m-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return y;var _=k(d);y.contentPosition[o]=-_.s;for(var i=h+1,x=_,w=_,S=null;i<=v;++i)(!(S=k(f[i]))&&w.e>x.s+r||S&&!O(S,x.s))&&(x=w.i>x.i?w:S)&&(null==y.pageNextDataIndex&&(y.pageNextDataIndex=x.i),++y.pageCount),w=S;for(i=h-1,x=_,w=_,S=null;i>=-1;--i)(S=k(f[i]))&&O(w,S.s)||!(x.i<w.i)||(w=x,null==y.pagePrevDataIndex&&(y.pagePrevDataIndex=x.i),++y.pageCount,++y.pageIndex),x=S;return y;function k(e){if(e){var t=e.getBoundingRect(),n=t[c]+e[c];return{s:n,e:n+t[l],i:e.__legendDataIndex}}}function O(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(r,o){var l=r.__legendDataIndex;null==n&&null!=l&&(n=o),l===e&&(t=o)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(yz),Az=Ez;function Mz(e){use(xz),e.registerComponentModel(kz),e.registerComponentView(Az),function(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}var Iz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.type="dataZoom.inside",t.defaultOption=Zs(Zj.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Zj),Dz=Iz,Pz=jr();function Nz(e,t,n){Pz(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}function Lz(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function jz(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Rz(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function Fz(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=Pz(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(h.f)());r.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=Gj(e);Object(h.k)(n.infoList,(function(n){var o=n.model.uid,l=r.get(o)||r.set(o,function(e,t){var n={model:t,containsPoint:Object(h.h)(Rz,t),dispatchAction:Object(h.h)(jz,e),dataZoomInfoMap:null,controller:null},r=n.controller=new Ek(e.getZr());return Object(h.k)(["pan","zoom","scrollMove"],(function(e){r.on(e,(function(t){var r=[];n.dataZoomInfoMap.each((function(o){if(t.isAvailableBehavior(o.model.option)){var l=(o.getRange||{})[e],c=l&&l(o.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!o.model.get("disabled",!0)&&c&&r.push({dataZoomId:o.model.id,start:c[0],end:c[1]})}})),r.length&&n.dispatchAction(r)}))})),n}(t,n.model));(l.dataZoomInfoMap||(l.dataZoomInfoMap=Object(h.f)())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),r.each((function(e){var t,n=e.controller,o=e.dataZoomInfoMap;if(o){var l=o.keys()[0];null!=l&&(t=o.get(l))}if(t){var c=function(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each((function(e){var l=e.model,c=!l.get("disabled",!0)&&(!l.get("zoomLock",!0)||"move");r[n+c]>r[n+t]&&(t=c),o=o&&l.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}(o);n.enable(c.controlType,c.opt),n.setPointerChecker(e.containsPoint),xp(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else Lz(r,e)}))}))}var Bz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return l(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),Nz(r,t,{pan:Object(h.c)(zz.pan,this),zoom:Object(h.c)(zz.zoom,this),scrollMove:Object(h.c)(zz.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=Pz(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],l=n.get(o),c=l.dataZoomInfoMap;if(c){var h=t.uid;c.get(h)&&(c.removeKey(h),c.keys().length||Lz(n,l))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(tR),zz={zoom:function(e,t,n,r){var o=this.range,l=o.slice(),c=e.axisModels[0];if(c){var h=Vz[t](null,[r.originX,r.originY],c,n,e),f=(h.signal>0?h.pixelStart+h.pixelLength-h.pixel:h.pixel-h.pixelStart)/h.pixelLength*(l[1]-l[0])+l[0],d=Math.max(1/r.scale,0);l[0]=(l[0]-f)*d+f,l[1]=(l[1]-f)*d+f;var v=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return $A(0,l,[0,100],0,v.minSpan,v.maxSpan),this.range=l,o[0]!==l[0]||o[1]!==l[1]?l:void 0}},pan:$z((function(e,t,n,r,o,l){var c=Vz[r]([l.oldX,l.oldY],[l.newX,l.newY],t,o,n);return c.signal*(e[1]-e[0])*c.pixel/c.pixelLength})),scrollMove:$z((function(e,t,n,r,o,l){return Vz[r]([0,0],[l.scrollDelta,l.scrollDelta],t,o,n).signal*(e[1]-e[0])*l.scrollDelta}))};function $z(e){return function(t,n,r,o){var l=this.range,c=l.slice(),h=t.axisModels[0];if(h)return $A(e(c,h,t,n,r,o),c,[0,100],"all"),this.range=c,l[0]!==c[0]||l[1]!==c[1]?c:void 0}}var Vz={grid:function(e,t,n,r,o){var l=n.axis,c={},rect=o.model.coordinateSystem.getRect();return e=e||[0,0],"x"===l.dim?(c.pixel=t[0]-e[0],c.pixelLength=rect.width,c.pixelStart=rect.x,c.signal=l.inverse?1:-1):(c.pixel=t[1]-e[1],c.pixelLength=rect.height,c.pixelStart=rect.y,c.signal=l.inverse?-1:1),c},polar:function(e,t,n,r,o){var l=n.axis,c={},h=o.model.coordinateSystem,f=h.getRadiusAxis().getExtent(),d=h.getAngleAxis().getExtent();return e=e?h.pointToCoord(e):[0,0],t=h.pointToCoord(t),"radiusAxis"===n.mainType?(c.pixel=t[0]-e[0],c.pixelLength=f[1]-f[0],c.pixelStart=f[0],c.signal=l.inverse?1:-1):(c.pixel=t[1]-e[1],c.pixelLength=d[1]-d[0],c.pixelStart=d[0],c.signal=l.inverse?-1:1),c},singleAxis:function(e,t,n,r,o){var l=n.axis,rect=o.model.coordinateSystem.getRect(),c={};return e=e||[0,0],"horizontal"===l.orient?(c.pixel=t[0]-e[0],c.pixelLength=rect.width,c.pixelStart=rect.x,c.signal=l.inverse?1:-1):(c.pixel=t[1]-e[1],c.pixelLength=rect.height,c.pixelStart=rect.y,c.signal=l.inverse?-1:1),c}},Hz=Bz;function qz(e){uR(e),e.registerComponentModel(Dz),e.registerComponentView(Hz),Fz(e)}var Wz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Zs(Zj.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Zj),Uz=Wz,Gz=Go,Yz="horizontal",Kz="vertical",Xz=["line","bar","candlestick","scatter"],Zz={easing:"cubicOut",duration:100,delay:0},Jz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return l(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(h.c)(this._onBrush,this),this._onBrushEnd=Object(h.c)(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,o){if(e.prototype.render.apply(this,arguments),xp(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();o&&"dataZoom"===o.type&&o.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){wp(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new qn;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,r=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},l=this._orient===Yz?{right:o.width-r.x-r.width,top:o.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},c=ru(e.option);Object(h.k)(["right","top","width","height"],(function(e){"ph"===c[e]&&(c[e]=l[e])}));var f=Ql(c,o);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===Kz&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),o=r&&r.get("inverse"),l=this._displayables.sliderGroup,c=(this._dataShadowInfo||{}).otherAxisInverse;l.attr(n!==Yz||o?n===Yz&&o?{scaleY:c?1:-1,scaleX:-1}:n!==Kz||o?{scaleY:c?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:c?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:c?1:-1,scaleX:1});var rect=e.getBoundingRect([l]);e.x=t.x-rect.x,e.y=t.y-rect.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new Gz({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Gz({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(h.c)(this._onClickPanel,this)}),l=this.api.getZr();r?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",l.on("mousemove",this._onBrush),l.on("mouseup",this._onBrushEnd)):(l.off("mousemove",this._onBrush),l.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,data=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),l=o&&data.getDimensionInfo(o)?r.getShadowDim():e.otherDim;if(null!=l){var c=this._shadowPolygonPts,h=this._shadowPolylinePts;if(data!==this._shadowData||l!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var f=data.getDataExtent(l),d=.3*(f[1]-f[0]);f=[f[0]-d,f[1]+d];var v,m=[0,t[1]],y=[0,t[0]],_=[[t[0],0],[0,0]],x=[],w=y[1]/(data.count()-1),S=0,k=Math.round(data.count()/t[0]);data.each([l],(function(e,t){if(k>0&&t%k)S+=w;else{var n=null==e||isNaN(e)||""===e,r=n?0:Xn(e,f,m,!0);n&&!v&&t?(_.push([_[_.length-1][0],0]),x.push([x[x.length-1][0],0])):!n&&v&&(_.push([S,0]),x.push([S,0])),_.push([S,r]),x.push([S,r]),S+=w,v=n}})),c=this._shadowPolygonPts=_,h=this._shadowPolylinePts=x}this._shadowData=data,this._shadowDim=l,this._shadowSize=[t[0],t[1]];for(var O=this.dataZoomModel,i=0;i<3;i++){var C=T(1===i);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}}}function T(e){var t=O.getModel(e?"selectedDataBackground":"dataBackground"),n=new qn,polygon=new ed({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),polyline=new id({shape:{points:h},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(polygon),n.add(polyline),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(o,l){var c=e.getAxisProxy(o,l).getTargetSeriesModels();Object(h.k)(c,(function(e){if(!(n||!0!==t&&Object(h.r)(Xz,e.get("type"))<0)){var c,f=r.getComponent(Wj(o),l).axis,d={x:"y",y:"x",radius:"angle",angle:"radius"}[o],v=e.coordinateSystem;null!=d&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),d=e.getData().mapDimension(d),n={thisAxis:f,series:e,thisDim:o,otherDim:d,otherAxisInverse:c}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],o=this._displayables.sliderGroup,l=this._size,c=this.dataZoomModel,f=this.api,d=c.get("borderRadius")||0,v=c.get("brushSelect"),m=t.filler=new Gz({silent:v,style:{fill:c.get("fillerColor")},textConfig:{position:"inside"}});o.add(m),o.add(new Gz({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:l[0],height:l[1],r:d},style:{stroke:c.get("dataBackgroundColor")||c.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Object(h.k)([0,1],(function(t){var l=c.get("handleIcon");!kg[l]&&l.indexOf("path://")<0&&l.indexOf("image://")<0&&(l="path://"+l);var path=Tg(l,-1,0,2,2,null,!0);path.attr({cursor:Qz(this._orient),draggable:!0,drift:Object(h.c)(this._onDragMove,this,t),ondragend:Object(h.c)(this._onDragEnd,this),onmouseover:Object(h.c)(this._showDataInfo,this,!0),onmouseout:Object(h.c)(this._showDataInfo,this,!1),z2:5});var f=path.getBoundingRect(),d=c.get("handleSize");this._handleHeight=Zn(d,this._size[1]),this._handleWidth=f.width/f.height*this._handleHeight,path.setStyle(c.getModel("handleStyle").getItemStyle()),path.style.strokeNoScale=!0,path.rectHover=!0,path.ensureState("emphasis").style=c.getModel(["emphasis","handleStyle"]).getItemStyle(),es(path);var v=c.get("handleColor");null!=v&&(path.style.fill=v),o.add(n[t]=path);var m=c.getModel("textStyle");e.add(r[t]=new ua({silent:!0,invisible:!0,style:Os(m,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:m.getTextColor(),font:m.getFont()}),z2:10}))}),this);var y=m;if(v){var _=Zn(c.get("moveHandleSize"),l[1]),x=t.moveHandle=new Go({style:c.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:l[1]-.5,height:_}}),w=.8*_,S=t.moveHandleIcon=Tg(c.get("moveHandleIcon"),-w/2,-w/2,w,w,"#fff",!0);S.silent=!0,S.y=l[1]+_/2-.5,x.ensureState("emphasis").style=c.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var k=Math.min(l[1]/2,Math.max(_,10));(y=t.moveZone=new Go({invisible:!0,shape:{y:l[1]-k,height:_+k}})).on("mouseover",(function(){f.enterEmphasis(x)})).on("mouseout",(function(){f.leaveEmphasis(x)})),o.add(x),o.add(S),o.add(y)}y.attr({draggable:!0,cursor:Qz(this._orient),drift:Object(h.c)(this._onDragMove,this,"all"),ondragstart:Object(h.c)(this._showDataInfo,this,!0),ondragend:Object(h.c)(this._onDragEnd,this),onmouseover:Object(h.c)(this._showDataInfo,this,!0),onmouseout:Object(h.c)(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Xn(e[0],[0,100],t,!0),Xn(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,o=this._getViewExtent(),l=n.findRepresentativeAxisProxy().getMinMaxSpan(),c=[0,100];$A(t,r,o,n.get("zoomLock")?"all":e,null!=l.minSpan?Xn(l.minSpan,c,o,!0):null,null!=l.maxSpan?Xn(l.maxSpan,c,o,!0):null);var h=this._range,f=this._range=Qn([Xn(r[0],o,c,!0),Xn(r[1],o,c,!0)]);return!h||h[0]!==f[0]||h[1]!==f[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Qn(n.slice()),o=this._size;Object(h.k)([0,1],(function(e){var r=t.handles[e],l=this._handleHeight;r.attr({scaleX:l/2,scaleY:l/2,x:n[e]+(e?-1:1),y:o[1]/2-l/2})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:o[1]});var l={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(l),t.moveZone.setShape(l),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",l.x+l.width/2));for(var c=t.dataShadowSegs,f=[0,r[0],r[1],o[0]],i=0;i<c.length;i++){var d=c[i],v=d.getClipPath();v||(v=new Go,d.setClipPath(v)),v.setShape({x:f[i],y:0,width:f[i+1]-f[i],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,o=this._orient,l=["",""];if(t.get("showDetail")){var c=t.findRepresentativeAxisProxy();if(c){var h=c.getAxisModel().axis,f=this._range,d=e?c.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:c.getDataValueWindow();l=[this._formatLabel(d[0],h),this._formatLabel(d[1],h)]}}var v=Qn(this._handleEnds.slice());function m(e){var t=Gd(n.handles[e].parent,this.group),c=Kd(0===e?"right":"left",t),h=this._handleWidth/2+5,f=Yd([v[e]+(0===e?-h:h),this._size[1]/2],t);r[e].setStyle({x:f[0],y:f[1],verticalAlign:o===Yz?"middle":c,align:o===Yz?c:"center",text:l[e]})}m.call(this,0),m.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=t.getPixelPrecision());var l=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return Object(h.w)(r)?r(e,l):Object(h.C)(r)?r.replace("{value}",l):l},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,Q(r.event);var o=Yd([t,n],this._displayables.sliderGroup.getLocalTransform(),!0),l=this._updateInterval(e,o[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,o=(r[0]+r[1])/2,l=this._updateInterval("all",n[0]-o);this._updateView(),l&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new he(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=Qn([Xn(n.x,r,o,!0),Xn(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Q(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Gz({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var l=this._brushStart,c=this._displayables.sliderGroup,h=c.transformCoordToLocal(e,t),f=c.transformCoordToLocal(l.x,l.y),d=this._size;h[0]=Math.max(Math.min(d[0],h[0]),0),o.setShape({x:f[0],y:0,width:h[0]-f[0],height:d[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Zz:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var rect,e=Gj(this.dataZoomModel).infoList;if(!rect&&e.length){var t=e[0].model.coordinateSystem;rect=t.getRect&&t.getRect()}if(!rect){var n=this.api.getWidth(),r=this.api.getHeight();rect={x:.2*n,y:.2*r,width:.6*n,height:.6*r}}return rect},t.type="dataZoom.slider",t}(tR);function Qz(e){return"vertical"===e?"ns-resize":"ew-resize"}var e$=Jz;function t$(e){e.registerComponentModel(Uz),e.registerComponentView(e$),uR(e)}var n$={get:function(e,t,n){var r=h.d((r$[e]||{})[t]);return n&&h.t(r)?r[r.length-1]:r}},r$={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},i$=n$,o$=NT.mapVisual,a$=NT.eachVisual,s$=h.t,l$=h.k,u$=Qn,c$=Xn,h$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return l(t,e),t.prototype.init=function(option,e,t){this.mergeDefaultAndTheme(option,t)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&LF(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=h.c(e,this),this.controllerVisuals=NF(this.option.controller,t,e),this.targetVisuals=NF(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=kr(e),t},t.prototype.eachTargetSeries=function(e,t){h.k(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var r,option=this.option,o=option.precision,l=this.dataBound,c=option.formatter;n=n||["<",">"],h.t(e)&&(e=e.slice(),r=!0);var f=t?e:r?[d(e[0]),d(e[1])]:d(e);return h.C(c)?c.replace("{value}",r?f[0]:f).replace("{value2}",r?f[1]:f):h.w(c)?r?c(e[0],e[1]):c(e):r?e[0]===l[0]?n[0]+" "+f[1]:e[1]===l[1]?n[1]+" "+f[0]:f[0]+" - "+f[1]:f;function d(e){return e===l[0]?"min":e===l[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=u$([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(data){var e=this.option.dimension;if(null!=e)return data.getDimensionIndex(e);for(var t=data.dimensions,i=t.length-1;i>=0;i--){var n=t[i],r=data.getDimensionInfo(n);if(!r.isCalculationCoord)return r.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,base={inRange:t.inRange,outOfRange:t.outOfRange},n=t.target||(t.target={}),r=t.controller||(t.controller={});h.I(n,base),h.I(r,base);var o=this.isCategory();function l(base){s$(t.color)&&!base.inRange&&(base.inRange={color:t.color.slice().reverse()}),base.inRange=base.inRange||{color:e.get("gradientColor")}}l.call(this,n),l.call(this,r),function(base,e,t){var n=base[e],r=base[t];n&&!r&&(r=base[t]={},l$(n,(function(e,t){if(NT.isValidType(t)){var n=i$.get(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,n,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),l=this.getItemSymbol()||"roundRect";l$(this.stateList,(function(c){var f=this.itemSize,d=e[c];d||(d=e[c]={color:o?r:[r]}),null==d.symbol&&(d.symbol=t&&h.d(t)||(o?l:[l])),null==d.symbolSize&&(d.symbolSize=n&&h.d(n)||(o?f[0]:[f[0],f[0]])),d.symbol=o$(d.symbol,(function(symbol){return"none"===symbol?l:symbol}));var v=d.symbolSize;if(null!=v){var m=-1/0;a$(v,(function(e){e>m&&(m=e)})),d.symbolSize=o$(v,(function(e){return c$(e,[0,m],[0,f[0]],!0)}))}}),this)}.call(this,r)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(su),f$=h$,d$=[20,140],p$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=d$[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=d$[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):h.t(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),h.k(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Qn((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],data=n.getData();data.each(this.getDataDimensionIndex(data),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=g$(this,"outOfRange",this.getExtent()),n=g$(this,"inRange",this.option.range.slice()),r=[];function o(t,n){r.push({value:t,color:e(t,n)})}for(var l=0,c=0,h=n.length,f=t.length;c<f&&(!n.length||t[c]<=n[0]);c++)t[c]<n[l]&&o(t[c],"outOfRange");for(var d=1;l<h;l++,d=0)d&&r.length&&o(n[l],"outOfRange"),o(n[l],"inRange");for(d=1;c<f;c++)(!n.length||n[n.length-1]<t[c])&&(d&&(r.length&&o(r[r.length-1].value,"outOfRange"),d=0),o(t[c],"outOfRange"));var v=r.length;return{stops:r,outerColors:[v?r[0].color:"transparent",v?r[v-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Zs(f$.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(f$);function g$(e,t,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,o=n[0],l=[],i=0;i<=200&&o<n[1];i++)l.push(o),o+=r;return l.push(n[1]),l}var v$=p$,m$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return l(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=$l(t.get("padding")||0),rect=e.getBoundingRect();e.add(new Go({z2:-1,silent:!0,shape:{x:rect.x-n[3],y:rect.y-n[0],width:rect.width+n[3]+n[1],height:rect.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){var r=(n=n||{}).forceState,o=this.visualMapModel,l={};if("color"===t){var c=o.get("contentColor");l.color=c}function f(e){return l[e]}function d(e,t){l[e]=t}var v=o.controllerVisuals[r||o.getValueState(e)],m=NT.prepareVisualTypes(v);return h.k(m,(function(r){var o=v[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",o=v.__alphaForOpacity),NT.dependsOn(r,t)&&o&&o.applyVisual(e,f,d)})),l[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;eu(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(rf),y$=m$,b$=[["left","right","width"],["top","bottom","height"]];function _$(e,t,n){var r=e.option,o=r.align;if(null!=o&&"auto"!==o)return o;for(var l={width:t.getWidth(),height:t.getHeight()},c="horizontal"===r.orient?1:0,h=b$[c],f=[0,null,10],d={},i=0;i<3;i++)d[b$[1-c][i]]=f[i],d[h[i]]=2===i?n[0]:r[h[i]];var v=[["x","width",3],["y","height",0]][c],rect=Ql(d,l,r.padding);return h[(rect.margin[v[2]]||0)+rect[v[0]]+.5*rect[v[1]]<.5*l[v[1]]?0:1]}function x$(e,t){return h.k(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var w$=Xn,S$=h.k,k$=Math.min,O$=Math.max,C$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return l(t,e),t.prototype.doRender=function(e,t,n,r){this._api=n,r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var text=t[1-n];text=null!=text?text+"":"";var r=this.visualMapModel,o=r.get("textGap"),l=r.itemSize,c=this._shapes.mainGroup,h=this._applyTransform([l[0]/2,0===n?-o:l[1]+o],c),f=this._applyTransform(0===n?"bottom":"top",c),d=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new ua({style:Os(v,{x:h[0],y:h[1],verticalAlign:"horizontal"===d?"middle":f,align:"horizontal"===d?f:"center",text:text})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,o=this._orient,l=this._useHandle,c=_$(t,this.api,r),f=n.mainGroup=this._createBarGroup(c),d=new qn;f.add(d),d.add(n.outOfRange=T$()),d.add(n.inRange=T$(null,l?A$(this._orient):null,h.c(this._dragHandle,this,"all",!1),h.c(this._dragHandle,this,"all",!0))),d.setClipPath(new Go({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var v=t.textStyleModel.getTextRect("国"),m=O$(v.width,v.height);l&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,f,0,r,m,o),this._createHandle(t,f,1,r,m,o)),this._createIndicator(t,f,r,m,o),e.add(f)},t.prototype._createHandle=function(e,t,n,r,o,l){var c=h.c(this._dragHandle,this,n,!1),f=h.c(this._dragHandle,this,n,!0),d=Mn(e.get("handleSize"),r[0]),v=Tg(e.get("handleIcon"),-d/2,-d/2,d,d,null,!0),cursor=A$(this._orient);v.attr({cursor:cursor,draggable:!0,drift:c,ondragend:f,onmousemove:function(e){Q(e.event)}}),v.x=r[0]/2,v.useStyle(e.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),as(v,!0),t.add(v);var m=this.visualMapModel.textStyleModel,y=new ua({cursor:cursor,draggable:!0,drift:c,onmousemove:function(e){Q(e.event)},ondragend:f,style:Os(m,{x:0,y:0,text:""})});y.ensureState("blur").style={opacity:.1},y.stateTransition={duration:200},this.group.add(y);var _=[d,0],x=this._shapes;x.handleThumbs[n]=v,x.handleLabelPoints[n]=_,x.handleLabels[n]=y},t.prototype._createIndicator=function(e,t,n,r,o){var l=Mn(e.get("indicatorSize"),n[0]),c=Tg(e.get("indicatorIcon"),-l/2,-l/2,l,l,null,!0);c.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var f=e.getModel("indicatorStyle").getItemStyle();if(c instanceof Bo){var d=c.style;c.useStyle(h.m({image:d.image,x:d.x,y:d.y,width:d.width,height:d.height},f))}else c.useStyle(f);t.add(c);var v=this.visualMapModel.textStyleModel,m=new ua({silent:!0,invisible:!0,style:Os(v,{x:0,y:0,text:""})});this.group.add(m);var y=[("horizontal"===o?r/2:6)+n[0]/2,0],_=this._shapes;_.indicator=c,_.indicatorLabel=m,_.indicatorLabelPoint=y,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var o=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():E$(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[w$(t[0],n,r,!0),w$(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,o=[0,n.itemSize[1]];$A(t,r,o,e,0);var l=n.getExtent();this._dataInterval=[w$(r[0],o,l,!0),w$(r[1],o,l,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,o=[0,t.itemSize[1]],l=e?o:this._handleEnds,c=this._createBarVisual(this._dataInterval,n,l,"inRange"),h=this._createBarVisual(n,n,o,"outOfRange");r.inRange.setStyle({fill:c.barColor}).setShape("points",c.barPoints),r.outOfRange.setStyle({fill:h.barColor}).setShape("points",h.barPoints),this._updateHandle(l,c)},t.prototype._createBarVisual=function(e,t,n,r){var o={forceState:r,convertOpacityToAlpha:!0},l=this._makeColorGradient(e,o),c=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],h=this._createBarPoints(n,c);return{barColor:new xd(0,0,0,1,l),barPoints:h,handlesColor:[l[0].color,l[l.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=[],r=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var i=1;i<100;i++){var o=e[0]+r*i;if(o>e[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:i/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new qn("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,o=n.handleThumbs,l=n.handleLabels,c=r.itemSize,h=r.getExtent();S$([0,1],(function(f){var d=o[f];d.setStyle("fill",t.handlesColor[f]),d.y=e[f];var v=w$(e[f],[0,c[1]],h,!0),m=this.getControllerVisual(v,"symbolSize");d.scaleX=d.scaleY=m/c[0],d.x=c[0]-m/2;var y=Yd(n.handleLabelPoints[f],Gd(d,this.group));l[f].setStyle({x:y[0],y:y[1],text:r.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var o=this.visualMapModel,l=o.getExtent(),c=o.itemSize,h=[0,c[1]],f=this._shapes,d=f.indicator;if(d){d.attr("invisible",!1);var v=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),m=this.getControllerVisual(e,"symbolSize"),y=w$(e,l,h,!0),_=c[0]-m/2,x={x:d.x,y:d.y};d.y=y,d.x=_;var w=Yd(f.indicatorLabelPoint,Gd(d,this.group)),S=f.indicatorLabel;S.attr("invisible",!1);var k=this._applyTransform("left",f.mainGroup),O="horizontal"===this._orient;S.setStyle({text:(n||"")+o.formatValueText(t),verticalAlign:O?k:"middle",align:O?"center":k});var C={x:_,y:y,style:{fill:v}},T={style:{x:w[0],y:w[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var E={duration:100,easing:"cubicInOut",additive:!0};d.x=x.x,d.y=x.y,d.animateTo(C,E),S.animateTo(T,E)}else d.attr(C),S.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var i=0;i<A.length;i++)this._api.enterBlur(A[i])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=k$(O$(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var o=[0,r[1]],l=n.getExtent();e=k$(O$(o[0],e),o[1]);var c=function(e,t,n){var r=6,o=e.get("hoverLinkDataSize");o&&(r=w$(o,t,n,!0)/2);return r}(n,l,o),h=[e-c,e+c],f=w$(e,o,l,!0),d=[w$(h[0],o,l,!0),w$(h[1],o,l,!0)];h[0]<o[0]&&(d[0]=-1/0),h[1]>o[1]&&(d[1]=1/0),t&&(d[0]===-1/0?this._showIndicator(f,d[1],"< ",c):d[1]===1/0?this._showIndicator(f,d[0],"> ",c):this._showIndicator(f,f,"≈ ",c));var v=this._hoverLinkDataIndices,m=[];(t||E$(n))&&(m=this._hoverLinkDataIndices=n.findTargetDataIndices(d));var y=function(e,t){var n={},r={};return o(e||[],n),o(t||[],r,n),[l(n),l(r)];function o(e,map,t){for(var i=0,n=e.length;i<n;i++){var r=Dr(e[i].seriesId,null);if(null==r)return;for(var o=kr(e[i].dataIndex),l=t&&t[r],c=0,h=o.length;c<h;c++){var f=o[c];l&&l[f]?l[f]=null:(map[r]||(map[r]={}))[f]=1}}}function l(map,e){var t=[];for(var i in map)if(map.hasOwnProperty(i)&&null!=map[i])if(e)t.push(+i);else{var n=l(map[i],!0);n.length&&t.push({seriesId:i,dataIndex:n})}return t}}(v,m);this._dispatchHighDown("downplay",x$(y[0],n)),this._dispatchHighDown("highlight",x$(y[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(dg(e.target,(function(e){var n=ca(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var data=n.getData(t.dataType),o=data.getStore().get(r.getDataDimensionIndex(data),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var i=0;i<t.length;i++)this._api.leaveBlur(t[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",x$(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,element,t,n){var r=Gd(element,n?null:this.group);return h.t(e)?Yd(e,r,t):Kd(e,r,t)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(y$);function T$(e,cursor,t,n){return new ed({shape:{points:e},draggable:!!t,cursor:cursor,drift:t,onmousemove:function(e){Q(e.event)},ondragend:n})}function E$(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function A$(e){return"vertical"===e?"ns-resize":"ew-resize"}var M$=C$,I$={type:"selectDataRange",event:"dataRangeSelected",update:"update"},D$=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},P$=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var r,o,l,c,f,d=e.pipelineContext;!t.isTargetSeries(e)||d&&d.large||n.push((r=t.stateList,o=t.targetVisuals,l=h.c(t.getValueState,t),c=t.getDataDimensionIndex(e.getData()),f={},h.k(r,(function(e){var t=NT.prepareVisualTypes(o[e]);f[e]=t})),{progress:function(e,data){var t,n;function r(e){return lg(data,n,e)}function h(e,t){cg(data,n,e,t)}null!=c&&(t=data.getDimensionIndex(c));for(var d=data.getStore();null!=(n=e.next());){var v=data.getRawDataItem(n);if(!v||!1!==v.visualMap)for(var m=null!=c?d.get(t,n):n,y=l(m),_=o[y],x=f[y],i=0,w=x.length;i<w;i++){var S=x[i];_[S]&&_[S].applyVisual(m,r,h)}}}}))})),n}},{createOnAllSeries:!0,reset:function(e,t){var data=e.getData(),n=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(h.c(N$,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(data);o>=0&&(r.dimension=o,n.push(r))}})),e.getData().setVisual("visualMeta",n)}}];function N$(e,t,n,r){for(var o=t.targetVisuals[r],l=NT.prepareVisualTypes(o),c={color:ug(e.getData(),"color")},i=0,h=l.length;i<h;i++){var f=l[i],d=o["opacity"===f?"__alphaForOpacity":f];d&&d.applyVisual(n,v,m)}return c.color;function v(e){return c[e]}function m(e,t){c[e]=t}}var L$=h.k;function j$(option){var e=option&&option.visualMap;h.t(e)||(e=e?[e]:[]),L$(e,(function(e){if(e){R$(e,"splitList")&&!R$(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&h.t(t)&&L$(t,(function(e){h.A(e)&&(R$(e,"start")&&!R$(e,"min")&&(e.min=e.start),R$(e,"end")&&!R$(e,"max")&&(e.max=e.end))}))}}))}function R$(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var F$=!1;function B$(e){F$||(F$=!0,e.registerSubTypeDefaulter("visualMap",(function(option){return option.categories||(option.pieces?option.pieces.length>0:option.splitNumber>0)&&!option.calculable?"piecewise":"continuous"})),e.registerAction(I$,D$),Object(h.k)(P$,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(j$))}function z$(e){e.registerComponentModel(v$),e.registerComponentView(M$),B$(e)}var $$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return l(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],V$[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var o=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=h.d(o)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=h.H(this._pieceList,(function(e){return e=h.d(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var option=this.option,t={},n=NT.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}h.k(option.pieces,(function(e){h.k(n,(function(n){e.hasOwnProperty(n)&&(t[n]=1)}))})),h.k(t,(function(e,t){var n=!1;h.k(this.stateList,(function(e){n=n||o(option,e,t)||o(option.target,e,t)}),this),!n&&h.k(this.stateList,(function(e){(option[e]||(option[e]={}))[t]=i$.get(t,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,o=(t?n:e).selected||{};if(n.selected=o,h.k(r,(function(e,t){var n=this.getSelectedMapKey(e);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===n.selectedMode){var l=!1;h.k(r,(function(e,t){var n=this.getSelectedMapKey(e);o[n]&&(l?o[n]=!1:l=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var option=this.option;return option.pieces&&option.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=h.d(e)},t.prototype.getValueState=function(e){var t=NT.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(r){var o=[],data=r.getData();data.each(this.getDataDimensionIndex(data),(function(t,r){NT.findPieceIndex(t,n)===e&&o.push(r)}),this),t.push({seriesId:r.id,dataIndex:o})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],r=this,o=this._pieceList.slice();if(o.length){var l=o[0].interval[0];l!==-1/0&&o.unshift({interval:[-1/0,l]}),(l=o[o.length-1].interval[1])!==1/0&&o.push({interval:[l,1/0]})}else o.push({interval:[-1/0,1/0]});var c=-1/0;return h.k(o,(function(e){var t=e.interval;t&&(t[0]>c&&f([c,t[0]],"outOfRange"),f(t.slice()),c=t[1])}),this),{stops:t,outerColors:n}}function f(o,l){var c=r.getRepresentValue({interval:o});l||(l=r.getValueState(c));var h=e(c,l);o[0]===-1/0?n[0]=h:o[1]===1/0?n[1]=h:t.push({value:o[0],color:h},{value:o[1],color:h})}},t.type="visualMap.piecewise",t.defaultOption=Zs(f$.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(f$),V$={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;for(var l=(r[1]-r[0])/o;+l.toFixed(n)!==l&&n<5;)n++;t.precision=n,l=+l.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var c=0,f=r[0];c<o;f+=l,c++){var d=c===o-1?r[1]:f+l;e.push({interval:[f,d],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),pr(e),h.k(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;h.k(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),H$(t,e)},pieces:function(e){var t=this.option;h.k(t.pieces,(function(t,n){h.A(t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var o=r.value=t.value;r.interval=[o,o],r.close=[1,1]}else{for(var l=r.interval=[],c=r.close=[0,0],f=[1,0,1],d=[-1/0,1/0],v=[],m=0;m<2;m++){for(var y=[["gte","gt","min"],["lte","lt","max"]][m],i=0;i<3&&null==l[m];i++)l[m]=t[y[i]],c[m]=f[i],v[m]=2===i;null==l[m]&&(l[m]=d[m])}v[0]&&l[1]===1/0&&(c[0]=0),v[1]&&l[0]===-1/0&&(c[1]=0),l[0]===l[1]&&c[0]&&c[1]&&(r.value=l[0])}r.visual=NT.retrieveVisuals(t),e.push(r)}),this),H$(t,e),pr(e),h.k(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function H$(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var q$=$$,W$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return l(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,o=r.getFont(),l=r.getTextColor(),c=this._getItemAlign(),f=t.itemSize,d=this._getViewData(),v=d.endsText,m=h.O(t.get("showLabel",!0),!v);v&&this._renderEndsText(e,v[0],f,m,c),h.k(d.viewPieceList,(function(r){var d=r.piece,v=new qn;v.onclick=h.c(this._onItemClick,this,d),this._enableHoverLink(v,r.indexInModelPieceList);var y=t.getRepresentValue(d);if(this._createItemSymbol(v,y,[0,0,f[0],f[1]]),m){var _=this.visualMapModel.getValueState(y);v.add(new ua({style:{x:"right"===c?-n:f[0]+n,y:f[1]/2,text:d.text,verticalAlign:"middle",align:c,font:o,fill:l,opacity:"outOfRange"===_?.5:1}}))}e.add(v)}),this),v&&this._renderEndsText(e,v[1],f,m,c),Jl(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:x$(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return _$(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,text,t,n,r){if(text){var o=new qn,l=this.visualMapModel.textStyleModel;o.add(new ua({style:Os(l,{x:n?"right"===r?t[0]:0:t[0]/2,y:t[1]/2,verticalAlign:"middle",align:n?r:"center",text:text})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=h.H(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),o=e.get("inverse");return("horizontal"===r?o:!o)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Tg(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,option=t.option,n=option.selectedMode;if(n){var r=h.d(option.selected),o=t.getSelectedMapKey(e);"single"===n||!0===n?(r[o]=!0,h.k(r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(y$),U$=W$;function G$(e){e.registerComponentModel(q$),e.registerComponentView(U$),B$(e)}var Y$={label:{enabled:!0},decal:{show:!1}},K$=jr(),X$={};function Z$(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=h.d(Y$);h.I(r.label,e.getLocaleModel().get("aria"),!1),h.I(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var t=h.f();e.eachSeries((function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),K$(e).scope=n}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(h.w(t.enableAriaDecal))t.enableAriaDecal();else{var data=t.getData();if(t.isColorBySeries()){var n=Pu(t.ecModel,t.name,X$,e.getSeriesCount()),r=data.getVisual("decal");data.setVisual("decal",d(r,n))}else{var o=t.getRawData(),l={},c=K$(t).scope;data.each((function(e){var t=data.getRawIndex(e);l[t]=e}));var f=o.count();o.each((function(e){var n=l[e],r=o.getName(e)||e+"",h=Pu(t.ecModel,r,c,f),v=data.getItemVisual(n,"decal");data.setItemVisual(n,"decal",d(v,h))}))}}function d(e,t){var n=e?h.m(h.m({},t),e):t;return n.dirty=!0,n}}))}}(),function(){var r=e.getLocaleModel().get("aria"),l=n.getModel("label");if(l.option=h.i(l.option,r),!l.get("enabled"))return;var c=t.getZr().dom;if(l.get("description"))return void c.setAttribute("aria-label",l.get("description"));var f,d=e.getSeriesCount(),v=l.get(["data","maxCount"])||10,m=l.get(["series","maxCount"])||10,y=Math.min(d,m);if(d<1)return;var title=function(){var title=e.get("title");title&&title.length&&(title=title[0]);return title&&title.text}();if(title){var _=l.get(["general","withTitle"]);f=o(_,{title:title})}else f=l.get(["general","withoutTitle"]);var x=[],w=d>1?l.get(["series","multiple","prefix"]):l.get(["series","single","prefix"]);f+=o(w,{seriesCount:d}),e.eachSeries((function(t,n){if(n<y){var r=void 0,c=t.get("name")?"withName":"withoutName";r=o(r=d>1?l.get(["series","multiple",c]):l.get(["series","single",c]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(k=t.subType,e.getLocaleModel().get(["series","typeNames"])[k]||"自定义图")});var data=t.getData();if(data.count()>v)r+=o(l.get(["data","partialData"]),{displayCnt:v});else r+=l.get(["data","allData"]);for(var h=l.get(["data","separator","middle"]),f=l.get(["data","separator","end"]),m=[],i=0;i<data.count();i++)if(i<v){var _=data.getName(i),w=data.getValues(i),S=l.get(["data",_?"withName":"withoutName"]);m.push(o(S,{name:_,value:w.join(h)}))}r+=m.join(h)+f,x.push(r)}var k}));var S=l.getModel(["series","multiple","separator"]),k=S.get("middle"),O=S.get("end");f+=x.join(k)+O,c.setAttribute("aria-label",f)}()}function o(e,t){if(!h.C(e))return e;var n=e;return h.k(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}}function J$(option){if(option&&option.aria){var e=option.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},h.k(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}var Q$={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},eV=function(){function e(e){if(null==(this._condVal=Object(h.C)(e)?new RegExp(e):Object(h.B)(e)?e:null)){0,Bu("")}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(h.C)(t)?this._condVal.test(e):!!Object(h.z)(t)&&this._condVal.test(e+"")},e}(),tV=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),nV=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,i=0;i<e.length;i++)if(!e[i].evaluate())return!1;return!0},e}(),rV=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,i=0;i<e.length;i++)if(e[i].evaluate())return!0;return!1},e}(),iV=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),oV=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:t))return!1;return!0},e}();function aV(e,t){if(!0===e||!1===e){var n=new tV;return n.value=e,n}return lV(e)||Bu(""),e.and?sV("and",e,t):e.or?sV("or",e,t):e.not?function(e,t){var n=e.not,r="";0;lV(n)||Bu(r);var o=new iV;o.child=aV(n,t),o.child||Bu(r);return o}(e,t):function(e,t){for(var n="",r=t.prepareGetValue(e),o=[],l=Object(h.F)(e),c=e.parser,f=c?Qc(c):null,i=0;i<l.length;i++){var d=l[i];if("parser"!==d&&!t.valueGetterAttrMap.get(d)){var v=Object(h.q)(Q$,d)?Q$[d]:d,m=e[d],y=f?f(m):m,_=oh(v,y)||"reg"===v&&new eV(y);_||Bu(n),o.push(_)}}o.length||Bu(n);var x=new oV;return x.valueGetterParam=r,x.valueParser=f,x.getValue=t.getValue,x.subCondList=o,x}(e,t)}function sV(e,t,n){var r=t[e];Object(h.t)(r)||Bu(""),r.length||Bu("");var o="and"===e?new nV:new rV;return o.children=Object(h.H)(r,(function(e){return aV(e,n)})),o.children.length||Bu(""),o}function lV(e){return Object(h.A)(e)&&!Object(h.u)(e)}var uV=function(){function e(e,t){this._cond=aV(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();var cV={type:"echarts:filter",transform:function(e){for(var t,n,r,o=e.upstream,l=(n=e.config,r={valueGetterAttrMap:Object(h.f)({dimension:!0}),prepareGetValue:function(e){var t=e.dimension;Object(h.q)(e,"dimension")||Bu("");var n=o.getDimensionInfo(t);return n||Bu(""),{dimIdx:n.index}},getValue:function(param){return o.retrieveValueFromItem(t,param.dimIdx)}},new uV(n,r)),c=[],i=0,f=o.count();i<f;i++)t=o.getRawDataItem(i),l.evaluate()&&c.push(t);return{data:c}}};var hV={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",o=kr(n);o.length||Bu(r);var l=[];Object(h.k)(o,(function(e){var n=e.dimension,o=e.order,c=e.parser,h=e.incomparable;if(null==n&&Bu(r),"asc"!==o&&"desc"!==o&&Bu(r),h&&"min"!==h&&"max"!==h){0,Bu("")}if("asc"!==o&&"desc"!==o){0,Bu("")}var f=t.getDimensionInfo(n);f||Bu(r);var d=c?Qc(c):null;c&&!d&&Bu(r),l.push({dimIdx:f.index,parser:d,comparator:new rh(o,h)})}));var c=t.sourceFormat;c!==du&&c!==pu&&Bu(r);for(var f=[],i=0,d=t.count();i<d;i++)f.push(t.getRawDataItem(i));return f.sort((function(e,n){for(var i=0;i<l.length;i++){var r=l[i],o=t.retrieveValueFromItem(e,r.dimIdx),c=t.retrieveValueFromItem(n,r.dimIdx);r.parser&&(o=r.parser(o),c=r.parser(c));var h=r.comparator.evaluate(o,c);if(0!==h)return h}return 0})),{data:f}}};var fV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return l(t,e),t.prototype.init=function(option,t,n){e.prototype.init.call(this,option,t,n),this._sourceManager=new Oh(this),Ch(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Ch(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:yu},t}(su),dV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return l(t,e),t.type="dataset",t}(rf);var pV=ho.CMD;function gV(a,b){return Math.abs(a-b)<1e-5}function vV(path){var e,t,n,r,o,data=path.data,l=path.len(),c=[],h=0,f=0,d=0,v=0;function m(t,n){e&&e.length>2&&c.push(e),e=[t,n]}function y(t,n,r,o){gV(t,r)&&gV(n,o)||e.push(t,n,r,o,r,o)}function _(t,n,r,o,l,c){var h=Math.abs(n-t),f=4*Math.tan(h/4)/3,d=n<t?-1:1,v=Math.cos(t),m=Math.sin(t),y=Math.cos(n),_=Math.sin(n),x=v*l+r,w=m*c+o,S=y*l+r,k=_*c+o,O=l*f*d,C=c*f*d;e.push(x-O*m,w+C*v,S+O*_,k-C*y,S,k)}for(var i=0;i<l;){var x=data[i++],w=1===i;switch(w&&(d=h=data[i],v=f=data[i+1],x!==pV.L&&x!==pV.C&&x!==pV.Q||(e=[d,v])),x){case pV.M:h=d=data[i++],f=v=data[i++],m(d,v);break;case pV.L:y(h,f,t=data[i++],n=data[i++]),h=t,f=n;break;case pV.C:e.push(data[i++],data[i++],data[i++],data[i++],h=data[i++],f=data[i++]);break;case pV.Q:t=data[i++],n=data[i++],r=data[i++],o=data[i++],e.push(h+2/3*(t-h),f+2/3*(n-f),r+2/3*(t-r),o+2/3*(n-o),r,o),h=r,f=o;break;case pV.A:var S=data[i++],k=data[i++],O=data[i++],C=data[i++],T=data[i++],E=data[i++]+T;i+=1;var A=!data[i++];t=Math.cos(T)*O+S,n=Math.sin(T)*C+k,w?m(d=t,v=n):y(h,f,t,n),h=Math.cos(E)*O+S,f=Math.sin(E)*C+k;for(var M=(A?-1:1)*Math.PI/2,I=T;A?I>E:I<E;I+=M){_(I,A?Math.max(I+M,E):Math.min(I+M,E),S,k,O,C)}break;case pV.R:d=h=data[i++],v=f=data[i++],t=d+data[i++],n=v+data[i++],m(t,v),y(t,v,t,n),y(t,n,d,n),y(d,n,d,v),y(d,v,t,v);break;case pV.Z:e&&y(h,f,d,v),h=d,f=v}}return e&&e.length>2&&c.push(e),c}function mV(e,t,n,r,o,l,c,h,f,d){if(gV(e,n)&&gV(t,r)&&gV(o,c)&&gV(l,h))f.push(c,h);else{var v=2/d,m=v*v,y=c-e,_=h-t,x=Math.sqrt(y*y+_*_);y/=x,_/=x;var w=n-e,S=r-t,k=o-c,O=l-h,C=w*w+S*S,T=k*k+O*O;if(C<m&&T<m)f.push(c,h);else{var E=y*w+_*S,A=-y*k-_*O;if(C-E*E<m&&E>=0&&T-A*A<m&&A>=0)f.push(c,h);else{var M=[],I=[];st(e,n,o,c,.5,M),st(t,r,l,h,.5,I),mV(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],f,d),mV(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],f,d)}}}}function yV(e,t,n){var r=e[t],o=e[1-t],l=Math.abs(r/o),c=Math.ceil(Math.sqrt(l*n)),h=Math.floor(n/c);0===h&&(h=1,c=n);for(var f=[],i=0;i<c;i++)f.push(h);var d=n-c*h;if(d>0)for(i=0;i<d;i++)f[i%c]+=1;return f}function bV(e,t,n){for(var r=e.r0,o=e.r,l=e.startAngle,c=e.endAngle,h=Math.abs(c-l),f=h*o,d=o-r,v=f>Math.abs(d),m=yV([f,d],v?0:1,t),y=(v?h:d)/m.length,_=0;_<m.length;_++)for(var x=(v?d:h)/m[_],w=0;w<m[_];w++){var S={};v?(S.startAngle=l+y*_,S.endAngle=l+y*(_+1),S.r0=r+x*w,S.r=r+x*(w+1)):(S.startAngle=l+x*w,S.endAngle=l+x*(w+1),S.r0=r+y*_,S.r=r+y*(_+1)),S.clockwise=e.clockwise,S.cx=e.cx,S.cy=e.cy,n.push(S)}}function _V(e,t,n,r){return e*r-n*t}function xV(e,t,n,r,o,l,c,h){var f=n-e,d=r-t,v=c-o,m=h-l,y=_V(v,m,f,d);if(Math.abs(y)<1e-6)return null;var p=_V(e-o,t-l,v,m)/y;return p<0||p>1?null:new he(p*f+e,p*d+t)}function wV(e,t,n){var r=new he;he.sub(r,n,t),r.normalize();var o=new he;return he.sub(o,e,t),o.dot(r)}function SV(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function kV(e){var t=e.points,n=[],r=[];Bi(t,n,r);var o=new _e(n[0],n[1],r[0]-n[0],r[1]-n[1]),l=o.width,c=o.height,h=o.x,f=o.y,d=new he,v=new he;return l>c?(d.x=v.x=h+l/2,d.y=f,v.y=f+c):(d.y=v.y=f+c/2,d.x=h,v.x=h+l),function(e,t,n){for(var r=e.length,o=[],i=0;i<r;i++){var l=e[i],c=e[(i+1)%r],h=xV(l[0],l[1],c[0],c[1],t.x,t.y,n.x,n.y);h&&o.push({projPt:wV(h,t,n),pt:h,idx:i})}if(o.length<2)return[{points:e},{points:e}];o.sort((function(a,b){return a.projPt-b.projPt}));var f=o[0],d=o[o.length-1];if(d.idx<f.idx){var v=f;f=d,d=v}var m=[f.pt.x,f.pt.y],y=[d.pt.x,d.pt.y],_=[m],x=[y];for(i=f.idx+1;i<=d.idx;i++)SV(_,e[i].slice());for(SV(_,y),SV(_,m),i=d.idx+1;i<=f.idx+r;i++)SV(x,e[i%r].slice());return SV(x,m),SV(x,y),[{points:_},{points:x}]}(t,d,v)}function OV(e,t,n,r){if(1===n)r.push(t);else{var o=Math.floor(n/2),sub=e(t);OV(e,sub[0],o,r),OV(e,sub[1],n-o,r)}return r}function CV(source,e){e.setStyle(source.style),e.z=source.z,e.z2=source.z2,e.zlevel=source.zlevel}function TV(path,e){var t,n=[],r=path.shape;switch(path.type){case"rect":!function(e,t,n){for(var r=e.width,o=e.height,l=r>o,c=yV([r,o],l?0:1,t),h=l?"width":"height",f=l?"height":"width",d=l?"x":"y",v=l?"y":"x",m=e[h]/c.length,y=0;y<c.length;y++)for(var _=e[f]/c[y],x=0;x<c[y];x++){var w={};w[d]=y*m,w[v]=x*_,w[h]=m,w[f]=_,w.x+=e.x,w.y+=e.y,n.push(w)}}(r,e,n),t=Go;break;case"sector":bV(r,e,n),t=Gf;break;case"circle":bV({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,n),t=Gf;break;default:var o=path.getComputedTransform(),l=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,c=Object(h.H)(function(path,e){var t=vV(path),n=[];e=e||1;for(var i=0;i<t.length;i++){var r=t[i],polygon=[],o=r[0],l=r[1];polygon.push(o,l);for(var c=2;c<r.length;){var h=r[c++],f=r[c++],d=r[c++],v=r[c++],m=r[c++],y=r[c++];mV(o,l,h,f,d,v,m,y,polygon,e),o=m,l=y}n.push(polygon)}return n}(path.getUpdatedPathProxy(),l),(function(e){return function(e){for(var t=[],i=0;i<e.length;)t.push([e[i++],e[i++]]);return t}(e)})),f=c.length;if(0===f)OV(kV,{points:c[0]},e,n);else if(f===e)for(var i=0;i<f;i++)n.push({points:c[i]});else{var d=0,v=Object(h.H)(c,(function(e){var t=[],n=[];Bi(e,t,n);var area=(n[1]-t[1])*(n[0]-t[0]);return d+=area,{poly:e,area:area}}));v.sort((function(a,b){return b.area-a.area}));var m=e;for(i=0;i<f;i++){var y=v[i];if(m<=0)break;var _=i===f-1?m:Math.ceil(y.area/d*e);_<0||(OV(kV,{points:y.poly},_,n),m-=_)}}t=ed}if(!t)return function(path,e){for(var t=[],i=0;i<e;i++)t.push(Of(path));return t}(path,e);var x=[];for(i=0;i<n.length;i++){var w=new t;w.setShape(n[i]),CV(path,w),x.push(w)}return x}function EV(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var o=[],l=[],c=n<r?e:t,h=Math.min(n,r),f=Math.abs(r-n)/6,d=(h-2)/6,v=Math.ceil(f/d)+1,m=[c[0],c[1]],y=f,i=2;i<h;){var _=c[i-2],x=c[i-1],w=c[i++],S=c[i++],k=c[i++],O=c[i++],C=c[i++],T=c[i++];if(y<=0)m.push(w,S,k,O,C,T);else{for(var E=Math.min(y,v-1)+1,A=1;A<=E;A++){var p=A/E;st(_,w,k,C,p,o),st(x,S,O,T,p,l),_=o[3],x=l[3],m.push(o[1],l[1],o[2],l[2],_,x),w=o[5],S=l[5],k=o[6],O=l[6]}y-=E-1}}return c===e?[m,t]:[e,m]}function AV(e,t){for(var n=e.length,r=e[n-2],o=e[n-1],l=[],i=0;i<t.length;)l[i++]=r,l[i++]=o;return l}function MV(e){for(var t=0,n=0,r=0,o=e.length,i=0,l=o-2;i<o;l=i,i+=2){var c=e[l],h=e[l+1],f=e[i],d=e[i+1],a=c*d-f*h;t+=a,n+=(c+f)*a,r+=(h+d)*a}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function IV(e,t,n,r){for(var o=(e.length-2)/6,l=1/0,c=0,h=e.length,f=h-2,d=0;d<o;d++){for(var v=6*d,m=0,y=0;y<h;y+=2){var _=0===y?v:(v+y-2)%f+2,x=e[_]-n[0],w=e[_+1]-n[1],S=t[y]-r[0]-x,k=t[y+1]-r[1]-w;m+=S*S+k*k}m<l&&(l=m,c=d)}return c}function DV(e){for(var t=[],n=e.length,i=0;i<n;i+=2)t[i]=e[n-i-2],t[i+1]=e[n-i-1];return t}function PV(path){return path.__isCombineMorphing}var NV="__mOriginal_";function LV(e,t,n){var r=NV+t,o=e[r]||e[t];e[r]||(e[r]=e[t]);var l=n.replace,c=n.after,h=n.before;e[t]=function(){var e,t=arguments;return h&&h.apply(this,t),e=l?l.apply(this,t):o.apply(this,t),c&&c.apply(this,t),e}}function jV(e,t){var n=NV+t;e[n]&&(e[t]=e[n],e[n]=null)}function RV(e,t){for(var i=0;i<e.length;i++)for(var n=e[i],r=0;r<n.length;){var o=n[r],l=n[r+1];n[r++]=t[0]*o+t[2]*l+t[4],n[r++]=t[1]*o+t[3]*l+t[5]}}function FV(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),o=function(e,t){for(var n,r,o,l=[],c=[],i=0;i<Math.max(e.length,t.length);i++){var h=e[i],f=t[i],d=void 0,v=void 0;h?f?(r=d=(n=EV(h,f))[0],o=v=n[1]):(v=AV(o||h,h),d=h):(d=AV(r||f,f),v=f),l.push(d),c.push(v)}return[l,c]}(vV(n),vV(r)),l=o[0],c=o[1],h=e.getComputedTransform(),f=t.getComputedTransform();h&&RV(l,h),f&&RV(c,f),LV(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var d=function(e,t,n,r){for(var o,l=[],i=0;i<e.length;i++){var c=e[i],h=t[i],f=MV(c),d=MV(h);null==o&&(o=f[2]<0!=d[2]<0);var v=[],m=[],y=0,_=1/0,x=[],w=c.length;o&&(c=DV(c));for(var S=6*IV(c,h,f,d),k=w-2,O=0;O<k;O+=2){var C=(S+O)%k+2;v[O+2]=c[C]-f[0],v[O+3]=c[C+1]-f[1]}if(v[0]=c[S]-f[0],v[1]=c[S+1]-f[1],n>0)for(var T=r/n,E=-r/2;E<=r/2;E+=T){var A=Math.sin(E),M=Math.cos(E),I=0;for(O=0;O<c.length;O+=2){var D=v[O],P=v[O+1],N=h[O]-d[0],L=h[O+1]-d[1],j=N*M-L*A,R=N*A+L*M;x[O]=j,x[O+1]=R;var F=j-D,B=R-P;I+=F*F+B*B}if(I<_){_=I,y=E;for(var z=0;z<x.length;z++)m[z]=x[z]}}else for(var $=0;$<w;$+=2)m[$]=h[$]-d[0],m[$+1]=h[$+1]-d[1];l.push({from:v,to:m,fromCp:f,toCp:d,rotation:-y})}return l}(l,c,10,Math.PI),v=[];LV(t,"buildPath",{replace:function(path){for(var e=t.__morphT,n=1-e,r=[],i=0;i<d.length;i++){var o=d[i],l=o.from,c=o.to,h=o.rotation*e,f=o.fromCp,m=o.toCp,y=Math.sin(h),_=Math.cos(h);T(r,f,m,e);for(var x=0;x<l.length;x+=2){var w=l[x],S=l[x+1],k=w*n+(A=c[x])*e,O=S*n+(M=c[x+1])*e;v[x]=k*_-O*y+r[0],v[x+1]=k*y+O*_+r[1]}var C=v[0],E=v[1];path.moveTo(C,E);for(x=2;x<l.length;){var A=v[x++],M=v[x++],I=v[x++],D=v[x++],P=v[x++],N=v[x++];C===A&&E===M&&I===P&&D===N?path.lineTo(P,N):path.bezierCurveTo(A,M,I,D,P,N),C=P,E=N}}}})}function BV(e,t,n){if(!e||!t)return t;var r=n.done,o=n.during;return FV(e,t),t.__morphT=0,t.animateTo({__morphT:1},Object(h.i)({during:function(p){t.dirtyShape(),o&&o(p)},done:function(){jV(t,"buildPath"),jV(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),r&&r()}},n)),t}function zV(e,t,n,r,o,l){e=o===n?0:Math.round(32767*(e-n)/(o-n)),t=l===r?0:Math.round(32767*(t-r)/(l-r));for(var c,h=0,s=32768;s>0;s/=2){var f=0,d=0;(e&s)>0&&(f=1),(t&s)>0&&(d=1),h+=s*s*(3*f^d),0===d&&(1===f&&(e=s-1-e,t=s-1-t),c=e,e=t,t=c)}return h}function $V(e){var t=1/0,n=1/0,r=-1/0,o=-1/0,l=Object(h.H)(e,(function(path){var rect=path.getBoundingRect(),e=path.getComputedTransform(),l=rect.x+rect.width/2+(e?e[4]:0),c=rect.y+rect.height/2+(e?e[5]:0);return t=Math.min(l,t),n=Math.min(c,n),r=Math.max(l,r),o=Math.max(c,o),[l,c]}));return Object(h.H)(l,(function(l,c){return{cp:l,z:zV(l[0],l[1],t,n,r,o),path:e[c]}})).sort((function(a,b){return a.z-b.z})).map((function(e){return e.path}))}function VV(param){return TV(param.path,param.count)}function HV(e){return Object(h.t)(e[0])}function qV(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(i=0;i<t.length;i++){var o=t[i].length,l=void 0;for(l=0;l<o;l++)n[l%r].many.push(t[i][l])}var c=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var h=n[c].many;if(h.length<=1){if(!c)return n;c=0}o=h.length;var f=Math.ceil(o/2);n[i].many=h.slice(f,o),n[c].many=h.slice(0,f),c++}return n}var WV={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var r=Of(e.path);r.setStyle("opacity",n),t.push(r)}return t},split:null};function UV(e,t,n,r,o,l){if(e.length&&t.length){var c=hs("update",r,o);if(c&&c.duration>0){var f,d,v=r.getModel("universalTransition").get("delay"),m=Object.assign({setToFinal:!0},c);HV(e)&&(f=e,d=t),HV(t)&&(f=t,d=e);for(var y=f?f===e:e.length>t.length,_=f?qV(d,f):qV(y?t:e,[y?e:t]),x=0,i=0;i<_.length;i++)x+=_[i].many.length;var w=0;for(i=0;i<_.length;i++)S(_[i],y,w,x),w+=_[i].many.length}}function S(e,t,r,o,c){var f=e.many,d=e.one;if(1!==f.length||c)for(var y=Object(h.i)({dividePath:WV[n],individualDelay:v&&function(e,t,n,l){return v(e+r,o)}},m),_=t?function(e,t,n){var r=[];!function e(t){for(var i=0;i<t.length;i++){var n=t[i];PV(n)?e(n.childrenRef()):n instanceof Do&&r.push(n)}}(e);var o=r.length;if(!o)return{fromIndividuals:[],toIndividuals:[],count:0};var l=(n.dividePath||VV)({path:t,count:o});if(l.length!==o)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};r=$V(r),l=$V(l);for(var c=n.done,f=n.during,d=n.individualDelay,v=new _n,i=0;i<o;i++){var m=r[i],y=l[i];y.parent=t,y.copyTransform(v),d||FV(m,y)}function _(e){for(var i=0;i<l.length;i++)l[i].addSelfToZr(e)}function x(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,jV(t,"addSelfToZr"),jV(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return l},LV(t,"addSelfToZr",{after:function(e){_(e)}}),LV(t,"removeSelfFromZr",{after:function(e){for(var i=0;i<l.length;i++)l[i].removeSelfFromZr(e)}});var w=l.length;if(d){var S=w,k=function(){0==--S&&(x(),c&&c())};for(i=0;i<w;i++){var O=d?Object(h.i)({delay:(n.delay||0)+d(i,w,r[i],l[i]),done:k},n):n;BV(r[i],l[i],O)}}else t.__morphT=0,t.animateTo({__morphT:1},Object(h.i)({during:function(p){for(var i=0;i<w;i++){var e=l[i];e.__morphT=t.__morphT,e.dirtyShape()}f&&f(p)},done:function(){x();for(var i=0;i<e.length;i++)jV(e[i],"updateTransform");c&&c()}},n));return t.__zr&&_(t.__zr),{fromIndividuals:r,toIndividuals:l,count:w}}(f,d,y):function(e,t,n){var r=t.length,o=[],l=n.dividePath||VV;if(PV(e)){!function e(t){for(var i=0;i<t.length;i++){var n=t[i];PV(n)?e(n.childrenRef()):n instanceof Do&&o.push(n)}}(e.childrenRef());var c=o.length;if(c<r)for(var f=0,i=c;i<r;i++)o.push(Of(o[f++%c]));o.length=r}else{o=l({path:e,count:r});var d=e.getComputedTransform();for(i=0;i<o.length;i++)o[i].setLocalTransform(d);if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}o=$V(o),t=$V(t);var v=n.individualDelay;for(i=0;i<r;i++){var m=v?Object(h.i)({delay:(n.delay||0)+v(i,r,o[i],t[i])},n):n;BV(o[i],t[i],m)}return{fromIndividuals:o,toIndividuals:t,count:t.length}}(d,f,y),x=_.fromIndividuals,w=_.toIndividuals,k=x.length,O=0;O<k;O++){C=v?Object(h.i)({delay:v(O,k)},m):m;l(x[O],w[O],t?f[O]:e.one,t?e.one:f[O],C)}else{var C,T=t?f[0]:d,E=t?d:f[0];if(PV(T))S({many:[T],one:E},!0,r,o,!0);else BV(T,E,C=v?Object(h.i)({delay:v(r,o)},m):m),l(T,E,T,E,C)}}}function GV(e){if(!e)return[];if(Object(h.t)(e)){for(var t=[],i=0;i<e.length;i++)t.push(GV(e[i]));return t}var n=[];return e.traverse((function(e){e instanceof Do&&!e.disableMorphing&&!e.invisible&&!e.ignore&&n.push(e)})),n}var YV=jr();function KV(e){var t=[];return Object(h.k)(e,(function(e){var data=e.data;if(!(data.count()>1e4))for(var n=data.getIndices(),r=function(data){for(var e=data.dimensions,i=0;i<e.length;i++){var t=data.getDimensionInfo(e[i]);if(t&&0===t.otherDims.itemGroupId)return e[i]}}(data),o=0;o<n.length;o++)t.push({data:data,dim:e.dim||r,divide:e.divide,dataIndex:o})})),t}function XV(e,t,n){e.traverse((function(e){e instanceof Do&&ps(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function ZV(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function JV(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function QV(e,t,n){var r=hs("update",n,t);r&&e.traverse((function(e){if(e instanceof Mi){var t=function(e){return cs(e).oldStyle}(e);t&&e.animateFrom({style:t},r)}}))}function eH(e,t,n){var r=KV(e),o=KV(t);function l(e,t,n,r,o){(n||e)&&t.animateFrom({style:n&&n!==e?Object(h.m)(Object(h.m)({},n.style),e.style):e.style},o)}function c(e){for(var i=0;i<e.length;i++)if(e[i].dim)return e[i].dim}var f=c(r),d=c(o),v=!1;function m(e,t){return function(n){var data=n.data,r=n.dataIndex;if(t)return data.getId(r);var o=data.hostModel&&data.hostModel.get("dataGroupId"),l=e?f||d:d||f,c=l&&data.getDimensionInfo(l),h=c&&c.ordinalMeta;if(c){var v=data.get(c.name,r);return h&&h.categories[v]||v+""}var m=data.getRawDataItem(r);return m&&m.groupId?m.groupId+"":o||data.getId(r)}}var y=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var r=e[i],o=t[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(r,o),_={};if(!y)for(var i=0;i<o.length;i++){var x=o[i],w=x.data.getItemGraphicEl(x.dataIndex);w&&(_[w.id]=!0)}function S(e,t){var n=r[t],c=o[e],h=c.data.hostModel,f=n.data.getItemGraphicEl(n.dataIndex),d=c.data.getItemGraphicEl(c.dataIndex);f!==d?f&&_[f.id]||d&&(JV(d),f?(JV(f),ZV(f),v=!0,UV(GV(f),GV(d),c.divide,h,e,l)):XV(d,h,e)):d&&QV(d,c.dataIndex,h)}new cb(r,o,m(!0,y),m(!1,y),null,"multiple").update(S).updateManyToOne((function(e,t){var n=o[e],c=n.data,f=c.hostModel,d=c.getItemGraphicEl(n.dataIndex),m=Object(h.n)(Object(h.H)(t,(function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)})),(function(e){return e&&e!==d&&!_[e.id]}));d&&(JV(d),m.length?(Object(h.k)(m,(function(e){JV(e),ZV(e)})),v=!0,UV(GV(m),GV(d),n.divide,f,e,l)):XV(d,f,n.dataIndex))})).updateOneToMany((function(e,t){var n=r[t],c=n.data.getItemGraphicEl(n.dataIndex);if(!c||!_[c.id]){var f=Object(h.n)(Object(h.H)(e,(function(e){return o[e].data.getItemGraphicEl(o[e].dataIndex)})),(function(e){return e&&e!==c})),d=o[e[0]].data.hostModel;f.length&&(Object(h.k)(f,(function(e){return JV(e)})),c?(JV(c),ZV(c),v=!0,UV(GV(c),GV(f),n.divide,d,e[0],l)):Object(h.k)(f,(function(t){return XV(t,d,e[0])})))}})).updateManyToMany((function(e,t){new cb(t,e,(function(e){return r[e].data.getId(r[e].dataIndex)}),(function(e){return o[e].data.getId(o[e].dataIndex)})).update((function(n,r){S(e[n],t[r])})).execute()})).execute(),v&&Object(h.k)(t,(function(e){var t=e.data.hostModel,view=t&&n.getViewOfSeriesModel(t),r=hs("update",t,0);view&&t.isAnimationEnabled()&&r&&r.duration>0&&view.group.traverse((function(e){e instanceof Do&&!e.animators.length&&e.animateFrom({style:{opacity:0}},r)}))}))}function tH(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function nH(e){return Object(h.t)(e)?e.sort().join(","):e}function rH(data){if(data.hostModel)return data.hostModel.getModel("universalTransition").get("divideShape")}function iH(e,t){for(var i=0;i<e.length;i++){if(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)return i}}use([function(e){e.registerPainter("canvas",ny)}]),use([function(e){e.registerPainter("svg",sb)}]),use([function(e){e.registerChartView(I_),e.registerSeriesModel(Ub),e.registerLayout(D_("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var data=e.getData(),t=e.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=data.getVisual("style").fill),data.setVisual("legendLineStyle",t)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,L_("line"))},function(e){e.registerChartView(yx),e.registerSeriesModel(K_),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,h.h(V_,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,H_("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,L_("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))},function(e){e.registerChartView(Px),e.registerSeriesModel(Fx),hg("pie",e.registerAction),e.registerLayout(Object(h.h)(Sx,"pie")),e.registerProcessor(kx("pie")),e.registerProcessor({seriesType:"pie",reset:function(e,t){var data=e.getData();data.filterSelf((function(e){var t=data.mapDimension("value"),n=data.get(t,e);return!(Object(h.z)(n)&&!isNaN(n)&&n<0)}))}})},function(e){use(rk),e.registerSeriesModel(zx),e.registerChartView(Wx),e.registerLayout(D_("scatter"))},function(e){use(xk),e.registerChartView(uk),e.registerSeriesModel(hk),e.registerLayout(ik),e.registerProcessor(kx("radar")),e.registerPreprocessor(sk)},function(e){use(gC),e.registerChartView(UO),e.registerSeriesModel(YO),e.registerLayout(XO),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,KO),hg("map",e.registerAction)},function(e){e.registerChartView(NC),e.registerSeriesModel(ZC),e.registerLayout(QC),e.registerVisual(eT),function(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=hC(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}(e)},function(e){e.registerSeriesModel(oT),e.registerChartView(yT),e.registerVisual(jT),e.registerLayout(KT),function(e){for(var i=0;i<tT.length;i++)e.registerAction({type:tT[i],update:"updateView"},h.L);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},(function(t,n){var r=UC(e,["treemapZoomToNode","treemapRootToNode"],t);if(r){var o=t.getViewRoot();o&&(e.direction=YC(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}))}))}(e)},function(e){e.registerChartView(ZE),e.registerSeriesModel(aA),e.registerProcessor(tE),e.registerVisual(nE),e.registerVisual(iE),e.registerLayout(pE),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,wE),e.registerLayout(kE),e.registerCoordinateSystem("graphView",{dimensions:QO.dimensions,create:OE}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},h.L),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},h.L),e.registerAction(sA,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var r=hC(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))},function(e){e.registerChartView(fA),e.registerSeriesModel(pA)},function(e){e.registerChartView(yA),e.registerSeriesModel(_A),e.registerLayout(xA),e.registerProcessor(kx("funnel"))},function(e){use(eI),e.registerChartView(TA),e.registerSeriesModel(MA),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,DA)},function(e){e.registerChartView(iI),e.registerSeriesModel(aI),e.registerLayout(sI),e.registerVisual(bI),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},function(e){e.registerSeriesModel(wI),e.registerChartView(AI),e.registerVisual(MI),e.registerLayout(DI),e.registerTransform(PI)},function(e){e.registerChartView(UI),e.registerSeriesModel(YI),e.registerPreprocessor(KI),e.registerVisual(eD),e.registerLayout(nD)},function(e){e.registerChartView(aD),e.registerSeriesModel(lD),e.registerLayout(D_("effectScatter"))},function(e){e.registerChartView(yD),e.registerSeriesModel(SD),e.registerLayout(vD),e.registerVisual(OD)},function(e){e.registerChartView(MD),e.registerSeriesModel(DD)},function(e){e.registerChartView(eP),e.registerSeriesModel(nP),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(h.h)(V_,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,H_("pictorialBar"))},function(e){e.registerChartView(iP),e.registerSeriesModel(aP),e.registerLayout(sP),e.registerProcessor(kx("themeRiver"))},function(e){e.registerChartView(dP),e.registerSeriesModel(vP),e.registerLayout(Object(h.h)(yP,"sunburst")),e.registerProcessor(Object(h.h)(kx,"sunburst")),e.registerVisual(_P),function(e){e.registerAction({type:cP,update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t,n){var r=UC(e,[cP],t);if(r){var o=t.getViewRoot();o&&(e.direction=YC(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}))})),e.registerAction({type:hP,update:"none"},(function(e,t,n){e=Object(h.m)({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t){var n=UC(e,[hP],t);n&&(e.dataIndex=n.node.dataIndex)})),n.dispatchAction(Object(h.m)(e,{type:"highlight"}))})),e.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(e,t,n){e=Object(h.m)({},e),n.dispatchAction(Object(h.m)(e,{type:"downplay"}))}))}(e)},function(e){e.registerChartView(dN),e.registerSeriesModel(OP)}]),use((function(e){use(rk),use(yL)})),use((function(e){use(yL),WS.registerAxisPointerClass("PolarAxisPointer",xL),e.registerCoordinateSystem("polar",RL),e.registerComponentModel(SL),e.registerComponentView(tj),iw(e,"angle",OL,QL),iw(e,"radius",CL,ej),e.registerComponentView(qL),e.registerComponentView(KL),e.registerLayout(Object(h.h)(JL,"bar"))})),use(gC),use((function(e){use(yL),WS.registerAxisPointerClass("SingleAxisPointer",xj),e.registerComponentView(wj),e.registerComponentView(sj),e.registerComponentModel(uj),iw(e,"single",uj,uj.defaultOption),e.registerCoordinateSystem("single",pj)})),use(eI),use((function(e){e.registerComponentModel(Oj),e.registerComponentView(Tj),e.registerCoordinateSystem("calendar",Mj)})),use((function(e){e.registerComponentModel(Lj),e.registerComponentView(Fj),e.registerPreprocessor((function(option){var e=option.graphic;Object(h.t)(e)?e[0]&&e[0].elements?option.graphic=[option.graphic[0]]:option.graphic=[{elements:e}]:e&&!e.elements&&(option.graphic=[{elements:[e]}])}))})),use((function(e){e.registerComponentModel(vR),e.registerComponentView(bR),dR("saveAsImage",xR),dR("magicType",CR),dR("dataView",NR),dR("dataZoom",aF),dR("restore",BR),use(cR)})),use((function(e){use(yL),e.registerComponentModel(lF),e.registerComponentView(AF),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},h.L),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},h.L)})),use(yL),use((function(e){e.registerComponentView(KF),e.registerComponentModel(JF),e.registerPreprocessor(IF),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,HF),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},h.L),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},h.L),dR("brush",tB)})),use((function(e){e.registerComponentModel(nB),e.registerComponentView(rB)})),use((function(e){e.registerComponentModel(sB),e.registerComponentView(vB),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var r=t.getComponent("timeline");return r&&null!=e.currentIndex&&(r.setCurrentIndex(e.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),Object(h.i)({currentIndex:r.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}(e),e.registerPreprocessor(mB)})),use((function(e){e.registerComponentModel(CB),e.registerComponentView(zB),e.registerPreprocessor((function(e){_B(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))})),use((function(e){e.registerComponentModel(VB),e.registerComponentView(XB),e.registerPreprocessor((function(e){_B(e.series,"markLine")&&(e.markLine=e.markLine||{})}))})),use((function(e){e.registerComponentModel(JB),e.registerComponentView(sz),e.registerPreprocessor((function(e){_B(e.series,"markArea")&&(e.markArea=e.markArea||{})}))})),use((function(e){use(xz),use(Mz)})),use((function(e){use(qz),use(t$)})),use(qz),use(t$),use((function(e){use(z$),use(G$)})),use(z$),use(G$),use((function(e){e.registerPreprocessor(J$),e.registerVisual(e.PRIORITY.VISUAL.ARIA,Z$)})),use((function(e){e.registerTransform(cV),e.registerTransform(hV)})),use((function(e){e.registerComponentModel(fV),e.registerComponentView(dV)})),use((function(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(h.k)(kr(n.seriesTransition),(function(e){Object(h.k)(kr(e.to),(function(e){for(var t=n.updatedSeries,i=0;i<t.length;i++)(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)&&(t[i].__universalTransitionEnabled=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var r=YV(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var o=n.seriesTransition;if(o)Object(h.k)(kr(o),(function(e){!function(e,t,n,r){var o=[],l=[];Object(h.k)(kr(e.from),(function(e){var n=iH(t.oldSeries,e);n>=0&&o.push({data:t.oldData[n],divide:rH(t.oldData[n]),dim:e.dimension})})),Object(h.k)(kr(e.to),(function(e){var t=iH(n.updatedSeries,e);if(t>=0){var data=n.updatedSeries[t].getData();l.push({data:data,divide:rH(data),dim:e.dimension})}})),o.length>0&&l.length>0&&eH(o,l,r)}(e,r,n,t)}));else{var l=function(e,t){var n=Object(h.f)(),r=Object(h.f)(),o=Object(h.f)();return Object(h.k)(e.oldSeries,(function(t,n){var l=e.oldData[n],c=tH(t),f=nH(c);r.set(f,l),Object(h.t)(c)&&Object(h.k)(c,(function(e){o.set(e,{data:l,key:f})}))})),Object(h.k)(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.getData(),l=tH(e),c=nH(l),f=r.get(c);if(f)n.set(c,{oldSeries:[{divide:rH(f),data:f}],newSeries:[{divide:rH(t),data:t}]});else if(Object(h.t)(l)){var d=[];Object(h.k)(l,(function(e){var t=r.get(e);t&&d.push({divide:rH(t),data:t})})),d.length&&n.set(c,{oldSeries:d,newSeries:[{data:t,divide:rH(t)}]})}else{var v=o.get(l);if(v){var m=n.get(v.key);m||(m={oldSeries:[{data:v.data,divide:rH(v.data)}],newSeries:[]},n.set(v.key,m)),m.newSeries.push({data:t,divide:rH(t)})}}}})),n}(r,n);Object(h.k)(l.keys(),(function(e){var n=l.get(e);eH(n.oldSeries,n.newSeries,t)}))}Object(h.k)(n.updatedSeries,(function(e){e.__universalTransitionEnabled&&(e.__universalTransitionEnabled=!1)}))}for(var c=e.getSeries(),f=r.oldSeries=[],d=r.oldData=[],i=0;i<c.length;i++){var data=c[i].getData();data.count()<1e4&&(f.push(c[i]),d.push(data))}}))})),use(Xm)}]]);