vendor.012023abf7091247f996.js 3.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. webpackJsonp([0],{"++K3":function(e,t){var n,i,r,o,a,s,l,u,c,h,d,f,p,A,g,v=!1;function m(){if(!v){v=!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),m=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),h=/Android/i.exec(e),A=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){(n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);s=y?parseFloat(y[1])+4:n,i=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,(o=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=i=r=a=o=NaN;if(m){if(m[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!_||parseFloat(_[1].replace("_","."))}else l=!1;u=!!m[2],c=!!m[3]}else l=u=c=!1}}var y={ie:function(){return m()||n},ieCompatibilityMode:function(){return m()||s>n},ie64:function(){return y.ie()&&d},firefox:function(){return m()||i},opera:function(){return m()||r},webkit:function(){return m()||o},safari:function(){return y.webkit()},chrome:function(){return m()||a},windows:function(){return m()||u},osx:function(){return m()||l},linux:function(){return m()||c},iphone:function(){return m()||f},mobile:function(){return m()||f||p||h||g},nativeApp:function(){return m()||A},android:function(){return m()||h},ipad:function(){return m()||p}};e.exports=y},"+E39":function(e,t,n){e.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+ZMJ":function(e,t,n){var i=n("lOnJ");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"+tPU":function(e,t,n){n("xGkn");for(var i=n("7KvD"),r=n("hJx8"),o=n("/bQp"),a=n("dSzd")("toStringTag"),s="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(","),l=0;l<s.length;l++){var u=s[l],c=i[u],h=c&&c.prototype;h&&!h[a]&&r(h,a,u),o[u]=o.Array}},"//Fk":function(e,t,n){e.exports={default:n("U5ju"),__esModule:!0}},"/506":function(e,t,n){"use strict";var i=n("75l9"),r={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var o={},a=i.version.split(".");function s(e,t){for(var n=t?t.split("."):a,i=e.split("."),r=0;r<3;r++){if(n[r]>i[r])return!0;if(n[r]<i[r])return!1}return!1}r.transitional=function(e,t,n){var r=t&&s(t);function a(e,t){return"[Axios v"+i.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,s){if(!1===e)throw new Error(a(i," has been removed in "+t));return r&&!o[i]&&(o[i]=!0,console.warn(a(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var i=Object.keys(e),r=i.length;r-- >0;){var o=i[r],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:r}},"/bQp":function(e,t){e.exports={}},"/n6Q":function(e,t,n){n("zQR9"),n("+tPU"),e.exports=n("Kh4W").f("iterator")},"/ocq":function(e,t,n){"use strict";
  2. /*!
  3. * vue-router v3.5.2
  4. * (c) 2021 Evan You
  5. * @license MIT
  6. */function i(e,t){0}function r(e,t){for(var n in t)e[n]=t[n];return e}var o=/[!'()*]/g,a=function(e){return"%"+e.charCodeAt(0).toString(16)},s=/%2C/g,l=function(e){return encodeURIComponent(e).replace(o,a).replace(s,",")};function u(e){try{return decodeURIComponent(e)}catch(e){0}return e}var c=function(e){return null==e||"object"==typeof e?e:String(e)};function h(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var n=e.replace(/\+/g," ").split("="),i=u(n.shift()),r=n.length>0?u(n.join("=")):null;void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]}),t):t}function d(e){var t=e?Object.keys(e).map(function(t){var n=e[t];if(void 0===n)return"";if(null===n)return l(t);if(Array.isArray(n)){var i=[];return n.forEach(function(e){void 0!==e&&(null===e?i.push(l(t)):i.push(l(t)+"="+l(e)))}),i.join("&")}return l(t)+"="+l(n)}).filter(function(e){return e.length>0}).join("&"):null;return t?"?"+t:""}var f=/\/?$/;function p(e,t,n,i){var r=i&&i.options.stringifyQuery,o=t.query||{};try{o=A(o)}catch(e){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:v(t,r),matched:e?function(e){var t=[];for(;e;)t.unshift(e),e=e.parent;return t}(e):[]};return n&&(a.redirectedFrom=v(n,r)),Object.freeze(a)}function A(e){if(Array.isArray(e))return e.map(A);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=A(e[n]);return t}return e}var g=p(null,{path:"/"});function v(e,t){var n=e.path,i=e.query;void 0===i&&(i={});var r=e.hash;return void 0===r&&(r=""),(n||"/")+(t||d)(i)+r}function m(e,t,n){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(f,"")===t.path.replace(f,"")&&(n||e.hash===t.hash&&y(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&y(e.query,t.query)&&y(e.params,t.params))))}function y(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),i=Object.keys(t).sort();return n.length===i.length&&n.every(function(n,r){var o=e[n];if(i[r]!==n)return!1;var a=t[n];return null==o||null==a?o===a:"object"==typeof o&&"object"==typeof a?y(o,a):String(o)===String(a)})}function _(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var i in n.instances){var r=n.instances[i],o=n.enteredCbs[i];if(r&&o){delete n.enteredCbs[i];for(var a=0;a<o.length;a++)r._isBeingDestroyed||o[a](r)}}}}var b={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,o=t.parent,a=t.data;a.routerView=!0;for(var s=o.$createElement,l=n.name,u=o.$route,c=o._routerViewCache||(o._routerViewCache={}),h=0,d=!1;o&&o._routerRoot!==o;){var f=o.$vnode?o.$vnode.data:{};f.routerView&&h++,f.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(a.routerViewDepth=h,d){var p=c[l],A=p&&p.component;return A?(p.configProps&&w(A,a,p.route,p.configProps),s(A,a,i)):s()}var g=u.matched[h],v=g&&g.components[l];if(!g||!v)return c[l]=null,s();c[l]={component:v},a.registerRouteInstance=function(e,t){var n=g.instances[l];(t&&n!==e||!t&&n===e)&&(g.instances[l]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){g.instances[l]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[l]&&(g.instances[l]=e.componentInstance),_(u)};var m=g.props&&g.props[l];return m&&(r(c[l],{route:u,configProps:m}),w(v,a,u,m)),s(v,a,i)}};function w(e,t,n,i){var o=t.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;default:0}}(n,i);if(o){o=t.props=r({},o);var a=t.attrs=t.attrs||{};for(var s in o)e.props&&s in e.props||(a[s]=o[s],delete o[s])}}function x(e,t,n){var i=e.charAt(0);if("/"===i)return e;if("?"===i||"#"===i)return t+e;var r=t.split("/");n&&r[r.length-1]||r.pop();for(var o=e.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?r.pop():"."!==s&&r.push(s)}return""!==r[0]&&r.unshift(""),r.join("/")}function C(e){return e.replace(/\/\//g,"/")}var S=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},k=Q,B=D,T=function(e,t){return F(D(e,t),t)},E=F,I=U,M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function D(e,t){for(var n,i=[],r=0,o=0,a="",s=t&&t.delimiter||"/";null!=(n=M.exec(e));){var l=n[0],u=n[1],c=n.index;if(a+=e.slice(o,c),o=c+l.length,u)a+=u[1];else{var h=e[o],d=n[2],f=n[3],p=n[4],A=n[5],g=n[6],v=n[7];a&&(i.push(a),a="");var m=null!=d&&null!=h&&h!==d,y="+"===g||"*"===g,_="?"===g||"*"===g,b=n[2]||s,w=p||A;i.push({name:f||r++,prefix:d||"",delimiter:b,optional:_,repeat:y,partial:m,asterisk:!!v,pattern:w?L(w):v?".*":"[^"+O(b)+"]+?"})}}return o<e.length&&(a+=e.substr(o)),a&&i.push(a),i}function P(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function F(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+")$",R(t)));return function(t,i){for(var r="",o=t||{},a=(i||{}).pretty?P:encodeURIComponent,s=0;s<e.length;s++){var l=e[s];if("string"!=typeof l){var u,c=o[l.name];if(null==c){if(l.optional){l.partial&&(r+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(S(c)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(c)+"`");if(0===c.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var h=0;h<c.length;h++){if(u=a(c[h]),!n[s].test(u))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===h?l.prefix:l.delimiter)+u}}else{if(u=l.asterisk?encodeURI(c).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):a(c),!n[s].test(u))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+u+'"');r+=l.prefix+u}}else r+=l}return r}}function O(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function L(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function N(e,t){return e.keys=t,e}function R(e){return e&&e.sensitive?"":"i"}function U(e,t,n){S(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,r=!1!==n.end,o="",a=0;a<e.length;a++){var s=e[a];if("string"==typeof s)o+=O(s);else{var l=O(s.prefix),u="(?:"+s.pattern+")";t.push(s),s.repeat&&(u+="(?:"+l+u+")*"),o+=u=s.optional?s.partial?l+"("+u+")?":"(?:"+l+"("+u+"))?":l+"("+u+")"}}var c=O(n.delimiter||"/"),h=o.slice(-c.length)===c;return i||(o=(h?o.slice(0,-c.length):o)+"(?:"+c+"(?=$))?"),o+=r?"$":i&&h?"":"(?="+c+"|$)",N(new RegExp("^"+o,R(n)),t)}function Q(e,t,n){return S(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return N(e,t)}(e,t):S(e)?function(e,t,n){for(var i=[],r=0;r<e.length;r++)i.push(Q(e[r],t,n).source);return N(new RegExp("(?:"+i.join("|")+")",R(n)),t)}(e,t,n):function(e,t,n){return U(D(e,n),t,n)}(e,t,n)}k.parse=B,k.compile=T,k.tokensToFunction=E,k.tokensToRegExp=I;var H=Object.create(null);function j(e,t,n){t=t||{};try{var i=H[e]||(H[e]=k.compile(e));return"string"==typeof t.pathMatch&&(t[0]=t.pathMatch),i(t,{pretty:!0})}catch(e){return""}finally{delete t[0]}}function V(e,t,n,i){var o="string"==typeof e?{path:e}:e;if(o._normalized)return o;if(o.name){var a=(o=r({},e)).params;return a&&"object"==typeof a&&(o.params=r({},a)),o}if(!o.path&&o.params&&t){(o=r({},o))._normalized=!0;var s=r(r({},t.params),o.params);if(t.name)o.name=t.name,o.params=s;else if(t.matched.length){var l=t.matched[t.matched.length-1].path;o.path=j(l,s,t.path)}else 0;return o}var u=function(e){var t="",n="",i=e.indexOf("#");i>=0&&(t=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:t}}(o.path||""),d=t&&t.path||"/",f=u.path?x(u.path,d,n||o.append):d,p=function(e,t,n){void 0===t&&(t={});var i,r=n||h;try{i=r(e||"")}catch(e){i={}}for(var o in t){var a=t[o];i[o]=Array.isArray(a)?a.map(c):c(a)}return i}(u.query,o.query,i&&i.options.parseQuery),A=o.hash||u.hash;return A&&"#"!==A.charAt(0)&&(A="#"+A),{_normalized:!0,path:f,query:p,hash:A}}var z,$=[String,Object],G=[String,Array],W=function(){},K={name:"RouterLink",props:{to:{type:$,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:G,default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),a=o.location,s=o.route,l=o.href,u={},c=n.options.linkActiveClass,h=n.options.linkExactActiveClass,d=null==c?"router-link-active":c,A=null==h?"router-link-exact-active":h,g=null==this.activeClass?d:this.activeClass,v=null==this.exactActiveClass?A:this.exactActiveClass,y=s.redirectedFrom?p(null,V(s.redirectedFrom),null,n):s;u[v]=m(i,y,this.exactPath),u[g]=this.exact||this.exactPath?u[v]:function(e,t){return 0===e.path.replace(f,"/").indexOf(t.path.replace(f,"/"))&&(!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)}(i,y);var _=u[v]?this.ariaCurrentValue:null,b=function(e){Y(e)&&(t.replace?n.replace(a,W):n.push(a,W))},w={click:Y};Array.isArray(this.event)?this.event.forEach(function(e){w[e]=b}):w[this.event]=b;var x={class:u},C=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:s,navigate:b,isActive:u[g],isExactActive:u[v]});if(C){if(1===C.length)return C[0];if(C.length>1||!C.length)return 0===C.length?e():e("span",{},C)}if("a"===this.tag)x.on=w,x.attrs={href:l,"aria-current":_};else{var S=function e(t){if(t)for(var n,i=0;i<t.length;i++){if("a"===(n=t[i]).tag)return n;if(n.children&&(n=e(n.children)))return n}}(this.$slots.default);if(S){S.isStatic=!1;var k=S.data=r({},S.data);for(var B in k.on=k.on||{},k.on){var T=k.on[B];B in w&&(k.on[B]=Array.isArray(T)?T:[T])}for(var E in w)E in k.on?k.on[E].push(w[E]):k.on[E]=b;var I=S.data.attrs=r({},S.data.attrs);I.href=l,I["aria-current"]=_}else x.on=w}return e(this.tag,x,this.$slots.default)}};function Y(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 q(e){if(!q.installed||z!==e){q.installed=!0,z=e;var t=function(e){return void 0!==e},n=function(e,n){var i=e.$options._parentVnode;t(i)&&t(i=i.data)&&t(i=i.registerRouteInstance)&&i(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",b),e.component("RouterLink",K);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var X="undefined"!=typeof window;function J(e,t,n,i,r){var o=t||[],a=n||Object.create(null),s=i||Object.create(null);e.forEach(function(e){!function e(t,n,i,r,o,a){var s=r.path;var l=r.name;0;var u=r.pathToRegexpOptions||{};var c=function(e,t,n){n||(e=e.replace(/\/$/,""));if("/"===e[0])return e;if(null==t)return e;return C(t.path+"/"+e)}(s,o,u.strict);"boolean"==typeof r.caseSensitive&&(u.sensitive=r.caseSensitive);var h={path:c,regex:function(e,t){var n=k(e,[],t);return n}(c,u),components:r.components||{default:r.component},alias:r.alias?"string"==typeof r.alias?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:l,parent:o,matchAs:a,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};r.children&&r.children.forEach(function(r){var o=a?C(a+"/"+r.path):void 0;e(t,n,i,r,h,o)});n[h.path]||(t.push(h.path),n[h.path]=h);if(void 0!==r.alias)for(var d=Array.isArray(r.alias)?r.alias:[r.alias],f=0;f<d.length;++f){var p=d[f];0;var A={path:p,children:r.children};e(t,n,i,A,o,h.path||"/")}l&&(i[l]||(i[l]=h))}(o,a,s,e,r)});for(var l=0,u=o.length;l<u;l++)"*"===o[l]&&(o.push(o.splice(l,1)[0]),u--,l--);return{pathList:o,pathMap:a,nameMap:s}}function Z(e,t){var n=J(e),i=n.pathList,r=n.pathMap,o=n.nameMap;function a(e,n,a){var s=V(e,n,!1,t),u=s.name;if(u){var c=o[u];if(!c)return l(null,s);var h=c.regex.keys.filter(function(e){return!e.optional}).map(function(e){return e.name});if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var d in n.params)!(d in s.params)&&h.indexOf(d)>-1&&(s.params[d]=n.params[d]);return s.path=j(c.path,s.params),l(c,s,a)}if(s.path){s.params={};for(var f=0;f<i.length;f++){var p=i[f],A=r[p];if(ee(A.regex,s.path,s.params))return l(A,s,a)}}return l(null,s)}function s(e,n){var i=e.redirect,r="function"==typeof i?i(p(e,n,null,t)):i;if("string"==typeof r&&(r={path:r}),!r||"object"!=typeof r)return l(null,n);var s=r,u=s.name,c=s.path,h=n.query,d=n.hash,f=n.params;if(h=s.hasOwnProperty("query")?s.query:h,d=s.hasOwnProperty("hash")?s.hash:d,f=s.hasOwnProperty("params")?s.params:f,u){o[u];return a({_normalized:!0,name:u,query:h,hash:d,params:f},void 0,n)}if(c){var A=function(e,t){return x(e,t.parent?t.parent.path:"/",!0)}(c,e);return a({_normalized:!0,path:j(A,f),query:h,hash:d},void 0,n)}return l(null,n)}function l(e,n,i){return e&&e.redirect?s(e,i||n):e&&e.matchAs?function(e,t,n){var i=a({_normalized:!0,path:j(n,t.params)});if(i){var r=i.matched,o=r[r.length-1];return t.params=i.params,l(o,t)}return l(null,t)}(0,n,e.matchAs):p(e,n,i,t)}return{match:a,addRoute:function(e,t){var n="object"!=typeof e?o[e]:void 0;J([t||e],i,r,o,n),n&&n.alias.length&&J(n.alias.map(function(e){return{path:e,children:[t]}}),i,r,o,n)},getRoutes:function(){return i.map(function(e){return r[e]})},addRoutes:function(e){J(e,i,r,o)}}}function ee(e,t,n){var i=t.match(e);if(!i)return!1;if(!n)return!0;for(var r=1,o=i.length;r<o;++r){var a=e.keys[r-1];a&&(n[a.name||"pathMatch"]="string"==typeof i[r]?u(i[r]):i[r])}return!0}var te=X&&window.performance&&window.performance.now?window.performance:Date;function ne(){return te.now().toFixed(3)}var ie=ne();function re(){return ie}function oe(e){return ie=e}var ae=Object.create(null);function se(){"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=re(),window.history.replaceState(n,"",t),window.addEventListener("popstate",ce),function(){window.removeEventListener("popstate",ce)}}function le(e,t,n,i){if(e.app){var r=e.options.scrollBehavior;r&&e.app.$nextTick(function(){var o=function(){var e=re();if(e)return ae[e]}(),a=r.call(e,t,n,i?o:null);a&&("function"==typeof a.then?a.then(function(e){Ae(e,o)}).catch(function(e){0}):Ae(a,o))})}}function ue(){var e=re();e&&(ae[e]={x:window.pageXOffset,y:window.pageYOffset})}function ce(e){ue(),e.state&&e.state.key&&oe(e.state.key)}function he(e){return fe(e.x)||fe(e.y)}function de(e){return{x:fe(e.x)?e.x:window.pageXOffset,y:fe(e.y)?e.y:window.pageYOffset}}function fe(e){return"number"==typeof e}var pe=/^#\d/;function Ae(e,t){var n,i="object"==typeof e;if(i&&"string"==typeof e.selector){var r=pe.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(r){var o=e.offset&&"object"==typeof e.offset?e.offset:{};t=function(e,t){var n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-n.left-t.x,y:i.top-n.top-t.y}}(r,o={x:fe((n=o).x)?n.x:0,y:fe(n.y)?n.y:0})}else he(e)&&(t=de(e))}else i&&he(e)&&(t=de(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 ge,ve=X&&((-1===(ge=window.navigator.userAgent).indexOf("Android 2.")&&-1===ge.indexOf("Android 4.0")||-1===ge.indexOf("Mobile Safari")||-1!==ge.indexOf("Chrome")||-1!==ge.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function me(e,t){ue();var n=window.history;try{if(t){var i=r({},n.state);i.key=re(),n.replaceState(i,"",e)}else n.pushState({key:oe(ne())},"",e)}catch(n){window.location[t?"replace":"assign"](e)}}function ye(e){me(e,!0)}function _e(e,t,n){var i=function(r){r>=e.length?n():e[r]?t(e[r],function(){i(r+1)}):i(r+1)};i(0)}var be={redirected:2,aborted:4,cancelled:8,duplicated:16};function we(e,t){return Ce(e,t,be.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 Se.forEach(function(n){n in e&&(t[n]=e[n])}),JSON.stringify(t,null,2)}(t)+'" via a navigation guard.')}function xe(e,t){return Ce(e,t,be.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Ce(e,t,n,i){var r=new Error(i);return r._isRouter=!0,r.from=e,r.to=t,r.type=n,r}var Se=["params","query","hash"];function ke(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Be(e,t){return ke(e)&&e._isRouter&&(null==t||e.type===t)}function Te(e){return function(t,n,i){var r=!1,o=0,a=null;Ee(e,function(e,t,n,s){if("function"==typeof e&&void 0===e.cid){r=!0,o++;var l,u=De(function(t){var r;((r=t).__esModule||Me&&"Module"===r[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:z.extend(t),n.components[s]=t,--o<=0&&i()}),c=De(function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=ke(e)?e:new Error(t),i(a))});try{l=e(u,c)}catch(e){c(e)}if(l)if("function"==typeof l.then)l.then(u,c);else{var h=l.component;h&&"function"==typeof h.then&&h.then(u,c)}}}),r||i()}}function Ee(e,t){return Ie(e.map(function(e){return Object.keys(e.components).map(function(n){return t(e.components[n],e.instances[n],e,n)})}))}function Ie(e){return Array.prototype.concat.apply([],e)}var Me="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function De(e){var t=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!t)return t=!0,e.apply(this,n)}}var Pe=function(e,t){this.router=e,this.base=function(e){if(!e)if(X){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Fe(e,t,n,i){var r=Ee(e,function(e,i,r,o){var a=function(e,t){"function"!=typeof e&&(e=z.extend(e));return e.options[t]}(e,t);if(a)return Array.isArray(a)?a.map(function(e){return n(e,i,r,o)}):n(a,i,r,o)});return Ie(i?r.reverse():r)}function Oe(e,t){if(t)return function(){return e.apply(t,arguments)}}Pe.prototype.listen=function(e){this.cb=e},Pe.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Pe.prototype.onError=function(e){this.errorCbs.push(e)},Pe.prototype.transitionTo=function(e,t,n){var i,r=this;try{i=this.router.match(e,this.current)}catch(e){throw this.errorCbs.forEach(function(t){t(e)}),e}var o=this.current;this.confirmTransition(i,function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.router.afterHooks.forEach(function(e){e&&e(i,o)}),r.ready||(r.ready=!0,r.readyCbs.forEach(function(e){e(i)}))},function(e){n&&n(e),e&&!r.ready&&(Be(e,be.redirected)&&o===g||(r.ready=!0,r.readyErrorCbs.forEach(function(t){t(e)})))})},Pe.prototype.confirmTransition=function(e,t,n){var r=this,o=this.current;this.pending=e;var a,s,l=function(e){!Be(e)&&ke(e)&&(r.errorCbs.length?r.errorCbs.forEach(function(t){t(e)}):(i(),console.error(e))),n&&n(e)},u=e.matched.length-1,c=o.matched.length-1;if(m(e,o)&&u===c&&e.matched[u]===o.matched[c])return this.ensureURL(),l(((s=Ce(a=o,e,be.duplicated,'Avoided redundant navigation to current location: "'+a.fullPath+'".')).name="NavigationDuplicated",s));var h=function(e,t){var n,i=Math.max(e.length,t.length);for(n=0;n<i&&e[n]===t[n];n++);return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}(this.current.matched,e.matched),d=h.updated,f=h.deactivated,p=h.activated,A=function(t,n){if(r.pending!==e)return l(xe(o,e));try{t(e,o,function(t){!1===t?(r.ensureURL(!0),l(function(e,t){return Ce(e,t,be.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}(o,e))):ke(t)?(r.ensureURL(!0),l(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(l(we(o,e)),"object"==typeof t&&t.replace?r.replace(t):r.push(t)):n(t)})}catch(e){l(e)}};_e([].concat(function(e){return Fe(e,"beforeRouteLeave",Oe,!0)}(f),this.router.beforeHooks,function(e){return Fe(e,"beforeRouteUpdate",Oe)}(d),p.map(function(e){return e.beforeEnter}),Te(p)),A,function(){_e(function(e){return Fe(e,"beforeRouteEnter",function(e,t,n,i){return function(e,t,n){return function(i,r,o){return e(i,r,function(e){"function"==typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),o(e)})}}(e,n,i)})}(p).concat(r.router.resolveHooks),A,function(){if(r.pending!==e)return l(xe(o,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick(function(){_(e)})})})},Pe.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},Pe.prototype.setupListeners=function(){},Pe.prototype.teardown=function(){this.listeners.forEach(function(e){e()}),this.listeners=[],this.current=g,this.pending=null};var Le=function(e){function t(t,n){e.call(this,t,n),this._startLocation=Ne(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,i=ve&&n;i&&this.listeners.push(se());var r=function(){var n=e.current,r=Ne(e.base);e.current===g&&r===e._startLocation||e.transitionTo(r,function(e){i&&le(t,e,n,!0)})};window.addEventListener("popstate",r),this.listeners.push(function(){window.removeEventListener("popstate",r)})}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var i=this,r=this.current;this.transitionTo(e,function(e){me(C(i.base+e.fullPath)),le(i.router,e,r,!1),t&&t(e)},n)},t.prototype.replace=function(e,t,n){var i=this,r=this.current;this.transitionTo(e,function(e){ye(C(i.base+e.fullPath)),le(i.router,e,r,!1),t&&t(e)},n)},t.prototype.ensureURL=function(e){if(Ne(this.base)!==this.current.fullPath){var t=C(this.base+this.current.fullPath);e?me(t):ye(t)}},t.prototype.getCurrentLocation=function(){return Ne(this.base)},t}(Pe);function Ne(e){var t=window.location.pathname,n=t.toLowerCase(),i=e.toLowerCase();return!e||n!==i&&0!==n.indexOf(C(i+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Re=function(e){function t(t,n,i){e.call(this,t,n),i&&function(e){var t=Ne(e);if(!/^\/#/.test(t))return window.location.replace(C(e+"/#"+t)),!0}(this.base)||Ue()}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=ve&&t;n&&this.listeners.push(se());var i=function(){var t=e.current;Ue()&&e.transitionTo(Qe(),function(i){n&&le(e.router,i,t,!0),ve||Ve(i.fullPath)})},r=ve?"popstate":"hashchange";window.addEventListener(r,i),this.listeners.push(function(){window.removeEventListener(r,i)})}},t.prototype.push=function(e,t,n){var i=this,r=this.current;this.transitionTo(e,function(e){je(e.fullPath),le(i.router,e,r,!1),t&&t(e)},n)},t.prototype.replace=function(e,t,n){var i=this,r=this.current;this.transitionTo(e,function(e){Ve(e.fullPath),le(i.router,e,r,!1),t&&t(e)},n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;Qe()!==t&&(e?je(t):Ve(t))},t.prototype.getCurrentLocation=function(){return Qe()},t}(Pe);function Ue(){var e=Qe();return"/"===e.charAt(0)||(Ve("/"+e),!1)}function Qe(){var e=window.location.href,t=e.indexOf("#");return t<0?"":e=e.slice(t+1)}function He(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function je(e){ve?me(He(e)):window.location.hash=e}function Ve(e){ve?ye(He(e)):window.location.replace(He(e))}var ze=function(e){function t(t,n){e.call(this,t,n),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 i=this;this.transitionTo(e,function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)},n)},t.prototype.replace=function(e,t,n){var i=this;this.transitionTo(e,function(e){i.stack=i.stack.slice(0,i.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 i=this.stack[n];this.confirmTransition(i,function(){var e=t.current;t.index=n,t.updateRoute(i),t.router.afterHooks.forEach(function(t){t&&t(i,e)})},function(e){Be(e,be.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}(Pe),$e=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Z(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!ve&&!1!==e.fallback,this.fallback&&(t="hash"),X||(t="abstract"),this.mode=t,t){case"history":this.history=new Le(this,e.base);break;case"hash":this.history=new Re(this,e.base,this.fallback);break;case"abstract":this.history=new ze(this,e.base);break;default:0}},Ge={currentRoute:{configurable:!0}};function We(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}$e.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Ge.currentRoute.get=function(){return this.history&&this.history.current},$e.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 Le||n instanceof Re){var i=function(e){n.setupListeners(),function(e){var i=n.current,r=t.options.scrollBehavior;ve&&r&&"fullPath"in e&&le(t,e,i,!1)}(e)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen(function(e){t.apps.forEach(function(t){t._route=e})})}},$e.prototype.beforeEach=function(e){return We(this.beforeHooks,e)},$e.prototype.beforeResolve=function(e){return We(this.resolveHooks,e)},$e.prototype.afterEach=function(e){return We(this.afterHooks,e)},$e.prototype.onReady=function(e,t){this.history.onReady(e,t)},$e.prototype.onError=function(e){this.history.onError(e)},$e.prototype.push=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise(function(t,n){i.history.push(e,t,n)});this.history.push(e,t,n)},$e.prototype.replace=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise(function(t,n){i.history.replace(e,t,n)});this.history.replace(e,t,n)},$e.prototype.go=function(e){this.history.go(e)},$e.prototype.back=function(){this.go(-1)},$e.prototype.forward=function(){this.go(1)},$e.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]})})):[]},$e.prototype.resolve=function(e,t,n){var i=V(e,t=t||this.history.current,n,this),r=this.match(i,t),o=r.redirectedFrom||r.fullPath;return{location:i,route:r,href:function(e,t,n){var i="hash"===n?"#"+t:t;return e?C(e+"/"+i):i}(this.history.base,o,this.mode),normalizedTo:i,resolved:r}},$e.prototype.getRoutes=function(){return this.matcher.getRoutes()},$e.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},$e.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties($e.prototype,Ge),$e.install=q,$e.version="3.5.2",$e.isNavigationFailure=Be,$e.NavigationFailureType=be,$e.START_LOCATION=g,X&&window.Vue&&window.Vue.use($e),t.a=$e},"02w1":function(e,t,n){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var i,r=n("z+gd"),o=(i=r)&&i.__esModule?i:{default:i};var a="undefined"==typeof window,s=function(e){var t=e,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var o=r.target.__resizeListeners__||[];o.length&&o.forEach(function(e){e()})}};t.addResizeListener=function(e,t){a||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new o.default(s),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},"06OY":function(e,t,n){var i=n("3Eo+")("meta"),r=n("EqjI"),o=n("D2L2"),a=n("evD5").f,s=0,l=Object.isExtensible||function(){return!0},u=!n("S82l")(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},h=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,i)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[i].i},getWeak:function(e,t){if(!o(e,i)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[i].w},onFreeze:function(e){return u&&h.NEED&&l(e)&&!o(e,i)&&c(e),e}}},"0kY3":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=104)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},10:function(e,t){e.exports=n("HJMx")},104:function(e,t,n){"use strict";n.r(t);var i=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")?e.decrease(t):null}}},[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")?e.increase(t):null}}},[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"])?(t.preventDefault(),e.increase(t)):null},function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?(t.preventDefault(),e.decrease(t)):null}]}})],1)};i._withStripped=!0;var r=n(10),o=n.n(r),a=n(22),s=n.n(a),l=n(30),u={name:"ElInputNumber",mixins:[s()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:l.a},components:{ElInput:o.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),i=Math.pow(10,n);t=Math.round(t/this.step)*i*this.step/i}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,i=this.precision,r=n(t);return void 0!==i?(r>i&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),i):Math.max(n(e),r)},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("."),i=0;return-1!==n&&(i=t.length-n-1),i},_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)}},c=n(0),h=Object(c.a)(u,i,[],!1,null,null,null);h.options.__file="packages/input-number/src/input-number.vue";var d=h.exports;d.install=function(e){e.component(d.name,d)};t.default=d},2:function(e,t){e.exports=n("2kvA")},22:function(e,t){e.exports=n("1oZe")},30:function(e,t,n){"use strict";var i=n(2);t.a={bind:function(e,t,n){var r=null,o=void 0,a=function(){return n.context[t.expression].apply()},s=function(){Date.now()-o<100&&a(),clearInterval(r),r=null};Object(i.on)(e,"mousedown",function(e){0===e.button&&(o=Date.now(),Object(i.once)(document,"mouseup",s),clearInterval(r),r=setInterval(a,100))})}}}})},"1Xk4":function(e,t,n){"use strict";var i=n("awF4"),r=n("Rl2i"),o=n("sD9O"),a=n("q+vg");function s(e,t,n){var i=e;return r(t)?(n=t,"string"==typeof e&&(i={uri:e})):i=a(t,{uri:e}),i.callback=n,i}function l(e,t,n){return u(t=s(e,t,n))}function u(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function i(e){return clearTimeout(c),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,v)}function r(){if(!s){var t;clearTimeout(c),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var i=v,r=null;return 0!==t?(i={body:function(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||t?null:e.responseXML}(u),g)try{e=JSON.parse(e)}catch(e){}return e}(),statusCode:t,method:d,headers:{},url:h,rawRequest:u},u.getAllResponseHeaders&&(i.headers=o(u.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),n(r,i,i.body)}}var a,s,u=e.xhr||null;u||(u=e.cors||e.useXDR?new l.XDomainRequest:new l.XMLHttpRequest);var c,h=u.url=e.uri||e.url,d=u.method=e.method||"GET",f=e.body||e.data,p=u.headers=e.headers||{},A=!!e.sync,g=!1,v={body:void 0,headers:{},statusCode:0,method:d,url:h,rawRequest:u};if("json"in e&&!1!==e.json&&(g=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),f=JSON.stringify(!0===e.json?f:e.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(r,0)},u.onload=r,u.onerror=i,u.onprogress=function(){},u.onabort=function(){s=!0},u.ontimeout=i,u.open(d,h,!A,e.username,e.password),A||(u.withCredentials=!!e.withCredentials),!A&&e.timeout>0&&(c=setTimeout(function(){if(!s){s=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",i(e)}},e.timeout)),u.setRequestHeader)for(a in p)p.hasOwnProperty(a)&&u.setRequestHeader(a,p[a]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(f||null),u}e.exports=l,l.XMLHttpRequest=i.XMLHttpRequest||function(){},l.XDomainRequest="withCredentials"in new l.XMLHttpRequest?l.XMLHttpRequest:i.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){l["delete"===e?"del":e]=function(t,n,i){return(n=s(t,n,i)).method=e.toUpperCase(),u(n)}})},"1kS7":function(e,t){t.f=Object.getOwnPropertySymbols},"1oZe":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},"21It":function(e,t,n){"use strict";var i=n("FtD3");e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"2KxR":function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},"2kvA":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 i="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=p,t.addClass=function(e,t){if(!e)return;for(var n=e.className,i=(t||"").split(" "),r=0,o=i.length;r<o;r++){var a=i[r];a&&(e.classList?e.classList.add(a):p(e,a)||(n+=" "+a))}e.classList||e.setAttribute("class",n)},t.removeClass=function(e,t){if(!e||!t)return;for(var n=t.split(" "),i=" "+e.className+" ",r=0,o=n.length;r<o;r++){var a=n[r];a&&(e.classList?e.classList.remove(a):p(e,a)&&(i=i.replace(" "+a+" "," ")))}e.classList||e.setAttribute("class",c(i))},t.setStyle=function e(t,n,r){if(!t||!n)return;if("object"===(void 0===n?"undefined":i(n)))for(var o in n)n.hasOwnProperty(o)&&e(t,o,n[o]);else"opacity"===(n=h(n))&&u<9?t.style.filter=isNaN(r)?"":"alpha(opacity="+100*r+")":t.style[n]=r};var r,o=n("7+uW");var a=((r=o)&&r.__esModule?r:{default:r}).default.prototype.$isServer,s=/([\:\-\_]+(.))/g,l=/^moz([A-Z])/,u=a?0:Number(document.documentMode),c=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},h=function(e){return e.replace(s,function(e,t,n,i){return i?n.toUpperCase():n}).replace(l,"Moz$1")},d=t.on=!a&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)},f=t.off=!a&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)};t.once=function(e,t,n){d(e,t,function i(){n&&n.apply(this,arguments),f(e,t,i)})};function p(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 A=t.getStyle=u<9?function(e,t){if(!a){if(!e||!t)return null;"float"===(t=h(t))&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(e){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!a){if(!e||!t)return null;"float"===(t=h(t))&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(n){return e.style[t]}}};var g=t.isScroll=function(e,t){if(!a)return A(e,null!==t&&void 0!==t?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)};t.getScrollContainer=function(e,t){if(!a){for(var n=e;n;){if([window,document,document.documentElement].includes(n))return window;if(g(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(a||!e||!t)return!1;var n=e.getBoundingClientRect(),i=void 0;return i=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<i.bottom&&n.bottom>i.top&&n.right>i.left&&n.left<i.right}},"3Eo+":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},"3a40":function(e,t){!function(e){"use strict";var t=e.jsMind;if(t&&void 0===t.screenshot){var n=e.document,i=function(e){return n.createElement(e)},r=function(e,t){return e.getPropertyValue(t)},o=function(e){var t=r(e,"visibility"),n=r(e,"display");return"hidden"!==t&&"none"!==n},a={rect:function(e,t,n,i,r,o){i<2*o&&(o=i/2),r<2*o&&(o=r/2),e.moveTo(t+o,n),e.arcTo(t+i,n,t+i,n+r,o),e.arcTo(t+i,n+r,t,n+r,o),e.arcTo(t,n+r,t,n,o),e.arcTo(t,n,t+i,n,o)},text_multiline:function(e,t,n,i,r,o,a){var s="",l=t.length,u=t.split(""),c=null;e.textAlign="left",e.textBaseline="top";for(var h=0;h<l;h++)c=s+u[h],e.measureText(c).width>r&&h>0?(e.fillText(s,n,i),s=u[h],i+=a):s=c;e.fillText(s,n,i)},text_ellipsis:function(e,t,n,i,r,o){var s=i+o/2;t=a.fittingString(e,t,r);e.textAlign="left",e.textBaseline="middle",e.fillText(t,n,s,r)},fittingString:function(e,t,n){var i=e.measureText(t).width,r=e.measureText("…").width;if(i<=n||i<=r)return t;for(var o=t.length;i>=n-r&&o-- >0;)t=t.substring(0,o),i=e.measureText(t).width;return t+"…"},image:function(e,t,n,i,r,o,s,l,u){var c=new Image;c.onload=function(){e.save(),e.translate(n,i),e.save(),e.beginPath(),a.rect(e,0,0,r,o,s),e.closePath(),e.clip(),e.translate(r/2,o/2),e.rotate(l*Math.PI/180),e.drawImage(c,-r/2,-o/2),e.restore(),e.restore(),u&&u()},c.src=t}};t.screenshot=function(e){this.jm=e,this.canvas_elem=null,this.canvas_ctx=null,this._inited=!1},t.screenshot.prototype={init:function(){if(!this._inited){console.log("init");var e=i("canvas"),t=e.getContext("2d");this.canvas_elem=e,this.canvas_ctx=t,this.jm.view.e_panel.appendChild(e),this._inited=!0,this.resize()}},shoot:function(e){this.init(),this._draw(function(){e&&e(),this.clean()}.bind(this)),this._watermark()},shootDownload:function(){this.shoot(function(){this._download()}.bind(this))},shootAsDataURL:function(e){this.shoot(function(){e&&e(this.canvas_elem.toDataURL())}.bind(this))},resize:function(){this._inited&&(this.canvas_elem.width=this.jm.view.size.w,this.canvas_elem.height=this.jm.view.size.h)},clean:function(){var e=this.canvas_elem;this.canvas_ctx.clearRect(0,0,e.width,e.height)},_draw:function(e){var t=this.canvas_ctx;t.textAlign="left",t.textBaseline="top",this._draw_lines(function(){this._draw_nodes(e)}.bind(this))},_watermark:function(){var t=this.canvas_elem,n=this.canvas_ctx;n.textAlign="right",n.textBaseline="bottom",n.fillStyle="#000",n.font="11px Verdana,Arial,Helvetica,sans-serif",n.fillText("hizzgdev.github.io/jsmind",t.width-5.5,t.height-2.5),n.textAlign="left",n.fillText(e.location,5.5,t.height-2.5)},_draw_lines:function(e){this.jm.view.graph.copy_to(this.canvas_ctx,e)},_draw_nodes:function(t){var n,i=this.jm.mind.nodes;for(var r in i)n=i[r],this._draw_node(n);!function r(){console.log("check_node_ready"+new Date);var o=!0;for(var a in i)o&=(n=i[a]).ready;o?e.setTimeout(t,200):e.setTimeout(r,200)}()},_draw_node:function(e){var t=this.canvas_ctx,n=e._data.view,i=n.element,s=getComputedStyle(i);if(o(s)){var l=r(s,"background-color"),u=parseInt(r(s,"border-top-left-radius")),c=r(s,"color"),h=parseInt(r(s,"padding-left")),d=parseInt(r(s,"padding-right")),f=parseInt(r(s,"padding-top")),p=parseInt(r(s,"padding-bottom")),A=r(s,"text-overflow"),g=r(s,"font-style")+" "+r(s,"font-variant")+" "+r(s,"font-weight")+" "+r(s,"font-size")+"/"+r(s,"line-height")+" "+r(s,"font-family"),v={x:n.abs_x,y:n.abs_y,w:n.width+1,h:n.height+1},m={x:v.x+h,y:v.y+f,w:v.w-h-d,h:v.h-f-p};if(t.font=g,t.fillStyle=l,t.beginPath(),a.rect(t,v.x,v.y,v.w,v.h,u),t.closePath(),t.fill(),t.fillStyle=c,"background-image"in e.data){var y=r(s,"background-image").slice(5,-2);e.ready=!1;var _=0;"background-rotation"in e.data&&(_=e.data["background-rotation"]),a.image(t,y,v.x,v.y,v.w,v.h,u,_,function(){e.ready=!0})}if(e.topic)if("ellipsis"===A)a.text_ellipsis(t,e.topic,m.x,m.y,m.w,m.h);else{var b=parseInt(r(s,"line-height"));a.text_multiline(t,e.topic,m.x,m.y,m.w,m.h,b)}n.expander&&this._draw_expander(n.expander),"background-image"in e.data||(e.ready=!0)}else e.ready=!0},_draw_expander:function(e){var t=this.canvas_ctx,n=getComputedStyle(e);if(o(n)){var i=r(n,"left"),a=r(n,"top"),s=(r(n,"font"),parseInt(i)),l=parseInt(a),u="+"===e.innerHTML;t.lineWidth=1,t.beginPath(),t.arc(s+7,l+7,5,0,2*Math.PI,!0),t.moveTo(s+10,l+7),t.lineTo(s+4,l+7),u&&(t.moveTo(s+7,l+4),t.lineTo(s+7,l+10)),t.closePath(),t.stroke()}},_download:function(){var e=this.canvas_elem,t=this.jm.mind.name+".png";if(navigator.msSaveBlob&&e.msToBlob){var r=e.msToBlob();navigator.msSaveBlob(r,t)}else{var o=this.canvas_elem.toDataURL(),a=i("a");if("download"in a){a.style.visibility="hidden",a.href=o,a.download=t,n.body.appendChild(a);var s=n.createEvent("MouseEvents");s.initEvent("click",!0,!0),a.dispatchEvent(s),n.body.removeChild(a)}else location.href=o}},jm_event_handle:function(e,n){e===t.event_type.resize&&this.resize()}};var s=new t.plugin("screenshot",function(e){var n=new t.screenshot(e);e.screenshot=n,e.shoot=function(){n.shoot()},e.add_event_listener(function(e,t){n.jm_event_handle.call(n,e,t)})});t.register_plugin(s)}}(window)},"3fo+":function(e,t,n){e.exports=n("YAhB")},"3fs2":function(e,t,n){var i=n("RY/4"),r=n("dSzd")("iterator"),o=n("/bQp");e.exports=n("FeBl").getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||o[i(e)]}},"4mcu":function(e,t){e.exports=function(){}},"52gC":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"5PlU":function(e,t,n){var i=n("RY/4"),r=n("dSzd")("iterator"),o=n("/bQp");e.exports=n("FeBl").isIterable=function(e){var t=Object(e);return void 0!==t[r]||"@@iterator"in t||o.hasOwnProperty(i(t))}},"5QVw":function(e,t,n){e.exports={default:n("BwfY"),__esModule:!0}},"5VQ+":function(e,t,n){"use strict";var i=n("cGG2");e.exports=function(e,t){i.forEach(e,function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])})}},"6Twh":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){if(o.default.prototype.$isServer)return 0;if(void 0!==a)return a;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 i=n.offsetWidth;return e.parentNode.removeChild(e),a=t-i};var i,r=n("7+uW"),o=(i=r)&&i.__esModule?i:{default:i};var a=void 0},"7+uW":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){
  7. /*!
  8. * Vue.js v2.6.14
  9. * (c) 2014-2021 Evan You
  10. * Released under the MIT License.
  11. */
  12. var n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}var l=Object.prototype.toString;function u(e){return"[object Object]"===l.call(e)}function c(e){return"[object RegExp]"===l.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return r(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function A(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var g=A("slot,component",!0),v=A("key,ref,slot,slot-scope,is");function m(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function _(e,t){return y.call(e,t)}function b(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var w=/-(\w)/g,x=b(function(e){return e.replace(w,function(e,t){return t?t.toUpperCase():""})}),C=b(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),S=/\B([A-Z])/g,k=b(function(e){return e.replace(S,"-$1").toLowerCase()});var B=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function T(e,t){t=t||0;for(var n=e.length-t,i=new Array(n);n--;)i[n]=e[n+t];return i}function E(e,t){for(var n in t)e[n]=t[n];return e}function I(e){for(var t={},n=0;n<e.length;n++)e[n]&&E(t,e[n]);return t}function M(e,t,n){}var D=function(e,t,n){return!1},P=function(e){return e};function F(e,t){if(e===t)return!0;var n=s(e),i=s(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var r=Array.isArray(e),o=Array.isArray(t);if(r&&o)return e.length===t.length&&e.every(function(e,n){return F(e,t[n])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||o)return!1;var a=Object.keys(e),l=Object.keys(t);return a.length===l.length&&a.every(function(n){return F(e[n],t[n])})}catch(e){return!1}}function O(e,t){for(var n=0;n<e.length;n++)if(F(e[n],t))return n;return-1}function L(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var N="data-server-rendered",R=["component","directive","filter"],U=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],Q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:D,isReservedAttr:D,isUnknownElement:D,getTagNamespace:M,parsePlatformTagName:P,mustUseProp:D,async:!0,_lifecycleHooks:U},H=/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 j(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function V(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var z=new RegExp("[^"+H.source+".$_\\d]");var $,G="__proto__"in{},W="undefined"!=typeof window,K="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Y=K&&WXEnvironment.platform.toLowerCase(),q=W&&window.navigator.userAgent.toLowerCase(),X=q&&/msie|trident/.test(q),J=q&&q.indexOf("msie 9.0")>0,Z=q&&q.indexOf("edge/")>0,ee=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===Y),te=(q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q),q&&q.match(/firefox\/(\d+)/)),ne={}.watch,ie=!1;if(W)try{var re={};Object.defineProperty(re,"passive",{get:function(){ie=!0}}),window.addEventListener("test-passive",null,re)}catch(e){}var oe=function(){return void 0===$&&($=!W&&!K&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),$},ae=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}var le,ue="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);le="undefined"!=typeof Set&&se(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 ce=M,he=0,de=function(){this.id=he++,this.subs=[]};de.prototype.addSub=function(e){this.subs.push(e)},de.prototype.removeSub=function(e){m(this.subs,e)},de.prototype.depend=function(){de.target&&de.target.addDep(this)},de.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},de.target=null;var fe=[];function pe(e){fe.push(e),de.target=e}function Ae(){fe.pop(),de.target=fe[fe.length-1]}var ge=function(e,t,n,i,r,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,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=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ve={child:{configurable:!0}};ve.child.get=function(){return this.componentInstance},Object.defineProperties(ge.prototype,ve);var me=function(e){void 0===e&&(e="");var t=new ge;return t.text=e,t.isComment=!0,t};function ye(e){return new ge(void 0,void 0,void 0,String(e))}function _e(e){var t=new ge(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 be=Array.prototype,we=Object.create(be);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=be[e];V(we,e,function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];var r,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&a.observeArray(r),a.dep.notify(),o})});var xe=Object.getOwnPropertyNames(we),Ce=!0;function Se(e){Ce=e}var ke=function(e){var t;this.value=e,this.dep=new de,this.vmCount=0,V(e,"__ob__",this),Array.isArray(e)?(G?(t=we,e.__proto__=t):function(e,t,n){for(var i=0,r=n.length;i<r;i++){var o=n[i];V(e,o,t[o])}}(e,we,xe),this.observeArray(e)):this.walk(e)};function Be(e,t){var n;if(s(e)&&!(e instanceof ge))return _(e,"__ob__")&&e.__ob__ instanceof ke?n=e.__ob__:Ce&&!oe()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new ke(e)),t&&n&&n.vmCount++,n}function Te(e,t,n,i,r){var o=new de,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,l=a&&a.set;s&&!l||2!==arguments.length||(n=e[t]);var u=!r&&Be(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return de.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&function e(t){for(var n=void 0,i=0,r=t.length;i<r;i++)(n=t[i])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(t))),t},set:function(t){var i=s?s.call(e):n;t===i||t!=t&&i!=i||s&&!l||(l?l.call(e,t):n=t,u=!r&&Be(t),o.notify())}})}}function Ee(e,t,n){if(Array.isArray(e)&&h(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?n:i?(Te(i.value,t,n),i.dep.notify(),n):(e[t]=n,n)}function Ie(e,t){if(Array.isArray(e)&&h(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||_(e,t)&&(delete e[t],n&&n.dep.notify())}}ke.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Te(e,t[n])},ke.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Be(e[t])};var Me=Q.optionMergeStrategies;function De(e,t){if(!t)return e;for(var n,i,r,o=ue?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(i=e[n],r=t[n],_(e,n)?i!==r&&u(i)&&u(r)&&De(i,r):Ee(e,n,r));return e}function Pe(e,t,n){return n?function(){var i="function"==typeof t?t.call(n,n):t,r="function"==typeof e?e.call(n,n):e;return i?De(i,r):r}:t?e?function(){return De("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Fe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Oe(e,t,n,i){var r=Object.create(e||null);return t?E(r,t):r}Me.data=function(e,t,n){return n?Pe(e,t,n):t&&"function"!=typeof t?e:Pe(e,t)},U.forEach(function(e){Me[e]=Fe}),R.forEach(function(e){Me[e+"s"]=Oe}),Me.watch=function(e,t,n,i){if(e===ne&&(e=void 0),t===ne&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var r={};for(var o in E(r,e),t){var a=r[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),r[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return r},Me.props=Me.methods=Me.inject=Me.computed=function(e,t,n,i){if(!e)return t;var r=Object.create(null);return E(r,e),t&&E(r,t),r},Me.provide=Pe;var Le=function(e,t){return void 0===t?e:t};function Ne(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var i,r,o={};if(Array.isArray(n))for(i=n.length;i--;)"string"==typeof(r=n[i])&&(o[x(r)]={type:null});else if(u(n))for(var a in n)r=n[a],o[x(a)]=u(r)?r:{type:r};e.props=o}}(t),function(e,t){var n=e.inject;if(n){var i=e.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(u(n))for(var o in n){var a=n[o];i[o]=u(a)?E({from:o},a):{from:a}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var i=t[n];"function"==typeof i&&(t[n]={bind:i,update:i})}}(t),!t._base&&(t.extends&&(e=Ne(e,t.extends,n)),t.mixins))for(var i=0,r=t.mixins.length;i<r;i++)e=Ne(e,t.mixins[i],n);var o,a={};for(o in e)s(o);for(o in t)_(e,o)||s(o);function s(i){var r=Me[i]||Le;a[i]=r(e[i],t[i],n,i)}return a}function Re(e,t,n,i){if("string"==typeof n){var r=e[t];if(_(r,n))return r[n];var o=x(n);if(_(r,o))return r[o];var a=C(o);return _(r,a)?r[a]:r[n]||r[o]||r[a]}}function Ue(e,t,n,i){var r=t[e],o=!_(n,e),a=n[e],s=Ve(Boolean,r.type);if(s>-1)if(o&&!_(r,"default"))a=!1;else if(""===a||a===k(e)){var l=Ve(String,r.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!_(t,"default"))return;var i=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof i&&"Function"!==He(t.type)?i.call(e):i}(i,r,e);var u=Ce;Se(!0),Be(a),Se(u)}return a}var Qe=/^\s*function (\w+)/;function He(e){var t=e&&e.toString().match(Qe);return t?t[1]:""}function je(e,t){return He(e)===He(t)}function Ve(e,t){if(!Array.isArray(t))return je(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(je(t[n],e))return n;return-1}function ze(e,t,n){pe();try{if(t)for(var i=t;i=i.$parent;){var r=i.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{if(!1===r[o].call(i,e,t,n))return}catch(e){Ge(e,i,"errorCaptured hook")}}Ge(e,t,n)}finally{Ae()}}function $e(e,t,n,i,r){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&d(o)&&!o._handled&&(o.catch(function(e){return ze(e,i,r+" (Promise/async)")}),o._handled=!0)}catch(e){ze(e,i,r)}return o}function Ge(e,t,n){if(Q.errorHandler)try{return Q.errorHandler.call(null,e,t,n)}catch(t){t!==e&&We(t,null,"config.errorHandler")}We(e,t,n)}function We(e,t,n){if(!W&&!K||"undefined"==typeof console)throw e;console.error(e)}var Ke,Ye=!1,qe=[],Xe=!1;function Je(){Xe=!1;var e=qe.slice(0);qe.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&se(Promise)){var Ze=Promise.resolve();Ke=function(){Ze.then(Je),ee&&setTimeout(M)},Ye=!0}else if(X||"undefined"==typeof MutationObserver||!se(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ke="undefined"!=typeof setImmediate&&se(setImmediate)?function(){setImmediate(Je)}:function(){setTimeout(Je,0)};else{var et=1,tt=new MutationObserver(Je),nt=document.createTextNode(String(et));tt.observe(nt,{characterData:!0}),Ke=function(){et=(et+1)%2,nt.data=String(et)},Ye=!0}function it(e,t){var n;if(qe.push(function(){if(e)try{e.call(t)}catch(e){ze(e,t,"nextTick")}else n&&n(t)}),Xe||(Xe=!0,Ke()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var rt=new le;function ot(e){!function e(t,n){var i,r;var o=Array.isArray(t);if(!o&&!s(t)||Object.isFrozen(t)||t instanceof ge)return;if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(i=t.length;i--;)e(t[i],n);else for(r=Object.keys(t),i=r.length;i--;)e(t[r[i]],n)}(e,rt),rt.clear()}var at=b(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),i="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=i?e.slice(1):e,once:n,capture:i,passive:t}});function st(e,t){function n(){var e=arguments,i=n.fns;if(!Array.isArray(i))return $e(i,null,arguments,t,"v-on handler");for(var r=i.slice(),o=0;o<r.length;o++)$e(r[o],null,e,t,"v-on handler")}return n.fns=e,n}function lt(e,t,n,r,a,s){var l,u,c,h;for(l in e)u=e[l],c=t[l],h=at(l),i(u)||(i(c)?(i(u.fns)&&(u=e[l]=st(u,s)),o(h.once)&&(u=e[l]=a(h.name,u,h.capture)),n(h.name,u,h.capture,h.passive,h.params)):u!==c&&(c.fns=u,e[l]=c));for(l in t)i(e[l])&&r((h=at(l)).name,t[l],h.capture)}function ut(e,t,n){var a;e instanceof ge&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function l(){n.apply(this,arguments),m(a.fns,l)}i(s)?a=st([l]):r(s.fns)&&o(s.merged)?(a=s).fns.push(l):a=st([s,l]),a.merged=!0,e[t]=a}function ct(e,t,n,i,o){if(r(t)){if(_(t,n))return e[n]=t[n],o||delete t[n],!0;if(_(t,i))return e[n]=t[i],o||delete t[i],!0}return!1}function ht(e){return a(e)?[ye(e)]:Array.isArray(e)?function e(t,n){var s=[];var l,u,c,h;for(l=0;l<t.length;l++)i(u=t[l])||"boolean"==typeof u||(c=s.length-1,h=s[c],Array.isArray(u)?u.length>0&&(dt((u=e(u,(n||"")+"_"+l))[0])&&dt(h)&&(s[c]=ye(h.text+u[0].text),u.shift()),s.push.apply(s,u)):a(u)?dt(h)?s[c]=ye(h.text+u):""!==u&&s.push(ye(u)):dt(u)&&dt(h)?s[c]=ye(h.text+u.text):(o(t._isVList)&&r(u.tag)&&i(u.key)&&r(n)&&(u.key="__vlist"+n+"_"+l+"__"),s.push(u)));return s}(e):void 0}function dt(e){return r(e)&&r(e.text)&&!1===e.isComment}function ft(e,t){if(e){for(var n=Object.create(null),i=ue?Reflect.ownKeys(e):Object.keys(e),r=0;r<i.length;r++){var o=i[r];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&_(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var l=e[o].default;n[o]="function"==typeof l?l.call(t):l}else 0}}return n}}function pt(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var o=e[i],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var u in n)n[u].every(At)&&delete n[u];return n}function At(e){return e.isComment&&!e.asyncFactory||" "===e.text}function gt(e){return e.isComment&&e.asyncFactory}function vt(e,t,i){var r,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&i&&i!==n&&s===i.$key&&!o&&!i.$hasNormal)return i;for(var l in r={},e)e[l]&&"$"!==l[0]&&(r[l]=mt(t,l,e[l]))}else r={};for(var u in t)u in r||(r[u]=yt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=r),V(r,"$stable",a),V(r,"$key",s),V(r,"$hasNormal",o),r}function mt(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ht(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!gt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function yt(e,t){return function(){return e[t]}}function _t(e,t){var n,i,o,a,l;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),i=0,o=e.length;i<o;i++)n[i]=t(e[i],i);else if("number"==typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i);else if(s(e))if(ue&&e[Symbol.iterator]){n=[];for(var u=e[Symbol.iterator](),c=u.next();!c.done;)n.push(t(c.value,n.length)),c=u.next()}else for(a=Object.keys(e),n=new Array(a.length),i=0,o=a.length;i<o;i++)l=a[i],n[i]=t(e[l],l,i);return r(n)||(n=[]),n._isVList=!0,n}function bt(e,t,n,i){var r,o=this.$scopedSlots[e];o?(n=n||{},i&&(n=E(E({},i),n)),r=o(n)||("function"==typeof t?t():t)):r=this.$slots[e]||("function"==typeof t?t():t);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},r):r}function wt(e){return Re(this.$options,"filters",e)||P}function xt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Ct(e,t,n,i,r){var o=Q.keyCodes[t]||n;return r&&i&&!Q.keyCodes[t]?xt(r,i):o?xt(o,e):i?k(i)!==t:void 0===e}function St(e,t,n,i,r){if(n)if(s(n)){var o;Array.isArray(n)&&(n=I(n));var a=function(a){if("class"===a||"style"===a||v(a))o=e;else{var s=e.attrs&&e.attrs.type;o=i||Q.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=x(a),u=k(a);l in o||u in o||(o[a]=n[a],r&&((e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}))};for(var l in n)a(l)}else;return e}function kt(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t?i:(Tt(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),i)}function Bt(e,t,n){return Tt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Tt(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e[i]&&"string"!=typeof e[i]&&Et(e[i],t+"_"+i,n);else Et(e,t,n)}function Et(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function It(e,t){if(t)if(u(t)){var n=e.on=e.on?E({},e.on):{};for(var i in t){var r=n[i],o=t[i];n[i]=r?[].concat(r,o):o}}else;return e}function Mt(e,t,n,i){t=t||{$stable:!n};for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?Mt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return i&&(t.$key=i),t}function Dt(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"==typeof i&&i&&(e[t[n]]=t[n+1])}return e}function Pt(e,t){return"string"==typeof e?t+e:e}function Ft(e){e._o=Bt,e._n=p,e._s=f,e._l=_t,e._t=bt,e._q=F,e._i=O,e._m=kt,e._f=wt,e._k=Ct,e._b=St,e._v=ye,e._e=me,e._u=Mt,e._g=It,e._d=Dt,e._p=Pt}function Ot(e,t,i,r,a){var s,l=this,u=a.options;_(r,"_uid")?(s=Object.create(r))._original=r:(s=r,r=r._original);var c=o(u._compiled),h=!c;this.data=e,this.props=t,this.children=i,this.parent=r,this.listeners=e.on||n,this.injections=ft(u.inject,r),this.slots=function(){return l.$slots||vt(e.scopedSlots,l.$slots=pt(i,r)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return vt(e.scopedSlots,this.slots())}}),c&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=vt(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,i){var o=zt(s,e,t,n,i,h);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=r),o}:this._c=function(e,t,n,i){return zt(s,e,t,n,i,h)}}function Lt(e,t,n,i,r){var o=_e(e);return o.fnContext=n,o.fnOptions=i,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Nt(e,t){for(var n in t)e[x(n)]=t[n]}Ft(Ot.prototype);var Rt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Rt.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Zt)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var i=t.componentOptions;!function(e,t,i,r,o){0;var a=r.data.scopedSlots,s=e.$scopedSlots,l=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key),u=!!(o||e.$options._renderChildren||l);e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r);if(e.$options._renderChildren=o,e.$attrs=r.data.attrs||n,e.$listeners=i||n,t&&e.$options.props){Se(!1);for(var c=e._props,h=e.$options._propKeys||[],d=0;d<h.length;d++){var f=h[d],p=e.$options.props;c[f]=Ue(f,p,t,e)}Se(!0),e.$options.propsData=t}i=i||n;var A=e.$options._parentListeners;e.$options._parentListeners=i,Jt(e,i,A),u&&(e.$slots=pt(o,r.context),e.$forceUpdate());0}(t.componentInstance=e.componentInstance,i.propsData,i.listeners,t,i.children)},insert:function(e){var t,n=e.context,i=e.componentInstance;i._isMounted||(i._isMounted=!0,rn(i,"mounted")),e.data.keepAlive&&(n._isMounted?((t=i)._inactive=!1,an.push(t)):nn(i,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,tn(t)))return;if(!t._inactive){t._inactive=!0;for(var i=0;i<t.$children.length;i++)e(t.$children[i]);rn(t,"deactivated")}}(t,!0):t.$destroy())}},Ut=Object.keys(Rt);function Qt(e,t,a,l,u){if(!i(e)){var c=a.$options._base;if(s(e)&&(e=c.extend(e)),"function"==typeof e){var h;if(i(e.cid)&&void 0===(e=function(e,t){if(o(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;var n=Gt;n&&r(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(o(e.loading)&&r(e.loadingComp))return e.loadingComp;if(n&&!r(e.owners)){var a=e.owners=[n],l=!0,u=null,c=null;n.$on("hook:destroyed",function(){return m(a,n)});var h=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},f=L(function(n){e.resolved=Wt(n,t),l?a.length=0:h(!0)}),p=L(function(t){r(e.errorComp)&&(e.error=!0,h(!0))}),A=e(f,p);return s(A)&&(d(A)?i(e.resolved)&&A.then(f,p):d(A.component)&&(A.component.then(f,p),r(A.error)&&(e.errorComp=Wt(A.error,t)),r(A.loading)&&(e.loadingComp=Wt(A.loading,t),0===A.delay?e.loading=!0:u=setTimeout(function(){u=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,h(!1))},A.delay||200)),r(A.timeout)&&(c=setTimeout(function(){c=null,i(e.resolved)&&p(null)},A.timeout)))),l=!1,e.loading?e.loadingComp:e.resolved}}(h=e,c)))return function(e,t,n,i,r){var o=me();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:i,tag:r},o}(h,t,a,l,u);t=t||{},kn(e),r(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),a=o[i],s=t.model.callback;r(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[i]=[s].concat(a)):o[i]=s}(e.options,t);var f=function(e,t,n){var o=t.options.props;if(!i(o)){var a={},s=e.attrs,l=e.props;if(r(s)||r(l))for(var u in o){var c=k(u);ct(a,l,u,c,!0)||ct(a,s,u,c,!1)}return a}}(t,e);if(o(e.options.functional))return function(e,t,i,o,a){var s=e.options,l={},u=s.props;if(r(u))for(var c in u)l[c]=Ue(c,u,t||n);else r(i.attrs)&&Nt(l,i.attrs),r(i.props)&&Nt(l,i.props);var h=new Ot(i,l,a,o,e),d=s.render.call(null,h._c,h);if(d instanceof ge)return Lt(d,i,h.parent,s);if(Array.isArray(d)){for(var f=ht(d)||[],p=new Array(f.length),A=0;A<f.length;A++)p[A]=Lt(f[A],i,h.parent,s);return p}}(e,f,t,a,l);var p=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var A=t.slot;t={},A&&(t.slot=A)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Ut.length;n++){var i=Ut[n],r=t[i],o=Rt[i];r===o||r&&r._merged||(t[i]=r?Ht(o,r):o)}}(t);var g=e.options.name||u;return new ge("vue-component-"+e.cid+(g?"-"+g:""),t,void 0,void 0,void 0,a,{Ctor:e,propsData:f,listeners:p,tag:u,children:l},h)}}}function Ht(e,t){var n=function(n,i){e(n,i),t(n,i)};return n._merged=!0,n}var jt=1,Vt=2;function zt(e,t,n,l,u,c){return(Array.isArray(n)||a(n))&&(u=l,l=n,n=void 0),o(c)&&(u=Vt),function(e,t,n,a,l){if(r(n)&&r(n.__ob__))return me();r(n)&&r(n.is)&&(t=n.is);if(!t)return me();0;Array.isArray(a)&&"function"==typeof a[0]&&((n=n||{}).scopedSlots={default:a[0]},a.length=0);l===Vt?a=ht(a):l===jt&&(a=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(a));var u,c;if("string"==typeof t){var h;c=e.$vnode&&e.$vnode.ns||Q.getTagNamespace(t),u=Q.isReservedTag(t)?new ge(Q.parsePlatformTagName(t),n,a,void 0,void 0,e):n&&n.pre||!r(h=Re(e.$options,"components",t))?new ge(t,n,a,void 0,void 0,e):Qt(h,n,e,a,t)}else u=Qt(t,n,e,a);return Array.isArray(u)?u:r(u)?(r(c)&&function e(t,n,a){t.ns=n;"foreignObject"===t.tag&&(n=void 0,a=!0);if(r(t.children))for(var s=0,l=t.children.length;s<l;s++){var u=t.children[s];r(u.tag)&&(i(u.ns)||o(a)&&"svg"!==u.tag)&&e(u,n,a)}}(u,c),r(n)&&function(e){s(e.style)&&ot(e.style);s(e.class)&&ot(e.class)}(n),u):me()}(e,t,n,l,u)}var $t,Gt=null;function Wt(e,t){return(e.__esModule||ue&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function Kt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||gt(n)))return n}}function Yt(e,t){$t.$on(e,t)}function qt(e,t){$t.$off(e,t)}function Xt(e,t){var n=$t;return function i(){null!==t.apply(null,arguments)&&n.$off(e,i)}}function Jt(e,t,n){$t=e,lt(t,n||{},Yt,qt,Xt,e),$t=void 0}var Zt=null;function en(e){var t=Zt;return Zt=e,function(){Zt=t}}function tn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function nn(e,t){if(t){if(e._directInactive=!1,tn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)nn(e.$children[n]);rn(e,"activated")}}function rn(e,t){pe();var n=e.$options[t],i=t+" hook";if(n)for(var r=0,o=n.length;r<o;r++)$e(n[r],e,null,e,i);e._hasHookEvent&&e.$emit("hook:"+t),Ae()}var on=[],an=[],sn={},ln=!1,un=!1,cn=0;var hn=0,dn=Date.now;if(W&&!X){var fn=window.performance;fn&&"function"==typeof fn.now&&dn()>document.createEvent("Event").timeStamp&&(dn=function(){return fn.now()})}function pn(){var e,t;for(hn=dn(),un=!0,on.sort(function(e,t){return e.id-t.id}),cn=0;cn<on.length;cn++)(e=on[cn]).before&&e.before(),t=e.id,sn[t]=null,e.run();var n=an.slice(),i=on.slice();cn=on.length=an.length=0,sn={},ln=un=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,nn(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&rn(i,"updated")}}(i),ae&&Q.devtools&&ae.emit("flush")}var An=0,gn=function(e,t,n,i,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++An,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new le,this.newDepIds=new le,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!z.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=M)),this.value=this.lazy?void 0:this.get()};gn.prototype.get=function(){var e;pe(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;ze(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ot(e),Ae(),this.cleanupDeps()}return e},gn.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))},gn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},gn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==sn[t]){if(sn[t]=!0,un){for(var n=on.length-1;n>cn&&on[n].id>e.id;)n--;on.splice(n+1,0,e)}else on.push(e);ln||(ln=!0,it(pn))}}(this)},gn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'+this.expression+'"';$e(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},gn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},gn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},gn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var vn={enumerable:!0,configurable:!0,get:M,set:M};function mn(e,t,n){vn.get=function(){return this[t][n]},vn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,vn)}function yn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[],o=!e.$parent;o||Se(!1);var a=function(o){r.push(o);var a=Ue(o,t,n,e);Te(i,o,a),o in e||mn(e,"_props",o)};for(var s in t)a(s);Se(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?M:B(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return ze(e,t,"data()"),{}}finally{Ae()}}(t,e):t||{})||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);for(;r--;){var o=n[r];0,i&&_(i,o)||j(o)||mn(e,"_data",o)}Be(t,!0)}(e):Be(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),i=oe();for(var r in t){var o=t[r],a="function"==typeof o?o:o.get;0,i||(n[r]=new gn(e,a||M,M,_n)),r in e||bn(e,r,o)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)Cn(e,n,i[r]);else Cn(e,n,i)}}(e,t.watch)}var _n={lazy:!0};function bn(e,t,n){var i=!oe();"function"==typeof n?(vn.get=i?wn(t):xn(n),vn.set=M):(vn.get=n.get?i&&!1!==n.cache?wn(t):xn(n.get):M,vn.set=n.set||M),Object.defineProperty(e,t,vn)}function wn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),de.target&&t.depend(),t.value}}function xn(e){return function(){return e.call(this,this)}}function Cn(e,t,n,i){return u(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,i)}var Sn=0;function kn(e){var t=e.options;if(e.super){var n=kn(e.super);if(n!==e.superOptions){e.superOptions=n;var i=function(e){var t,n=e.options,i=e.sealedOptions;for(var r in n)n[r]!==i[r]&&(t||(t={}),t[r]=n[r]);return t}(e);i&&E(e.extendOptions,i),(t=e.options=Ne(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Bn(e){this._init(e)}function Tn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var o=e.name||n.options.name;var a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=Ne(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)mn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)bn(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,R.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=E({},a.options),r[i]=a,a}}function En(e){return e&&(e.Ctor.options.name||e.tag)}function In(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!c(e)&&e.test(t)}function Mn(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!t(s)&&Dn(n,o,i,r)}}}function Dn(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,m(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Sn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Ne(kn(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._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&&Jt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,r=i&&i.context;e.$slots=pt(t._renderChildren,r),e.$scopedSlots=n,e._c=function(t,n,i,r){return zt(e,t,n,i,r,!1)},e.$createElement=function(t,n,i,r){return zt(e,t,n,i,r,!0)};var o=i&&i.data;Te(e,"$attrs",o&&o.attrs||n,null,!0),Te(e,"$listeners",t._parentListeners||n,null,!0)}(t),rn(t,"beforeCreate"),function(e){var t=ft(e.$options.inject,e);t&&(Se(!1),Object.keys(t).forEach(function(n){Te(e,n,t[n])}),Se(!0))}(t),yn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),rn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Bn),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=Ee,e.prototype.$delete=Ie,e.prototype.$watch=function(e,t,n){if(u(t))return Cn(this,e,t,n);(n=n||{}).user=!0;var i=new gn(this,e,t,n);if(n.immediate){var r='callback for immediate watcher "'+i.expression+'"';pe(),$e(t,this,[i.value],this,r),Ae()}return function(){i.teardown()}}}(Bn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var i=this;if(Array.isArray(e))for(var r=0,o=e.length;r<o;r++)i.$on(e[r],n);else(i._events[e]||(i._events[e]=[])).push(n),t.test(e)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++)n.$off(e[i],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var s=a.length;s--;)if((o=a[s])===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?T(n):n;for(var i=T(arguments,1),r='event handler for "'+e+'"',o=0,a=n.length;o<a;o++)$e(n[o],t,i,t,r)}return t}}(Bn),function(e){e.prototype._update=function(e,t){var n=this,i=n.$el,r=n._vnode,o=en(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),o(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){rn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||m(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),rn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Bn),function(e){Ft(e.prototype),e.prototype.$nextTick=function(e){return it(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,i=n.render,r=n._parentVnode;r&&(t.$scopedSlots=vt(r.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=r;try{Gt=t,e=i.call(t._renderProxy,t.$createElement)}catch(n){ze(n,t,"render"),e=t._vnode}finally{Gt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ge||(e=me()),e.parent=r,e}}(Bn);var Pn=[String,RegExp,Array],Fn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Pn,exclude:Pn,max:[String,Number]},methods:{cacheVNode:function(){var e=this.cache,t=this.keys,n=this.vnodeToCache,i=this.keyToCache;if(n){var r=n.tag,o=n.componentInstance,a=n.componentOptions;e[i]={name:En(a),tag:r,componentInstance:o},t.push(i),this.max&&t.length>parseInt(this.max)&&Dn(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Dn(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(t){Mn(e,function(e){return In(t,e)})}),this.$watch("exclude",function(t){Mn(e,function(e){return!In(t,e)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Kt(e),n=t&&t.componentOptions;if(n){var i=En(n),r=this.include,o=this.exclude;if(r&&(!i||!In(r,i))||o&&i&&In(o,i))return t;var a=this.cache,s=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[l]?(t.componentInstance=a[l].componentInstance,m(s,l),s.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return Q}};Object.defineProperty(e,"config",t),e.util={warn:ce,extend:E,mergeOptions:Ne,defineReactive:Te},e.set=Ee,e.delete=Ie,e.nextTick=it,e.observable=function(e){return Be(e),e},e.options=Object.create(null),R.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,E(e.options.components,Fn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ne(this.options,e),this}}(e),Tn(e),function(e){R.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(Bn),Object.defineProperty(Bn.prototype,"$isServer",{get:oe}),Object.defineProperty(Bn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Bn,"FunctionalRenderContext",{value:Ot}),Bn.version="2.6.14";var On=A("style,class"),Ln=A("input,textarea,option,select,progress"),Nn=function(e,t,n){return"value"===n&&Ln(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Rn=A("contenteditable,draggable,spellcheck"),Un=A("events,caret,typing,plaintext-only"),Qn=function(e,t){return $n(t)||"false"===t?"false":"contenteditable"===e&&Un(t)?t:"true"},Hn=A("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"),jn="http://www.w3.org/1999/xlink",Vn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},zn=function(e){return Vn(e)?e.slice(6,e.length):""},$n=function(e){return null==e||!1===e};function Gn(e){for(var t=e.data,n=e,i=e;r(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=Wn(i.data,t));for(;r(n=n.parent);)n&&n.data&&(t=Wn(t,n.data));return function(e,t){if(r(e)||r(t))return Kn(e,Yn(t));return""}(t.staticClass,t.class)}function Wn(e,t){return{staticClass:Kn(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Kn(e,t){return e?t?e+" "+t:e:t||""}function Yn(e){return Array.isArray(e)?function(e){for(var t,n="",i=0,o=e.length;i<o;i++)r(t=Yn(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):s(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var qn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Xn=A("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"),Jn=A("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),Zn=function(e){return Xn(e)||Jn(e)};function ei(e){return Jn(e)?"svg":"math"===e?"math":void 0}var ti=Object.create(null);var ni=A("text,number,password,search,email,tel,url");function ii(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var ri=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(qn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},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,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),oi={create:function(e,t){ai(t)},update:function(e,t){e.data.ref!==t.data.ref&&(ai(e,!0),ai(t))},destroy:function(e){ai(e,!0)}};function ai(e,t){var n=e.data.ref;if(r(n)){var i=e.context,o=e.componentInstance||e.elm,a=i.$refs;t?Array.isArray(a[n])?m(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var si=new ge("",{},[]),li=["create","activate","update","remove","destroy"];function ui(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,o=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===o||ni(i)&&ni(o)}(e,t)||o(e.isAsyncPlaceholder)&&i(t.asyncFactory.error))}function ci(e,t,n){var i,o,a={};for(i=t;i<=n;++i)r(o=e[i].key)&&(a[o]=i);return a}var hi={create:di,update:di,destroy:function(e){di(e,si)}};function di(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,i,r,o=e===si,a=t===si,s=pi(e.data.directives,e.context),l=pi(t.data.directives,t.context),u=[],c=[];for(n in l)i=s[n],r=l[n],i?(r.oldValue=i.value,r.oldArg=i.arg,gi(r,"update",t,e),r.def&&r.def.componentUpdated&&c.push(r)):(gi(r,"bind",t,e),r.def&&r.def.inserted&&u.push(r));if(u.length){var h=function(){for(var n=0;n<u.length;n++)gi(u[n],"inserted",t,e)};o?ut(t,"insert",h):h()}c.length&&ut(t,"postpatch",function(){for(var n=0;n<c.length;n++)gi(c[n],"componentUpdated",t,e)});if(!o)for(n in s)l[n]||gi(s[n],"unbind",e,e,a)}(e,t)}var fi=Object.create(null);function pi(e,t){var n,i,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++)(i=e[n]).modifiers||(i.modifiers=fi),r[Ai(i)]=i,i.def=Re(t.$options,"directives",i.name);return r}function Ai(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function gi(e,t,n,i,r){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,i,r)}catch(i){ze(i,n.context,"directive "+e.name+" "+t+" hook")}}var vi=[oi,hi];function mi(e,t){var n=t.componentOptions;if(!(r(n)&&!1===n.Ctor.options.inheritAttrs||i(e.data.attrs)&&i(t.data.attrs))){var o,a,s=t.elm,l=e.data.attrs||{},u=t.data.attrs||{};for(o in r(u.__ob__)&&(u=t.data.attrs=E({},u)),u)a=u[o],l[o]!==a&&yi(s,o,a,t.data.pre);for(o in(X||Z)&&u.value!==l.value&&yi(s,"value",u.value),l)i(u[o])&&(Vn(o)?s.removeAttributeNS(jn,zn(o)):Rn(o)||s.removeAttribute(o))}}function yi(e,t,n,i){i||e.tagName.indexOf("-")>-1?_i(e,t,n):Hn(t)?$n(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Rn(t)?e.setAttribute(t,Qn(t,n)):Vn(t)?$n(n)?e.removeAttributeNS(jn,zn(t)):e.setAttributeNS(jn,t,n):_i(e,t,n)}function _i(e,t,n){if($n(n))e.removeAttribute(t);else{if(X&&!J&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var bi={create:mi,update:mi};function wi(e,t){var n=t.elm,o=t.data,a=e.data;if(!(i(o.staticClass)&&i(o.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=Gn(t),l=n._transitionClasses;r(l)&&(s=Kn(s,Yn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var xi,Ci,Si,ki,Bi,Ti,Ei={create:wi,update:wi},Ii=/[\w).+\-_$\]]/;function Mi(e){var t,n,i,r,o,a=!1,s=!1,l=!1,u=!1,c=0,h=0,d=0,f=0;for(i=0;i<e.length;i++)if(n=t,t=e.charCodeAt(i),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(l)96===t&&92!==n&&(l=!1);else if(u)47===t&&92!==n&&(u=!1);else if(124!==t||124===e.charCodeAt(i+1)||124===e.charCodeAt(i-1)||c||h||d){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:l=!0;break;case 40:d++;break;case 41:d--;break;case 91:h++;break;case 93:h--;break;case 123:c++;break;case 125:c--}if(47===t){for(var p=i-1,A=void 0;p>=0&&" "===(A=e.charAt(p));p--);A&&Ii.test(A)||(u=!0)}}else void 0===r?(f=i+1,r=e.slice(0,i).trim()):g();function g(){(o||(o=[])).push(e.slice(f,i).trim()),f=i+1}if(void 0===r?r=e.slice(0,i).trim():0!==f&&g(),o)for(i=0;i<o.length;i++)r=Di(r,o[i]);return r}function Di(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var i=t.slice(0,n),r=t.slice(n+1);return'_f("'+i+'")('+e+(")"!==r?","+r:r)}function Pi(e,t){console.error("[Vue compiler]: "+e)}function Fi(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Oi(e,t,n,i,r){(e.props||(e.props=[])).push($i({name:t,value:n,dynamic:r},i)),e.plain=!1}function Li(e,t,n,i,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push($i({name:t,value:n,dynamic:r},i)),e.plain=!1}function Ni(e,t,n,i){e.attrsMap[t]=n,e.attrsList.push($i({name:t,value:n},i))}function Ri(e,t,n,i,r,o,a,s){(e.directives||(e.directives=[])).push($i({name:t,rawName:n,value:i,arg:r,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function Ui(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Qi(e,t,i,r,o,a,s,l){var u;(r=r||n).right?l?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete r.right):r.middle&&(l?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),r.capture&&(delete r.capture,t=Ui("!",t,l)),r.once&&(delete r.once,t=Ui("~",t,l)),r.passive&&(delete r.passive,t=Ui("&",t,l)),r.native?(delete r.native,u=e.nativeEvents||(e.nativeEvents={})):u=e.events||(e.events={});var c=$i({value:i.trim(),dynamic:l},s);r!==n&&(c.modifiers=r);var h=u[t];Array.isArray(h)?o?h.unshift(c):h.push(c):u[t]=h?o?[c,h]:[h,c]:c,e.plain=!1}function Hi(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function ji(e,t,n){var i=Vi(e,":"+t)||Vi(e,"v-bind:"+t);if(null!=i)return Mi(i);if(!1!==n){var r=Vi(e,t);if(null!=r)return JSON.stringify(r)}}function Vi(e,t,n){var i;if(null!=(i=e.attrsMap[t]))for(var r=e.attrsList,o=0,a=r.length;o<a;o++)if(r[o].name===t){r.splice(o,1);break}return n&&delete e.attrsMap[t],i}function zi(e,t){for(var n=e.attrsList,i=0,r=n.length;i<r;i++){var o=n[i];if(t.test(o.name))return n.splice(i,1),o}}function $i(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Gi(e,t,n){var i=n||{},r=i.number,o="$$v";i.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(o="_n("+o+")");var a=Wi(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+a+"}"}}function Wi(e,t){var n=function(e){if(e=e.trim(),xi=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<xi-1)return(ki=e.lastIndexOf("."))>-1?{exp:e.slice(0,ki),key:'"'+e.slice(ki+1)+'"'}:{exp:e,key:null};Ci=e,ki=Bi=Ti=0;for(;!Yi();)qi(Si=Ki())?Ji(Si):91===Si&&Xi(Si);return{exp:e.slice(0,Bi),key:e.slice(Bi+1,Ti)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Ki(){return Ci.charCodeAt(++ki)}function Yi(){return ki>=xi}function qi(e){return 34===e||39===e}function Xi(e){var t=1;for(Bi=ki;!Yi();)if(qi(e=Ki()))Ji(e);else if(91===e&&t++,93===e&&t--,0===t){Ti=ki;break}}function Ji(e){for(var t=e;!Yi()&&(e=Ki())!==t;);}var Zi,er="__r",tr="__c";function nr(e,t,n){var i=Zi;return function r(){null!==t.apply(null,arguments)&&or(e,r,n,i)}}var ir=Ye&&!(te&&Number(te[1])<=53);function rr(e,t,n,i){if(ir){var r=hn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Zi.addEventListener(e,t,ie?{capture:n,passive:i}:n)}function or(e,t,n,i){(i||Zi).removeEventListener(e,t._wrapper||t,n)}function ar(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},o=e.data.on||{};Zi=t.elm,function(e){if(r(e[er])){var t=X?"change":"input";e[t]=[].concat(e[er],e[t]||[]),delete e[er]}r(e[tr])&&(e.change=[].concat(e[tr],e.change||[]),delete e[tr])}(n),lt(n,o,rr,or,nr,t.context),Zi=void 0}}var sr,lr={create:ar,update:ar};function ur(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,o,a=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in r(l.__ob__)&&(l=t.data.domProps=E({},l)),s)n in l||(a[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var u=i(o)?"":String(o);cr(a,u)&&(a.value=u)}else if("innerHTML"===n&&Jn(a.tagName)&&i(a.innerHTML)){(sr=sr||document.createElement("div")).innerHTML="<svg>"+o+"</svg>";for(var c=sr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}else if(o!==s[n])try{a[n]=o}catch(e){}}}}function cr(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,i=e._vModifiers;if(r(i)){if(i.number)return p(n)!==p(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var hr={create:ur,update:ur},dr=b(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var i=e.split(n);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t});function fr(e){var t=pr(e.style);return e.staticStyle?E(e.staticStyle,t):t}function pr(e){return Array.isArray(e)?I(e):"string"==typeof e?dr(e):e}var Ar,gr=/^--/,vr=/\s*!important$/,mr=function(e,t,n){if(gr.test(t))e.style.setProperty(t,n);else if(vr.test(n))e.style.setProperty(k(t),n.replace(vr,""),"important");else{var i=_r(t);if(Array.isArray(n))for(var r=0,o=n.length;r<o;r++)e.style[i]=n[r];else e.style[i]=n}},yr=["Webkit","Moz","ms"],_r=b(function(e){if(Ar=Ar||document.createElement("div").style,"filter"!==(e=x(e))&&e in Ar)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<yr.length;n++){var i=yr[n]+t;if(i in Ar)return i}});function br(e,t){var n=t.data,o=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(o.staticStyle)&&i(o.style))){var a,s,l=t.elm,u=o.staticStyle,c=o.normalizedStyle||o.style||{},h=u||c,d=pr(t.data.style)||{};t.data.normalizedStyle=r(d.__ob__)?E({},d):d;var f=function(e,t){var n,i={};if(t)for(var r=e;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(n=fr(r.data))&&E(i,n);(n=fr(e.data))&&E(i,n);for(var o=e;o=o.parent;)o.data&&(n=fr(o.data))&&E(i,n);return i}(t,!0);for(s in h)i(f[s])&&mr(l,s,"");for(s in f)(a=f[s])!==h[s]&&mr(l,s,null==a?"":a)}}var wr={create:br,update:br},xr=/\s+/;function Cr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(xr).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Sr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(xr).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",i=" "+t+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function kr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&E(t,Br(e.name||"v")),E(t,e),t}return"string"==typeof e?Br(e):void 0}}var Br=b(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Tr=W&&!J,Er="transition",Ir="animation",Mr="transition",Dr="transitionend",Pr="animation",Fr="animationend";Tr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Mr="WebkitTransition",Dr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Pr="WebkitAnimation",Fr="webkitAnimationEnd"));var Or=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Lr(e){Or(function(){Or(e)})}function Nr(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Cr(e,t))}function Rr(e,t){e._transitionClasses&&m(e._transitionClasses,t),Sr(e,t)}function Ur(e,t,n){var i=Hr(e,t),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===Er?Dr:Fr,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=a&&u()};setTimeout(function(){l<a&&u()},o+1),e.addEventListener(s,c)}var Qr=/\b(transform|all)(,|$)/;function Hr(e,t){var n,i=window.getComputedStyle(e),r=(i[Mr+"Delay"]||"").split(", "),o=(i[Mr+"Duration"]||"").split(", "),a=jr(r,o),s=(i[Pr+"Delay"]||"").split(", "),l=(i[Pr+"Duration"]||"").split(", "),u=jr(s,l),c=0,h=0;return t===Er?a>0&&(n=Er,c=a,h=o.length):t===Ir?u>0&&(n=Ir,c=u,h=l.length):h=(n=(c=Math.max(a,u))>0?a>u?Er:Ir:null)?n===Er?o.length:l.length:0,{type:n,timeout:c,propCount:h,hasTransform:n===Er&&Qr.test(i[Mr+"Property"])}}function jr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return Vr(t)+Vr(e[n])}))}function Vr(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function zr(e,t){var n=e.elm;r(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=kr(e.data.transition);if(!i(o)&&!r(n._enterCb)&&1===n.nodeType){for(var a=o.css,l=o.type,u=o.enterClass,c=o.enterToClass,h=o.enterActiveClass,d=o.appearClass,f=o.appearToClass,A=o.appearActiveClass,g=o.beforeEnter,v=o.enter,m=o.afterEnter,y=o.enterCancelled,_=o.beforeAppear,b=o.appear,w=o.afterAppear,x=o.appearCancelled,C=o.duration,S=Zt,k=Zt.$vnode;k&&k.parent;)S=k.context,k=k.parent;var B=!S._isMounted||!e.isRootInsert;if(!B||b||""===b){var T=B&&d?d:u,E=B&&A?A:h,I=B&&f?f:c,M=B&&_||g,D=B&&"function"==typeof b?b:v,P=B&&w||m,F=B&&x||y,O=p(s(C)?C.enter:C);0;var N=!1!==a&&!J,R=Wr(D),U=n._enterCb=L(function(){N&&(Rr(n,I),Rr(n,E)),U.cancelled?(N&&Rr(n,T),F&&F(n)):P&&P(n),n._enterCb=null});e.data.show||ut(e,"insert",function(){var t=n.parentNode,i=t&&t._pending&&t._pending[e.key];i&&i.tag===e.tag&&i.elm._leaveCb&&i.elm._leaveCb(),D&&D(n,U)}),M&&M(n),N&&(Nr(n,T),Nr(n,E),Lr(function(){Rr(n,T),U.cancelled||(Nr(n,I),R||(Gr(O)?setTimeout(U,O):Ur(n,l,U)))})),e.data.show&&(t&&t(),D&&D(n,U)),N||R||U()}}}function $r(e,t){var n=e.elm;r(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=kr(e.data.transition);if(i(o)||1!==n.nodeType)return t();if(!r(n._leaveCb)){var a=o.css,l=o.type,u=o.leaveClass,c=o.leaveToClass,h=o.leaveActiveClass,d=o.beforeLeave,f=o.leave,A=o.afterLeave,g=o.leaveCancelled,v=o.delayLeave,m=o.duration,y=!1!==a&&!J,_=Wr(f),b=p(s(m)?m.leave:m);0;var w=n._leaveCb=L(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(Rr(n,c),Rr(n,h)),w.cancelled?(y&&Rr(n,u),g&&g(n)):(t(),A&&A(n)),n._leaveCb=null});v?v(x):x()}function x(){w.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),d&&d(n),y&&(Nr(n,u),Nr(n,h),Lr(function(){Rr(n,u),w.cancelled||(Nr(n,c),_||(Gr(b)?setTimeout(w,b):Ur(n,l,w)))})),f&&f(n,w),y||_||w())}}function Gr(e){return"number"==typeof e&&!isNaN(e)}function Wr(e){if(i(e))return!1;var t=e.fns;return r(t)?Wr(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Kr(e,t){!0!==t.data.show&&zr(t)}var Yr=function(e){var t,n,s={},l=e.modules,u=e.nodeOps;for(t=0;t<li.length;++t)for(s[li[t]]=[],n=0;n<l.length;++n)r(l[n][li[t]])&&s[li[t]].push(l[n][li[t]]);function c(e){var t=u.parentNode(e);r(t)&&u.removeChild(t,e)}function h(e,t,n,i,a,l,c){if(r(e.elm)&&r(l)&&(e=l[c]=_e(e)),e.isRootInsert=!a,!function(e,t,n,i){var a=e.data;if(r(a)){var l=r(e.componentInstance)&&a.keepAlive;if(r(a=a.hook)&&r(a=a.init)&&a(e,!1),r(e.componentInstance))return d(e,t),f(n,e.elm,i),o(l)&&function(e,t,n,i){for(var o,a=e;a.componentInstance;)if(a=a.componentInstance._vnode,r(o=a.data)&&r(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](si,a);t.push(a);break}f(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var h=e.data,A=e.children,g=e.tag;r(g)?(e.elm=e.ns?u.createElementNS(e.ns,g):u.createElement(g,e),m(e),p(e,A,t),r(h)&&v(e,t),f(n,e.elm,i)):o(e.isComment)?(e.elm=u.createComment(e.text),f(n,e.elm,i)):(e.elm=u.createTextNode(e.text),f(n,e.elm,i))}}function d(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,g(e)?(v(e,t),m(e)):(ai(e),t.push(e))}function f(e,t,n){r(e)&&(r(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function p(e,t,n){if(Array.isArray(t))for(var i=0;i<t.length;++i)h(t[i],n,e.elm,null,!0,t,i);else a(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function g(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return r(e.tag)}function v(e,n){for(var i=0;i<s.create.length;++i)s.create[i](si,e);r(t=e.data.hook)&&(r(t.create)&&t.create(si,e),r(t.insert)&&n.push(e))}function m(e){var t;if(r(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var n=e;n;)r(t=n.context)&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent;r(t=Zt)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function y(e,t,n,i,r,o){for(;i<=r;++i)h(n[i],o,e,t,!1,n,i)}function _(e){var t,n,i=e.data;if(r(i))for(r(t=i.hook)&&r(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)_(e.children[n])}function b(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(w(i),_(i)):c(i.elm))}}function w(e,t){if(r(t)||r(e.data)){var n,i=s.remove.length+1;for(r(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&c(e)}return n.listeners=t,n}(e.elm,i),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&w(n,t),n=0;n<s.remove.length;++n)s.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else c(e.elm)}function x(e,t,n,i){for(var o=n;o<i;o++){var a=t[o];if(r(a)&&ui(e,a))return o}}function C(e,t,n,a,l,c){if(e!==t){r(t.elm)&&r(a)&&(t=a[l]=_e(t));var d=t.elm=e.elm;if(o(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?B(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,p=t.data;r(p)&&r(f=p.hook)&&r(f=f.prepatch)&&f(e,t);var A=e.children,v=t.children;if(r(p)&&g(t)){for(f=0;f<s.update.length;++f)s.update[f](e,t);r(f=p.hook)&&r(f=f.update)&&f(e,t)}i(t.text)?r(A)&&r(v)?A!==v&&function(e,t,n,o,a){for(var s,l,c,d=0,f=0,p=t.length-1,A=t[0],g=t[p],v=n.length-1,m=n[0],_=n[v],w=!a;d<=p&&f<=v;)i(A)?A=t[++d]:i(g)?g=t[--p]:ui(A,m)?(C(A,m,o,n,f),A=t[++d],m=n[++f]):ui(g,_)?(C(g,_,o,n,v),g=t[--p],_=n[--v]):ui(A,_)?(C(A,_,o,n,v),w&&u.insertBefore(e,A.elm,u.nextSibling(g.elm)),A=t[++d],_=n[--v]):ui(g,m)?(C(g,m,o,n,f),w&&u.insertBefore(e,g.elm,A.elm),g=t[--p],m=n[++f]):(i(s)&&(s=ci(t,d,p)),i(l=r(m.key)?s[m.key]:x(m,t,d,p))?h(m,o,e,A.elm,!1,n,f):ui(c=t[l],m)?(C(c,m,o,n,f),t[l]=void 0,w&&u.insertBefore(e,c.elm,A.elm)):h(m,o,e,A.elm,!1,n,f),m=n[++f]);d>p?y(e,i(n[v+1])?null:n[v+1].elm,n,f,v,o):f>v&&b(t,d,p)}(d,A,v,n,c):r(v)?(r(e.text)&&u.setTextContent(d,""),y(d,null,v,0,v.length-1,n)):r(A)?b(A,0,A.length-1):r(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),r(p)&&r(f=p.hook)&&r(f=f.postpatch)&&f(e,t)}}}function S(e,t,n){if(o(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var k=A("attrs,class,staticClass,staticStyle,key");function B(e,t,n,i){var a,s=t.tag,l=t.data,u=t.children;if(i=i||l&&l.pre,t.elm=e,o(t.isComment)&&r(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(r(l)&&(r(a=l.hook)&&r(a=a.init)&&a(t,!0),r(a=t.componentInstance)))return d(t,n),!0;if(r(s)){if(r(u))if(e.hasChildNodes())if(r(a=l)&&r(a=a.domProps)&&r(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var c=!0,h=e.firstChild,f=0;f<u.length;f++){if(!h||!B(h,u[f],n,i)){c=!1;break}h=h.nextSibling}if(!c||h)return!1}else p(t,u,n);if(r(l)){var A=!1;for(var g in l)if(!k(g)){A=!0,v(t,n);break}!A&&l.class&&ot(l.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,a){if(!i(t)){var l,c=!1,d=[];if(i(e))c=!0,h(t,d);else{var f=r(e.nodeType);if(!f&&ui(e,t))C(e,t,d,null,null,a);else{if(f){if(1===e.nodeType&&e.hasAttribute(N)&&(e.removeAttribute(N),n=!0),o(n)&&B(e,t,d))return S(t,d,!0),e;l=e,e=new ge(u.tagName(l).toLowerCase(),{},[],void 0,l)}var p=e.elm,A=u.parentNode(p);if(h(t,d,p._leaveCb?null:A,u.nextSibling(p)),r(t.parent))for(var v=t.parent,m=g(t);v;){for(var y=0;y<s.destroy.length;++y)s.destroy[y](v);if(v.elm=t.elm,m){for(var w=0;w<s.create.length;++w)s.create[w](si,v);var x=v.data.hook.insert;if(x.merged)for(var k=1;k<x.fns.length;k++)x.fns[k]()}else ai(v);v=v.parent}r(A)?b([e],0,0):r(e.tag)&&_(e)}}return S(t,d,c),t.elm}r(e)&&_(e)}}({nodeOps:ri,modules:[bi,Ei,lr,hr,wr,W?{create:Kr,activate:Kr,remove:function(e,t){!0!==e.data.show?$r(e,t):t()}}:{}].concat(vi)});J&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&io(e,"input")});var qr={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?ut(n,"postpatch",function(){qr.componentUpdated(e,t,n)}):Xr(e,t,n.context),e._vOptions=[].map.call(e.options,eo)):("textarea"===n.tag||ni(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",to),e.addEventListener("compositionend",no),e.addEventListener("change",no),J&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Xr(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,eo);if(r.some(function(e,t){return!F(e,i[t])}))(e.multiple?t.value.some(function(e){return Zr(e,r)}):t.value!==t.oldValue&&Zr(t.value,r))&&io(e,"change")}}};function Xr(e,t,n){Jr(e,t,n),(X||Z)&&setTimeout(function(){Jr(e,t,n)},0)}function Jr(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var o,a,s=0,l=e.options.length;s<l;s++)if(a=e.options[s],r)o=O(i,eo(a))>-1,a.selected!==o&&(a.selected=o);else if(F(eo(a),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));r||(e.selectedIndex=-1)}}function Zr(e,t){return t.every(function(t){return!F(t,e)})}function eo(e){return"_value"in e?e._value:e.value}function to(e){e.target.composing=!0}function no(e){e.target.composing&&(e.target.composing=!1,io(e.target,"input"))}function io(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ro(e){return!e.componentInstance||e.data&&e.data.transition?e:ro(e.componentInstance._vnode)}var oo={model:qr,show:{bind:function(e,t,n){var i=t.value,r=(n=ro(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,zr(n,function(){e.style.display=o})):e.style.display=i?o:"none"},update:function(e,t,n){var i=t.value;!i!=!t.oldValue&&((n=ro(n)).data&&n.data.transition?(n.data.show=!0,i?zr(n,function(){e.style.display=e.__vOriginalDisplay}):$r(n,function(){e.style.display="none"})):e.style.display=i?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}}},ao={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 so(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?so(Kt(t.children)):e}function lo(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var o in r)t[x(o)]=r[o];return t}function uo(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var co=function(e){return e.tag||gt(e)},ho=function(e){return"show"===e.name},fo={name:"transition",props:ao,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(co)).length){0;var i=this.mode;0;var r=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;var o=so(r);if(!o)return r;if(this._leaving)return uo(e,r);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=lo(this),u=this._vnode,c=so(u);if(o.data.directives&&o.data.directives.some(ho)&&(o.data.show=!0),c&&c.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,c)&&!gt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=E({},l);if("out-in"===i)return this._leaving=!0,ut(h,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),uo(e,r);if("in-out"===i){if(gt(o))return u;var d,f=function(){d()};ut(l,"afterEnter",f),ut(l,"enterCancelled",f),ut(h,"delayLeave",function(e){d=e})}}return r}}},po=E({tag:String,moveClass:String},ao);function Ao(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function go(e){e.data.newPos=e.elm.getBoundingClientRect()}function vo(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+i+"px,"+r+"px)",o.transitionDuration="0s"}}delete po.mode;var mo={Transition:fo,TransitionGroup:{props:po,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=en(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=lo(this),s=0;s<r.length;s++){var l=r[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else;}if(i){for(var u=[],c=[],h=0;h<i.length;h++){var d=i[h];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?u.push(d):c.push(d)}this.kept=e(t,null,u),this.removed=c}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(Ao),e.forEach(go),e.forEach(vo),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,i=n.style;Nr(n,t),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Dr,n._moveCb=function e(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Dr,e),n._moveCb=null,Rr(n,t))})}}))},methods:{hasMove:function(e,t){if(!Tr)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){Sr(n,e)}),Cr(n,t),n.style.display="none",this.$el.appendChild(n);var i=Hr(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}}};Bn.config.mustUseProp=Nn,Bn.config.isReservedTag=Zn,Bn.config.isReservedAttr=On,Bn.config.getTagNamespace=ei,Bn.config.isUnknownElement=function(e){if(!W)return!0;if(Zn(e))return!1;if(e=e.toLowerCase(),null!=ti[e])return ti[e];var t=document.createElement(e);return e.indexOf("-")>-1?ti[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ti[e]=/HTMLUnknownElement/.test(t.toString())},E(Bn.options.directives,oo),E(Bn.options.components,mo),Bn.prototype.__patch__=W?Yr:M,Bn.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=me),rn(e,"beforeMount"),new gn(e,function(){e._update(e._render(),n)},M,{before:function(){e._isMounted&&!e._isDestroyed&&rn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,rn(e,"mounted")),e}(this,e=e&&W?ii(e):void 0,t)},W&&setTimeout(function(){Q.devtools&&ae&&ae.emit("init",Bn)},0);var yo=/\{\{((?:.|\r?\n)+?)\}\}/g,_o=/[-.*+?^${}()|[\]\/\\]/g,bo=b(function(e){var t=e[0].replace(_o,"\\$&"),n=e[1].replace(_o,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function wo(e,t){var n=t?bo(t):yo;if(n.test(e)){for(var i,r,o,a=[],s=[],l=n.lastIndex=0;i=n.exec(e);){(r=i.index)>l&&(s.push(o=e.slice(l,r)),a.push(JSON.stringify(o)));var u=Mi(i[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),l=r+i[0].length}return l<e.length&&(s.push(o=e.slice(l)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}var xo={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Vi(e,"class");n&&(e.staticClass=JSON.stringify(n));var i=ji(e,"class",!1);i&&(e.classBinding=i)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var Co,So={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Vi(e,"style");n&&(e.staticStyle=JSON.stringify(dr(n)));var i=ji(e,"style",!1);i&&(e.styleBinding=i)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},ko=function(e){return(Co=Co||document.createElement("div")).innerHTML=e,Co.textContent},Bo=A("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),To=A("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Eo=A("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Io=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Mo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Do="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+H.source+"]*",Po="((?:"+Do+"\\:)?"+Do+")",Fo=new RegExp("^<"+Po),Oo=/^\s*(\/?)>/,Lo=new RegExp("^<\\/"+Po+"[^>]*>"),No=/^<!DOCTYPE [^>]+>/i,Ro=/^<!\--/,Uo=/^<!\[/,Qo=A("script,style,textarea",!0),Ho={},jo={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Vo=/&(?:lt|gt|quot|amp|#39);/g,zo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,$o=A("pre,textarea",!0),Go=function(e,t){return e&&$o(e)&&"\n"===t[0]};function Wo(e,t){var n=t?zo:Vo;return e.replace(n,function(e){return jo[e]})}var Ko,Yo,qo,Xo,Jo,Zo,ea,ta,na=/^@|^v-on:/,ia=/^v-|^@|^:|^#/,ra=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,oa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,aa=/^\(|\)$/g,sa=/^\[.*\]$/,la=/:(.*)$/,ua=/^:|^\.|^v-bind:/,ca=/\.[^.\]]+(?=[^\]]*$)/g,ha=/^v-slot(:|$)|^#/,da=/[\r\n]/,fa=/[ \f\t\r\n]+/g,pa=b(ko),Aa="_empty_";function ga(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,i=e.length;n<i;n++)t[e[n].name]=e[n].value;return t}(t),rawAttrsMap:{},parent:n,children:[]}}function va(e,t){Ko=t.warn||Pi,Zo=t.isPreTag||D,ea=t.mustUseProp||D,ta=t.getTagNamespace||D;var n=t.isReservedTag||D;(function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag)))}),qo=Fi(t.modules,"transformNode"),Xo=Fi(t.modules,"preTransformNode"),Jo=Fi(t.modules,"postTransformNode"),Yo=t.delimiters;var i,r,o=[],a=!1!==t.preserveWhitespace,s=t.whitespace,l=!1,u=!1;function c(e){if(h(e),l||e.processed||(e=ma(e,t)),o.length||e===i||i.if&&(e.elseif||e.else)&&_a(i,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)a=e,(s=function(e){var t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(r.children))&&s.if&&_a(s,{exp:a.elseif,block:a});else{if(e.slotScope){var n=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[n]=e}r.children.push(e),e.parent=r}var a,s;e.children=e.children.filter(function(e){return!e.slotScope}),h(e),e.pre&&(l=!1),Zo(e.tag)&&(u=!1);for(var c=0;c<Jo.length;c++)Jo[c](e,t)}function h(e){if(!u)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,i,r=[],o=t.expectHTML,a=t.isUnaryTag||D,s=t.canBeLeftOpenTag||D,l=0;e;){if(n=e,i&&Qo(i)){var u=0,c=i.toLowerCase(),h=Ho[c]||(Ho[c]=new RegExp("([\\s\\S]*?)(</"+c+"[^>]*>)","i")),d=e.replace(h,function(e,n,i){return u=i.length,Qo(c)||"noscript"===c||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Go(c,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});l+=e.length-d.length,e=d,k(c,l-u,l)}else{var f=e.indexOf("<");if(0===f){if(Ro.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p),l,l+p+3),x(p+3);continue}}if(Uo.test(e)){var A=e.indexOf("]>");if(A>=0){x(A+2);continue}}var g=e.match(No);if(g){x(g[0].length);continue}var v=e.match(Lo);if(v){var m=l;x(v[0].length),k(v[1],m,l);continue}var y=C();if(y){S(y),Go(y.tagName,e)&&x(1);continue}}var _=void 0,b=void 0,w=void 0;if(f>=0){for(b=e.slice(f);!(Lo.test(b)||Fo.test(b)||Ro.test(b)||Uo.test(b)||(w=b.indexOf("<",1))<0);)f+=w,b=e.slice(f);_=e.substring(0,f)}f<0&&(_=e),_&&x(_.length),t.chars&&_&&t.chars(_,l-_.length,l)}if(e===n){t.chars&&t.chars(e);break}}function x(t){l+=t,e=e.substring(t)}function C(){var t=e.match(Fo);if(t){var n,i,r={tagName:t[1],attrs:[],start:l};for(x(t[0].length);!(n=e.match(Oo))&&(i=e.match(Mo)||e.match(Io));)i.start=l,x(i[0].length),i.end=l,r.attrs.push(i);if(n)return r.unarySlash=n[1],x(n[0].length),r.end=l,r}}function S(e){var n=e.tagName,l=e.unarySlash;o&&("p"===i&&Eo(n)&&k(i),s(n)&&i===n&&k(n));for(var u=a(n)||!!l,c=e.attrs.length,h=new Array(c),d=0;d<c;d++){var f=e.attrs[d],p=f[3]||f[4]||f[5]||"",A="a"===n&&"href"===f[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;h[d]={name:f[1],value:Wo(p,A)}}u||(r.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:h,start:e.start,end:e.end}),i=n),t.start&&t.start(n,h,u,e.start,e.end)}function k(e,n,o){var a,s;if(null==n&&(n=l),null==o&&(o=l),e)for(s=e.toLowerCase(),a=r.length-1;a>=0&&r[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=r.length-1;u>=a;u--)t.end&&t.end(r[u].tag,n,o);r.length=a,i=a&&r[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}k()}(e,{warn:Ko,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,s,h){var d=r&&r.ns||ta(e);X&&"svg"===d&&(n=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];xa.test(i.name)||(i.name=i.name.replace(Ca,""),t.push(i))}return t}(n));var f,p=ga(e,n,r);d&&(p.ns=d),"style"!==(f=p).tag&&("script"!==f.tag||f.attrsMap.type&&"text/javascript"!==f.attrsMap.type)||oe()||(p.forbidden=!0);for(var A=0;A<Xo.length;A++)p=Xo[A](p,t)||p;l||(!function(e){null!=Vi(e,"v-pre")&&(e.pre=!0)}(p),p.pre&&(l=!0)),Zo(p.tag)&&(u=!0),l?function(e){var t=e.attrsList,n=t.length;if(n)for(var i=e.attrs=new Array(n),r=0;r<n;r++)i[r]={name:t[r].name,value:JSON.stringify(t[r].value)},null!=t[r].start&&(i[r].start=t[r].start,i[r].end=t[r].end);else e.pre||(e.plain=!0)}(p):p.processed||(ya(p),function(e){var t=Vi(e,"v-if");if(t)e.if=t,_a(e,{exp:t,block:e});else{null!=Vi(e,"v-else")&&(e.else=!0);var n=Vi(e,"v-else-if");n&&(e.elseif=n)}}(p),function(e){null!=Vi(e,"v-once")&&(e.once=!0)}(p)),i||(i=p),a?c(p):(r=p,o.push(p))},end:function(e,t,n){var i=o[o.length-1];o.length-=1,r=o[o.length-1],c(i)},chars:function(e,t,n){if(r&&(!X||"textarea"!==r.tag||r.attrsMap.placeholder!==e)){var i,o,c,h=r.children;if(e=u||e.trim()?"script"===(i=r).tag||"style"===i.tag?e:pa(e):h.length?s?"condense"===s&&da.test(e)?"":" ":a?" ":"":"")u||"condense"!==s||(e=e.replace(fa," ")),!l&&" "!==e&&(o=wo(e,Yo))?c={type:2,expression:o.expression,tokens:o.tokens,text:e}:" "===e&&h.length&&" "===h[h.length-1].text||(c={type:3,text:e}),c&&h.push(c)}},comment:function(e,t,n){if(r){var i={type:3,text:e,isComment:!0};0,r.children.push(i)}}}),i}function ma(e,t){var n,i;!function(e){var t=ji(e,"key");if(t){e.key=t}}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,(i=ji(n=e,"ref"))&&(n.ref=i,n.refInFor=function(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(n)),function(e){var t;"template"===e.tag?(t=Vi(e,"scope"),e.slotScope=t||Vi(e,"slot-scope")):(t=Vi(e,"slot-scope"))&&(e.slotScope=t);var n=ji(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Li(e,"slot",n,Hi(e,"slot")));if("template"===e.tag){var i=zi(e,ha);if(i){0;var r=ba(i),o=r.name,a=r.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=i.value||Aa}}else{var s=zi(e,ha);if(s){0;var l=e.scopedSlots||(e.scopedSlots={}),u=ba(s),c=u.name,h=u.dynamic,d=l[c]=ga("template",[],e);d.slotTarget=c,d.slotTargetDynamic=h,d.children=e.children.filter(function(e){if(!e.slotScope)return e.parent=d,!0}),d.slotScope=s.value||Aa,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=ji(e,"name"))}(e),function(e){var t;(t=ji(e,"is"))&&(e.component=t);null!=Vi(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var r=0;r<qo.length;r++)e=qo[r](e,t)||e;return function(e){var t,n,i,r,o,a,s,l,u=e.attrsList;for(t=0,n=u.length;t<n;t++){if(i=r=u[t].name,o=u[t].value,ia.test(i))if(e.hasBindings=!0,(a=wa(i.replace(ia,"")))&&(i=i.replace(ca,"")),ua.test(i))i=i.replace(ua,""),o=Mi(o),(l=sa.test(i))&&(i=i.slice(1,-1)),a&&(a.prop&&!l&&"innerHtml"===(i=x(i))&&(i="innerHTML"),a.camel&&!l&&(i=x(i)),a.sync&&(s=Wi(o,"$event"),l?Qi(e,'"update:"+('+i+")",s,null,!1,0,u[t],!0):(Qi(e,"update:"+x(i),s,null,!1,0,u[t]),k(i)!==x(i)&&Qi(e,"update:"+k(i),s,null,!1,0,u[t])))),a&&a.prop||!e.component&&ea(e.tag,e.attrsMap.type,i)?Oi(e,i,o,u[t],l):Li(e,i,o,u[t],l);else if(na.test(i))i=i.replace(na,""),(l=sa.test(i))&&(i=i.slice(1,-1)),Qi(e,i,o,a,!1,0,u[t],l);else{var c=(i=i.replace(ia,"")).match(la),h=c&&c[1];l=!1,h&&(i=i.slice(0,-(h.length+1)),sa.test(h)&&(h=h.slice(1,-1),l=!0)),Ri(e,i,r,o,h,l,a,u[t])}else Li(e,i,JSON.stringify(o),u[t]),!e.component&&"muted"===i&&ea(e.tag,e.attrsMap.type,i)&&Oi(e,i,"true",u[t])}}(e),e}function ya(e){var t;if(t=Vi(e,"v-for")){var n=function(e){var t=e.match(ra);if(!t)return;var n={};n.for=t[2].trim();var i=t[1].trim().replace(aa,""),r=i.match(oa);r?(n.alias=i.replace(oa,"").trim(),n.iterator1=r[1].trim(),r[2]&&(n.iterator2=r[2].trim())):n.alias=i;return n}(t);n&&E(e,n)}}function _a(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function ba(e){var t=e.name.replace(ha,"");return t||"#"!==e.name[0]&&(t="default"),sa.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function wa(e){var t=e.match(ca);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}var xa=/^xmlns:NS\d+/,Ca=/^NS\d+:/;function Sa(e){return ga(e.tag,e.attrsList.slice(),e.parent)}var ka=[xo,So,{preTransformNode:function(e,t){if("input"===e.tag){var n,i=e.attrsMap;if(!i["v-model"])return;if((i[":type"]||i["v-bind:type"])&&(n=ji(e,"type")),i.type||n||!i["v-bind"]||(n="("+i["v-bind"]+").type"),n){var r=Vi(e,"v-if",!0),o=r?"&&("+r+")":"",a=null!=Vi(e,"v-else",!0),s=Vi(e,"v-else-if",!0),l=Sa(e);ya(l),Ni(l,"type","checkbox"),ma(l,t),l.processed=!0,l.if="("+n+")==='checkbox'"+o,_a(l,{exp:l.if,block:l});var u=Sa(e);Vi(u,"v-for",!0),Ni(u,"type","radio"),ma(u,t),_a(l,{exp:"("+n+")==='radio'"+o,block:u});var c=Sa(e);return Vi(c,"v-for",!0),Ni(c,":type",n),ma(c,t),_a(l,{exp:r,block:c}),a?l.else=!0:s&&(l.elseif=s),l}}}}];var Ba,Ta,Ea={expectHTML:!0,modules:ka,directives:{model:function(e,t,n){n;var i=t.value,r=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Gi(e,i,r),!1;if("select"===o)!function(e,t,n){var i='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";i=i+" "+Wi(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Qi(e,"change",i,null,!0)}(e,i,r);else if("input"===o&&"checkbox"===a)!function(e,t,n){var i=n&&n.number,r=ji(e,"value")||"null",o=ji(e,"true-value")||"true",a=ji(e,"false-value")||"false";Oi(e,"checked","Array.isArray("+t+")?_i("+t+","+r+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Qi(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Wi(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Wi(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Wi(t,"$$c")+"}",null,!0)}(e,i,r);else if("input"===o&&"radio"===a)!function(e,t,n){var i=n&&n.number,r=ji(e,"value")||"null";Oi(e,"checked","_q("+t+","+(r=i?"_n("+r+")":r)+")"),Qi(e,"change",Wi(t,r),null,!0)}(e,i,r);else if("input"===o||"textarea"===o)!function(e,t,n){var i=e.attrsMap.type,r=n||{},o=r.lazy,a=r.number,s=r.trim,l=!o&&"range"!==i,u=o?"change":"range"===i?er:"input",c="$event.target.value";s&&(c="$event.target.value.trim()"),a&&(c="_n("+c+")");var h=Wi(t,c);l&&(h="if($event.target.composing)return;"+h),Oi(e,"value","("+t+")"),Qi(e,u,h,null,!0),(s||a)&&Qi(e,"blur","$forceUpdate()")}(e,i,r);else if(!Q.isReservedTag(o))return Gi(e,i,r),!1;return!0},text:function(e,t){t.value&&Oi(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Oi(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:Bo,mustUseProp:Nn,canBeLeftOpenTag:To,isReservedTag:Zn,getTagNamespace:ei,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(ka)},Ia=b(function(e){return A("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function Ma(e,t){e&&(Ba=Ia(t.staticKeys||""),Ta=t.isReservedTag||D,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||g(e.tag)||!Ta(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Ba)))}(t);if(1===t.type){if(!Ta(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,i=t.children.length;n<i;n++){var r=t.children[n];e(r),r.static||(t.static=!1)}if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++){var s=t.ifConditions[o].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var i=0,r=t.children.length;i<r;i++)e(t.children[i],n||!!t.for);if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++)e(t.ifConditions[o].block,n)}}(e,!1))}var Da=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Pa=/\([^)]*?\);*$/,Fa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Oa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},La={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Na=function(e){return"if("+e+")return null;"},Ra={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Na("$event.target !== $event.currentTarget"),ctrl:Na("!$event.ctrlKey"),shift:Na("!$event.shiftKey"),alt:Na("!$event.altKey"),meta:Na("!$event.metaKey"),left:Na("'button' in $event && $event.button !== 0"),middle:Na("'button' in $event && $event.button !== 1"),right:Na("'button' in $event && $event.button !== 2")};function Ua(e,t){var n=t?"nativeOn:":"on:",i="",r="";for(var o in e){var a=Qa(e[o]);e[o]&&e[o].dynamic?r+=o+","+a+",":i+='"'+o+'":'+a+","}return i="{"+i.slice(0,-1)+"}",r?n+"_d("+i+",["+r.slice(0,-1)+"])":n+i}function Qa(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return Qa(e)}).join(",")+"]";var t=Fa.test(e.value),n=Da.test(e.value),i=Fa.test(e.value.replace(Pa,""));if(e.modifiers){var r="",o="",a=[];for(var s in e.modifiers)if(Ra[s])o+=Ra[s],Oa[s]&&a.push(s);else if("exact"===s){var l=e.modifiers;o+=Na(["ctrl","shift","alt","meta"].filter(function(e){return!l[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ha).join("&&")+")return null;"}(a)),o&&(r+=o),"function($event){"+r+(t?"return "+e.value+".apply(null, arguments)":n?"return ("+e.value+").apply(null, arguments)":i?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(i?"return "+e.value:e.value)+"}"}function Ha(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Oa[e],i=La[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(i)+")"}var ja={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:M},Va=function(e){this.options=e,this.warn=e.warn||Pi,this.transforms=Fi(e.modules,"transformCode"),this.dataGenFns=Fi(e.modules,"genData"),this.directives=E(E({},ja),e.directives);var t=e.isReservedTag||D;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function za(e,t){var n=new Va(t);return{render:"with(this){return "+(e?"script"===e.tag?"null":$a(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function $a(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ga(e,t);if(e.once&&!e.onceProcessed)return Wa(e,t);if(e.for&&!e.forProcessed)return Ya(e,t);if(e.if&&!e.ifProcessed)return Ka(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',i=Za(e,t),r="_t("+n+(i?",function(){return "+i+"}":""),o=e.attrs||e.dynamicAttrs?ns((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:x(e.name),value:e.value,dynamic:e.dynamic}})):null,a=e.attrsMap["v-bind"];!o&&!a||i||(r+=",null");o&&(r+=","+o);a&&(r+=(o?"":",null")+","+a);return r+")"}(e,t);var n;if(e.component)n=function(e,t,n){var i=t.inlineTemplate?null:Za(t,n,!0);return"_c("+e+","+qa(t,n)+(i?","+i:"")+")"}(e.component,e,t);else{var i;(!e.plain||e.pre&&t.maybeComponent(e))&&(i=qa(e,t));var r=e.inlineTemplate?null:Za(e,t,!0);n="_c('"+e.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return Za(e,t)||"void 0"}function Ga(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+$a(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function Wa(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Ka(e,t);if(e.staticInFor){for(var n="",i=e.parent;i;){if(i.for){n=i.key;break}i=i.parent}return n?"_o("+$a(e,t)+","+t.onceId+++","+n+")":$a(e,t)}return Ga(e,t)}function Ka(e,t,n,i){return e.ifProcessed=!0,function e(t,n,i,r){if(!t.length)return r||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+a(o.block)+":"+e(t,n,i,r):""+a(o.block);function a(e){return i?i(e,n):e.once?Wa(e,n):$a(e,n)}}(e.ifConditions.slice(),t,n,i)}function Ya(e,t,n,i){var r=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(i||"_l")+"(("+r+"),function("+o+a+s+"){return "+(n||$a)(e,t)+"})"}function qa(e,t){var n="{",i=function(e,t){var n=e.directives;if(!n)return;var i,r,o,a,s="directives:[",l=!1;for(i=0,r=n.length;i<r;i++){o=n[i],a=!0;var u=t.directives[o.name];u&&(a=!!u(e,o,t.warn)),a&&(l=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}if(l)return s.slice(0,-1)+"]"}(e,t);i&&(n+=i+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var r=0;r<t.dataGenFns.length;r++)n+=t.dataGenFns[r](e);if(e.attrs&&(n+="attrs:"+ns(e.attrs)+","),e.props&&(n+="domProps:"+ns(e.props)+","),e.events&&(n+=Ua(e.events,!1)+","),e.nativeEvents&&(n+=Ua(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,t,n){var i=e.for||Object.keys(t).some(function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||Xa(n)}),r=!!e.if;if(!i)for(var o=e.parent;o;){if(o.slotScope&&o.slotScope!==Aa||o.for){i=!0;break}o.if&&(r=!0),o=o.parent}var a=Object.keys(t).map(function(e){return Ja(t[e],n)}).join(",");return"scopedSlots:_u(["+a+"]"+(i?",null,true":"")+(!i&&r?",null,false,"+function(e){var t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var i=za(n,t.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+ns(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Xa(e){return 1===e.type&&("slot"===e.tag||e.children.some(Xa))}function Ja(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ka(e,t,Ja,"null");if(e.for&&!e.forProcessed)return Ya(e,t,Ja);var i=e.slotScope===Aa?"":String(e.slotScope),r="function("+i+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Za(e,t)||"undefined")+":undefined":Za(e,t)||"undefined":$a(e,t))+"}",o=i?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+r+o+"}"}function Za(e,t,n,i,r){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(i||$a)(a,t)+s}var l=n?function(e,t){for(var n=0,i=0;i<e.length;i++){var r=e[i];if(1===r.type){if(es(r)||r.ifConditions&&r.ifConditions.some(function(e){return es(e.block)})){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}(o,t.maybeComponent):0,u=r||ts;return"["+o.map(function(e){return u(e,t)}).join(",")+"]"+(l?","+l:"")}}function es(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function ts(e,t){return 1===e.type?$a(e,t):3===e.type&&e.isComment?(i=e,"_e("+JSON.stringify(i.text)+")"):"_v("+(2===(n=e).type?n.expression:is(JSON.stringify(n.text)))+")";var n,i}function ns(e){for(var t="",n="",i=0;i<e.length;i++){var r=e[i],o=is(r.value);r.dynamic?n+=r.name+","+o+",":t+='"'+r.name+'":'+o+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function is(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function rs(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),M}}function os(e){var t=Object.create(null);return function(n,i,r){(i=E({},i)).warn;delete i.warn;var o=i.delimiters?String(i.delimiters)+n:n;if(t[o])return t[o];var a=e(n,i);var s={},l=[];return s.render=rs(a.render,l),s.staticRenderFns=a.staticRenderFns.map(function(e){return rs(e,l)}),t[o]=s}}var as,ss,ls=(as=function(e,t){var n=va(e.trim(),t);!1!==t.optimize&&Ma(n,t);var i=za(n,t);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}},function(e){function t(t,n){var i=Object.create(e),r=[],o=[],a=function(e,t,n){(n?o:r).push(e)};if(n)for(var s in n.modules&&(i.modules=(e.modules||[]).concat(n.modules)),n.directives&&(i.directives=E(Object.create(e.directives||null),n.directives)),n)"modules"!==s&&"directives"!==s&&(i[s]=n[s]);i.warn=a;var l=as(t.trim(),i);return l.errors=r,l.tips=o,l}return{compile:t,compileToFunctions:os(t)}})(Ea),us=(ls.compile,ls.compileToFunctions);function cs(e){return(ss=ss||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',ss.innerHTML.indexOf("&#10;")>0}var hs=!!W&&cs(!1),ds=!!W&&cs(!0),fs=b(function(e){var t=ii(e);return t&&t.innerHTML}),ps=Bn.prototype.$mount;Bn.prototype.$mount=function(e,t){if((e=e&&ii(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&(i=fs(i));else{if(!i.nodeType)return this;i=i.innerHTML}else e&&(i=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(i){0;var r=us(i,{outputSourceRange:!1,shouldDecodeNewlines:hs,shouldDecodeNewlinesForHref:ds,delimiters:n.delimiters,comments:n.comments},this),o=r.render,a=r.staticRenderFns;n.render=o,n.staticRenderFns=a}}return ps.call(this,e,t)},Bn.compile=us,t.default=Bn}.call(t,n("DuR2"))},"77Pl":function(e,t,n){var i=n("EqjI");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},"7GwW":function(e,t,n){"use strict";var i=n("cGG2"),r=n("21It"),o=n("p1b6"),a=n("DQCr"),s=n("Oi+a"),l=n("oJlt"),u=n("GHBc"),c=n("FtD3");e.exports=function(e){return new Promise(function(t,n){var h=e.data,d=e.headers,f=e.responseType;i.isFormData(h)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var A=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(A+":"+g)}var v=s(e.baseURL,e.url);function m(){if(p){var i="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o={data:f&&"text"!==f&&"json"!==f?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:i,config:e,request:p};r(t,n,o),p=null}}if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=m:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(m)},p.onabort=function(){p&&(n(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},i.isStandardBrowserEnv()){var y=(e.withCredentials||u(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;y&&(d[e.xsrfHeaderName]=y)}"setRequestHeader"in p&&i.forEach(d,function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)}),i.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),f&&"json"!==f&&(p.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),n(e),p=null)}),h||(h=null),p.send(h)})}},"7J9s":function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var i=l(n("7+uW")),r=l(n("jmaC")),o=l(n("OAzY")),a=l(n("6Twh")),s=n("2kvA");function l(e){return e&&e.__esModule?e:{default:e}}var u=1,c=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-"+u++,o.default.register(this._popupId,this)},beforeDestroy:function(){o.default.deregister(this._popupId),o.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,i.default.nextTick(function(){t.open()}))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,r.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var i=Number(n.openDelay);i>0?this._openTimer=setTimeout(function(){t._openTimer=null,t.doOpen(n)},i):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,i=e.zIndex;if(i&&(o.default.zIndex=i),n&&(this._closing&&(o.default.closeModal(this._popupId),this._closing=!1),o.default.openModal(this._popupId,o.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,s.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,s.getStyle)(document.body,"paddingRight"),10)),c=(0,a.default)();var r=document.documentElement.clientHeight<document.body.scrollHeight,l=(0,s.getStyle)(document.body,"overflowY");c>0&&(r||"scroll"===l)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+c+"px"),(0,s.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=o.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(){o.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,s.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=o.default},"7KvD":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)},"7UMu":function(e,t,n){var i=n("R9M2");e.exports=Array.isArray||function(e){return"Array"==i(e)}},"82Mu":function(e,t,n){var i=n("7KvD"),r=n("L42u").set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,l="process"==n("R9M2")(a);e.exports=function(){var e,t,n,u=function(){var i,r;for(l&&(i=a.domain)&&i.exit();e;){r=e.fn,e=e.next;try{r()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(l)n=function(){a.nextTick(u)};else if(!o||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){r.call(i,u)};else{var h=!0,d=document.createTextNode("");new o(u).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},"835U":function(e,t,n){"use strict";t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=void 0;var i="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.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};var r,o=n("7+uW"),a=(r=o)&&r.__esModule?r:{default:r};var s=function(e){return e&&"[object Function]"==={}.toString.call(e)};"function"==typeof/./||"object"===("undefined"==typeof Int8Array?"undefined":i(Int8Array))||!a.default.prototype.$isServer&&"function"==typeof document.childNodes||(t.isFunction=s=function(e){return"function"==typeof e||!1}),t.isFunction=s;t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return void 0!==e&&null!==e}},"880/":function(e,t,n){e.exports=n("hJx8")},"8hRR":function(e,t,n){e.exports={default:n("B0bq"),__esModule:!0}},"94VQ":function(e,t,n){"use strict";var i=n("Yobk"),r=n("X8DO"),o=n("e6n0"),a={};n("hJx8")(a,n("dSzd")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},"9Gld":function(e,t,n){e.exports={default:n("u/Zb"),__esModule:!0}},"9bBU":function(e,t,n){n("mClu");var i=n("FeBl").Object;e.exports=function(e,t,n){return i.defineProperty(e,t,n)}},AMCD: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 i,r=n("eNfa"),o=(i=r)&&i.__esModule?i:{default:i},a=n("urW8");var s=["sun","mon","tue","wed","thu","fri","sat"],l=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],u=t.getI18nSettings=function(){return{dayNamesShort:s.map(function(e){return(0,a.t)("el.datepicker.weeks."+e)}),dayNames:s.map(function(e){return(0,a.t)("el.datepicker.weeks."+e)}),monthNamesShort:l.map(function(e){return(0,a.t)("el.datepicker.months."+e)}),monthNames:l.map(function(e,t){return(0,a.t)("el.datepicker.month"+(t+1))}),amPm:["am","pm"]}},c=t.toDate=function(e){return h(e)?new Date(e):null},h=t.isDate=function(e){return null!==e&&void 0!==e&&(!isNaN(new Date(e).getTime())&&!Array.isArray(e))},d=(t.isDateObject=function(e){return e instanceof Date},t.formatDate=function(e,t){return(e=c(e))?o.default.format(e,t||"yyyy-MM-dd",u()):""},t.parseDate=function(e,t){return o.default.parse(e,t||"yyyy-MM-dd",u())}),f=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},p=(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),i=n.getDay();return p(n,0===i?7:i)},t.getWeekNumber=function(e){if(!h(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 i=n.getDate();return g(t).map(function(e,n){return i-(t-n-1)})},t.getMonthDays=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return g(t).map(function(e,t){return t+1})};function A(e,t,n,i){for(var r=t;r<n;r++)e[r]=i}t.getRangeMinutes=function(e,t){var n=new Array(60);return e.length>0?e.forEach(function(e){var i=e[0],r=e[1],o=i.getHours(),a=i.getMinutes(),s=r.getHours(),l=r.getMinutes();o===t&&s!==t?A(n,a,60,!0):o===t&&s===t?A(n,a,l+1,!0):o!==t&&s===t?A(n,0,l+1,!0):o<t&&s>t&&A(n,0,60,!0)}):A(n,0,60,!0),n};var g=t.range=function(e){return Array.apply(null,{length:e}).map(function(e,t){return t})},v=t.modifyDate=function(e,t,n,i){return new Date(t,n,i,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},m=t.modifyTime=function(e,t,n,i){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,i,e.getMilliseconds())},y=(t.modifyWithTimeString=function(e,t){return null!=e&&t?(t=d(t,"HH:mm:ss"),m(e,t.getHours(),t.getMinutes(),t.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 i=function(e){return o.default.parse(o.default.format(e,n),n)},r=i(e),a=t.map(function(e){return e.map(i)});if(a.some(function(e){return r>=e[0]&&r<=e[1]}))return e;var s=a[0][0],l=a[0][0];return a.forEach(function(e){s=new Date(Math.min(e[0],s)),l=new Date(Math.max(e[1],s))}),v(r<s?s:l,e.getFullYear(),e.getMonth(),e.getDate())}),_=(t.timeWithinRange=function(e,t,n){return y(e,t,n).getTime()===e.getTime()},t.changeYearMonthAndClampDate=function(e,t,n){var i=Math.min(e.getDate(),f(t,n));return v(e,t,n,i)});t.prevMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 0===n?_(e,t-1,11):_(e,t,n-1)},t.nextMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 11===n?_(e,t+1,0):_(e,t,n+1)},t.prevYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),i=e.getMonth();return _(e,n-t,i)},t.nextYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),i=e.getMonth();return _(e,n+t,i)},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()}},AopE:function(e,t,n){"use strict";var i=n("7+uW"),r=n("R32S");const o=i.default.extend(r.a);let a,s;const l=(e={})=>{"string"==typeof e&&(e={url:e}),e.show=!0,Object.keys(s).map(t=>{void 0==e[t]&&(e[t]=s[t])}),(a=new o({data:e})).$mount();let t=a.$el;return document.body.appendChild(t),a},u=(e,t={})=>{s=t,e.prototype.$hevueImgPreview=l};"undefined"!=typeof window&&window.Vue&&u(window.Vue),t.a=u},B0bq:function(e,t,n){n("fWfb"),e.exports=n("FeBl").Object.getOwnPropertySymbols},BO1k:function(e,t,n){e.exports={default:n("fxRn"),__esModule:!0}},BwfY:function(e,t,n){n("fWfb"),n("M6a0"),n("OYls"),n("QWe/"),e.exports=n("FeBl").Symbol},C4MV:function(e,t,n){e.exports={default:n("9bBU"),__esModule:!0}},CXw9:function(e,t,n){"use strict";var i,r,o,a,s=n("O4g8"),l=n("7KvD"),u=n("+ZMJ"),c=n("RY/4"),h=n("kM2E"),d=n("EqjI"),f=n("lOnJ"),p=n("2KxR"),A=n("NWt+"),g=n("t8x9"),v=n("L42u").set,m=n("82Mu")(),y=n("qARP"),_=n("dNDb"),b=n("iUbK"),w=n("fJUb"),x=l.TypeError,C=l.process,S=C&&C.versions,k=S&&S.v8||"",B=l.Promise,T="process"==c(C),E=function(){},I=r=y.f,M=!!function(){try{var e=B.resolve(1),t=(e.constructor={})[n("dSzd")("species")]=function(e){e(E,E)};return(T||"function"==typeof PromiseRejectionEvent)&&e.then(E)instanceof t&&0!==k.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(e){}}(),D=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0;var n=e._c;m(function(){for(var i=e._v,r=1==e._s,o=0,a=function(t){var n,o,a,s=r?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(r||(2==e._h&&L(e),e._h=1),!0===s?n=i:(c&&c.enter(),n=s(i),c&&(c.exit(),a=!0)),n===t.promise?u(x("Promise-chain cycle")):(o=D(n))?o.call(n,l,u):l(n)):u(i)}catch(e){c&&!a&&c.exit(),u(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&F(e)})}},F=function(e){v.call(l,function(){var t,n,i,r=e._v,o=O(e);if(o&&(t=_(function(){T?C.emit("unhandledRejection",r,e):(n=l.onunhandledrejection)?n({promise:e,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)}),e._h=T||O(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},O=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){v.call(l,function(){var t;T?C.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},N=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()),P(t,!0))},R=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw x("Promise can't be resolved itself");(t=D(e))?m(function(){var i={_w:n,_d:!1};try{t.call(e,u(R,i,1),u(N,i,1))}catch(e){N.call(i,e)}}):(n._v=e,n._s=1,P(n,!1))}catch(e){N.call({_w:n,_d:!1},e)}}};M||(B=function(e){p(this,B,"Promise","_h"),f(e),i.call(this);try{e(u(R,this,1),u(N,this,1))}catch(e){N.call(this,e)}},(i=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("xH/j")(B.prototype,{then:function(e,t){var n=I(g(this,B));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=T?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new i;this.promise=e,this.resolve=u(R,e,1),this.reject=u(N,e,1)},y.f=I=function(e){return e===B||e===a?new o(e):r(e)}),h(h.G+h.W+h.F*!M,{Promise:B}),n("e6n0")(B,"Promise"),n("bRrM")("Promise"),a=n("FeBl").Promise,h(h.S+h.F*!M,"Promise",{reject:function(e){var t=I(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(s||!M),"Promise",{resolve:function(e){return w(s&&this===a?B:this,e)}}),h(h.S+h.F*!(M&&n("dY0y")(function(e){B.all(e).catch(E)})),"Promise",{all:function(e){var t=this,n=I(t),i=n.resolve,r=n.reject,o=_(function(){var n=[],o=0,a=1;A(e,!1,function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||i(n))},r)}),--a||i(n)});return o.e&&r(o.v),n.promise},race:function(e){var t=this,n=I(t),i=n.reject,r=_(function(){A(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},Cdx3:function(e,t,n){var i=n("sB3e"),r=n("lktj");n("uqUo")("keys",function(){return function(e){return r(i(e))}})},CwSZ:function(e,t,n){"use strict";var i=n("p8xL"),r=n("XgCd"),o={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,n,r,o,a,l,u,c,h,d,f,p){var A=t;if("function"==typeof u)A=u(n,A);else if(A instanceof Date)A=d(A);else if(null===A){if(o)return l&&!p?l(n,s.encoder):n;A=""}if("string"==typeof A||"number"==typeof A||"boolean"==typeof A||i.isBuffer(A))return l?[f(p?n:l(n,s.encoder))+"="+f(l(A,s.encoder))]:[f(n)+"="+f(String(A))];var g,v=[];if(void 0===A)return v;if(Array.isArray(u))g=u;else{var m=Object.keys(A);g=c?m.sort(c):m}for(var y=0;y<g.length;++y){var _=g[y];a&&null===A[_]||(v=Array.isArray(A)?v.concat(e(A[_],r(n,_),r,o,a,l,u,c,h,d,f,p)):v.concat(e(A[_],n+(h?"."+_:"["+_+"]"),r,o,a,l,u,c,h,d,f,p)))}return v};e.exports=function(e,t){var n=e,a=t?i.assign({},t):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var u=void 0===a.delimiter?s.delimiter:a.delimiter,c="boolean"==typeof a.strictNullHandling?a.strictNullHandling:s.strictNullHandling,h="boolean"==typeof a.skipNulls?a.skipNulls:s.skipNulls,d="boolean"==typeof a.encode?a.encode:s.encode,f="function"==typeof a.encoder?a.encoder:s.encoder,p="function"==typeof a.sort?a.sort:null,A=void 0!==a.allowDots&&a.allowDots,g="function"==typeof a.serializeDate?a.serializeDate:s.serializeDate,v="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:s.encodeValuesOnly;if(void 0===a.format)a.format=r.default;else if(!Object.prototype.hasOwnProperty.call(r.formatters,a.format))throw new TypeError("Unknown format option provided.");var m,y,_=r.formatters[a.format];"function"==typeof a.filter?n=(y=a.filter)("",n):Array.isArray(a.filter)&&(m=y=a.filter);var b,w=[];if("object"!=typeof n||null===n)return"";b=a.arrayFormat in o?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var x=o[b];m||(m=Object.keys(n)),p&&m.sort(p);for(var C=0;C<m.length;++C){var S=m[C];h&&null===n[S]||(w=w.concat(l(n[S],S,x,c,h,d?f:null,y,p,A,g,_,v)))}var k=w.join(u),B=!0===a.addQueryPrefix?"?":"";return k.length>0?B+k:""}},D2L2:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},DDCP:function(e,t,n){"use strict";var i=n("p8xL"),r=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:i.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t,n){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(i),s=a?i.slice(0,a.index):i,l=[];if(s){if(!n.plainObjects&&r.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var u=0;null!==(a=o.exec(i))&&u<n.depth;){if(u+=1,!n.plainObjects&&r.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+i.slice(a.index)+"]"),function(e,t,n){for(var i=t,r=e.length-1;r>=0;--r){var o,a=e[r];if("[]"===a)o=(o=[]).concat(i);else{o=n.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(s,10);!isNaN(l)&&a!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(o=[])[l]=i:o[s]=i}i=o}return i}(l,t,n)}};e.exports=function(e,t){var n=t?i.assign({},t):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||i.isRegExp(n.delimiter)?n.delimiter:o.delimiter,n.depth="number"==typeof n.depth?n.depth:o.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:o.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:o.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:o.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:o.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:o.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:o.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:o.strictNullHandling,""===e||null===e||void 0===e)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){for(var n={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,s=i.split(t.delimiter,a),l=0;l<s.length;++l){var u,c,h=s[l],d=h.indexOf("]="),f=-1===d?h.indexOf("="):d+1;-1===f?(u=t.decoder(h,o.decoder),c=t.strictNullHandling?null:""):(u=t.decoder(h.slice(0,f),o.decoder),c=t.decoder(h.slice(f+1),o.decoder)),r.call(n,u)?n[u]=[].concat(n[u]).concat(c):n[u]=c}return n}(e,n):e,l=n.plainObjects?Object.create(null):{},u=Object.keys(s),c=0;c<u.length;++c){var h=u[c],d=a(h,s[h],n);l=i.merge(l,d,n)}return i.compact(l)}},DQCr:function(e,t,n){"use strict";var i=n("cGG2");function r(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 o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,function(e,t){null!==e&&void 0!==e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},DQJY:function(e,t,n){"use strict";t.__esModule=!0;var i,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=n("hyEB"),a=(i=o)&&i.__esModule?i:{default:i};var s,l=l||{};l.Dialog=function(e,t,n){var i=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"==typeof t?this.focusAfterClosed=document.getElementById(t):"object"===(void 0===t?"undefined":r(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"==typeof n?this.focusFirst=document.getElementById(n):"object"===(void 0===n?"undefined":r(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():a.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,s=function(e){i.trapFocus(e)},this.addListeners()},l.Dialog.prototype.addListeners=function(){document.addEventListener("focus",s,!0)},l.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",s,!0)},l.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout(function(){e.focusAfterClosed.focus()})},l.Dialog.prototype.trapFocus=function(e){a.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(a.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&a.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t.default=l.Dialog},DUeU:function(e,t,n){"use strict";var i=n("cGG2");e.exports=function(e,t){t=t||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function u(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(e[r],t[r])}i.forEach(r,function(e){i.isUndefined(t[e])||(n[e]=l(void 0,t[e]))}),i.forEach(o,u),i.forEach(a,function(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(void 0,t[r])}),i.forEach(s,function(i){i in t?n[i]=l(e[i],t[i]):i in e&&(n[i]=l(void 0,e[i]))});var c=r.concat(o).concat(a).concat(s),h=Object.keys(e).concat(Object.keys(t)).filter(function(e){return-1===c.indexOf(e)});return i.forEach(h,u),n}},Dd8w:function(e,t,n){"use strict";t.__esModule=!0;var i,r=n("woOf"),o=(i=r)&&i.__esModule?i:{default:i};t.default=o.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}},Dia2:function(e,t,n){
  13. /**
  14. * @license
  15. * Video.js 6.13.0 <http://videojs.com/>
  16. * Copyright Brightcove, Inc. <https://www.brightcove.com/>
  17. * Available under Apache License Version 2.0
  18. * <https://github.com/videojs/video.js/blob/master/LICENSE>
  19. *
  20. * Includes vtt.js <https://github.com/mozilla/vtt.js>
  21. * Available under Apache License Version 2.0
  22. * <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
  23. */
  24. function i(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var r,o=i(n("awF4")),a=i(n("dwO+")),s=i(n("sN1u")),l=i(n("I/+Z")),u=i(n("1Xk4")),c=i(n("ciWi")),h="6.13.0",d=o.navigator&&o.navigator.userAgent||"",f=/AppleWebKit\/([\d.]+)/i.exec(d),p=f?parseFloat(f.pop()):null,A=/iPad/i.test(d),g=/iPhone/i.test(d)&&!A,v=/iPod/i.test(d),m=g||A||v,y=(r=d.match(/OS (\d+)_/i))&&r[1]?r[1]:null,_=/Android/i.test(d),b=function(){var e=d.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),w=_&&/webkit/i.test(d)&&b<2.3,x=_&&b<5&&p<537,C=/Firefox/i.test(d),S=/Edge/i.test(d),k=!S&&(/Chrome/i.test(d)||/CriOS/i.test(d)),B=function(){var e=d.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),T=/MSIE\s8\.0/.test(d),E=function(){var e=/MSIE\s(\d+)\.\d/.exec(d),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(d)&&/rv:11.0/.test(d)&&(t=11),t}(),I=/Safari/i.test(d)&&!k&&!_&&!S,M=(I||m)&&!k,D=ee()&&("ontouchstart"in o||o.navigator.maxTouchPoints||o.DocumentTouch&&o.document instanceof o.DocumentTouch),P=ee()&&"backgroundSize"in o.document.createElement("video").style,F=(Object.freeze||Object)({IS_IPAD:A,IS_IPHONE:g,IS_IPOD:v,IS_IOS:m,IOS_VERSION:y,IS_ANDROID:_,ANDROID_VERSION:b,IS_OLD_ANDROID:w,IS_NATIVE_ANDROID:x,IS_FIREFOX:C,IS_EDGE:S,IS_CHROME:k,CHROME_VERSION:B,IS_IE8:T,IE_VERSION:E,IS_SAFARI:I,IS_ANY_SAFARI:M,TOUCH_ENABLED:D,BACKGROUND_SIZE_SUPPORTED:P}),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=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},N=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)},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},U=function(e,t){return e.raw=t,e},Q=Object.prototype.toString,H=function(e){return z(e)?Object.keys(e):[]};function j(e,t){H(e).forEach(function(n){return t(e[n],n)})}function V(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?Object.assign.apply(Object,[e].concat(n)):(n.forEach(function(t){t&&j(t,function(t,n){e[n]=t})}),e)}function z(e){return!!e&&"object"===(void 0===e?"undefined":O(e))}function $(e){return z(e)&&"[object Object]"===Q.call(e)&&e.constructor===Object}var G=[],W=function(e,t){return function(n,i,r,a){var s=t.levels[i],l=new RegExp("^("+s+")$");if("log"!==n&&r.unshift(n.toUpperCase()+":"),r.unshift(e+":"),G&&G.push([].concat(r)),o.console){var u=o.console[n];u||"debug"!==n||(u=o.console.info||o.console.log),u&&s&&l.test(n)&&(a&&(r=r.map(function(e){if(z(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)}).join(" ")),u.apply?u[Array.isArray(r)?"apply":"call"](o.console,r):u(r))}}};var K=function e(t){var n="info",i=void 0,r=function e(){for(var t=e.stringify||E&&E<11,r=arguments.length,o=Array(r),a=0;a<r;a++)o[a]=arguments[a];i("log",n,o,t)};return i=W(t,r),r.createLogger=function(n){return e(t+": "+n)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},r.level=function(e){if("string"==typeof e){if(!r.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},(r.history=function(){return G?[].concat(G):[]}).filter=function(e){return(G||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},r.history.clear=function(){G&&(G.length=0)},r.history.disable=function(){null!==G&&(G.length=0,G=null)},r.history.enable=function(){null===G&&(G=[])},r.error=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return i("error",n,t)},r.warn=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return i("warn",n,t)},r.debug=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return i("debug",n,t)},r}("VIDEOJS"),Y=K.createLogger;function q(e,t){if(!e||!t)return"";if("function"==typeof o.getComputedStyle){var n=o.getComputedStyle(e);return n?n[t]:""}return e.currentStyle[t]||""}var X=U(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]);function J(e){return"string"==typeof e&&/\S/.test(e)}function Z(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function ee(){return a===o.document&&void 0!==a.createElement}function te(e){return z(e)&&1===e.nodeType}function ne(){try{return o.parent!==o.self}catch(e){return!0}}function ie(e){return function(t,n){if(!J(t))return a[e](null);J(n)&&(n=a.querySelector(n));var i=te(n)?n:a;return i[e]&&i[e](t)}}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],r=a.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(K.warn(s(X,e,n)),r.setAttribute(e,n)):"textContent"===e?oe(r,n):r[e]=n}),Object.getOwnPropertyNames(n).forEach(function(e){r.setAttribute(e,n[e])}),i&&Ce(r,i),r}function oe(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function ae(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function se(e,t){return Z(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function le(e,t){return e.classList?e.classList.add(t):se(e,t)||(e.className=(e.className+" "+t).trim()),e}function ue(e,t){return e.classList?e.classList.remove(t):(Z(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e}function ce(e,t,n){var i=se(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!i),n!==i)return n?le(e,t):ue(e,t),e}function he(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var i=t[n];null===i||void 0===i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)})}function de(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var o=i[r].name,a=i[r].value;"boolean"!=typeof e[o]&&-1===n.indexOf(","+o+",")||(a=null!==a),t[o]=a}return t}function fe(e,t){return e.getAttribute(t)}function pe(e,t,n){e.setAttribute(t,n)}function Ae(e,t){e.removeAttribute(t)}function ge(){a.body.focus(),a.onselectstart=function(){return!1}}function ve(){a.onselectstart=function(){return!0}}function me(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(n[e]=t[e])}),n.height||(n.height=parseFloat(q(e,"height"))),n.width||(n.width=parseFloat(q(e,"width"))),n}}function ye(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=a.documentElement,i=a.body,r=n.clientLeft||i.clientLeft||0,s=o.pageXOffset||i.scrollLeft,l=t.left+s-r,u=n.clientTop||i.clientTop||0,c=o.pageYOffset||i.scrollTop,h=t.top+c-u;return{left:Math.round(l),top:Math.round(h)}}function _e(e,t){var n={},i=ye(e),r=e.offsetWidth,o=e.offsetHeight,a=i.top,s=i.left,l=t.pageY,u=t.pageX;return t.changedTouches&&(u=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(a-l+o)/o)),n.x=Math.max(0,Math.min(1,(u-s)/r)),n}function be(e){return z(e)&&3===e.nodeType}function we(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function xe(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),te(e)||be(e)?e:"string"==typeof e&&/\S/.test(e)?a.createTextNode(e):void 0}).filter(function(e){return e})}function Ce(e,t){return xe(t).forEach(function(t){return e.appendChild(t)}),e}function Se(e,t){return Ce(we(e),t)}function ke(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||(9===E||0===e.button&&1===e.buttons))}var Be=ie("querySelector"),Te=ie("querySelectorAll"),Ee=(Object.freeze||Object)({isReal:ee,isEl:te,isInFrame:ne,createEl:re,textContent:oe,prependTo:ae,hasClass:se,addClass:le,removeClass:ue,toggleClass:ce,setAttributes:he,getAttributes:de,getAttribute:fe,setAttribute:pe,removeAttribute:Ae,blockTextSelection:ge,unblockTextSelection:ve,getBoundingClientRect:me,findPosition:ye,getPointerPosition:_e,isTextNode:be,emptyEl:we,normalizeContent:xe,appendContent:Ce,insertContent:Se,isSingleLeftClick:ke,$:Be,$$:Te}),Ie=1;function Me(){return Ie++}var De={},Pe="vdata"+(new Date).getTime();function Fe(e){var t=e[Pe];return t||(t=e[Pe]=Me()),De[t]||(De[t]={}),De[t]}function Oe(e){var t=e[Pe];return!!t&&!!Object.getOwnPropertyNames(De[t]).length}function Le(e){var t=e[Pe];if(t){delete De[t];try{delete e[Pe]}catch(t){e.removeAttribute?e.removeAttribute(Pe):e[Pe]=null}}}function Ne(e,t){var n=Fe(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Le(e)}function Re(e,t,n,i){n.forEach(function(n){e(t,n,i)})}function Ue(e){function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var i=e||o.event;for(var r in e={},i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&i.preventDefault||(e[r]=i[r]));if(e.target||(e.target=e.srcElement||a),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var s=a.documentElement,l=a.body;e.pageX=e.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var Qe=!1;!function(){try{var e=Object.defineProperty({},"passive",{get:function(){Qe=!0}});o.addEventListener("test",null,e),o.removeEventListener("test",null,e)}catch(e){}}();var He=["touchstart","touchmove"];function je(e,t,n){if(Array.isArray(t))return Re(je,e,t,n);var i=Fe(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=Me()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=Ue(t);var r=i.handlers[t.type];if(r)for(var o=r.slice(0),a=0,s=o.length;a<s&&!t.isImmediatePropagationStopped();a++)try{o[a].call(e,t,n)}catch(e){K.error(e)}}}),1===i.handlers[t].length)if(e.addEventListener){var r=!1;Qe&&He.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function Ve(e,t,n){if(Oe(e)){var i=Fe(e);if(i.handlers){if(Array.isArray(t))return Re(Ve,e,t,n);var r=function(e,t){i.handlers[t]=[],Ne(e,t)};if(void 0!==t){var o=i.handlers[t];if(o)if(n){if(n.guid)for(var a=0;a<o.length;a++)o[a].guid===n.guid&&o.splice(a--,1);Ne(e,t)}else r(e,t)}else for(var s in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},s)&&r(e,s)}}}function ze(e,t,n){var i=Oe(e)?Fe(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Ue(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)ze.call(null,r,t,n);else if(!r&&!t.defaultPrevented){var o=Fe(t.target);t.target[t.type]&&(o.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),o.disabled=!1)}return!t.defaultPrevented}function $e(e,t,n){if(Array.isArray(t))return Re($e,e,t,n);var i=function i(){Ve(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Me(),je(e,t,i)}var Ge=(Object.freeze||Object)({fixEvent:Ue,on:je,off:Ve,trigger:ze,one:$e}),We=!1,Ke=void 0,Ye=function(){if(ee()&&!1!==Ke.options.autoSetup){var e=a.getElementsByTagName("video"),t=a.getElementsByTagName("audio"),n=a.getElementsByTagName("video-js"),i=[];if(e&&e.length>0)for(var r=0,o=e.length;r<o;r++)i.push(e[r]);if(t&&t.length>0)for(var s=0,l=t.length;s<l;s++)i.push(t[s]);if(n&&n.length>0)for(var u=0,c=n.length;u<c;u++)i.push(n[u]);if(i&&i.length>0)for(var h=0,d=i.length;h<d;h++){var f=i[h];if(!f||!f.getAttribute){qe(1);break}void 0===f.player&&null!==f.getAttribute("data-setup")&&Ke(f)}else We||qe(1)}};function qe(e,t){t&&(Ke=t),o.setTimeout(Ye,e)}ee()&&"complete"===a.readyState?We=!0:$e(o,"load",function(){We=!0});var Xe=function(e){var t=a.createElement("style");return t.className=e,t},Je=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Ze=function(e,t,n){t.guid||(t.guid=Me());var i=function(){return t.apply(e,arguments)};return i.guid=n?n+"_"+t.guid:t.guid,i},et=function(e,t){var n=Date.now();return function(){var i=Date.now();i-n>=t&&(e.apply(void 0,arguments),n=i)}},tt=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o,r=void 0,a=function(){var o=this,a=arguments,s=function(){r=null,s=null,n||e.apply(o,a)};!r&&n&&e.apply(o,a),i.clearTimeout(r),r=i.setTimeout(s,t)};return a.cancel=function(){i.clearTimeout(r),r=null},a},nt=function(){};nt.prototype.allowedEvents_={},nt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},je(this,e,t),this.addEventListener=n},nt.prototype.addEventListener=nt.prototype.on,nt.prototype.off=function(e,t){Ve(this,e,t)},nt.prototype.removeEventListener=nt.prototype.off,nt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},$e(this,e,t),this.addEventListener=n},nt.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=Ue(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),ze(this,e)},nt.prototype.dispatchEvent=nt.prototype.trigger;var it=function(e){return e instanceof nt||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},rt=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},ot=function(e){if(!e.nodeName&&!it(e))throw new Error("Invalid target; must be a DOM node or evented object.")},at=function(e){if(!rt(e))throw new Error("Invalid event type; must be a non-empty string or array.")},st=function(e){if("function"!=typeof e)throw new Error("Invalid listener; must be a function.")},lt=function(e,t){var n=t.length<3||t[0]===e||t[0]===e.eventBusEl_,i=void 0,r=void 0,o=void 0;return n?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],o=t[1]):(i=t[0],r=t[1],o=t[2]),ot(i),at(r),st(o),{isTargetingSelf:n,target:i,type:r,listener:o=Ze(e,o)}},ut=function(e,t,n,i){ot(e),e.nodeName?Ge[t](e,n,i):e[t](n,i)},ct={on:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=lt(this,n),o=r.isTargetingSelf,a=r.target,s=r.type,l=r.listener;if(ut(a,"on",s,l),!o){var u=function(){return e.off(a,s,l)};u.guid=l.guid;var c=function(){return e.off("dispose",u)};c.guid=l.guid,ut(this,"on","dispose",u),ut(a,"on","dispose",c)}},one:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=lt(this,n),o=r.isTargetingSelf,a=r.target,s=r.type,l=r.listener;if(o)ut(a,"one",s,l);else{var u=function t(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];e.off(a,s,t),l.apply(null,i)};u.guid=l.guid,ut(a,"one",s,u)}},off:function(e,t,n){if(!e||rt(e))Ve(this.eventBusEl_,e,t);else{var i=e,r=t;ot(i),at(r),st(n),n=Ze(this,n),this.off("dispose",n),i.nodeName?(Ve(i,r,n),Ve(i,"dispose",n)):it(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(e,t){return ze(this.eventBusEl_,e,t)}};function ht(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).eventBusKey;if(t){if(!e[t].nodeName)throw new Error('The eventBusKey "'+t+'" does not refer to an element.');e.eventBusEl_=e[t]}else e.eventBusEl_=re("span",{className:"vjs-event-bus"});return V(e,ct),e.on("dispose",function(){e.off(),o.setTimeout(function(){e.eventBusEl_=null},0)}),e}var dt={state:{},setState:function(e){var t=this;"function"==typeof e&&(e=e());var n=void 0;return j(e,function(e,i){t.state[i]!==e&&((n=n||{})[i]={from:t.state[i],to:e}),t.state[i]=e}),n&&it(this)&&this.trigger({changes:n,type:"statechanged"}),n}};function ft(e,t){return V(e,dt),e.state=V({},e.state,t),"function"==typeof e.handleStateChanged&&it(e)&&e.on("statechanged",e.handleStateChanged),e}function pt(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function At(){for(var e={},t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach(function(t){t&&j(t,function(t,n){$(t)?($(e[n])||(e[n]={}),e[n]=At(e[n],t)):e[n]=t})}),e}var gt=function(){function e(t,n,i){if(L(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=At({},this.options_),n=this.options_=At(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var r=t&&t.id&&t.id()||"no_player";this.id_=r+"_component_"+Me()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),!1!==n.evented&&ht(this,{eventBusKey:this.el_?"el_":null}),ft(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(i),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return e.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Le(this.el_),this.el_=null),this.player_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return K.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=At(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,n){return re(e,t,n)},e.prototype.localize=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),o=r&&r[i],a=i&&i.split("-")[0],s=r&&r[a],l=n;return o&&o[e]?l=o[e]:s&&s[e]&&(l=s[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,n){var i=t[n-1],r=i;return void 0===i&&(r=e),r})),l},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){if(e)return e=pt(e),this.childNameIndex_[e]},e.prototype.addChild=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,o=void 0;if("string"==typeof t){o=pt(t);var a=n.componentClass||o;n.name=o;var s=e.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;r=new s(this.player_||this,n)}else r=t;if(this.children_.splice(i,0,r),"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(o=o||r.name&&pt(r.name()))&&(this.childNameIndex_[o]=r),"function"==typeof r.el&&r.el()){var l=this.contentEl().children[i]||null;this.contentEl().insertBefore(r.el(),l)}return r},e.prototype.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var t=this,n=this.options_.children;if(n){var i=this.options_,r=void 0,o=e.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(e){return!r.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var i=void 0,r=void 0;return"string"==typeof e?r=n[i=e]||t.options_[i]||{}:(i=e.name,r=e),{name:i,opts:r}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||pt(t.name));return n&&!o.isTech(n)}).forEach(function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var o=t.addChild(n,r);o&&(t[n]=o)}})}},e.prototype.buildCSSClass=function(){return""},e.prototype.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},e.prototype.$=function(e,t){return Be(e,t||this.contentEl())},e.prototype.$$=function(e,t){return Te(e,t||this.contentEl())},e.prototype.hasClass=function(e){return se(this.el_,e)},e.prototype.addClass=function(e){le(this.el_,e)},e.prototype.removeClass=function(e){ue(this.el_,e)},e.prototype.toggleClass=function(e,t){ce(this.el_,e,t)},e.prototype.show=function(){this.removeClass("vjs-hidden")},e.prototype.hide=function(){this.addClass("vjs-hidden")},e.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},e.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.prototype.getAttribute=function(e){return fe(this.el_,e)},e.prototype.setAttribute=function(e,t){pe(this.el_,e,t)},e.prototype.removeAttribute=function(e){Ae(this.el_,e)},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.prototype.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+pt(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"==typeof o.getComputedStyle){var n=o.getComputedStyle(this.el_);t=n.getPropertyValue(e)||n[e]}if(0===(t=parseFloat(t))){var i="offset"+pt(e);t=this.el_[i]}return t},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var e=0,t=null,n=void 0;this.on("touchstart",function(i){1===i.touches.length&&(t={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},e=(new Date).getTime(),n=!0)}),this.on("touchmove",function(e){if(e.touches.length>1)n=!1;else if(t){var i=e.touches[0].pageX-t.pageX,r=e.touches[0].pageY-t.pageY;Math.sqrt(i*i+r*r)>10&&(n=!1)}});var i=function(){n=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",function(i){(t=null,!0===n)&&((new Date).getTime()-e<200&&(i.preventDefault(),this.trigger("tap")))})},e.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e=Ze(this.player(),this.player().reportUserActivity),t=void 0;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.prototype.setTimeout=function(e,t){var n,i,r=this;return e=Ze(this,e),n=o.setTimeout(function(){r.off("dispose",i),e()},t),(i=function(){return r.clearTimeout(n)}).guid="vjs-timeout-"+n,this.on("dispose",i),n},e.prototype.clearTimeout=function(e){o.clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},e.prototype.setInterval=function(e,t){var n=this;e=Ze(this,e);var i=o.setInterval(e,t),r=function(){return n.clearInterval(i)};return r.guid="vjs-interval-"+i,this.on("dispose",r),i},e.prototype.clearInterval=function(e){o.clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e},e.prototype.requestAnimationFrame=function(e){var t,n,i=this;return this.supportsRaf_?(e=Ze(this,e),t=o.requestAnimationFrame(function(){i.off("dispose",n),e()}),(n=function(){return i.cancelAnimationFrame(t)}).guid="vjs-raf-"+t,this.on("dispose",n),t):this.setTimeout(e,1e3/60)},e.prototype.cancelAnimationFrame=function(e){if(this.supportsRaf_){o.cancelAnimationFrame(e);var t=function(){};return t.guid="vjs-raf-"+e,this.off("dispose",t),e}return this.clearTimeout(e)},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i=e.getComponent("Tech"),r=i&&i.isTech(n),o=e===n||e.prototype.isPrototypeOf(n.prototype);if(r||!o){var a=void 0;throw a=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+a+".")}t=pt(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var l=s.players,u=Object.keys(l);if(l&&u.length>0&&u.map(function(e){return l[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,n},e.getComponent=function(t){if(t)return t=pt(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();function vt(e,t,n,i){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,i,n.length-1),n[i][t]}function mt(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:vt.bind(null,"start",0,e),end:vt.bind(null,"end",1,e)}}function yt(e,t){return Array.isArray(e)?mt(e):void 0===e||void 0===t?mt():mt([[e,t]])}function _t(e,t){var n=0,i=void 0,r=void 0;if(!t)return 0;e&&e.length||(e=yt(0,0));for(var o=0;o<e.length;o++)i=e.start(o),(r=e.end(o))>t&&(r=t),n+=r-i;return n/t}gt.prototype.supportsRaf_="function"==typeof o.requestAnimationFrame&&"function"==typeof o.cancelAnimationFrame,gt.registerComponent("Component",gt);for(var bt={},wt=[["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"]],xt=wt[0],Ct=void 0,St=0;St<wt.length;St++)if(wt[St][1]in a){Ct=wt[St];break}if(Ct)for(var kt=0;kt<Ct.length;kt++)bt[xt[kt]]=Ct[kt];function Bt(e){if(e instanceof Bt)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:z(e)&&("number"==typeof e.code&&(this.code=e.code),V(this,e)),this.message||(this.message=Bt.defaultMessages[this.code]||"")}Bt.prototype.code=0,Bt.prototype.message="",Bt.prototype.status=null,Bt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Bt.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Tt=0;Tt<Bt.errorTypes.length;Tt++)Bt[Bt.errorTypes[Tt]]=Tt,Bt.prototype[Bt.errorTypes[Tt]]=Tt;function Et(e){return void 0!==e&&null!==e&&"function"==typeof e.then}function It(e){Et(e)&&e.then(null,function(e){})}var Mt=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,n,i){return e[n]&&(t[n]=e[n]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},Dt=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=Mt(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===n.indexOf(e)}).map(Mt))},Pt=function(e,t){return e.forEach(function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return n.addCue(e)})}),t.textTracks()},Ft="vjs-modal-dialog",Ot=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=re("div",{className:Ft+"-content"},{role:"document"}),r.descEl_=re("p",{className:Ft+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),oe(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}return N(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return Ft+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(e){27===e.which&&this.closeable()&&this.close()},t.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},t.prototype.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.prototype.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",Ze(this,this.handleKeyPress)),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.prototype.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",Ze(this,this.handleKeyPress)),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.prototype.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var i=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(n,"close",this.close)}!t&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},t.prototype.fill=function(){this.fillWith(this.content())},t.prototype.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Se(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},t.prototype.empty=function(){this.trigger("beforemodalempty"),we(this.contentEl()),this.trigger("modalempty")},t.prototype.content=function(e){return void 0!==e&&(this.content_=e),this.content_},t.prototype.conditionalFocus_=function(){var e=a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus(),this.on(a,"keydown",this.handleKeyDown))},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(a,"keydown",this.handleKeyDown)},t.prototype.handleKeyDown=function(e){if(9===e.which){for(var t=this.focusableEls_(),n=this.el_.querySelector(":focus"),i=void 0,r=0;r<t.length;r++)if(n===t[r]){i=r;break}a.activeElement===this.el_&&(i=0),e.shiftKey&&0===i?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||i!==t.length-1||(t[0].focus(),e.preventDefault())}},t.prototype.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof o.HTMLAnchorElement||e instanceof o.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof o.HTMLInputElement||e instanceof o.HTMLSelectElement||e instanceof o.HTMLTextAreaElement||e instanceof o.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof o.HTMLIFrameElement||e instanceof o.HTMLObjectElement||e instanceof o.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},t}(gt);Ot.prototype.options_={pauseOnOpen:!0,temporary:!0},gt.registerComponent("ModalDialog",Ot);var Lt=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;L(this,t);var r=R(this,e.call(this));if(!i&&(i=r,T))for(var o in i=a.createElement("custom"),t.prototype)"constructor"!==o&&(i[o]=t.prototype[o]);i.tracks_=[],Object.defineProperty(i,"length",{get:function(){return this.tracks_.length}});for(var s=0;s<n.length;s++)i.addTrack(n[s]);return R(r,i)}return N(t,e),t.prototype.addTrack=function(e){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack"}))},t.prototype.removeTrack=function(e){for(var t=void 0,n=0,i=this.length;n<i;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},t}(nt);for(var Nt in Lt.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},Lt.prototype.allowedEvents_)Lt.prototype["on"+Nt]=null;var Rt=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},Ut=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];L(this,t);for(var r=void 0,o=i.length-1;o>=0;o--)if(i[o].enabled){Rt(i,i[o]);break}if(T){for(var s in r=a.createElement("custom"),Lt.prototype)"constructor"!==s&&(r[s]=Lt.prototype[s]);for(var l in t.prototype)"constructor"!==l&&(r[l]=t.prototype[l])}return(r=n=R(this,e.call(this,i,r))).changing_=!1,R(n,r)}return N(t,e),t.prototype.addTrack=function(t){var n=this;t.enabled&&Rt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,Rt(n,t),n.changing_=!1,n.trigger("change"))})},t}(Lt),Qt=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},Ht=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];L(this,t);for(var r=void 0,o=i.length-1;o>=0;o--)if(i[o].selected){Qt(i,i[o]);break}if(T){for(var s in r=a.createElement("custom"),Lt.prototype)"constructor"!==s&&(r[s]=Lt.prototype[s]);for(var l in t.prototype)"constructor"!==l&&(r[l]=t.prototype[l])}return(r=n=R(this,e.call(this,i,r))).changing_=!1,Object.defineProperty(r,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),R(n,r)}return N(t,e),t.prototype.addTrack=function(t){var n=this;t.selected&&Qt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,Qt(n,t),n.changing_=!1,n.trigger("change"))})},t}(Lt),jt=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];L(this,t);var r=void 0;if(T){for(var o in r=a.createElement("custom"),Lt.prototype)"constructor"!==o&&(r[o]=Lt.prototype[o]);for(var s in t.prototype)"constructor"!==s&&(r[s]=t.prototype[s])}return n=R(this,e.call(this,i,r)),R(n,r=n)}return N(t,e),t.prototype.addTrack=function(t){e.prototype.addTrack.call(this,t),t.addEventListener("modechange",Ze(this,function(){this.trigger("change")}));-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",Ze(this,function(){this.trigger("selectedlanguagechange")}))},t}(Lt),Vt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];L(this,e);var n=this;if(T)for(var i in n=a.createElement("custom"),e.prototype)"constructor"!==i&&(n[i]=e.prototype[i]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var r=0,o=t.length;r<o;r++)n.addTrackElement_(t[r]);if(T)return n}return e.prototype.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},e.prototype.getTrackElementByTrack_=function(e){for(var t=void 0,n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},e.prototype.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},e}(),zt=function(){function e(t){L(this,e);var n=this;if(T)for(var i in n=a.createElement("custom"),e.prototype)"constructor"!==i&&(n[i]=e.prototype[i]);if(e.prototype.setCues_.call(n,t),Object.defineProperty(n,"length",{get:function(){return this.length_}}),T)return n}return e.prototype.setCues_=function(e){var t=this.length||0,n=0,i=e.length;this.cues_=e,this.length_=e.length;var r=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<i)for(n=t;n<i;n++)r.call(this,n)},e.prototype.getCueById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},e}(),$t={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Gt={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Wt={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Kt={disabled:"disabled",hidden:"hidden",showing:"showing"},Yt=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L(this,t);var i=R(this,e.call(this)),r=i;if(T)for(var o in r=a.createElement("custom"),t.prototype)"constructor"!==o&&(r[o]=t.prototype[o]);var s={id:n.id||"vjs_track_"+Me(),kind:n.kind||"",label:n.label||"",language:n.language||""},l=function(e){Object.defineProperty(r,e,{get:function(){return s[e]},set:function(){}})};for(var u in s)l(u);return R(i,r)}return N(t,e),t}(nt),qt=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=a.createElement("a");n.href=e;var i=""===n.host&&"file:"!==n.protocol,r=void 0;i&&((r=a.createElement("div")).innerHTML='<a href="'+e+'"></a>',n=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),a.body.appendChild(r));for(var s={},l=0;l<t.length;l++)s[t[l]]=n[t[l]];return"http:"===s.protocol&&(s.host=s.host.replace(/:80$/,"")),"https:"===s.protocol&&(s.host=s.host.replace(/:443$/,"")),s.protocol||(s.protocol=o.location.protocol),i&&a.body.removeChild(r),s},Xt=function(e){if(!e.match(/^https?:\/\//)){var t=a.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},Jt=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(e);if(t)return t.pop().toLowerCase()}return""},Zt=function(e){var t=o.location,n=qt(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},en=(Object.freeze||Object)({parseUrl:qt,getAbsoluteURL:Xt,getFileExtension:Jt,isCrossOrigin:Zt}),tn=function(e,t){var n=new o.WebVTT.Parser(o,o.vttjs,o.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(o.console&&o.console.groupCollapsed&&o.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach(function(e){return K.error(e)}),o.console&&o.console.groupEnd&&o.console.groupEnd()),n.flush()},nn=function(e,t){var n={uri:e},i=Zt(e);i&&(n.cors=i),u(n,Ze(this,function(e,n,i){if(e)return K.error(e,n);if(t.loaded_=!0,"function"!=typeof o.WebVTT){if(t.tech_){var r=function(){return tn(i,t)};t.tech_.on("vttjsloaded",r),t.tech_.on("vttjserror",function(){K.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",r)})}}else tn(i,t)}))},rn=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(L(this,t),!i.tech)throw new Error("A tech was not provided.");var r=At(i,{kind:Wt[i.kind]||"subtitles",language:i.language||i.srclang||""}),o=Kt[r.mode]||"disabled",a=r.default;"metadata"!==r.kind&&"chapters"!==r.kind||(o="hidden");var s=n=R(this,e.call(this,r));if(s.tech_=r.tech,T)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);s.cues_=[],s.activeCues_=[];var u=new zt(s.cues_),c=new zt(s.activeCues_),h=!1,d=Ze(s,function(){this.activeCues=this.activeCues,h&&(this.trigger("cuechange"),h=!1)});return"disabled"!==o&&s.tech_.ready(function(){s.tech_.on("timeupdate",d)},!0),Object.defineProperty(s,"default",{get:function(){return a},set:function(){}}),Object.defineProperty(s,"mode",{get:function(){return o},set:function(e){var t=this;Kt[e]&&("disabled"!==(o=e)?this.tech_.ready(function(){t.tech_.on("timeupdate",d)},!0):this.tech_.off("timeupdate",d),this.trigger("modechange"))}}),Object.defineProperty(s,"cues",{get:function(){return this.loaded_?u:null},set:function(){}}),Object.defineProperty(s,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return c;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];r.startTime<=e&&r.endTime>=e?t.push(r):r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e&&t.push(r)}if(h=!1,t.length!==this.activeCues_.length)h=!0;else for(var o=0;o<t.length;o++)-1===this.activeCues_.indexOf(t[o])&&(h=!0);return this.activeCues_=t,c.setCues_(this.activeCues_),c},set:function(){}}),r.src?(s.src=r.src,nn(r.src,s)):s.loaded_=!0,R(n,s)}return N(t,e),t.prototype.addCue=function(e){var t=e;if(o.vttjs&&!(e instanceof o.vttjs.VTTCue)){for(var n in t=new o.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var i=this.tech_.textTracks(),r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(Yt);rn.prototype.allowedEvents_={cuechange:"cuechange"};var on=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L(this,t);var r=At(i,{kind:Gt[i.kind]||""}),o=n=R(this,e.call(this,r)),a=!1;if(T)for(var s in t.prototype)"constructor"!==s&&(o[s]=t.prototype[s]);return Object.defineProperty(o,"enabled",{get:function(){return a},set:function(e){"boolean"==typeof e&&e!==a&&(a=e,this.trigger("enabledchange"))}}),r.enabled&&(o.enabled=r.enabled),o.loaded_=!0,R(n,o)}return N(t,e),t}(Yt),an=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L(this,t);var r=At(i,{kind:$t[i.kind]||""}),o=n=R(this,e.call(this,r)),a=!1;if(T)for(var s in t.prototype)"constructor"!==s&&(o[s]=t.prototype[s]);return Object.defineProperty(o,"selected",{get:function(){return a},set:function(e){"boolean"==typeof e&&e!==a&&(a=e,this.trigger("selectedchange"))}}),r.selected&&(o.selected=r.selected),R(n,o)}return N(t,e),t}(Yt),sn=0,ln=2,un=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L(this,t);var i=R(this,e.call(this)),r=void 0,o=i;if(T)for(var s in o=a.createElement("custom"),t.prototype)"constructor"!==s&&(o[s]=t.prototype[s]);var l=new rn(n);return o.kind=l.kind,o.src=l.src,o.srclang=l.language,o.label=l.label,o.default=l.default,Object.defineProperty(o,"readyState",{get:function(){return r}}),Object.defineProperty(o,"track",{get:function(){return l}}),r=sn,l.addEventListener("loadeddata",function(){r=ln,o.trigger({type:"load",target:o})}),T?R(i,o):i}return N(t,e),t}(nt);un.prototype.allowedEvents_={load:"load"},un.NONE=sn,un.LOADING=1,un.LOADED=ln,un.ERROR=3;var cn={audio:{ListClass:Ut,TrackClass:on,capitalName:"Audio"},video:{ListClass:Ht,TrackClass:an,capitalName:"Video"},text:{ListClass:jt,TrackClass:rn,capitalName:"Text"}};Object.keys(cn).forEach(function(e){cn[e].getterName=e+"Tracks",cn[e].privateName=e+"Tracks_"});var hn={remoteText:{ListClass:jt,TrackClass:rn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Vt,TrackClass:un,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},dn=At(cn,hn);hn.names=Object.keys(hn),cn.names=Object.keys(cn),dn.names=[].concat(hn.names).concat(cn.names);var fn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};L(this,t),n.reportTouchActivity=!1;var r=R(this,e.call(this,null,n,i));return r.hasStarted_=!1,r.on("playing",function(){this.hasStarted_=!0}),r.on("loadstart",function(){this.hasStarted_=!1}),dn.names.forEach(function(e){var t=dn[e];n&&n[t.getterName]&&(r[t.privateName]=n[t.getterName])}),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===n["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)}),!1===n.nativeCaptions||!1===n.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==n.nativeCaptions&&!0!==n.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new dn.text.ListClass,r.initTrackListeners(),n.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}return N(t,e),t.prototype.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Ze(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return yt(0,0)},t.prototype.bufferedPercent=function(){return _t(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(cn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var t=this;(e=[].concat(e)).forEach(function(e){for(var n=t[e+"Tracks"]()||[],i=n.length;i--;){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}})},t.prototype.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},t.prototype.reset=function(){},t.prototype.error=function(e){return void 0!==e&&(this.error_=new Bt(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?yt(0,0):yt()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;cn.names.forEach(function(t){var n=cn[t],i=function(){e.trigger(t+"trackchange")},r=e[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)})})},t.prototype.addWebVttScript_=function(){var e=this;if(!o.WebVTT)if(a.body.contains(this.el())){if(!this.options_["vtt.js"]&&$(c)&&Object.keys(c).length>0)return void this.trigger("vttjsloaded");var t=a.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),o.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var o=function(){return e.trigger("texttrackchange")},a=function(){o();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};a(),t.addEventListener("change",a),t.addEventListener("addtrack",a),t.addEventListener("removetrack",a),this.on("dispose",function(){n.off("addtrack",i),n.off("removetrack",r),t.removeEventListener("change",a),t.removeEventListener("addtrack",a),t.removeEventListener("removetrack",a);for(var e=0;e<t.length;e++){t[e].removeEventListener("cuechange",o)}})},t.prototype.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var a=new dn.text.TrackClass(r);return o.addTrack(a),a}(this,e,t,n)},t.prototype.createRemoteTextTrack=function(e){var t=At(e,{tech:this});return new hn.remoteTextEl.TrackClass(t)},t.prototype.addRemoteTextTrack=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],i=this.createRemoteTextTrack(t);return!0!==n&&!1!==n&&(K.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),n=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==n&&this.ready(function(){return e.autoRemoteTextTracks_.addTrack(i.track)}),i},t.prototype.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=pt(e),t.techs_[e]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return e=pt(e),t.techs_&&t.techs_[e]?t.techs_[e]:o&&o.videojs&&o.videojs[e]?(K.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),o.videojs[e]):void 0},t}(gt);dn.names.forEach(function(e){var t=dn[e];fn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),fn.prototype.featuresVolumeControl=!0,fn.prototype.featuresMuteControl=!0,fn.prototype.featuresFullscreenResize=!1,fn.prototype.featuresPlaybackRate=!1,fn.prototype.featuresProgressEvents=!1,fn.prototype.featuresSourceset=!1,fn.prototype.featuresTimeupdateEvents=!1,fn.prototype.featuresNativeTextTracks=!1,fn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n=e.sourceHandlers||[],i=void 0,r=0;r<n.length;r++)if(i=n[r].canPlayType(t))return i;return""},e.selectSourceHandler=function(t,n){for(var i=e.sourceHandlers||[],r=0;r<i.length;r++)if(i[r].canHandleSource(t,n))return i[r];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""};["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:K.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},gt.registerComponent("Tech",fn),fn.registerTech("Tech",fn),fn.defaultTechOrder_=[];var pn={},An={},gn={};function vn(e,t,n){e.setTimeout(function(){return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];var i=arguments[2];var r=arguments[3];var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];var s=n[0],l=n.slice(1);if("string"==typeof s)e(t,pn[s],i,r,o,a);else if(s){var u=function(e,t){var n=An[e.id()],i=null;if(void 0===n||null===n)return i=t(e),An[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var o=n[r],a=o[0],s=o[1];a===t&&(i=s)}null===i&&(i=t(e),n.push([t,i]));return i}(r,s);if(!u.setSource)return o.push(u),e(t,l,i,r,o,a);u.setSource(V({},t),function(n,s){if(n)return e(t,l,i,r,o,a);o.push(u),e(s,t.type===s.type?l:pn[s.type],i,r,o,a)})}else l.length?e(t,l,i,r,o,a):a?i(t,o):e(t,pn["*"],i,r,o,!0)}(t,pn[t.type],n,e)},1)}function mn(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r="call"+pt(n),o=e.reduce(wn(r),i),a=o===gn,s=a?null:t[n](o);return function(e,t,n,i){for(var r=e.length-1;r>=0;r--){var o=e[r];o[t]&&o[t](i,n)}}(e,n,s,a),s}var yn={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},_n={setCurrentTime:1},bn={play:1,pause:1};function wn(e){return function(t,n){return t===gn?gn:n[e]?n[e](t):t}}var xn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Cn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Jt(e);return xn[t.toLowerCase()]||""};function Sn(e){var t=Cn(e.src);return!e.type&&t&&(e.type=t),e}var kn=function(e){function t(n,i,r){L(this,t);var o=At({createEl:!1},i),a=R(this,e.call(this,n,o,r));if(i.playerOptions.sources&&0!==i.playerOptions.sources.length)n.src(i.playerOptions.sources);else for(var s=0,l=i.playerOptions.techOrder;s<l.length;s++){var u=pt(l[s]),c=fn.getTech(u);if(u||(c=gt.getComponent(u)),c&&c.isSupported()){n.loadTech_(u);break}}return a}return N(t,e),t}(gt);gt.registerComponent("MediaLoader",kn);var Bn=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.emitTapEvents(),r.enable(),r}return N(t,e),t.prototype.createEl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=V({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&K.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),i=V({role:"button"},i),this.tabIndex_=n.tabIndex;var r=e.prototype.createEl.call(this,t,n,i);return this.createControlTextEl(r),r},t.prototype.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=re("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,oe(this.controlTextEl_,n),this.nonIconControl||t.setAttribute("title",n)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){je(a,"keydown",Ze(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(e){Ve(a,"keydown",Ze(this,this.handleKeyPress))},t}(gt);gt.registerComponent("ClickableComponent",Bn);var Tn=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.update(),n.on("posterchange",Ze(r,r.update)),r}return N(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=re("div",{className:"vjs-poster",tabIndex:-1});return P||(this.fallbackImg_=re("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?It(this.player_.play()):this.player_.pause())},t}(Bn);gt.registerComponent("PosterImage",Tn);var En={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function In(e,t){var n=void 0;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Mn(e,t,n){try{e.style[t]=n}catch(e){return}}var Dn=function(e){function t(n,i,r){L(this,t);var a=R(this,e.call(this,n,i,r)),s=Ze(a,a.updateDisplay);return n.on("loadstart",Ze(a,a.toggleDisplay)),n.on("texttrackchange",s),n.on("loadstart",Ze(a,a.preselectTrack)),n.ready(Ze(a,function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",s),n.on("playerresize",s),o.addEventListener&&o.addEventListener("orientationchange",s),n.on("dispose",function(){return o.removeEventListener("orientationchange",s)});for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t],!0);this.preselectTrack()}})),a}return N(t,e),t.prototype.preselectTrack=function(){for(var e={captions:1,subtitles:1},t=this.player_.textTracks(),n=this.player_.cache_.selectedLanguage,i=void 0,r=void 0,o=void 0,a=0;a<t.length;a++){var s=t[a];n&&n.enabled&&n.language===s.language?s.kind===n.kind?o=s:o||(o=s):n&&!n.enabled?(o=null,i=null,r=null):s.default&&("descriptions"!==s.kind||i?s.kind in e&&!r&&(r=s):i=s)}o?o.mode="showing":r?r.mode="showing":i&&(i.mode="showing")},t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){"function"==typeof o.WebVTT&&o.WebVTT.processCues(o,[],this.el_)},t.prototype.updateDisplay=function(){var e=this.player_.textTracks();this.clearDisplay();for(var t=null,n=null,i=e.length;i--;){var r=e[i];"showing"===r.mode&&("descriptions"===r.kind?t=r:n=r)}n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):t&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(t))},t.prototype.updateForTrack=function(e){if("function"==typeof o.WebVTT&&e.activeCues){for(var t=[],n=0;n<e.activeCues.length;n++)t.push(e.activeCues[n]);if(o.WebVTT.processCues(o,t,this.el_),this.player_.textTrackSettings)for(var i=this.player_.textTrackSettings.getValues(),r=t.length;r--;){var a=t[r];if(a){var s=a.displayState;if(i.color&&(s.firstChild.style.color=i.color),i.textOpacity&&Mn(s.firstChild,"color",In(i.color||"#fff",i.textOpacity)),i.backgroundColor&&(s.firstChild.style.backgroundColor=i.backgroundColor),i.backgroundOpacity&&Mn(s.firstChild,"backgroundColor",In(i.backgroundColor||"#000",i.backgroundOpacity)),i.windowColor&&(i.windowOpacity?Mn(s,"backgroundColor",In(i.windowColor,i.windowOpacity)):s.style.backgroundColor=i.windowColor),i.edgeStyle&&("dropshadow"===i.edgeStyle?s.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===i.edgeStyle?s.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===i.edgeStyle?s.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===i.edgeStyle&&(s.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),i.fontPercent&&1!==i.fontPercent){var l=o.parseFloat(s.style.fontSize);s.style.fontSize=l*i.fontPercent+"px",s.style.height="auto",s.style.top="auto",s.style.bottom="2px"}i.fontFamily&&"default"!==i.fontFamily&&("small-caps"===i.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=En[i.fontFamily])}}}},t}(gt);gt.registerComponent("TextTrackDisplay",Dn);var Pn=function(e){function t(){return L(this,t),R(this,e.apply(this,arguments))}return N(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),i=re("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),r=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},t}(gt);gt.registerComponent("LoadingSpinner",Pn);var Fn=function(e){function t(){return L(this,t),R(this,e.apply(this,arguments))}return N(t,e),t.prototype.createEl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=V({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=V({type:"button"},n);var i=gt.prototype.createEl.call(this,"button",t,n);return this.createControlTextEl(i),i},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return K.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),gt.prototype.addChild.call(this,e,t)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(Bn);gt.registerComponent("Button",Fn);var On=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)It(t);else{var n=this.player_.getChild("controlBar"),i=n&&n.getChild("playToggle");if(i){var r=function(){return i.focus()};Et(t)?t.then(r,function(){}):this.setTimeout(r,1)}else this.player_.focus()}},t.prototype.handleKeyPress=function(t){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,t)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(Fn);On.prototype.controlText_="Play Video",gt.registerComponent("BigPlayButton",On);var Ln=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.controlText(i&&i.controlText||r.localize("Close")),r}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(Fn);gt.registerComponent("CloseButton",Ln);var Nn=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"play",r.handlePlay),r.on(n,"pause",r.handlePause),r.on(n,"ended",r.handleEnded),r}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(Fn);Nn.prototype.controlText_="Play",gt.registerComponent("PlayToggle",Nn);var Rn=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),o=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),(r=r>0||a>0?r+":":"")+(i=((r||o>=10)&&i<10?"0"+i:i)+":")+(n=n<10?"0"+n:n)},Un=Rn;var Qn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Un(e,t)},Hn=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.throttledUpdateContent=et(Ze(r,r.updateContent),25),r.on(n,"timeupdate",r.throttledUpdateContent),r}return N(t,e),t.prototype.createEl=function(t){var n=this.buildCSSClass(),i=e.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=re("span",{className:n+"-display"},{"aria-live":"off"}),this.updateTextNode_(),i.appendChild(this.contentEl_),i},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=a.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return Qn(e)},t.prototype.updateFormattedTime_=function(e){var t=this.formatTime_(e);t!==this.formattedTime_&&(this.formattedTime_=t,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(e){},t}(gt);Hn.prototype.labelText_="Time",Hn.prototype.controlText_="Time",gt.registerComponent("TimeDisplay",Hn);var jn=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"ended",r.handleEnded),r}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(t)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(Hn);jn.prototype.labelText_="Current Time",jn.prototype.controlText_="Current Time",gt.registerComponent("CurrentTimeDisplay",jn);var Vn=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"durationchange",r.updateContent),r.on(n,"loadedmetadata",r.throttledUpdateContent),r}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var t=this.player_.duration();t&&this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},t}(Hn);Vn.prototype.labelText_="Duration",Vn.prototype.controlText_="Duration",gt.registerComponent("DurationDisplay",Vn);var zn=function(e){function t(){return L(this,t),R(this,e.apply(this,arguments))}return N(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(gt);gt.registerComponent("TimeDivider",zn);var $n=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"durationchange",r.throttledUpdateContent),r.on(n,"ended",r.handleEnded),r}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(t){return"-"+e.prototype.formatTime_.call(this,t)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(Hn);$n.prototype.labelText_="Remaining Time",$n.prototype.controlText_="Remaining Time",gt.registerComponent("RemainingTimeDisplay",$n);var Gn=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}return N(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=re("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(gt);gt.registerComponent("LiveDisplay",Gn);var Wn=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}return N(t,e),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.prototype.createEl=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=V({tabIndex:0},n),i=V({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||k||e.preventDefault(),ge(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;ve(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!=typeof e||e!=e||e<0||e===1/0)&&(e=0);var n=(100*e).toFixed(2)+"%",i=t.el().style;return this.vertical()?i.height=n:i.width=n,e}}},t.prototype.calculateDistance=function(e){var t=_e(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(gt);gt.registerComponent("Slider",Wn);var Kn=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.partEls_=[],r.on(n,"progress",r.update),r}return N(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},t.prototype.update=function(e){var t=this.player_.buffered(),n=this.player_.duration(),i=this.player_.bufferedEnd(),r=this.partEls_,o=function(e,t){var n=e/t||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=o(i,n);for(var a=0;a<t.length;a++){var s=t.start(a),l=t.end(a),u=r[a];u||(u=this.el_.appendChild(re()),r[a]=u),u.style.left=o(s,i),u.style.width=o(l-s,i)}for(var c=r.length;c>t.length;c--)this.el_.removeChild(r[c-1]);r.length=t.length},t}(gt);gt.registerComponent("LoadProgressBar",Kn);var Yn=function(e){function t(){return L(this,t),R(this,e.apply(this,arguments))}return N(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,t,n){var i=me(this.el_),r=me(this.player_.el()),o=e.width*t;if(r&&i){var a=e.left-r.left+o,s=e.width-o+(r.right-e.right),l=i.width/2;a<l?l+=l-a:s<l&&(l=s),l<0?l=0:l>i.width&&(l=i.width),this.el_.style.right="-"+l+"px",oe(this.el_,n)}},t}(gt);gt.registerComponent("TimeTooltip",Yn);var qn=function(e){function t(){return L(this,t),R(this,e.apply(this,arguments))}return N(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var i=n.player_.scrubbing()?n.player_.getCache().currentTime:n.player_.currentTime(),r=Qn(i,n.player_.duration()),o=n.getChild("timeTooltip");o&&o.update(e,t,r)})},t}(gt);qn.prototype.options_={children:[]},E&&!(E>8)||m||_||qn.prototype.options_.children.push("timeTooltip"),gt.registerComponent("PlayProgressBar",qn);var Xn=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.update=et(Ze(r,r.update),25),r}return N(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var i=n.player_.duration(),r=Qn(t*i,i);n.el_.style.left=e.width*t+"px",n.getChild("timeTooltip").update(e,t,r)})},t}(gt);Xn.prototype.options_={children:["timeTooltip"]},gt.registerComponent("MouseTimeDisplay",Xn);var Jn=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.setEventHandlers_(),r}return N(t,e),t.prototype.setEventHandlers_=function(){var e=this;this.update=et(Ze(this,this.update),30),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],function(){e.clearInterval(e.updateInterval),e.updateInterval=e.setInterval(function(){e.requestAnimationFrame(function(){e.update()})},30)}),this.on(this.player_,["ended","pause","waiting"],function(){e.clearInterval(e.updateInterval)}),this.on(this.player_,["timeupdate","ended"],this.update)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,t){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[Qn(e,n),Qn(n,n)],"{1} of {2}")),this.bar.update(me(this.el_),t)},t.prototype.update=function(t){var n=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){ke(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},t.prototype.handleMouseMove=function(e){if(ke(e)){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)}},t.prototype.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},t.prototype.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},t.prototype.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&It(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t}(Wn);Jn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},E&&!(E>8)||m||_||Jn.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Jn.prototype.playerEvent="timeupdate",gt.registerComponent("SeekBar",Jn);var Zn=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.handleMouseMove=et(Ze(r,r.handleMouseMove),25),r.throttledHandleMouseSeek=et(Ze(r,r.handleMouseSeek),25),r.enable(),r}return N(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("mouseTimeDisplay"),i=t.el(),r=me(i),o=_e(i,e).x;o>1?o=1:o<0&&(o=0),n&&n.update(r,o)}},t.prototype.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(gt);Zn.prototype.options_={children:["seekBar"]},gt.registerComponent("ProgressControl",Zn);var ei=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"fullscreenchange",r.handleFullscreenChange),!1===a[bt.fullscreenEnabled]&&r.disable(),r}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Fn);ei.prototype.controlText_="Fullscreen",gt.registerComponent("FullscreenToggle",ei);var ti=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},ni=function(e){function t(){return L(this,t),R(this,e.apply(this,arguments))}return N(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(gt);gt.registerComponent("VolumeLevel",ni);var ii=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.on("slideractive",r.updateLastVolume_),r.on(n,"volumechange",r.updateARIAAttributes),n.ready(function(){return r.updateARIAAttributes()}),r}return N(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(t){ke(t)&&e.prototype.handleMouseDown.call(this,t)},t.prototype.handleMouseMove=function(e){ke(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},t}(Wn);ii.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},ii.prototype.playerEvent="volumechange",gt.registerComponent("VolumeBar",ii);var ri=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,t),i.vertical=i.vertical||!1,(void 0===i.volumeBar||$(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical);var r=R(this,e.call(this,n,i));return ti(r,n),r.throttledHandleMouseMove=et(Ze(r,r.handleMouseMove),25),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")}),r.on(r.volumeBar,["blur","sliderinactive"],function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")}),r}return N(t,e),t.prototype.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(gt);ri.prototype.options_={children:["volumeBar"]},gt.registerComponent("VolumeControl",ri);var oi=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},ai=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return oi(r,n),r.on(n,["loadstart","volumechange"],r.update),r}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),t=3;m&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)ue(this.el_,"vjs-vol-"+n);le(this.el_,"vjs-vol-"+t)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(Fn);ai.prototype.controlText_="Mute",gt.registerComponent("MuteToggle",ai);var si=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,t),void 0!==i.inline?i.inline=i.inline:i.inline=!0,(void 0===i.volumeControl||$(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline);var r=R(this,e.call(this,n,i));return r.on(n,["loadstart"],r.volumePanelState_),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}return N(t,e),t.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.prototype.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.prototype.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},t}(gt);si.prototype.options_={children:["muteToggle","volumeControl"]},gt.registerComponent("VolumePanel",si);var li=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return i&&(r.menuButton_=i.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyPress),r}return N(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",Ze(this,function(t){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())}))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=re(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),je(n,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),n},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice();t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className)&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(gt);gt.registerComponent("Menu",li);var ui=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,t);var r=R(this,e.call(this,n,i));r.menuButton_=new Fn(n,i),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var o=Fn.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+o,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"focus",r.handleFocus),r.on(r.menuButton_,"blur",r.handleBlur),r.on("keydown",r.handleSubmenuKeyPress),r}return N(t,e),t.prototype.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var e=new li(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=re("li",{className:"vjs-menu-title",innerHTML:pt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(t),ae(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e},t.prototype.createItems=function(){},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.prototype.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+Fn.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,t)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",Ze(this,function(e){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){je(a,"keydown",Ze(this,this.handleKeyPress))},t.prototype.handleBlur=function(){Ve(a,"keydown",Ze(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus())):38!==e.which&&40!==e.which||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),m&&ne())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(gt);gt.registerComponent("MenuButton",ui);var ci=function(e){function t(n,i){L(this,t);var r=i.tracks,o=R(this,e.call(this,n,i));if(o.items.length<=1&&o.hide(),!r)return R(o);var a=Ze(o,o.update);return r.addEventListener("removetrack",a),r.addEventListener("addtrack",a),o.player_.on("ready",a),o.player_.on("dispose",function(){r.removeEventListener("removetrack",a),r.removeEventListener("addtrack",a)}),o}return N(t,e),t}(ui);gt.registerComponent("TrackButton",ci);var hi=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.selectable=i.selectable,r.isSelected_=i.selected||!1,r.multiSelectable=i.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}return N(t,e),t.prototype.createEl=function(t,n,i){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",V({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),i)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(Bn);gt.registerComponent("MenuItem",hi);var di=function(e){function t(n,i){L(this,t);var r=i.track,s=n.textTracks();i.label=r.label||r.language||"Unknown",i.selected="showing"===r.mode;var l=R(this,e.call(this,n,i));l.track=r;var u=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];l.handleTracksChange.apply(l,t)},c=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];l.handleSelectedLanguageChange.apply(l,t)};if(n.on(["loadstart","texttrackchange"],u),s.addEventListener("change",u),s.addEventListener("selectedlanguagechange",c),l.on("dispose",function(){n.off(["loadstart","texttrackchange"],u),s.removeEventListener("change",u),s.removeEventListener("selectedlanguagechange",c)}),void 0===s.onchange){var h=void 0;l.on(["tap","click"],function(){if("object"!==O(o.Event))try{h=new o.Event("change")}catch(e){}h||(h=a.createEvent("Event")).initEvent("change",!0,!0),s.dispatchEvent(h)})}return l.handleTracksChange(),l}return N(t,e),t.prototype.handleClick=function(t){var n=this.track.kind,i=this.track.kinds,r=this.player_.textTracks();if(i||(i=[n]),e.prototype.handleClick.call(this,t),r)for(var o=0;o<r.length;o++){var a=r[o];a===this.track&&i.indexOf(a.kind)>-1?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled")}},t.prototype.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.prototype.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(hi);gt.registerComponent("TextTrackMenuItem",di);var fi=function(e){function t(n,i){return L(this,t),i.track={player:n,kind:i.kind,kinds:i.kinds,default:!1,mode:"disabled"},i.kinds||(i.kinds=[i.kind]),i.label?i.track.label=i.label:i.track.label=i.kinds.join(" and ")+" off",i.selectable=!0,i.multiSelectable=!1,R(this,e.call(this,n,i))}return N(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var o=t[i];if(this.options_.kinds.indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},t.prototype.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var o=t[i];if(["captions","descriptions","subtitles"].indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(di);gt.registerComponent("OffTextTrackMenuItem",fi);var pi=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return L(this,t),i.tracks=n.textTracks(),R(this,e.call(this,n,i))}return N(t,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:di,n=void 0;this.label_&&(n=this.label_+" off"),e.push(new fi(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<i.length;r++){var o=i[r];if(this.kinds_.indexOf(o.kind)>-1){var a=new t(this.player_,{track:o,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+o.kind+"-menu-item"),e.push(a)}}return e},t}(ci);gt.registerComponent("TextTrackButton",pi);var Ai=function(e){function t(n,i){L(this,t);var r=i.track,o=i.cue,a=n.currentTime();i.selectable=!0,i.multiSelectable=!1,i.label=o.text,i.selected=o.startTime<=a&&a<o.endTime;var s=R(this,e.call(this,n,i));return s.track=r,s.cue=o,r.addEventListener("cuechange",Ze(s,s.update)),s}return N(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(hi);gt.registerComponent("ChaptersTrackMenuItem",Ai);var gi=function(e){function t(n,i,r){return L(this,t),R(this,e.call(this,n,i,r))}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},t.prototype.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},t.prototype.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(pt(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n<i;n++){var r=t[n],o=new Ai(this.player_,{track:this.track_,cue:r});e.push(o)}return e},t}(pi);gi.prototype.kind_="chapters",gi.prototype.controlText_="Chapters",gt.registerComponent("ChaptersButton",gi);var vi=function(e){function t(n,i,r){L(this,t);var o=R(this,e.call(this,n,i,r)),a=n.textTracks(),s=Ze(o,o.handleTracksChange);return a.addEventListener("change",s),o.on("dispose",function(){a.removeEventListener("change",s)}),o}return N(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,i=0,r=t.length;i<r;i++){var o=t[i];if(o.kind!==this.kind_&&"showing"===o.mode){n=!0;break}}n?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(pi);vi.prototype.kind_="descriptions",vi.prototype.controlText_="Descriptions",gt.registerComponent("DescriptionsButton",vi);var mi=function(e){function t(n,i,r){return L(this,t),R(this,e.call(this,n,i,r))}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(pi);mi.prototype.kind_="subtitles",mi.prototype.controlText_="Subtitles",gt.registerComponent("SubtitlesButton",mi);var yi=function(e){function t(n,i){L(this,t),i.track={player:n,kind:i.kind,label:i.kind+" settings",selectable:!1,default:!1,mode:"disabled"},i.selectable=!1,i.name="CaptionSettingsMenuItem";var r=R(this,e.call(this,n,i));return r.addClass("vjs-texttrack-settings"),r.controlText(", opens "+i.kind+" settings dialog"),r}return N(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(di);gt.registerComponent("CaptionSettingsMenuItem",yi);var _i=function(e){function t(n,i,r){return L(this,t),R(this,e.call(this,n,i,r))}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new yi(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(pi);_i.prototype.kind_="captions",_i.prototype.controlText_="Captions",gt.registerComponent("CaptionsButton",_i);var bi=function(e){function t(){return L(this,t),R(this,e.apply(this,arguments))}return N(t,e),t.prototype.createEl=function(t,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),r+="</span>",e.prototype.createEl.call(this,t,V({innerHTML:r},n),i)},t}(di);gt.registerComponent("SubsCapsMenuItem",bi);var wi=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,t);var r=R(this,e.call(this,n,i));return r.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(pt(r.label_)),r}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new yi(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,bi)},t}(pi);wi.prototype.kinds_=["captions","subtitles"],wi.prototype.controlText_="Subtitles",gt.registerComponent("SubsCapsButton",wi);var xi=function(e){function t(n,i){L(this,t);var r=i.track,o=n.audioTracks();i.label=r.label||r.language||"Unknown",i.selected=r.enabled;var a=R(this,e.call(this,n,i));a.track=r,a.addClass("vjs-"+r.kind+"-menu-item");var s=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];a.handleTracksChange.apply(a,t)};return o.addEventListener("change",s),a.on("dispose",function(){o.removeEventListener("change",s)}),a}return N(t,e),t.prototype.createEl=function(t,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),r+="</span>",e.prototype.createEl.call(this,t,V({innerHTML:r},n),i)},t.prototype.handleClick=function(t){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,t);for(var i=0;i<n.length;i++){var r=n[i];r.enabled=r===this.track}},t.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(hi);gt.registerComponent("AudioTrackMenuItem",xi);var Ci=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return L(this,t),i.tracks=n.audioTracks(),R(this,e.call(this,n,i))}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var i=t[n];e.push(new xi(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(ci);Ci.prototype.controlText_="Audio Track",gt.registerComponent("AudioTrackButton",Ci);var Si=function(e){function t(n,i){L(this,t);var r=i.rate,o=parseFloat(r,10);i.label=r,i.selected=1===o,i.selectable=!0,i.multiSelectable=!1;var a=R(this,e.call(this,n,i));return a.label=r,a.rate=o,a.on(n,"ratechange",a.update),a}return N(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(hi);Si.prototype.contentElType="button",gt.registerComponent("PlaybackRateMenuItem",Si);var ki=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.updateVisibility(),r.updateLabel(),r.on(n,"loadstart",r.updateVisibility),r.on(n,"ratechange",r.updateLabel),r}return N(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=re("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},t.prototype.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createMenu=function(){var e=new li(this.player()),t=this.playbackRates();if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new Si(this.player(),{rate:t[n]+"x"}));return e},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),i=n[0],r=0;r<n.length;r++)if(n[r]>t){i=n[r];break}this.player().playbackRate(i)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(ui);ki.prototype.controlText_="Playback Rate",gt.registerComponent("PlaybackRateMenuButton",ki);var Bi=function(e){function t(){return L(this,t),R(this,e.apply(this,arguments))}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(gt);gt.registerComponent("Spacer",Bi);var Ti=function(e){function t(){return L(this,t),R(this,e.apply(this,arguments))}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}(Bi);gt.registerComponent("CustomControlSpacer",Ti);var Ei=function(e){function t(){return L(this,t),R(this,e.apply(this,arguments))}return N(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(gt);Ei.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},gt.registerComponent("ControlBar",Ei);var Ii=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"error",r.open),r}return N(t,e),t.prototype.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(Ot);Ii.prototype.options_=At(Ot.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),gt.registerComponent("ErrorDisplay",Ii);var Mi=["#000","Black"],Di=["#00F","Blue"],Pi=["#0FF","Cyan"],Fi=["#0F0","Green"],Oi=["#F0F","Magenta"],Li=["#F00","Red"],Ni=["#FFF","White"],Ri=["#FF0","Yellow"],Ui=["1","Opaque"],Qi=["0.5","Semi-Transparent"],Hi=["0","Transparent"],ji={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Mi,Ni,Li,Fi,Di,Ri,Oi,Pi]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Ui,Qi,Hi]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Ni,Mi,Li,Fi,Di,Ri,Oi,Pi]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Ui,Qi]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Hi,Qi,Ui]}};function Vi(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}ji.windowColor.options=ji.backgroundColor.options;var zi=function(e){function t(n,i){L(this,t),i.temporary=!1;var r=R(this,e.call(this,n,i));return r.updateDisplay=Ze(r,r.updateDisplay),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=re("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===i.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings(),r.close()}),r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults(),r.updateDisplay()}),j(ji,function(e){r.on(r.$(e.selector),"change",r.updateDisplay)}),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}return N(t,e),t.prototype.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},t.prototype.createElSelect_=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label",r=ji[e],o=r.id.replace("%s",this.id_),a=[n,o].join(" ").trim();return["<"+i+' id="'+o+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(r.label),"</"+i+">",'<select aria-labelledby="'+a+'">'].concat(r.options.map(function(e){var n=o+"-"+e[1].replace(/\W+/g,"");return['<option id="'+n+'" value="'+e[0]+'" ','aria-labelledby="'+a+" "+n+'">',t.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},t.prototype.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElColors_=function(){return re("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.prototype.createElFont_=function(){return re("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},t.prototype.createElControls_=function(){var e=this.localize("restore all settings to the default values");return re("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.prototype.label=function(){return this.localize("Caption Settings Dialog")},t.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.prototype.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.prototype.getValues=function(){var e=this;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return H(e).reduce(function(n,i){return t(n,e[i],i)},n)}(ji,function(t,n,i){var r,o,a=(r=e.$(n.selector),o=n.parser,Vi(r.options[r.options.selectedIndex].value,o));return void 0!==a&&(t[i]=a),t},{})},t.prototype.setValues=function(e){var t=this;j(ji,function(n,i){!function(e,t,n){if(t)for(var i=0;i<e.options.length;i++)if(Vi(e.options[i].value,n)===t){e.selectedIndex=i;break}}(t.$(n.selector),e[i],n.parser)})},t.prototype.setDefaults=function(){var e=this;j(ji,function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n})},t.prototype.restoreSettings=function(){var e=void 0;try{e=JSON.parse(o.localStorage.getItem("vjs-text-track-settings"))}catch(e){K.warn(e)}e&&this.setValues(e)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?o.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):o.localStorage.removeItem("vjs-text-track-settings")}catch(e){K.warn(e)}}},t.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(a,"keydown",this.handleKeyDown);var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(Ot);gt.registerComponent("TextTrackSettings",zi);var $i=function(e){function t(n,i){L(this,t);var r=i.ResizeObserver||o.ResizeObserver;null===i.ResizeObserver&&(r=!1);var a=At({createEl:!r},i),s=R(this,e.call(this,n,a));return s.ResizeObserver=i.ResizeObserver||o.ResizeObserver,s.loadListener_=null,s.resizeObserver_=null,s.debouncedHandler_=tt(function(){s.resizeHandler()},100,!1,s),r?(s.resizeObserver_=new s.ResizeObserver(s.debouncedHandler_),s.resizeObserver_.observe(n.el())):(s.loadListener_=function(){s.el_&&s.el_.contentWindow&&je(s.el_.contentWindow,"resize",s.debouncedHandler_)},s.one("load",s.loadListener_)),s}return N(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager"})},t.prototype.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},t.prototype.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.el_&&this.el_.contentWindow&&Ve(this.el_.contentWindow,"resize",this.debouncedHandler_),this.loadListener_&&this.off("load",this.loadListener_),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null},t}(gt);gt.registerComponent("ResizeManager",$i);var Gi=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),i=[],r="";if(!n.length)return!1;for(var o=0;o<n.length;o++){var a=n[o].src;a&&-1===i.indexOf(a)&&i.push(a)}return!!i.length&&(1===i.length&&(r=i[0]),e.triggerSourceset(r),!0)},Wi={};T||(Wi=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=a.createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",o.Element.prototype.appendChild.call(this,n),this.innerHTML}}));var Ki=function(e,t){for(var n={},i=0;i<e.length&&!((n=Object.getOwnPropertyDescriptor(e[i],t))&&n.set&&n.get);i++);return n.enumerable=!0,n.configurable=!0,n},Yi=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},i=function(e){return Ki([e.el(),o.HTMLMediaElement.prototype,o.Element.prototype,Wi],"innerHTML")}(e),r=function(n){return function(){for(var i=arguments.length,r=Array(i),o=0;o<i;o++)r[o]=arguments[o];var a=n.apply(t,r);return Gi(e),a}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(n[e]=t[e],t[e]=r(n[e]))}),Object.defineProperty(t,"innerHTML",At(i,{set:r(i.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach(function(e){t[e]=n[e]}),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)}},qi={};T||(qi=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Xt(o.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return o.Element.prototype.setAttribute.call(this,"src",e),e}}));var Xi=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=function(e){return Ki([e.el(),o.HTMLMediaElement.prototype,qi],"src")}(e),i=t.setAttribute,r=t.load;Object.defineProperty(t,"src",At(n,{set:function(i){var r=n.set.call(t,i);return e.triggerSourceset(t.src),r}})),t.setAttribute=function(n,r){var o=i.call(t,n,r);return/src/i.test(n)&&e.triggerSourceset(t.src),o},t.load=function(){var n=r.call(t);return Gi(e)||(e.triggerSourceset(""),Yi(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):Gi(e)||Yi(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Ji=U(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."]),Zi=function(e){function t(n,i){L(this,t);var r=R(this,e.call(this,n,i)),o=n.source,a=!1;if(o&&(r.el_.currentSrc!==o.src||n.tag&&3===n.tag.initNetworkState_)?r.setSource(o):r.handleLateInit_(r.el_),n.enableSourceset&&r.setupSourcesetHandling_(),r.el_.hasChildNodes()){for(var l=r.el_.childNodes,u=l.length,c=[];u--;){var h=l[u];"track"===h.nodeName.toLowerCase()&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(h),r.remoteTextTracks().addTrack(h.track),r.textTracks().addTrack(h.track),a||r.el_.hasAttribute("crossorigin")||!Zt(h.src)||(a=!0)):c.push(h))}for(var d=0;d<c.length;d++)r.el_.removeChild(c[d])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&a&&K.warn(s(Ji)),r.restoreMetadataTracksInIOSNativePlayer_(),(D||g||x)&&!0===n.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}return N(t,e),t.prototype.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},t.prototype.setupSourcesetHandling_=function(){Xi(this)},t.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var e=this.textTracks(),t=void 0,n=function(){t=[];for(var n=0;n<e.length;n++){var i=e[n];"metadata"===i.kind&&t.push({track:i,storedMode:i.mode})}};n(),e.addEventListener("change",n),this.on("dispose",function(){return e.removeEventListener("change",n)});var i=function n(){for(var i=0;i<t.length;i++){var r=t[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",n),e.removeEventListener("change",i),e.addEventListener("change",i)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",i)})},t.prototype.proxyNativeTracks_=function(){var e=this;cn.names.forEach(function(t){var n=cn[t],i=e.el()[n.getterName],r=e[n.getterName]();if(e["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var o={change:function(e){r.trigger({type:"change",target:r,currentTarget:r,srcElement:r})},addtrack:function(e){r.addTrack(e.track)},removetrack:function(e){r.removeTrack(e.track)}},a=function(){for(var e=[],t=0;t<r.length;t++){for(var n=!1,o=0;o<i.length;o++)if(i[o]===r[t]){n=!0;break}n||e.push(r[t])}for(;e.length;)r.removeTrack(e.shift())};Object.keys(o).forEach(function(t){var n=o[t];i.addEventListener(t,n),e.on("dispose",function(e){return i.removeEventListener(t,n)})}),e.on("loadstart",a),e.on("dispose",function(t){return e.off("loadstart",a)})}})},t.prototype.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=a.createElement("video");var i=At({},this.options_.tag&&de(this.options_.tag));D&&!0===this.options_.nativeControlsForTouch||delete i.controls,he(e,V(i,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&pe(e,"preload",this.options_.preload);for(var r=["loop","muted","playsinline","autoplay"],o=0;o<r.length;o++){var s=r[o],l=this.options_[s];void 0!==l&&(l?pe(e,s,s):Ae(e,s),e[s]=l)}return e},t.prototype.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var i=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),e.readyState>=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}},t.prototype.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(e){K(e,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var e=this;if(this.el_.duration===1/0&&_&&k&&0===this.el_.currentTime){return this.on("timeupdate",function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))}),NaN}return this.el_.duration||NaN},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}},t.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=o.navigator&&o.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},t.prototype.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(e){this.el_.controls=!!e},t.prototype.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},t.prototype.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=a.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},t.prototype.addRemoteTextTrack=function(t,n){var i=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},t.prototype.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),i=n.length;i--;)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])},t.prototype.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),o.performance&&"function"==typeof o.performance.now?e.creationTime=o.performance.now():o.performance&&o.performance.timing&&"number"==typeof o.performance.timing.navigationStart&&(e.creationTime=o.Date.now()-o.performance.timing.navigationStart),e},t}(fn);if(ee()){Zi.TEST_VID=a.createElement("video");var er=a.createElement("track");er.kind="captions",er.srclang="en",er.label="English",Zi.TEST_VID.appendChild(er)}Zi.isSupported=function(){try{Zi.TEST_VID.volume=.5}catch(e){return!1}return!(!Zi.TEST_VID||!Zi.TEST_VID.canPlayType)},Zi.canPlayType=function(e){return Zi.TEST_VID.canPlayType(e)},Zi.canPlaySource=function(e,t){return Zi.canPlayType(e.type)},Zi.canControlVolume=function(){try{var e=Zi.TEST_VID.volume;return Zi.TEST_VID.volume=e/2+.1,e!==Zi.TEST_VID.volume}catch(e){return!1}},Zi.canMuteVolume=function(){try{var e=Zi.TEST_VID.muted;return Zi.TEST_VID.muted=!e,Zi.TEST_VID.muted?pe(Zi.TEST_VID,"muted","muted"):Ae(Zi.TEST_VID,"muted"),e!==Zi.TEST_VID.muted}catch(e){return!1}},Zi.canControlPlaybackRate=function(){if(_&&k&&B<58)return!1;try{var e=Zi.TEST_VID.playbackRate;return Zi.TEST_VID.playbackRate=e/2+.1,e!==Zi.TEST_VID.playbackRate}catch(e){return!1}},Zi.canOverrideAttributes=function(){if(T)return!1;try{var e=function(){};Object.defineProperty(a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Zi.supportsNativeTextTracks=function(){return M||m&&k},Zi.supportsNativeVideoTracks=function(){return!(!Zi.TEST_VID||!Zi.TEST_VID.videoTracks)},Zi.supportsNativeAudioTracks=function(){return!(!Zi.TEST_VID||!Zi.TEST_VID.audioTracks)},Zi.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Zi.prototype.featuresVolumeControl=Zi.canControlVolume(),Zi.prototype.featuresMuteControl=Zi.canMuteVolume(),Zi.prototype.featuresPlaybackRate=Zi.canControlPlaybackRate(),Zi.prototype.featuresSourceset=Zi.canOverrideAttributes(),Zi.prototype.movingMediaElementInDOM=!m,Zi.prototype.featuresFullscreenResize=!0,Zi.prototype.featuresProgressEvents=!0,Zi.prototype.featuresTimeupdateEvents=!0,Zi.prototype.featuresNativeTextTracks=Zi.supportsNativeTextTracks(),Zi.prototype.featuresNativeVideoTracks=Zi.supportsNativeVideoTracks(),Zi.prototype.featuresNativeAudioTracks=Zi.supportsNativeAudioTracks();var tr=Zi.TEST_VID&&Zi.TEST_VID.constructor.prototype.canPlayType,nr=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,ir=/^video\/mp4/i;Zi.patchCanPlayType=function(){b>=4&&!C&&!k?Zi.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&nr.test(e)?"maybe":tr.call(this,e)}:w&&(Zi.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&ir.test(e)?"maybe":tr.call(this,e)})},Zi.unpatchCanPlayType=function(){var e=Zi.TEST_VID.constructor.prototype.canPlayType;return Zi.TEST_VID.constructor.prototype.canPlayType=tr,e},Zi.patchCanPlayType(),Zi.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Zi.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Zi.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Zi.prototype["set"+pt(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){Zi.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(e){Zi.prototype["set"+pt(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Zi.prototype[e]=function(){return this.el_[e]()}}),fn.withSourceHandlers(Zi),Zi.nativeSourceHandler={},Zi.nativeSourceHandler.canPlayType=function(e){try{return Zi.TEST_VID.canPlayType(e)}catch(e){return""}},Zi.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Zi.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=Jt(e.src);return Zi.nativeSourceHandler.canPlayType("video/"+n)}return""},Zi.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Zi.nativeSourceHandler.dispose=function(){},Zi.registerSourceHandler(Zi.nativeSourceHandler),fn.registerTech("Html5",Zi);var rr=U(["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "],["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "]),or=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],ar={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},sr=["tiny","xsmall","small","medium","large","xlarge","huge"],lr={};sr.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;lr[e]="vjs-layout-"+t});var ur={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},cr=function(e){function t(n,i,r){if(L(this,t),n.id=n.id||i.id||"vjs_video_"+Me(),(i=V(t.getTagSettings(n),i)).initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"==typeof n.closest){var o=n.closest("[lang]");o&&o.getAttribute&&(i.language=o.getAttribute("lang"))}else for(var a=n;a&&1===a.nodeType;){if(de(a).hasOwnProperty("lang")){i.language=a.getAttribute("lang");break}a=a.parentNode}var s=R(this,e.call(this,null,i,r));if(s.log=Y(s.id_),s.isPosterFromTech_=!1,s.queuedCallbacks_=[],s.isReady_=!1,s.hasStarted_=!1,s.userActive_=!1,!s.options_||!s.options_.techOrder||!s.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(s.tag=n,s.tagAttributes=n&&de(n),s.language(s.options_.language),i.languages){var l={};Object.getOwnPropertyNames(i.languages).forEach(function(e){l[e.toLowerCase()]=i.languages[e]}),s.languages_=l}else s.languages_=t.prototype.options_.languages;s.cache_={},s.poster_=i.poster||"",s.controls_=!!i.controls,s.cache_.lastVolume=1,n.controls=!1,n.removeAttribute("controls"),n.hasAttribute("autoplay")?s.options_.autoplay=!0:s.autoplay(s.options_.autoplay),s.scrubbing_=!1,s.el_=s.createEl(),s.cache_.lastPlaybackRate=s.defaultPlaybackRate(),ht(s,{eventBusKey:"el_"});var u=At(s.options_);if(i.plugins){var c=i.plugins;Object.keys(c).forEach(function(e){if("function"!=typeof this[e])throw new Error('plugin "'+e+'" does not exist');this[e](c[e])},s)}s.options_.playerOptions=u,s.middleware_=[],s.initChildren(),s.isAudio("audio"===n.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),s.flexNotSupported_()&&s.addClass("vjs-no-flex"),m||s.addClass("vjs-workinghover"),t.players[s.id_]=s;var d=h.split(".")[0];return s.addClass("vjs-v"+d),s.userActive(!0),s.reportUserActivity(),s.one("play",s.listenForUserActivity_),s.on("fullscreenchange",s.handleFullscreenChange_),s.on("stageclick",s.handleStageClick_),s.breakpoints(s.options_.breakpoints),s.responsive(s.options_.responsive),s.changingSrc_=!1,s.playWaitingForReady_=!1,s.playOnLoadstart_=null,s}return N(t,e),t.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),An[this.id()]=null,e.prototype.dispose.call(this)},t.prototype.createEl=function(){var t=this.tag,n=void 0,i=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();i?n=this.el_=t.parentNode:r||(n=this.el_=e.prototype.createEl.call(this,"div"));var s=de(t);if(r){for(n=this.el_=t,t=this.tag=a.createElement("video");n.children.length;)t.appendChild(n.firstChild);se(n,"video-js")||le(n,"video-js"),n.appendChild(t),i=this.playerElIngest_=n,["autoplay","controls","crossOrigin","defaultMuted","defaultPlaybackRate","loop","muted","playbackRate","src","volume"].forEach(function(e){void 0!==n[e]&&(t[e]=n[e])})}if(t.setAttribute("tabindex","-1"),s.tabindex="-1",E&&(t.setAttribute("role","application"),s.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach(function(e){"class"===e?(n.className+=" "+s[e],r&&(t.className+=" "+s[e])):(n.setAttribute(e,s[e]),r&&t.setAttribute(e,s[e]))}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=n.player=this,this.addClass("vjs-paused"),!0!==o.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Xe("vjs-styles-dimensions");var l=Be(".vjs-styles-defaults"),u=Be("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var c=t.getElementsByTagName("a"),h=0;h<c.length;h++){var d=c.item(h);le(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!i&&t.parentNode.insertBefore(n,t),ae(t,n),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_=n,n},t.prototype.width=function(e){return this.dimension("width",e)},t.prototype.height=function(e){return this.dimension("height",e)},t.prototype.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?K.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_())},t.prototype.fluid=function(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,e?(this.addClass("vjs-fluid"),this.fill(!1)):this.removeClass("vjs-fluid"),this.updateStyleEl_()},t.prototype.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},t.prototype.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){if(!0!==o.VIDEOJS_NO_DYNAMIC_STYLE){var e=void 0,t=void 0,n=void 0,i=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=i[1]/i[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*r,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),Je(this.styleEl_,"\n ."+n+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+n+".vjs-fluid {\n padding-top: "+100*r+"%;\n }\n ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(a>=0&&(l.width=a),s>=0&&(l.height=s))}},t.prototype.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var i=pt(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(fn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var o={source:t,autoplay:"string"!=typeof this.autoplay()&&this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};dn.names.forEach(function(e){var t=dn[e];o[t.getterName]=n[t.privateName]}),V(o,this.options_[i]),V(o,this.options_[r]),V(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var a=fn.getTech(e);if(!a)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new a(o),this.tech_.ready(Ze(this,this.handleTechReady_),!0),Pt(this.textTracksJson_||[],this.tech_),or.forEach(function(e){n.on(n.tech_,e,n["handleTech"+pt(e)+"_"])}),Object.keys(ar).forEach(function(e){n.on(n.tech_,e,function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+ar[e]+"_"].bind(n),event:t}):n["handleTech"+ar[e]+"_"](t)})}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||ae(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){var e=this;dn.names.forEach(function(t){var n=dn[t];e[n.privateName]=e[n.getterName]()}),this.textTracksJson_=Dt(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},t.prototype.tech=function(e){return void 0===e&&K.warn(s(rr)),this.tech_},t.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},t.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(e){K("deleting tag.poster throws in some browsers",e)}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},t.prototype.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n=function(){var e=t.muted();t.muted(!0);var n=t.play();if(n&&n.then&&n.catch)return n.catch(function(n){t.muted(e)})},i=void 0;if("any"===e?(i=this.play())&&i.then&&i.catch&&i.catch(function(){return n()}):i="muted"===e?n():this.play(),i&&i.then&&i.catch)return i.then(function(){t.trigger({type:"autoplay-success",autoplay:e})}).catch(function(n){t.trigger({type:"autoplay-failure",autoplay:e})})}},t.prototype.updateSourceCaches_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter(function(e){return e.src===t});if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r<i.length;r++){var o=i[r];if(o.type&&o.src&&o.src===t)return o.type}return Cn(t)}(this,t)),this.cache_.source=At({},e,{src:t,type:n});for(var i=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),r=[],o=this.$$("source"),a=[],s=0;s<o.length;s++){var l=de(o[s]);r.push(l),l.src&&l.src===t&&a.push(l.src)}a.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},t.prototype.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},i=this.currentSource().src,r=e.src;if(i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),!e.src){this.tech_.one(["sourceset","loadstart"],function e(n){if("sourceset"!==n.type){var i=t.techGet("currentSrc");t.lastSource_.tech=i,t.updateSourceCaches_(i)}t.tech_.off(["sourceset","loadstart"],e)})}}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},t.prototype.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},t.prototype.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(K.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(e){ke(e)&&this.controls_&&(this.paused()?It(this.play()):this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(e){e.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(e,t){t&&this.isFullscreen(t.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var e=this.tech_.error();this.error(e)},t.prototype.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(e,t){this.ready(function(){if(e in _n)return function(e,t,n,i){return t[n](e.reduce(wn(n),i))}(this.middleware_,this.tech_,e,t);if(e in bn)return mn(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw K(e),e}},!0)},t.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in yn)return function(e,t,n){return e.reduceRight(wn(n),t[n]())}(this.middleware_,this.tech_,e);if(e in bn)return mn(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw K("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw K("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw K(t),t}}},t.prototype.play=function(){var e=this,t=this.options_.Promise||o.Promise;return t?new t(function(t){e.play_(t)}):this.play_()},t.prototype.play_=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:It;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return void t(this.techGet_("play"));this.playOnLoadstart_=function(){e.playOnLoadstart_=null,t(e.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){e.playWaitingForReady_=!1,t(e.play())})}},t.prototype.pause=function(){this.techCall_("pause")},t.prototype.paused=function(){return!1!==this.techGet_("paused")},t.prototype.played=function(){return this.techGet_("played")||yt(0,0)},t.prototype.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},t.prototype.currentTime=function(e){return void 0!==e?(e<0&&(e=0),void this.techCall_("setCurrentTime",e)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},t.prototype.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},t.prototype.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=yt(0,0)),e},t.prototype.bufferedPercent=function(){return _t(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},t.prototype.volume=function(e){var t=void 0;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},t.prototype.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},t.prototype.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(e){if(void 0===e)return!!this.isFullscreen_;this.isFullscreen_=!!e},t.prototype.requestFullscreen=function(){var e=bt;this.isFullscreen(!0),e.requestFullscreen?(je(a,e.fullscreenchange,Ze(this,function t(n){this.isFullscreen(a[e.fullscreenElement]),!1===this.isFullscreen()&&Ve(a,e.fullscreenchange,t),this.trigger("fullscreenchange")})),this.el_[e.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},t.prototype.exitFullscreen=function(){var e=bt;this.isFullscreen(!1),e.requestFullscreen?a[e.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=a.documentElement.style.overflow,je(a,"keydown",Ze(this,this.fullWindowOnEscKey)),a.documentElement.style.overflow="hidden",le(a.body,"vjs-full-window"),this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,Ve(a,"keydown",this.fullWindowOnEscKey),a.documentElement.style.overflow=this.docOrigOverflow,ue(a.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(e){for(var t=void 0,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],o=fn.getTech(r);if(o||(o=gt.getComponent(r)),o){if(o.isSupported()&&(t=o.canPlayType(e)))return t}else K.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(e){var t,n=this,i=this.options_.techOrder.map(function(e){return[e,fn.getTech(e)]}).filter(function(e){var t=e[0],n=e[1];return n?n.isSupported():(K.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),r=function(e,t,n){var i=void 0;return e.some(function(e){return t.some(function(t){if(i=n(e,t))return!0})}),i},o=function(e,t){var i=e[0];if(e[1].canPlaySource(t,n.options_[i.toLowerCase()]))return{source:t,tech:i}};return(this.options_.sourceOrder?r(e,i,(t=o,function(e,n){return t(n,e)})):r(i,e,o))||!1},t.prototype.src=function(e){var t=this;if(void 0===e)return this.cache_.src||"";var n=function e(t){if(Array.isArray(t)){var n=[];t.forEach(function(t){t=e(t),Array.isArray(t)?n=n.concat(t):z(t)&&n.push(t)}),t=n}else t="string"==typeof t&&t.trim()?[Sn({src:t})]:z(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[Sn(t)]:[];return t}(e);n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),vn(this,n[0],function(e,i){var r,o;if(t.middleware_=i,t.cache_.sources=n,t.updateSourceCaches_(e),t.src_(e))return n.length>1?t.src(n.slice(1)):(t.changingSrc_=!1,t.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void t.triggerReady());r=i,o=t.tech_,r.forEach(function(e){return e.setTech&&e.setTech(o)})})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},t.prototype.src_=function(e){var t,n,i=this,r=this.selectSource([e]);return!r||(t=r.tech,n=this.techName_,pt(t)!==pt(n)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){i.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1))},t.prototype.load=function(){this.techCall_("load")},t.prototype.reset=function(){this.tech_&&this.tech_.clearTracks("text"),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},t.prototype.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},t.prototype.currentSource=function(){return this.cache_.source||{}},t.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},t.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},t.prototype.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},t.prototype.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t=void 0;"string"==typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):this.options_.autoplay=!!e,t=t||this.options_.autoplay,this.tech_&&this.techCall_("setAutoplay",t)},t.prototype.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},t.prototype.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},t.prototype.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},t.prototype.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},t.prototype.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},t.prototype.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},t.prototype.error=function(e){return void 0===e?this.error_||null:null===e?(this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new Bt(e),this.addClass("vjs-error"),K.error("(CODE:"+this.error_.code+" "+Bt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},t.prototype.reportUserActivity=function(e){this.userActivity_=!0},t.prototype.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},t.prototype.listenForUserActivity_=function(){var e=void 0,t=void 0,n=void 0,i=Ze(this,this.reportUserActivity);this.on("mousedown",function(){i(),this.clearInterval(e),e=this.setInterval(i,250)}),this.on("mousemove",function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())}),this.on("mouseup",function(t){i(),this.clearInterval(e)}),this.on("keydown",i),this.on("keyup",i);var r=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(r);var e=this.options_.inactivityTimeout;e<=0||(r=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},t.prototype.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},t.prototype.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},t.prototype.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},t.prototype.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},t.prototype.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},t.prototype.removeRemoteTextTrack=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).track,t=void 0===e?arguments[0]:e;if(this.tech_)return this.tech_.removeRemoteTextTrack(t)},t.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(e){if(void 0===e)return this.language_;this.language_=String(e).toLowerCase()},t.prototype.languages=function(){return At(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=At(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];(i=At(i)).player=void 0,e.tracks[n]=i}return e},t.prototype.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var i=new Ot(this,t);return this.addChild(i),i.on("dispose",function(){n.removeChild(i)}),i.open(),i},t.prototype.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<sr.length;n++){var i=sr[n];if(t<=this.breakpoints_[i]){if(e===i)return;e&&this.removeClass(lr[e]),this.addClass(lr[i]),this.breakpoint_=i;break}}},t.prototype.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},t.prototype.breakpoints=function(e){return void 0===e?V(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=V({},ur,e),this.updateCurrentBreakpoint_(),V(this.breakpoints_))},t.prototype.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},t.prototype.currentBreakpoint=function(){return this.breakpoint_},t.prototype.currentBreakpointClass=function(){return lr[this.breakpoint_]||""},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=de(e),i=n["data-setup"];if(se(e,"vjs-fill")&&(n.fill=!0),se(e,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=l(i||"{}"),o=r[0],a=r[1];o&&K.error(o),V(n,a)}if(V(t,n),e.hasChildNodes())for(var s=e.childNodes,u=0,c=s.length;u<c;u++){var h=s[u],d=h.nodeName.toLowerCase();"source"===d?t.sources.push(de(h)):"track"===d&&t.tracks.push(de(h))}return t},t.prototype.flexNotSupported_=function(){var e=a.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(gt);dn.names.forEach(function(e){var t=dn[e];cr.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),cr.players={};var hr=o.navigator;cr.prototype.options_={techOrder:fn.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:hr&&(hr.languages&&hr.languages[0]||hr.userLanguage||hr.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",breakpoints:{},responsive:!1},T||cr.prototype.options_.children.push("resizeManager"),["ended","seeking","seekable","networkState","readyState"].forEach(function(e){cr.prototype[e]=function(){return this.techGet_(e)}}),or.forEach(function(e){cr.prototype["handleTech"+pt(e)+"_"]=function(){return this.trigger(e)}}),gt.registerComponent("Player",cr);var dr={},fr=function(e){return dr.hasOwnProperty(e)},pr=function(e){return fr(e)?dr[e]:void 0},Ar=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},gr=function(e,t,n){var i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},vr=function(e,t){return t.prototype.name=e,function(){gr(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=new(Function.prototype.bind.apply(t,[null].concat([this].concat(i))));return this[e]=function(){return o},gr(this,o.getEventHash()),o}},mr=function(){function e(t){if(L(this,e),this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,ht(this),delete this.trigger,ft(this,this.constructor.defaultState),Ar(t,this.name),this.dispose=Ze(this,this.dispose),t.on("dispose",this.dispose)}return e.prototype.version=function(){return this.constructor.VERSION},e.prototype.getEventHash=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.name=this.name,e.plugin=this.constructor,e.instance=this,e},e.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ze(this.eventBusEl_,e,this.getEventHash(t))},e.prototype.handleStateChanged=function(e){},e.prototype.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t.activePlugins_[e]=!1,this.player=this.state=null,t[e]=vr(e,dr[e])},e.isBasic=function(t){var n="string"==typeof t?pr(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+(void 0===t?"undefined":O(t))+".");if(fr(t))K.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(cr.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+(void 0===n?"undefined":O(n))+".");return dr[t]=n,"plugin"!==t&&(e.isBasic(n)?cr.prototype[t]=function(e,t){var n=function(){gr(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return Ar(this,e),gr(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n}(t,n):cr.prototype[t]=vr(t,n)),n},e.deregisterPlugin=function(e){if("plugin"===e)throw new Error("Cannot de-register base plugin.");fr(e)&&(delete dr[e],delete cr.prototype[e])},e.getPlugins=function(){var e=void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.keys(dr)).forEach(function(t){var n=pr(t);n&&((e=e||{})[t]=n)}),e},e.getPluginVersion=function(e){var t=pr(e);return t&&t.VERSION||""},e}();mr.getPlugin=pr,mr.BASE_PLUGIN_NAME="plugin",mr.registerPlugin("plugin",mr),cr.prototype.usingPlugin=function(e){return!!this.activePlugins_&&!0===this.activePlugins_[e]},cr.prototype.hasPlugin=function(e){return!!fr(e)};"undefined"==typeof HTMLVideoElement&&ee()&&(a.createElement("video"),a.createElement("audio"),a.createElement("track"),a.createElement("video-js"));var yr=function(e){return 0===e.indexOf("#")?e.slice(1):e};function _r(e,t,n){var i=_r.getPlayer(e);if(i)return t&&K.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var r="string"==typeof e?Be("#"+yr(e)):e;if(!te(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");a.body.contains(r)||K.warn("The element supplied is not included in the DOM"),t=t||{},_r.hooks("beforesetup").forEach(function(e){var n=e(r,At(t));z(n)&&!Array.isArray(n)?t=At(t,n):K.error("please return an object in beforesetup hooks")});var o=gt.getComponent("Player");return i=new o(r,t,n),_r.hooks("setup").forEach(function(e){return e(i)}),i}if(_r.hooks_={},_r.hooks=function(e,t){return _r.hooks_[e]=_r.hooks_[e]||[],t&&(_r.hooks_[e]=_r.hooks_[e].concat(t)),_r.hooks_[e]},_r.hook=function(e,t){_r.hooks(e,t)},_r.hookOnce=function(e,t){_r.hooks(e,[].concat(t).map(function(t){return function n(){return _r.removeHook(e,n),t.apply(void 0,arguments)}}))},_r.removeHook=function(e,t){var n=_r.hooks(e).indexOf(t);return!(n<=-1)&&(_r.hooks_[e]=_r.hooks_[e].slice(),_r.hooks_[e].splice(n,1),!0)},!0!==o.VIDEOJS_NO_DYNAMIC_STYLE&&ee()){var br=Be(".vjs-styles-defaults");if(!br){br=Xe("vjs-styles-defaults");var wr=Be("head");wr&&wr.insertBefore(br,wr.firstChild),Je(br,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}qe(1,_r),_r.VERSION=h,_r.options=cr.prototype.options_,_r.getPlayers=function(){return cr.players},_r.getPlayer=function(e){var t=cr.players,n=void 0;if("string"==typeof e){var i=yr(e),r=t[i];if(r)return r;n=Be("#"+i)}else n=e;if(te(n)){var o=n,a=o.player,s=o.playerId;if(a||t[s])return a||t[s]}},_r.getAllPlayers=function(){return Object.keys(cr.players).map(function(e){return cr.players[e]}).filter(Boolean)},_r.players=cr.players,_r.getComponent=gt.getComponent,_r.registerComponent=function(e,t){fn.isTech(t)&&K.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),gt.registerComponent.call(gt,e,t)},_r.getTech=fn.getTech,_r.registerTech=fn.registerTech,_r.use=function(e,t){pn[e]=pn[e]||[],pn[e].push(t)},!T&&Object.defineProperty?(Object.defineProperty(_r,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(_r.middleware,"TERMINATOR",{value:gn,writeable:!1,enumerable:!0})):_r.middleware={TERMINATOR:gn},_r.browser=F,_r.TOUCH_ENABLED=D,_r.extend=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){e.apply(this,arguments)},i={};for(var r in"object"===(void 0===t?"undefined":O(t))?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),i=t):"function"==typeof t&&(n=t),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":O(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.super_=t)}(n,e),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n},_r.mergeOptions=At,_r.bind=Ze,_r.registerPlugin=mr.registerPlugin,_r.deregisterPlugin=mr.deregisterPlugin,_r.plugin=function(e,t){return K.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),mr.registerPlugin(e,t)},_r.getPlugins=mr.getPlugins,_r.getPlugin=mr.getPlugin,_r.getPluginVersion=mr.getPluginVersion,_r.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),_r.options.languages=At(_r.options.languages,((n={})[e]=t,n)),_r.options.languages[e]},_r.log=K,_r.createLogger=Y,_r.createTimeRange=_r.createTimeRanges=yt,_r.formatTime=Qn,_r.setFormatTime=function(e){Un=e},_r.resetFormatTime=function(){Un=Rn},_r.parseUrl=qt,_r.isCrossOrigin=Zt,_r.EventTarget=nt,_r.on=je,_r.one=$e,_r.off=Ve,_r.trigger=ze,_r.xhr=u,_r.TextTrack=rn,_r.AudioTrack=on,_r.VideoTrack=an,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){_r[e]=function(){return K.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Ee[e].apply(null,arguments)}}),_r.computedStyle=q,_r.dom=Ee,_r.url=en,e.exports=_r},DuR2: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},DvOw:function(e,t){var n={"":!0,up:!0};function i(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,r=0,o=100,a=0,s=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!i(e))throw new Error("RegionAnchorX must be between 0 and 100.");o=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!i(e))throw new Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!i(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!i(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=function(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}},"E/in":function(e,t,n){"use strict";t.__esModule=!0,t.isDef=function(e){return void 0!==e&&null!==e},t.isKorean=function(e){return/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e)}},EGZi:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},EKTV:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=120)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},120:function(e,t,n){"use strict";n.r(t);var i=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:{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:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"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":e.indeterminate?"true":"false",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,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=e._i(n,null);i.checked?o<0&&(e.model=n.concat([null])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=r},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":e.indeterminate?"true":"false",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,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},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()])};i._withStripped=!0;var r=n(4),o={name:"ElCheckbox",mixins:[n.n(r).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)}}},a=n(0),s=Object(a.a)(o,i,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox.vue";var l=s.exports;l.install=function(e){e.component(l.name,l)};t.default=l},4:function(e,t){e.exports=n("fPll")}})},EKta:function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=u(e),a=i[0],s=i[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o=[],a=0,s=n-r;a<s;a+=16383)o.push(c(e,a,a+16383>s?s:a+16383));1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)i[s]=a[s],r[a.charCodeAt(s)]=s;function u(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 c(e,t,n){for(var r,o,a=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},EqBC:function(e,t,n){"use strict";var i=n("kM2E"),r=n("FeBl"),o=n("7KvD"),a=n("t8x9"),s=n("fJUb");i(i.P+i.R,"Promise",{finally:function(e){var t=a(this,r.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},EqjI:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},EuP9:function(e,t,n){"use strict";(function(e){
  25. /*!
  26. * The buffer module from node.js, for the browser.
  27. *
  28. * @author Feross Aboukhadijeh <http://feross.org>
  29. * @license MIT
  30. */
  31. var i=n("EKta"),r=n("ujcs"),o=n("sOR5");function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(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 h(this,e)}return u(this,e,t,n)}function u(e,t,n,i){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,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(t,n),r=(e=s(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length?e:(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||(i=t.length)!=i?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(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 h(e,t){if(c(t),e=s(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function f(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(l.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 i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(i)return Q(e).length;t=(""+t).toLowerCase(),i=!0}}function A(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function g(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,i,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,i,r){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(u(e,o+d)!==u(t,d)){h=!1;break}if(h)return o}return-1}function m(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function y(e,t,n,i){return j(Q(t,e.length-n),e,n,i)}function _(e,t,n,i){return j(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function b(e,t,n,i){return _(e,t,n,i)}function w(e,t,n,i){return j(H(t),e,n,i)}function x(e,t,n,i){return j(function(e,t){for(var n,i,r,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function C(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var o,a,s,l,u=e[r],c=null,h=u>239?4:u>223?3:u>191?2:1;if(r+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[r+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[r+1],a=e[r+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=h}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=k));return n}(i)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.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=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,i){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof i?s(e,t).fill(n,i):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return h(null,e)},l.allocUnsafeSlow=function(e){return h(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},l.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}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=l.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},l.byteLength=p,l.prototype._isBuffer=!0,l.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)A(this,t,t+1);return this},l.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)A(this,t,t+3),A(this,t+1,t+2);return this},l.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)A(this,t,t+7),A(this,t+1,t+6),A(this,t+2,t+5),A(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):function(e,t,n){var i=!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 E(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.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+">"},l.prototype.compare=function(e,t,n,i,r){if(!l.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===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var o=r-i,a=n-t,s=Math.min(o,a),u=this.slice(i,r),c=e.slice(t,n),h=0;h<s;++h)if(u[h]!==c[h]){o=u[h],a=c[h];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},l.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=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===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return m(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return b(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function B(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function T(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function E(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=t;o<n;++o)r+=U(e[o]);return r}function I(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function M(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 D(e,t,n,i,r,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function P(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function F(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r<o;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function O(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,i,o){return o||O(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function N(e,t,n,i,o){return o||O(e,0,n,8),r.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var r=t-e;n=new l(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},l.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||M(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},l.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||M(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||M(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o<n&&(r*=256);)this[t+o]=e/r&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===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(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,o=i-n;if(this===e&&n<t&&t<i)for(r=o-1;r>=0;--r)e[r+t]=this[r+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}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 o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:Q(new l(e,i).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var R=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function Q(e,t){var n;t=t||1/0;for(var i=e.length,r=null,o=[],a=0;a<i;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(t,n("DuR2"))},FeBl:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},FtD3:function(e,t,n){"use strict";var i=n("t8qj");e.exports=function(e,t,n,r,o){var a=new Error(e);return i(a,t,n,r,o)}},"G5/o":function(e,t,n){n("uqUo")("getOwnPropertyNames",function(){return n("Rrel").f})},GHBc:function(e,t,n){"use strict";var i=n("cGG2");e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},GegP:function(e,t){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=90)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},90:function(e,t,n){"use strict";n.r(t);var i=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":e.strokeLinecap,"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()])};i._withStripped=!0;var r={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},strokeLinecap:{type:String,default:"round"},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 e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},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(e,t){return e.percentage-t.percentage}),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map(function(e,n){return"string"==typeof e?{color:e,percentage:(n+1)*t}:e})}}},o=n(0),a=Object(o.a)(r,i,[],!1,null,null,null);a.options.__file="packages/progress/src/progress.vue";var s=a.exports;s.install=function(e){e.component(s.name,s)};t.default=s}})},H8dH: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,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var r=!1,o=function(){r||(r=!0,t&&t.apply(null,arguments))};i?e.$once("after-leave",o):e.$on("after-leave",o),setTimeout(function(){o()},n+100)}},HJMx:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=73)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},11:function(e,t){e.exports=n("aW5l")},21:function(e,t){e.exports=n("E/in")},4:function(e,t){e.exports=n("fPll")},73:function(e,t,n){"use strict";n.r(t);var i=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,compositionupdate:e.handleCompositionUpdate,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:{mousedown:function(e){e.preventDefault()},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,compositionupdate:e.handleCompositionUpdate,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)};i._withStripped=!0;var r=n(4),o=n.n(r),a=n(11),s=n.n(a),l=void 0,u="\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",c=["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 h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;l||(l=document.createElement("textarea"),document.body.appendChild(l));var i=function(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),r=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:c.map(function(e){return e+":"+t.getPropertyValue(e)}).join(";"),paddingSize:i,borderSize:r,boxSizing:n}}(e),r=i.paddingSize,o=i.borderSize,a=i.boxSizing,s=i.contextStyle;l.setAttribute("style",s+";"+u),l.value=e.value||e.placeholder||"";var h=l.scrollHeight,d={};"border-box"===a?h+=o:"content-box"===a&&(h-=r),l.value="";var f=l.scrollHeight-r;if(null!==t){var p=f*t;"border-box"===a&&(p=p+r+o),h=Math.max(p,h),d.minHeight=p+"px"}if(null!==n){var A=f*n;"border-box"===a&&(A=A+r+o),h=Math.min(A,h)}return d.height=h+"px",l.parentNode&&l.parentNode.removeChild(l),l=null,d}var d=n(9),f=n.n(d),p=n(21),A={name:"ElInput",componentName:"ElInput",mixins:[o.a,s.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 f()({},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=h(this.$refs.textarea,t,n)}else this.textareaCalcStyle={minHeight:h(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(p.isKorean)(n)},handleCompositionEnd:function(e){this.isComposing&&(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(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick(function(){e.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)}},g=n(0),v=Object(g.a)(A,i,[],!1,null,null,null);v.options.__file="packages/input/src/input.vue";var m=v.exports;m.install=function(e){e.component(m.name,m)};t.default=m},9:function(e,t){e.exports=n("jmaC")}})},HzcN:function(e,t,n){var i=n("uY1a"),r=n("ON3O");e.exports={throttle:i,debounce:r}},"I/+Z":function(e,t){e.exports=function(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(e){i=e}return[i,n]}},ISYW:function(e,t,n){"use strict";t.__esModule=!0;var i,r=n("7+uW"),o=(i=r)&&i.__esModule?i:{default:i},a=n("2kvA");var s=[],l="@@clickoutsideContext",u=void 0,c=0;function h(e,t,n){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&i.target&&r.target)||e.contains(i.target)||e.contains(r.target)||e===i.target||n.context.popperElm&&(n.context.popperElm.contains(i.target)||n.context.popperElm.contains(r.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!o.default.prototype.$isServer&&(0,a.on)(document,"mousedown",function(e){return u=e}),!o.default.prototype.$isServer&&(0,a.on)(document,"mouseup",function(e){s.forEach(function(t){return t[l].documentHandler(e,u)})}),t.default={bind:function(e,t,n){s.push(e);var i=c++;e[l]={id:i,documentHandler:h(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=h(e,t,n),e[l].methodName=t.expression,e[l].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n<t;n++)if(s[n][l].id===e[l].id){s.splice(n,1);break}delete e[l]}}},Ibhu:function(e,t,n){var i=n("D2L2"),r=n("TcQ7"),o=n("vFc/")(!1),a=n("ax3d")("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,u=[];for(n in s)n!=a&&i(s,n)&&u.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},"JP+z":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)}}},K6ED:function(e,t,n){e.exports={default:n("cnlX"),__esModule:!0}},KCLY:function(e,t,n){"use strict";(function(t){var i=n("cGG2"),r=n("5VQ+"),o=n("t8qj"),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?l=n("7GwW"):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(l=n("7GwW")),l),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),JSON.stringify(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){u.headers[e]={}}),i.forEach(["post","put","patch"],function(e){u.headers[e]=i.merge(a)}),e.exports=u}).call(t,n("lNQ5"))},Kh4W:function(e,t,n){t.f=n("dSzd")},Kv9K:function(e,t,n){var i;i=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return i.AnnotationLayerBuilder}}),Object.defineProperty(t,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return i.DefaultAnnotationLayerFactory}}),Object.defineProperty(t,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return r.DefaultTextLayerFactory}}),Object.defineProperty(t,"TextLayerBuilder",{enumerable:!0,get:function(){return r.TextLayerBuilder}}),Object.defineProperty(t,"EventBus",{enumerable:!0,get:function(){return o.EventBus}}),Object.defineProperty(t,"NullL10n",{enumerable:!0,get:function(){return o.NullL10n}}),Object.defineProperty(t,"ProgressBar",{enumerable:!0,get:function(){return o.ProgressBar}}),Object.defineProperty(t,"PDFLinkService",{enumerable:!0,get:function(){return a.PDFLinkService}}),Object.defineProperty(t,"SimpleLinkService",{enumerable:!0,get:function(){return a.SimpleLinkService}}),Object.defineProperty(t,"DownloadManager",{enumerable:!0,get:function(){return s.DownloadManager}}),Object.defineProperty(t,"GenericL10n",{enumerable:!0,get:function(){return l.GenericL10n}}),Object.defineProperty(t,"PDFFindController",{enumerable:!0,get:function(){return u.PDFFindController}}),Object.defineProperty(t,"PDFHistory",{enumerable:!0,get:function(){return c.PDFHistory}}),Object.defineProperty(t,"PDFPageView",{enumerable:!0,get:function(){return h.PDFPageView}}),Object.defineProperty(t,"PDFSinglePageViewer",{enumerable:!0,get:function(){return d.PDFSinglePageViewer}}),Object.defineProperty(t,"PDFViewer",{enumerable:!0,get:function(){return f.PDFViewer}});var i=n(1),r=n(8),o=n(3),a=n(7),s=n(9),l=n(11),u=n(13),c=n(15),h=n(16),d=n(18),f=n(20)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultAnnotationLayerFactory=t.AnnotationLayerBuilder=void 0;var i=n(2),r=n(3),o=n(7);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var u=function(){function e(t){var n=t.pageDiv,i=t.pdfPage,o=t.linkService,s=t.downloadManager,l=t.annotationStorage,u=void 0===l?null:l,c=t.imageResourcesPath,h=void 0===c?"":c,d=t.renderInteractiveForms,f=void 0===d||d,p=t.l10n,A=void 0===p?r.NullL10n:p;a(this,e),this.pageDiv=n,this.pdfPage=i,this.linkService=o,this.downloadManager=s,this.imageResourcesPath=h,this.renderInteractiveForms=f,this.l10n=A,this.annotationStorage=u,this.div=null,this._cancelled=!1}return l(e,[{key:"render",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"display";return this.pdfPage.getAnnotations({intent:n}).then(function(n){if(!t._cancelled&&0!==n.length){var r={viewport:e.clone({dontFlip:!0}),div:t.div,annotations:n,page:t.pdfPage,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,linkService:t.linkService,downloadManager:t.downloadManager,annotationStorage:t.annotationStorage};t.div?i.AnnotationLayer.update(r):(t.div=document.createElement("div"),t.div.className="annotationLayer",t.pageDiv.appendChild(t.div),r.div=t.div,i.AnnotationLayer.render(r),t.l10n.translate(t.div))}})}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&this.div.setAttribute("hidden","true")}}]),e}();t.AnnotationLayerBuilder=u;var c=function(){function e(){a(this,e)}return l(e,[{key:"createAnnotationLayerBuilder",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:r.NullL10n;return new u({pageDiv:e,pdfPage:t,imageResourcesPath:i,renderInteractiveForms:a,linkService:new o.SimpleLinkService,l10n:s,annotationStorage:n})}}]),e}();t.DefaultAnnotationLayerFactory=c},function(e,t,i){"use strict";var r;r="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:n("QzLT"),e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidRotation=function(e){return Number.isInteger(e)&&e%90==0},t.isValidScrollMode=function(e){return Number.isInteger(e)&&Object.values(d).includes(e)&&e!==d.UNKNOWN},t.isValidSpreadMode=function(e){return Number.isInteger(e)&&Object.values(f).includes(e)&&e!==f.UNKNOWN},t.isPortraitOrientation=function(e){return e.width<=e.height},t.clamp=w,t.getPDFFileNameFromURL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof e)return t;if(function(e){var t=0,n=e.length;for(;t<n&&""===e[t].trim();)t++;return"data:"===e.substring(t,t+5).toLowerCase()}(e))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),t;var n=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e),r=n.exec(i[1])||n.exec(i[2])||n.exec(i[3]);if(r&&(r=r[0]).includes("%"))try{r=n.exec(decodeURIComponent(r))[0]}catch(e){}return r||t},t.noContextMenuHandler=function(e){e.preventDefault()},t.parseQueryString=function(e){for(var t=e.split("&"),n=Object.create(null),i=0,r=t.length;i<r;++i){var o=t[i].split("="),a=o[0].toLowerCase(),s=o.length>1?o[1]:null;n[decodeURIComponent(a)]=decodeURIComponent(s)}return n},t.backtrackBeforeAllVisibleElements=v,t.getVisibleElements=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e.scrollTop,o=r+e.clientHeight,a=e.scrollLeft,s=a+e.clientWidth;var l=[],u=t.length,c=0===u?0:g(t,i?function(e){var t=e.div;return t.offsetLeft+t.clientLeft+t.clientWidth>a}:function(e){var t=e.div;return t.offsetTop+t.clientTop+t.clientHeight>r});c>0&&c<u&&!i&&(c=v(c,t,r));for(var h=i?s:-1,d=c;d<u;d++){var f=t[d],p=f.div,A=p.offsetLeft+p.clientLeft,m=p.offsetTop+p.clientTop,y=p.clientWidth,_=p.clientHeight,b=A+y,w=m+_;if(-1===h)w>=o&&(h=w);else if((i?A:m)>h)break;if(!(w<=r||m>=o||b<=a||A>=s)){var x=Math.max(0,r-m)+Math.max(0,w-o),C=Math.max(0,a-A)+Math.max(0,b-s),S=(_-x)*(y-C)*100/_/y|0;l.push({id:f.id,x:A,y:m,view:f,percent:S})}}var k=l[0],B=l[l.length-1];n&&l.sort(function(e,t){var n=e.percent-t.percent;return Math.abs(n)>.001?-n:e.id-t.id});return{first:k,last:B,views:l}},t.roundToDivide=function(e,t){var n=e%t;return 0===n?e:Math.round(e-n+t)},t.getPageSizeInches=function(e){var t=e.view,n=e.userUnit,i=e.rotate,r=(f=t,p=4,function(e){if(Array.isArray(e))return e}(f)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(f,p)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}(f,p)||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.")}()),o=r[0],a=r[1],s=r[2],l=r[3],c=i%180!=0,h=(s-o)/72*n,d=(l-a)/72*n;var f,p;return{width:c?d:h,height:c?h:d}},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];var t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];var n,i=e>1?t:e,r=0,o=1,a=1,s=1;for(;;){var l=r+a,u=o+s;if(u>8)break;i<=l/u?(a=l,s=u):(r=l,o=u)}n=i-r/o<a/s-i?i===e?[r,o]:[o,r]:i===e?[a,s]:[s,a];return n},t.getOutputScale=function(e){var t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1,i=t/n;return{sx:i,sy:i,scaled:1!==i}},t.scrollIntoView=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.offsetParent;if(!i)return void console.error("offsetParent is not set -- cannot scroll");var r=e.offsetTop+e.clientTop,o=e.offsetLeft+e.clientLeft;for(;i.clientHeight===i.scrollHeight&&i.clientWidth===i.scrollWidth||n&&"hidden"===getComputedStyle(i).overflow;)if(i.dataset._scaleY&&(r/=i.dataset._scaleY,o/=i.dataset._scaleX),r+=i.offsetTop,o+=i.offsetLeft,!(i=i.offsetParent))return;t&&(void 0!==t.top&&(r+=t.top),void 0!==t.left&&(o+=t.left,i.scrollLeft=o));i.scrollTop=r},t.watchScroll=function(e,t){var n=function(n){r||(r=window.requestAnimationFrame(function(){r=null;var n=e.scrollLeft,o=i.lastX;n!==o&&(i.right=n>o),i.lastX=n;var a=e.scrollTop,s=i.lastY;a!==s&&(i.down=a>s),i.lastY=a,t(i)}))},i={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:n},r=null;return e.addEventListener("scroll",n,!0),i},t.binarySearchFirstItem=g,t.normalizeWheelEventDirection=m,t.normalizeWheelEventDelta=function(e){var t=m(e);0===e.deltaMode?t/=900:1===e.deltaMode&&(t/=30);return t},t.waitOnEventOrTimeout=function(e){var t=e.target,n=e.name,i=e.delay,r=void 0===i?0:i;return new Promise(function(e,i){if("object"!==l(t)||!n||"string"!=typeof n||!(Number.isInteger(r)&&r>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function o(i){t instanceof b?t._off(n,a):t.removeEventListener(n,a),u&&clearTimeout(u),e(i)}var a=o.bind(null,y.EVENT);t instanceof b?t._on(n,a):t.addEventListener(n,a);var s=o.bind(null,y.TIMEOUT),u=setTimeout(s,r)})},t.moveToEndOfArray=function(e,t){for(var n=[],i=e.length,r=0,o=0;o<i;++o)t(e[o])?n.push(e[o]):(e[r]=e[o],++r);for(var a=0;r<i;++a,++r)e[r]=n[a]},t.WaitOnType=t.animationStarted=t.ProgressBar=t.EventBus=t.NullL10n=t.SpreadMode=t.ScrollMode=t.TextLayerMode=t.RendererType=t.PresentationModeState=t.VERTICAL_PADDING=t.SCROLLBAR_PADDING=t.MAX_AUTO_SCALE=t.UNKNOWN_SCALE=t.MAX_SCALE=t.MIN_SCALE=t.DEFAULT_SCALE=t.DEFAULT_SCALE_VALUE=t.CSS_UNITS=t.AutoPrintRegExp=void 0;var i,r=(i=n(4))&&i.__esModule?i:{default:i};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function l(e){"@babel/helpers - typeof";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})(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function c(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function h(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){c(o,i,r,a,s,"next",e)}function s(e){c(o,i,r,a,s,"throw",e)}a(void 0)})}}t.CSS_UNITS=96/72;t.DEFAULT_SCALE_VALUE="auto";t.DEFAULT_SCALE=1;t.MIN_SCALE=.1;t.MAX_SCALE=10;t.UNKNOWN_SCALE=0;t.MAX_AUTO_SCALE=1.25;t.SCROLLBAR_PADDING=40;t.VERTICAL_PADDING=5;t.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};t.RendererType={CANVAS:"canvas",SVG:"svg"};t.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};var d={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};t.ScrollMode=d;var f={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};t.SpreadMode=f;function p(e,t){return t?e.replace(/\{\{\s*(\w+)\s*\}\}/g,function(e,n){return n in t?t[n]:"{{"+n+"}}"}):e}t.AutoPrintRegExp=/\bprint\s*\(/;var A={getLanguage:function(){return h(r.default.mark(function e(){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","en-us");case 1:case"end":return e.stop()}},e)}))()},getDirection:function(){return h(r.default.mark(function e(){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","ltr");case 1:case"end":return e.stop()}},e)}))()},get:function(e,t,n){return h(r.default.mark(function e(){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",p(n,t));case 1:case"end":return e.stop()}},e)}))()},translate:function(e){return h(r.default.mark(function e(){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)}))()}};function g(e,t){var n=0,i=e.length-1;if(i<0||!t(e[i]))return e.length;if(t(e[n]))return n;for(;n<i;){var r=n+i>>1;t(e[r])?i=r:n=r+1}return n}function v(e,t,n){if(e<2)return e;var i=t[e].div,r=i.offsetTop+i.clientTop;r>=n&&(r=(i=t[e-1].div).offsetTop+i.clientTop);for(var o=e-2;o>=0&&!((i=t[o].div).offsetTop+i.clientTop+i.clientHeight<=r);--o)e=o;return e}function m(e){var t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY),n=Math.atan2(e.deltaY,e.deltaX);return-.25*Math.PI<n&&n<.75*Math.PI&&(t=-t),t}t.NullL10n=A;var y={EVENT:"event",TIMEOUT:"timeout"};t.WaitOnType=y;var _=new Promise(function(e){window.requestAnimationFrame(e)});t.animationStarted=_;var b=function(){function e(t){o(this,e),this._listeners=Object.create(null)}return s(e,[{key:"on",value:function(e,t){this._on(e,t,{external:!0})}},{key:"off",value:function(e,t){this._off(e,t,{external:!0})}},{key:"dispatch",value:function(e){var t=this._listeners[e];if(t&&0!==t.length){var n,i=Array.prototype.slice.call(arguments,1);t.slice(0).forEach(function(e){var t=e.listener;if(e.external)return n||(n=[]),void n.push(t);t.apply(null,i)}),n&&(n.forEach(function(e){e.apply(null,i)}),n=null)}}},{key:"_on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._listeners[e];i||(this._listeners[e]=i=[]),i.push({listener:t,external:!0===(n&&n.external)})}},{key:"_off",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n=this._listeners[e];if(n)for(var i=0,r=n.length;i<r;i++)if(n[i].listener===t)return void n.splice(i,1)}}]),e}();function w(e,t,n){return Math.min(Math.max(e,t),n)}t.EventBus=b;var x=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.height,r=n.width,a=n.units;o(this,e),this.visible=!0,this.div=document.querySelector(t+" .progress"),this.bar=this.div.parentNode,this.height=i||100,this.width=r||100,this.units=a||"%",this.div.style.height=this.height+this.units,this.percent=0}return s(e,[{key:"_updateBar",value:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate");var e=this.width*this._percent/100;this.div.style.width=e+this.units}},{key:"setWidth",value:function(e){if(e){var t=e.parentNode.offsetWidth-e.offsetWidth;t>0&&(this.bar.style.width="calc(100% - ".concat(t,"px)"))}}},{key:"hide",value:function(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}},{key:"show",value:function(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}},{key:"percent",get:function(){return this._percent},set:function(e){this._indeterminate=isNaN(e),this._percent=w(e,0,100),this._updateBar()}}]),e}();t.ProgressBar=x},function(e,t,n){"use strict";e.exports=n(5)},function(e,t,n){"use strict";(function(e){function t(e){"@babel/helpers - typeof";return(t="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 n=function(e){var n,i=Object.prototype,r=i.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var r=t&&t.prototype instanceof v?t:v,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(e,t,n){var i=d;return function(r,o){if(i===p)throw new Error("Generator is already running");if(i===A){if("throw"===r)throw o;return M()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var l=h(e,t,n);if("normal"===l.type){if(i=n.done?A:f,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=A,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",A="completed",g={};function v(){}function m(){}function y(){}var _={};_[a]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==i&&r.call(w,a)&&(_=w);var x=y.prototype=v.prototype=Object.create(_);function C(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function S(e,n){var i;this._invoke=function(o,a){function s(){return new n(function(i,s){!function i(o,a,s,l){var u=h(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"===t(d)&&r.call(d,"__await")?n.resolve(d.__await).then(function(e){i("next",e,s,l)},function(e){i("throw",e,s,l)}):n.resolve(d).then(function(e){c.value=e,s(c)},function(e){return i("throw",e,s,l)})}l(u.arg)}(o,a,i,s)})}return i=i?i.then(s,s):s()}}function k(e,t){var i=e.iterator[t.method];if(i===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,k(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=h(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,g;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function B(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function I(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function t(){for(;++i<e.length;)if(r.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:M}}function M(){return{value:n,done:!0}}return m.prototype=x.constructor=y,y.constructor=m,m.displayName=u(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},C(S.prototype),S.prototype[s]=function(){return this},e.AsyncIterator=S,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new S(c(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},C(x),u(x,l,"Generator"),x[a]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=I,E.prototype={constructor:E,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(T),!e)for(var t in this)"t"===t.charAt(0)&&r.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 i(i,r){return s.type="throw",s.arg=e,t.next=i,r&&(t.method="next",t.arg=n),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:I(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=n),g}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(6)(e))},function(e,t,n){"use strict";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){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=void 0;var i=n(3);function r(e){"@babel/helpers - typeof";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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.eventBus,i=t.externalLinkTarget,r=void 0===i?null:i,a=t.externalLinkRel,s=void 0===a?null:a,l=t.externalLinkEnabled,u=void 0===l||l,c=t.ignoreDestinationZoom,h=void 0!==c&&c;o(this,e),this.eventBus=n,this.externalLinkTarget=r,this.externalLinkRel=s,this.externalLinkEnabled=u,this._ignoreDestinationZoom=h,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return s(e,[{key:"setDocument",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setHistory",value:function(e){this.pdfHistory=e}},{key:"navigateTo",value:function(e){var t=this;new Promise(function(n,i){"string"!=typeof e?n({namedDest:"",explicitDest:e}):t.pdfDocument.getDestination(e).then(function(t){n({namedDest:e,explicitDest:t})})}).then(function(n){Array.isArray(n.explicitDest)?function n(i){var r,o=i.namedDest,a=i.explicitDest,s=a[0];if(s instanceof Object){if(null===(r=t._cachedPageNumber(s)))return void t.pdfDocument.getPageIndex(s).then(function(e){t.cachePageRef(e+1,s),n({namedDest:o,explicitDest:a})}).catch(function(){console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid page reference, for dest="'.concat(e,'".'))})}else{if(!Number.isInteger(s))return void console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid destination reference, for dest="'.concat(e,'".'));r=s+1}!r||r<1||r>t.pagesCount?console.error('PDFLinkService.navigateTo: "'.concat(r,'" is not ')+'a valid page number, for dest="'.concat(e,'".')):(t.pdfHistory&&(t.pdfHistory.pushCurrentPosition(),t.pdfHistory.push({namedDest:o,explicitDest:a,pageNumber:r})),t.pdfViewer.scrollPageIntoView({pageNumber:r,destArray:a,ignoreDestinationZoom:t._ignoreDestinationZoom}))}(n):console.error('PDFLinkService.navigateTo: "'.concat(n.explicitDest,'" is')+' not a valid destination array, for dest="'.concat(e,'".'))})}},{key:"getDestinationHash",value:function(e){if("string"==typeof e)return this.getAnchorUrl("#"+escape(e));if(Array.isArray(e)){var t=JSON.stringify(e);return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(e){return(this.baseUrl||"")+e}},{key:"setHash",value:function(e){var t,n;if(e.includes("=")){var o=(0,i.parseQueryString)(e);if("search"in o&&this.eventBus.dispatch("findfromurlhash",{source:this,query:o.search.replace(/"/g,""),phraseSearch:"true"===o.phrase}),"page"in o&&(t=0|o.page||1),"zoom"in o){var a=o.zoom.split(","),s=a[0],l=parseFloat(s);s.includes("Fit")?"Fit"===s||"FitB"===s?n=[null,{name:s}]:"FitH"===s||"FitBH"===s||"FitV"===s||"FitBV"===s?n=[null,{name:s},a.length>1?0|a[1]:null]:"FitR"===s?5!==a.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:s},0|a[1],0|a[2],0|a[3],0|a[4]]:console.error('PDFLinkService.setHash: "'.concat(s,'" is not ')+"a valid zoom value."):n=[null,{name:"XYZ"},a.length>1?0|a[1]:null,a.length>2?0|a[2]:null,l?l/100:s]}n?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:n,allowNegativeOffset:!0}):t&&(this.page=t),"pagemode"in o&&this.eventBus.dispatch("pagemode",{source:this,mode:o.pagemode}),"nameddest"in o&&this.navigateTo(o.nameddest)}else{n=unescape(e);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch(e){}if("string"==typeof n||function(e){if(!Array.isArray(e))return!1;var t=e.length;if(t<2)return!1;var n=e[0];if(!("object"===r(n)&&Number.isInteger(n.num)&&Number.isInteger(n.gen)||Number.isInteger(n)&&n>=0))return!1;var i=e[1];if("object"!==r(i)||"string"!=typeof i.name)return!1;var o=!0;switch(i.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;o=!1;break;default:return!1}for(var a=2;a<t;a++){var s=e[a];if(!("number"==typeof s||o&&null===s))return!1}return!0}(n))return void this.navigateTo(n);console.error('PDFLinkService.setHash: "'.concat(unescape(e),'" is not ')+"a valid destination.")}}},{key:"executeNamedAction",value:function(e){switch(e){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page<this.pagesCount&&this.page++;break;case"PrevPage":this.page>1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:e})}},{key:"cachePageRef",value:function(e,t){if(t){var n=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);this._pagesRefCache[n]=e}}},{key:"_cachedPageNumber",value:function(e){var t=0===e.gen?"".concat(e.num,"R"):"".concat(e.num,"R").concat(e.gen);return this._pagesRefCache&&this._pagesRefCache[t]||null}},{key:"isPageVisible",value:function(e){return this.pdfViewer.isPageVisible(e)}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(e){this.pdfViewer.pagesRotation=e}}]),e}();t.PDFLinkService=l;var u=function(){function e(){o(this,e),this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}return s(e,[{key:"navigateTo",value:function(e){}},{key:"getDestinationHash",value:function(e){return"#"}},{key:"getAnchorUrl",value:function(e){return"#"}},{key:"setHash",value:function(e){}},{key:"executeNamedAction",value:function(e){}},{key:"cachePageRef",value:function(e,t){}},{key:"isPageVisible",value:function(e){return!0}},{key:"pagesCount",get:function(){return 0}},{key:"page",get:function(){return 0},set:function(e){}},{key:"rotation",get:function(){return 0},set:function(e){}}]),e}();t.SimpleLinkService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultTextLayerFactory=t.TextLayerBuilder=void 0;var i=n(2);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var s=function(){function e(t){var n=t.textLayerDiv,i=t.eventBus,o=t.pageIndex,a=t.viewport,s=t.findController,l=void 0===s?null:s,u=t.enhanceTextSelection,c=void 0!==u&&u;r(this,e),this.textLayerDiv=n,this.eventBus=i,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=o,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=a,this.textDivs=[],this.findController=l,this.textLayerRenderTask=null,this.enhanceTextSelection=c,this._onUpdateTextLayerMatches=null,this._bindMouse()}return a(e,[{key:"_finishRendering",value:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.appendChild(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}},{key:"render",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var n=document.createDocumentFragment();this.textLayerRenderTask=(0,i.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:n,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:t,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(function(){e.textLayerDiv.appendChild(n),e._finishRendering(),e._updateMatches()},function(e){}),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(t){t.pageIndex!==e.pageIdx&&-1!==t.pageIndex||e._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}}},{key:"cancel",value:function(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}},{key:"setTextContentStream",value:function(e){this.cancel(),this.textContentStream=e}},{key:"setTextContent",value:function(e){this.cancel(),this.textContent=e}},{key:"_convertMatches",value:function(e,t){if(!e)return[];for(var n=this.findController,i=this.textContentItemsStr,r=0,o=0,a=i.length-1,s=n.state.query.length,l=[],u=0,c=e.length;u<c;u++){for(var h=e[u];r!==a&&h>=o+i[r].length;)o+=i[r].length,r++;r===i.length&&console.error("Could not find a matching mapping");var d={begin:{divIdx:r,offset:h-o}};for(h+=t?t[u]:s;r!==a&&h>o+i[r].length;)o+=i[r].length,r++;d.end={divIdx:r,offset:h-o},l.push(d)}return l}},{key:"_renderMatches",value:function(e){if(0!==e.length){var t=this.findController,n=this.pageIdx,i=this.textContentItemsStr,r=this.textDivs,o=n===t.selected.pageIdx,a=t.selected.matchIdx,s=null,l={divIdx:-1,offset:void 0},u=a,c=u+1;if(t.state.highlightAll)u=0,c=e.length;else if(!o)return;for(var h=u;h<c;h++){var d=e[h],f=d.begin,p=d.end,A=o&&h===a,g=A?" selected":"";if(A&&t.scrollMatchIntoView({element:r[f.divIdx],pageIndex:n,matchIndex:a}),s&&f.divIdx===s.divIdx?_(s.divIdx,s.offset,f.offset):(null!==s&&_(s.divIdx,s.offset,l.offset),y(f)),f.divIdx===p.divIdx)_(f.divIdx,f.offset,p.offset,"highlight"+g);else{_(f.divIdx,f.offset,l.offset,"highlight begin"+g);for(var v=f.divIdx+1,m=p.divIdx;v<m;v++)r[v].className="highlight middle"+g;y(p,"highlight end"+g)}s=p}s&&_(s.divIdx,s.offset,l.offset)}function y(e,t){var n=e.divIdx;r[n].textContent="",_(n,0,e.offset,t)}function _(e,t,n,o){var a=r[e],s=i[e].substring(t,n),l=document.createTextNode(s);if(o){var u=document.createElement("span");return u.className=o,u.appendChild(l),void a.appendChild(u)}a.appendChild(l)}}},{key:"_updateMatches",value:function(){if(this.renderingDone){for(var e=this.findController,t=this.matches,n=this.pageIdx,i=this.textContentItemsStr,r=this.textDivs,o=-1,a=0,s=t.length;a<s;a++){for(var l=t[a],u=Math.max(o,l.begin.divIdx),c=l.end.divIdx;u<=c;u++){var h=r[u];h.textContent=i[u],h.className=""}o=l.end.divIdx+1}if(e&&e.highlightMatches){var d=e.pageMatches[n]||null,f=e.pageMatchesLength[n]||null;this.matches=this._convertMatches(d,f),this._renderMatches(this.matches)}}}},{key:"_bindMouse",value:function(){var e=this,t=this.textLayerDiv,n=null;t.addEventListener("mousedown",function(i){if(e.enhanceTextSelection&&e.textLayerRenderTask)return e.textLayerRenderTask.expandTextDivs(!0),void(n&&(clearTimeout(n),n=null));var r=t.querySelector(".endOfContent");if(r){var o=i.target!==t;if(o=o&&"none"!==window.getComputedStyle(r).getPropertyValue("-moz-user-select")){var a=t.getBoundingClientRect(),s=Math.max(0,(i.pageY-a.top)/a.height);r.style.top=(100*s).toFixed(2)+"%"}r.classList.add("active")}}),t.addEventListener("mouseup",function(){if(e.enhanceTextSelection&&e.textLayerRenderTask)n=setTimeout(function(){e.textLayerRenderTask&&e.textLayerRenderTask.expandTextDivs(!1),n=null},300);else{var i=t.querySelector(".endOfContent");i&&(i.style.top="",i.classList.remove("active"))}})}}]),e}();t.TextLayerBuilder=s;var l=function(){function e(){r(this,e)}return a(e,[{key:"createTextLayerBuilder",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0;return new s({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:i,eventBus:r})}}]),e}();t.DefaultTextLayerFactory=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var i=n(2),r=n(10);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t){var n=document.createElement("a");if(!n.click)throw new Error('DownloadManager: "a.click()" is not supported.');n.href=e,n.target="_parent","download"in n&&(n.download=t),(document.body||document.documentElement).appendChild(n),n.click(),n.remove()}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,s;return t=e,(n=[{key:"downloadUrl",value:function(e,t){(0,i.createValidAbsoluteUrl)(e,"http://example.com")&&a(e+"#pdfjs.action=download",t)}},{key:"downloadData",value:function(e,t,n){navigator.msSaveBlob?navigator.msSaveBlob(new Blob([e],{type:n}),t):a((0,i.createObjectURL)(e,n,r.viewerCompatibilityParams.disableCreateObjectURL),t)}},{key:"download",value:function(e,t,n){arguments.length>3&&void 0!==arguments[3]&&arguments[3];navigator.msSaveBlob?navigator.msSaveBlob(e,n)||this.downloadUrl(t,n):r.viewerCompatibilityParams.disableCreateObjectURL?this.downloadUrl(t,n):a(URL.createObjectURL(e),n)}}])&&o(t.prototype,n),s&&o(t,s),e}();t.DownloadManager=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.viewerCompatibilityParams=void 0;var i=Object.create(null),r="undefined"!=typeof navigator&&navigator.userAgent||"",o="undefined"!=typeof navigator&&navigator.platform||"",a="undefined"!=typeof navigator&&navigator.maxTouchPoints||1,s=/Android/.test(r),l=/Trident/.test(r),u=/\b(iPad|iPhone|iPod)(?=;)/.test(r)||"MacIntel"===o&&a>1,c=/CriOS/.test(r);(l||c)&&(i.disableCreateObjectURL=!0),(u||s)&&(i.maxCanvasPixels=5242880);var h=Object.freeze(i);t.viewerCompatibilityParams=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0;var i,r=(i=n(4))&&i.__esModule?i:{default:i};function o(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var a=e.apply(t,n);function s(e){o(a,i,r,s,l,"next",e)}function l(e){o(a,i,r,s,l,"throw",e)}s(void 0)})}}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(12);var l=document.webL10n,u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._lang=t,this._ready=new Promise(function(e,n){l.setLanguage(t,function(){e(l)})})}var t,n,i;return t=e,(n=[{key:"getLanguage",value:function(){var e=a(r.default.mark(function e(){var t;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return t=e.sent,e.abrupt("return",t.getLanguage());case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"getDirection",value:function(){var e=a(r.default.mark(function e(){var t;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return t=e.sent,e.abrupt("return",t.getDirection());case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"get",value:function(){var e=a(r.default.mark(function e(t,n,i){var o;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return o=e.sent,e.abrupt("return",o.get(t,n,i));case 4:case"end":return e.stop()}},e,this)}));return function(t,n,i){return e.apply(this,arguments)}}()},{key:"translate",value:function(){var e=a(r.default.mark(function e(t){var n;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return n=e.sent,e.abrupt("return",n.translate(t));case 4:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}])&&s(t.prototype,n),i&&s(t,i),e}();t.GenericL10n=u},function(e,t,n){"use strict";document.webL10n=function(e,t,n){var i={},r="",o="textContent",a="",s={},l="loading",u=!0;function c(e,t,n){t=t||function(e){},n=n||function(){};var i=new XMLHttpRequest;i.open("GET",e,u),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=utf-8"),i.onreadystatechange=function(){4==i.readyState&&(200==i.status||0===i.status?t(i.responseText):n())},i.onerror=n,i.ontimeout=n;try{i.send(null)}catch(e){n()}}function h(e,t,n,a){var s=e.replace(/[^\/]*$/,"")||"./";c(e,function(e){r+=e,function(e,n){var i={},r=/^\s*|\s*$/,o=/^\s*#|^\s*$/,a=/^\s*\[(.*)\]\s*$/,l=/^\s*@import\s+url\((.*)\)\s*$/i,u=/^([^=\s]*)\s*=\s*(.+)$/;function h(e,n,c){var h=e.replace(r,"").split(/[\r\n]+/),f="*",p=t.split("-",1)[0],A=!1,g="";!function e(){for(;;){if(!h.length)return void c();var r=h.shift();if(!o.test(r)){if(n){if(g=a.exec(r)){f=g[1].toLowerCase(),A="*"!==f&&f!==t&&f!==p;continue}if(A)continue;if(g=l.exec(r))return void d(s+g[1],e)}var v=r.match(u);v&&3==v.length&&(i[v[1]]=(m=v[2]).lastIndexOf("\\")<0?m:m.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'"))}}var m}()}function d(e,t){c(e,function(e){h(e,!1,t)},function(){console.warn(e+" not found."),t()})}h(e,!0,function(){n(i)})}(e,function(e){for(var t in e){var r,a,s=t.lastIndexOf(".");s>0?(r=t.substring(0,s),a=t.substring(s+1)):(r=t,a=o),i[r]||(i[r]={}),i[r][a]=e[t]}n&&n()})},a)}function d(e,n){e&&(e=e.toLowerCase()),n=n||function(){},i={},r="",a="",a=e;var o=t.querySelectorAll('link[type="application/l10n"]'),s=o.length;if(0!==s){var u,c,d=0;c=function(){++d>=s&&(n(),l="complete")};for(var f=0;f<s;f++){new v(o[f]).load(e,c)}}else{var p=(u=t.querySelector('script[type="application/l10n"]'))?JSON.parse(u.innerHTML):null;if(p&&p.locales&&p.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(i=p.locales[e])){var A=p.default_locale.toLowerCase();for(var g in p.locales){if((g=g.toLowerCase())===e){i=p.locales[e];break}g===A&&(i=p.locales[A])}}n()}else console.log("no resource to load, early way out");l="complete"}function v(e){var t=e.href;this.load=function(e,n){h(t,e,n,function(){console.warn(t+" not found."),console.warn('"'+e+'" resource not found'),a="",n()})}}}function f(e,t,n){var r=i[e];if(!r){if(console.warn("#"+e+" is undefined."),!n)return null;r=n}var o={};for(var a in r){var s=r[a];s=A(s=p(s,t,e,a),t,e),o[a]=s}return o}function p(e,t,n,r){var o=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(e);if(!o||!o.length)return e;var a,l=o[1],u=o[2];(t&&u in t?a=t[u]:u in i&&(a=i[u]),l in s)&&(e=(0,s[l])(e,a,n,r));return e}function A(e,t,n){return e.replace(/\{\{\s*(.+?)\s*\}\}/g,function(e,r){return t&&r in t?t[r]:r in i?i[r]:(console.log("argument {{"+r+"}} for #"+n+" is undefined."),e)})}function g(e){var n=function(e){if(!e)return{};var t=e.getAttribute("data-l10n-id"),n=e.getAttribute("data-l10n-args"),i={};if(n)try{i=JSON.parse(n)}catch(e){console.warn("could not parse arguments for #"+t)}return{id:t,args:i}}(e);if(n.id){var i=f(n.id,n.args);if(i){if(i[o]){if(0===function(e){if(e.children)return e.children.length;if(void 0!==e.childElementCount)return e.childElementCount;for(var t=0,n=0;n<e.childNodes.length;n++)t+=1===e.nodeType?1:0;return t}(e))e[o]=i[o];else{for(var r=e.childNodes,a=!1,s=0,l=r.length;s<l;s++)3===r[s].nodeType&&/\S/.test(r[s].nodeValue)&&(a?r[s].nodeValue="":(r[s].nodeValue=i[o],a=!0));if(!a){var u=t.createTextNode(i[o]);e.insertBefore(u,e.firstChild)}}delete i[o]}for(var c in i)e[c]=i[c]}else console.warn("#"+n.id+" is undefined.")}}return s.plural=function(e,t,n,r){var l=parseFloat(t);if(isNaN(l))return e;if(r!=o)return e;s._pluralRules||(s._pluralRules=function(e){function t(e,t){return-1!==t.indexOf(e)}function n(e,t,n){return t<=e&&e<=n}var i={0:function(e){return"other"},1:function(e){return n(e%100,3,10)?"few":0===e?"zero":n(e%100,11,99)?"many":2==e?"two":1==e?"one":"other"},2:function(e){return 0!==e&&e%10==0?"many":2==e?"two":1==e?"one":"other"},3:function(e){return 1==e?"one":"other"},4:function(e){return n(e,0,1)?"one":"other"},5:function(e){return n(e,0,2)&&2!=e?"one":"other"},6:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"},7:function(e){return 2==e?"two":1==e?"one":"other"},8:function(e){return n(e,3,6)?"few":n(e,7,10)?"many":2==e?"two":1==e?"one":"other"},9:function(e){return 0===e||1!=e&&n(e%100,1,19)?"few":1==e?"one":"other"},10:function(e){return n(e%10,2,9)&&!n(e%100,11,19)?"few":e%10!=1||n(e%100,11,19)?"other":"one"},11:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":e%10==0||n(e%10,5,9)||n(e%100,11,14)?"many":e%10==1&&e%100!=11?"one":"other"},12:function(e){return n(e,2,4)?"few":1==e?"one":"other"},13:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":1!=e&&n(e%10,0,1)||n(e%10,5,9)||n(e%100,12,14)?"many":1==e?"one":"other"},14:function(e){return n(e%100,3,4)?"few":e%100==2?"two":e%100==1?"one":"other"},15:function(e){return 0===e||n(e%100,2,10)?"few":n(e%100,11,19)?"many":1==e?"one":"other"},16:function(e){return e%10==1&&11!=e?"one":"other"},17:function(e){return 3==e?"few":0===e?"zero":6==e?"many":2==e?"two":1==e?"one":"other"},18:function(e){return 0===e?"zero":n(e,0,2)&&0!==e&&2!=e?"one":"other"},19:function(e){return n(e,2,10)?"few":n(e,0,1)?"one":"other"},20:function(e){return!n(e%10,3,4)&&e%10!=9||n(e%100,10,19)||n(e%100,70,79)||n(e%100,90,99)?e%1e6==0&&0!==e?"many":e%10!=2||t(e%100,[12,72,92])?e%10!=1||t(e%100,[11,71,91])?"other":"one":"two":"few"},21:function(e){return 0===e?"zero":1==e?"one":"other"},22:function(e){return n(e,0,1)||n(e,11,99)?"one":"other"},23:function(e){return n(e%10,1,2)||e%20==0?"one":"other"},24:function(e){return n(e,3,10)||n(e,13,19)?"few":t(e,[2,12])?"two":t(e,[1,11])?"one":"other"}},r={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[e.replace(/-.*$/,"")];return r in i?i[r]:(console.warn("plural form unknown for ["+e+"]"),function(){return"other"})}(a));var u="["+s._pluralRules(l)+"]";return 0===l&&n+"[zero]"in i?e=i[n+"[zero]"][r]:1==l&&n+"[one]"in i?e=i[n+"[one]"][r]:2==l&&n+"[two]"in i?e=i[n+"[two]"][r]:n+u in i?e=i[n+u][r]:n+"[other]"in i&&(e=i[n+"[other]"][r]),e},{get:function(e,t,n){var i,r=e.lastIndexOf("."),a=o;r>0&&(a=e.substring(r+1),e=e.substring(0,r)),n&&((i={})[a]=n);var s=f(e,t,i);return s&&a in s?s[a]:"{{"+e+"}}"},getData:function(){return i},getText:function(){return r},getLanguage:function(){return a},setLanguage:function(e,t){d(e,function(){t&&t()})},getDirection:function(){var e=a.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(e)>=0?"rtl":"ltr"},translate:function(e){for(var n=function(e){return e?e.querySelectorAll("*[data-l10n-id]"):[]}(e=e||t.documentElement),i=n.length,r=0;r<i;r++)g(n[r]);g(e)},getReadyState:function(){return l},ready:function(n){n&&("complete"==l||"interactive"==l?e.setTimeout(function(){n()}):t.addEventListener&&t.addEventListener("localized",function e(){t.removeEventListener("localized",e),n()}))}}}(window,document)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindController=t.FindState=void 0;var i=n(2),r=n(14),o=n(3);function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};t.FindState=s;var l={"‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},u=null;function c(e){if(!u){var t=Object.keys(l).join("");u=new RegExp("[".concat(t,"]"),"g")}return e.replace(u,function(e){return l[e]})}var h=function(){function e(t){var n=t.linkService,i=t.eventBus;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._linkService=n,this._eventBus=i,this._reset(),i._on("findbarclose",this._onFindBarClose.bind(this))}var t,n,l;return t=e,(n=[{key:"setDocument",value:function(e){this._pdfDocument&&this._reset(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}},{key:"executeCommand",value:function(e,t){var n=this;if(t){var i=this._pdfDocument;(null===this._state||this._shouldDirtyMatch(e,t))&&(this._dirtyMatch=!0),this._state=t,"findhighlightallchange"!==e&&this._updateUIState(s.PENDING),this._firstPageCapability.promise.then(function(){if(n._pdfDocument&&(!i||n._pdfDocument===i)){n._extractText();var t=!n._highlightMatches,r=!!n._findTimeout;n._findTimeout&&(clearTimeout(n._findTimeout),n._findTimeout=null),"find"===e?n._findTimeout=setTimeout(function(){n._nextMatch(),n._findTimeout=null},250):n._dirtyMatch?n._nextMatch():"findagain"===e?(n._nextMatch(),t&&n._state.highlightAll&&n._updateAllPages()):"findhighlightallchange"===e?(r?n._nextMatch():n._highlightMatches=!0,n._updateAllPages()):n._nextMatch()}})}}},{key:"scrollMatchIntoView",value:function(e){var t=e.element,n=void 0===t?null:t,i=e.pageIndex,r=void 0===i?-1:i,a=e.matchIndex,s=void 0===a?-1:a;if(this._scrollMatches&&n&&-1!==s&&s===this._selected.matchIdx&&-1!==r&&r===this._selected.pageIdx){this._scrollMatches=!1;var l={top:-50,left:-400};(0,o.scrollIntoView)(n,l,!0)}}},{key:"_reset",value:function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,i.createPromiseCapability)()}},{key:"_shouldDirtyMatch",value:function(e,t){if(t.query!==this._state.query)return!0;switch(e){case"findagain":var n=this._selected.pageIdx+1,i=this._linkService;return n>=1&&n<=i.pagesCount&&n!==i.page&&!i.isPageVisible(n);case"findhighlightallchange":return!1}return!0}},{key:"_prepareMatches",value:function(e,t,n){function i(t){var n=e[t],i=e[t+1];if(t<e.length-1&&n.match===i.match)return n.skipped=!0,!0;for(var r=t-1;r>=0;r--){var o=e[r];if(!o.skipped){if(o.match+o.matchLength<n.match)break;if(o.match+o.matchLength>=n.match+n.matchLength)return n.skipped=!0,!0}}return!1}e.sort(function(e,t){return e.match===t.match?e.matchLength-t.matchLength:e.match-t.match});for(var r=0,o=e.length;r<o;r++)i(r)||(t.push(e[r].match),n.push(e[r].matchLength))}},{key:"_isEntireWord",value:function(e,t,n){if(t>0){var i=e.charCodeAt(t),o=e.charCodeAt(t-1);if((0,r.getCharacterType)(i)===(0,r.getCharacterType)(o))return!1}var a=t+n-1;if(a<e.length-1){var s=e.charCodeAt(a),l=e.charCodeAt(a+1);if((0,r.getCharacterType)(s)===(0,r.getCharacterType)(l))return!1}return!0}},{key:"_calculatePhraseMatch",value:function(e,t,n,i){for(var r=[],o=e.length,a=-o;-1!==(a=n.indexOf(e,a+o));)i&&!this._isEntireWord(n,a,o)||r.push(a);this._pageMatches[t]=r}},{key:"_calculateWordMatch",value:function(e,t,n,i){for(var r=[],o=e.match(/\S+/g),a=0,s=o.length;a<s;a++)for(var l=o[a],u=l.length,c=-u;-1!==(c=n.indexOf(l,c+u));)i&&!this._isEntireWord(n,c,u)||r.push({match:c,matchLength:u,skipped:!1});this._pageMatchesLength[t]=[],this._pageMatches[t]=[],this._prepareMatches(r,this._pageMatches[t],this._pageMatchesLength[t])}},{key:"_calculateMatch",value:function(e){var t=this._pageContents[e],n=this._query,i=this._state,r=i.caseSensitive,o=i.entireWord,a=i.phraseSearch;if(0!==n.length){r||(t=t.toLowerCase(),n=n.toLowerCase()),a?this._calculatePhraseMatch(n,e,t,o):this._calculateWordMatch(n,e,t,o),this._state.highlightAll&&this._updatePage(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this._nextPageMatch());var s=this._pageMatches[e].length;s>0&&(this._matchesCountTotal+=s,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var e=this;if(!(this._extractTextPromises.length>0))for(var t=Promise.resolve(),n=function(n,r){var o=(0,i.createPromiseCapability)();e._extractTextPromises[n]=o.promise,t=t.then(function(){return e._pdfDocument.getPage(n+1).then(function(e){return e.getTextContent({normalizeWhitespace:!0})}).then(function(t){for(var i=t.items,r=[],a=0,s=i.length;a<s;a++)r.push(i[a].str);e._pageContents[n]=c(r.join("")),o.resolve(n)},function(t){console.error("Unable to get text content for page ".concat(n+1),t),e._pageContents[n]="",o.resolve(n)})})},r=0,o=this._linkService.pagesCount;r<o;r++)n(r)}},{key:"_updatePage",value:function(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}},{key:"_updateAllPages",value:function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}},{key:"_nextMatch",value:function(){var e=this,t=this._state.findPrevious,n=this._linkService.page-1,i=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=n,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(var r=0;r<i;r++)!0!==this._pendingFindMatches[r]&&(this._pendingFindMatches[r]=!0,this._extractTextPromises[r].then(function(t){delete e._pendingFindMatches[t],e._calculateMatch(t)}))}if(""!==this._query){if(!this._resumePageIdx){var o=this._offset;if(this._pagesToSearch=i,null!==o.matchIdx){var a=this._pageMatches[o.pageIdx].length;if(!t&&o.matchIdx+1<a||t&&o.matchIdx>0)return o.matchIdx=t?o.matchIdx-1:o.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(t)}this._nextPageMatch()}}else this._updateUIState(s.FOUND)}},{key:"_matchesReady",value:function(e){var t=this._offset,n=e.length,i=this._state.findPrevious;return n?(t.matchIdx=i?n-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(i),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}},{key:"_nextPageMatch",value:function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var e=null;do{var t=this._offset.pageIdx;if(!(e=this._pageMatches[t])){this._resumePageIdx=t;break}}while(!this._matchesReady(e))}},{key:"_advanceOffsetPage",value:function(e){var t=this._offset,n=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=n||t.pageIdx<0)&&(t.pageIdx=e?n-1:0,t.wrapped=!0)}},{key:"_updateMatch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=s.NOT_FOUND,n=this._offset.wrapped;if(this._offset.wrapped=!1,e){var i=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=n?s.WRAPPED:s.FOUND,-1!==i&&i!==this._selected.pageIdx&&this._updatePage(i)}this._updateUIState(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}},{key:"_onFindBarClose",value:function(e){var t=this,n=this._pdfDocument;this._firstPageCapability.promise.then(function(){!t._pdfDocument||n&&t._pdfDocument!==n||(t._findTimeout&&(clearTimeout(t._findTimeout),t._findTimeout=null),t._resumePageIdx&&(t._resumePageIdx=null,t._dirtyMatch=!0),t._updateUIState(s.FOUND),t._highlightMatches=!1,t._updateAllPages())})}},{key:"_requestMatchesCount",value:function(){var e=this._selected,t=e.pageIdx,n=e.matchIdx,i=0,r=this._matchesCountTotal;if(-1!==n){for(var o=0;o<t;o++)i+=this._pageMatches[o]&&this._pageMatches[o].length||0;i+=n+1}return(i<1||i>r)&&(i=r=0),{current:i,total:r}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(e,t){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this._requestMatchesCount(),rawQuery:this._state?this._state.query:null})}},{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return this._state}},{key:"_query",get:function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=c(this._state.query)),this._normalizedQuery}}])&&a(t.prototype,n),l&&a(t,l),e}();t.PDFFindController=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCharacterType=function(e){if(function(e){return e<11904}(e))return function(e){return 0==(65408&e)}(e)?function(e){return 32===e||9===e||13===e||10===e}(e)?i.SPACE:function(e){return e>=97&&e<=122||e>=65&&e<=90}(e)||function(e){return e>=48&&e<=57}(e)||95===e?i.ALPHA_LETTER:i.PUNCT:function(e){return 3584==(65408&e)}(e)?i.THAI_LETTER:160===e?i.SPACE:i.ALPHA_LETTER;if(function(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}(e))return i.HAN_LETTER;if(function(e){return e>=12448&&e<=12543}(e))return i.KATAKANA_LETTER;if(function(e){return e>=12352&&e<=12447}(e))return i.HIRAGANA_LETTER;if(function(e){return e>=65376&&e<=65439}(e))return i.HALFWIDTH_KATAKANA_LETTER;return i.ALPHA_LETTER},t.CharacterType=void 0;var i={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};t.CharacterType=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDestHashesEqual=c,t.isDestArraysEqual=h,t.PDFHistory=void 0;var i=n(3);function r(e){"@babel/helpers - typeof";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){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(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 a(e,t)}(e,t)||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.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(){return document.location.hash}var u=function(){function e(t){var n=this,i=t.linkService,r=t.eventBus;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.linkService=i,this.eventBus=r,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",function(e){n._isViewerInPresentationMode=e.active||e.switchInProgress}),this.eventBus._on("pagesinit",function(){n._isPagesLoaded=!1;n.eventBus._on("pagesloaded",function e(t){n.eventBus._off("pagesloaded",e),n._isPagesLoaded=!!t.pagesCount})})}var t,n,a;return t=e,(n=[{key:"initialize",value:function(e){var t=e.fingerprint,n=e.resetHistory,i=void 0!==n&&n,r=e.updateUrl,o=void 0!==r&&r;if(t&&"string"==typeof t){this._initialized&&this.reset();var a=""!==this._fingerprint&&this._fingerprint!==t;this._fingerprint=t,this._updateUrl=!0===o,this._initialized=!0,this._bindEvents();var s=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=l(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(s,!0)||i){var u=this._parseCurrentHash(!0),c=u.hash,h=u.page,d=u.rotation;return!c||a||i?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:c,page:h,rotation:d},!0)}var f=s.destination;this._updateInternalState(f,s.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),void 0!==f.rotation&&(this._initialRotation=f.rotation),f.dest?(this._initialBookmark=JSON.stringify(f.dest),this._destination.page=null):f.hash?this._initialBookmark=f.hash:f.page&&(this._initialBookmark="page=".concat(f.page))}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}},{key:"reset",value:function(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}},{key:"push",value:function(e){var t=this,n=e.namedDest,i=void 0===n?null:n,r=e.explicitDest,o=e.pageNumber;if(this._initialized)if(i&&"string"!=typeof i)console.error("PDFHistory.push: "+'"'.concat(i,'" is not a valid namedDest parameter.'));else if(Array.isArray(r))if(Number.isInteger(o)&&o>0&&o<=this.linkService.pagesCount||null===o&&!this._destination){var a=i||JSON.stringify(r);if(a){var s=!1;if(this._destination&&(c(this._destination.hash,a)||h(this._destination.dest,r))){if(this._destination.page)return;s=!0}this._popStateInProgress&&!s||(this._pushOrReplaceState({dest:r,hash:a,page:o,rotation:this.linkService.rotation},s),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(function(){t._popStateInProgress=!1})))}}else console.error("PDFHistory.push: "+'"'.concat(o,'" is not a valid pageNumber parameter.'));else console.error("PDFHistory.push: "+'"'.concat(r,'" is not a valid explicitDest parameter.'))}},{key:"pushCurrentPosition",value:function(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid<this._maxUid&&window.history.forward()}}},{key:"_pushOrReplaceState",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!this._destination,i={fingerprint:this._fingerprint,uid:n?this._uid:this._uid+1,destination:e};if(this._updateInternalState(e,i.uid),this._updateUrl&&e&&e.hash){var r=document.location.href.split("#")[0];r.startsWith("file://")||(t="".concat(r,"#").concat(e.hash))}n?window.history.replaceState(i,"",t):(this._maxUid=this._uid,window.history.pushState(i,"",t))}},{key:"_tryPushCurrentPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._position){var t=this._position;if(e&&((t=Object.assign(Object.create(null),this._position)).temporary=!0),this._destination){if(this._destination.temporary)this._pushOrReplaceState(t,!0);else if(this._destination.hash!==t.hash&&(this._destination.page||!(this._numPositionUpdates<=50))){var n=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(this._destination.dest||!this._destination.first)return;n=!0}this._pushOrReplaceState(t,n)}}else this._pushOrReplaceState(t)}}},{key:"_isValidState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return!1;if(e.fingerprint!==this._fingerprint){if(!t)return!1;if("string"!=typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1;var n=o(performance.getEntriesByType("navigation"),1)[0];if(!n||"reload"!==n.type)return!1}return!(!Number.isInteger(e.uid)||e.uid<0)&&(null!==e.destination&&"object"===r(e.destination))}},{key:"_updateInternalState",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&e&&e.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=unescape(l()).substring(1),n=(0,i.parseQueryString)(t),r=n.nameddest||"",o=0|n.page;return Number.isInteger(o)&&o>0&&o<=this.linkService.pagesCount&&!(e&&r.length>0)||(o=null),{hash:t,page:o,rotation:this.linkService.rotation}}},{key:"_updateViewarea",value:function(e){var t=this,n=e.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(n.pageNumber):n.pdfOpenParams.substring(1),page:this.linkService.page,first:n.pageNumber,rotation:n.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(function(){t._popStateInProgress||t._tryPushCurrentPosition(!0),t._updateViewareaTimeout=null},1e3))}},{key:"_popState",value:function(e){var t=this,n=e.state,r=l(),o=this._currentHash!==r;if(this._currentHash=r,n){if(this._isValidState(n)){this._popStateInProgress=!0,o&&(this._blockHashChange++,(0,i.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(function(){t._blockHashChange--}));var a=n.destination;this._updateInternalState(a,n.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,i.isValidRotation)(a.rotation)&&(this.linkService.rotation=a.rotation),a.dest?this.linkService.navigateTo(a.dest):a.hash?this.linkService.setHash(a.hash):a.page&&(this.linkService.page=a.page),Promise.resolve().then(function(){t._popStateInProgress=!1})}}else{this._uid++;var s=this._parseCurrentHash(),u=s.hash,c=s.page,h=s.rotation;this._pushOrReplaceState({hash:u,page:c,rotation:h},!0)}}},{key:"_pageHide",value:function(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}},{key:"_bindEvents",value:function(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}},{key:"_unbindEvents",value:function(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}},{key:"popStateInProgress",get:function(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}},{key:"initialBookmark",get:function(){return this._initialized?this._initialBookmark:null}},{key:"initialRotation",get:function(){return this._initialized?this._initialRotation:null}}])&&s(t.prototype,n),a&&s(t,a),e}();function c(e,t){return"string"==typeof e&&"string"==typeof t&&(e===t||(0,i.parseQueryString)(e).nameddest===t)}function h(e,t){function n(e,t){if(r(e)!==r(t))return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!==e&&"object"===r(e)&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var i in e)if(!n(e[i],t[i]))return!1;return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var i=0,o=e.length;i<o;i++)if(!n(e[i],t[i]))return!1;return!0}t.PDFHistory=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPageView=void 0;var i,r=(i=n(4))&&i.__esModule?i:{default:i},o=n(3),a=n(2),s=n(17);function l(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function u(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){l(o,i,r,a,s,"next",e)}function s(e){l(o,i,r,a,s,"throw",e)}a(void 0)})}}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var h=n(10).viewerCompatibilityParams.maxCanvasPixels||16777216,d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=t.container,i=t.defaultViewport;this.id=t.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=t.scale||o.DEFAULT_SCALE,this.viewport=i,this.pdfPageRotate=i.rotation,this._annotationStorage=t.annotationStorage||null,this._optionalContentConfigPromise=t.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:o.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms="boolean"!=typeof t.renderInteractiveForms||t.renderInteractiveForms,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels||h,this.eventBus=t.eventBus,this.renderingQueue=t.renderingQueue,this.textLayerFactory=t.textLayerFactory,this.annotationLayerFactory=t.annotationLayerFactory,this.renderer=t.renderer||o.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.l10n=t.l10n||o.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=s.RenderingStates.INITIAL,this.resume=null,this.error=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;var r=document.createElement("div");r.className="page",r.style.width=Math.floor(this.viewport.width)+"px",r.style.height=Math.floor(this.viewport.height)+"px",r.setAttribute("data-page-number",this.id),this.div=r,n.appendChild(r)}var t,n,i;return t=e,(n=[{key:"setPdfPage",value:function(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*o.CSS_UNITS,rotation:t}),this.stats=e.stats,this.reset()}},{key:"destroy",value:function(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}},{key:"_renderAnnotationLayer",value:function(){var e=u(r.default.mark(function e(){var t;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.prev=1,e.next=4,this.annotationLayer.render(this.viewport,"display");case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),t=e.t0;case 9:return e.prev=9,this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:t}),e.finish(9);case 12:case"end":return e.stop()}},e,this,[[1,6,9,12]])}));return function(){return e.apply(this,arguments)}}()},{key:"_resetZoomLayer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var t=this.zoomLayer.firstChild;this.paintedViewportMap.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.cancelRendering(t),this.renderingState=s.RenderingStates.INITIAL;var n=this.div;n.style.width=Math.floor(this.viewport.width)+"px",n.style.height=Math.floor(this.viewport.height)+"px";for(var i=n.childNodes,r=e&&this.zoomLayer||null,o=t&&this.annotationLayer&&this.annotationLayer.div||null,a=i.length-1;a>=0;a--){var l=i[a];r!==l&&o!==l&&n.removeChild(l)}n.removeAttribute("data-loaded"),o?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),r||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",n.appendChild(this.loadingIconDiv)}},{key:"update",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.scale=e||this.scale,void 0!==t&&(this.rotation=t),n instanceof Promise&&(this._optionalContentConfigPromise=n);var i=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*o.CSS_UNITS,rotation:i}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});var r=!1;if(this.canvas&&this.maxCanvasPixels>0){var a=this.outputScale;(Math.floor(this.viewport.width)*a.sx|0)*(Math.floor(this.viewport.height)*a.sy|0)>this.maxCanvasPixels&&(r=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&r)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});this.zoomLayer||this.canvas.hasAttribute("hidden")||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}},{key:"cancelRendering",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!e&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}},{key:"cssTransform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.viewport.width,i=this.viewport.height,r=this.div;e.style.width=e.parentNode.style.width=r.style.width=Math.floor(n)+"px",e.style.height=e.parentNode.style.height=r.style.height=Math.floor(i)+"px";var o=this.viewport.rotation-this.paintedViewportMap.get(e).rotation,a=Math.abs(o),s=1,l=1;90!==a&&270!==a||(s=i/n,l=n/i);var u="rotate("+o+"deg) scale("+s+","+l+")";if(e.style.transform=u,this.textLayer){var c=this.textLayer.viewport,h=this.viewport.rotation-c.rotation,d=Math.abs(h),f=n/c.width;90!==d&&270!==d||(f=n/c.height);var p,A,g=this.textLayer.textLayerDiv;switch(d){case 0:p=A=0;break;case 90:p=0,A="-"+g.style.height;break;case 180:p="-"+g.style.width,A="-"+g.style.height;break;case 270:p="-"+g.style.width,A=0;break;default:console.error("Bad rotation value.")}g.style.transform="rotate("+d+"deg) scale("+f+", "+f+") translate("+p+", "+A+")",g.style.transformOrigin="0% 0%"}t&&this.annotationLayer&&this._renderAnnotationLayer()}},{key:"getPagePoint",value:function(e,t){return this.viewport.convertToPdfPoint(e,t)}},{key:"draw",value:function(){var e=this;this.renderingState!==s.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var t=this.div,n=this.pdfPage;if(!n)return this.renderingState=s.RenderingStates.FINISHED,this.loadingIconDiv&&(t.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=s.RenderingStates.RUNNING;var i=document.createElement("div");i.style.width=t.style.width,i.style.height=t.style.height,i.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?t.insertBefore(i,this.annotationLayer.div):t.appendChild(i);var l=null;if(this.textLayerMode!==o.TextLayerMode.DISABLE&&this.textLayerFactory){var c=document.createElement("div");c.className="textLayer",c.style.width=i.style.width,c.style.height=i.style.height,this.annotationLayer&&this.annotationLayer.div?t.insertBefore(c,this.annotationLayer.div):t.appendChild(c),l=this.textLayerFactory.createTextLayerBuilder(c,this.id-1,this.viewport,this.textLayerMode===o.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=l;var h=null;this.renderingQueue&&(h=function(t){if(!e.renderingQueue.isHighestPriority(e))return e.renderingState=s.RenderingStates.PAUSED,void(e.resume=function(){e.renderingState=s.RenderingStates.RUNNING,t()});t()});var d=function(){var i=u(r.default.mark(function i(o){return r.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(f===e.paintTask&&(e.paintTask=null),!(o instanceof a.RenderingCancelledException)){i.next=4;break}return e.error=null,i.abrupt("return");case 4:if(e.renderingState=s.RenderingStates.FINISHED,e.loadingIconDiv&&(t.removeChild(e.loadingIconDiv),delete e.loadingIconDiv),e._resetZoomLayer(!0),e.error=o,e.stats=n.stats,e.eventBus.dispatch("pagerendered",{source:e,pageNumber:e.id,cssTransform:!1,timestamp:performance.now()}),!o){i.next=12;break}throw o;case 12:case"end":return i.stop()}},i)}));return function(e){return i.apply(this,arguments)}}(),f=this.renderer===o.RendererType.SVG?this.paintOnSvg(i):this.paintOnCanvas(i);f.onRenderContinue=h,this.paintTask=f;var p=f.promise.then(function(){return d(null).then(function(){if(l){var e=n.streamTextContent({normalizeWhitespace:!0});l.setTextContentStream(e),l.render()}})},function(e){return d(e)});return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(t,n,this._annotationStorage,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this._renderAnnotationLayer()),t.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),p}},{key:"paintOnCanvas",value:function(e){var t=(0,a.createPromiseCapability)(),n={promise:t.promise,onRenderContinue:function(e){e()},cancel:function(){v.cancel()}},i=this.viewport,r=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then(function(e){r.setAttribute("aria-label",e)}),r.setAttribute("hidden","hidden");var s=!0,l=function(){s&&(r.removeAttribute("hidden"),s=!1)};e.appendChild(r),this.canvas=r,r.mozOpaque=!0;var u=r.getContext("2d",{alpha:!1}),c=(0,o.getOutputScale)(u);if(this.outputScale=c,this.useOnlyCssZoom){var h=i.clone({scale:o.CSS_UNITS});c.sx*=h.width/i.width,c.sy*=h.height/i.height,c.scaled=!0}if(this.maxCanvasPixels>0){var d=i.width*i.height,f=Math.sqrt(this.maxCanvasPixels/d);c.sx>f||c.sy>f?(c.sx=f,c.sy=f,c.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var p=(0,o.approximateFraction)(c.sx),A=(0,o.approximateFraction)(c.sy);r.width=(0,o.roundToDivide)(i.width*c.sx,p[0]),r.height=(0,o.roundToDivide)(i.height*c.sy,A[0]),r.style.width=(0,o.roundToDivide)(i.width,p[1])+"px",r.style.height=(0,o.roundToDivide)(i.height,A[1])+"px",this.paintedViewportMap.set(r,i);var g={canvasContext:u,transform:c.scaled?[c.sx,0,0,c.sy,0,0]:null,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms,optionalContentConfigPromise:this._optionalContentConfigPromise},v=this.pdfPage.render(g);return v.onContinue=function(e){l(),n.onRenderContinue?n.onRenderContinue(e):e()},v.promise.then(function(){l(),t.resolve(void 0)},function(e){l(),t.reject(e)}),n}},{key:"paintOnSvg",value:function(e){var t=this,n=!1,i=function(){if(n)throw new a.RenderingCancelledException("Rendering cancelled, page ".concat(t.id),"svg")},r=this.pdfPage,l=this.viewport.clone({scale:o.CSS_UNITS});return{promise:r.getOperatorList().then(function(n){return i(),new a.SVGGraphics(r.commonObjs,r.objs).getSVG(n,l).then(function(n){i(),t.svg=n,t.paintedViewportMap.set(n,l),n.style.width=e.style.width,n.style.height=e.style.height,t.renderingState=s.RenderingStates.FINISHED,e.appendChild(n)})}),onRenderContinue:function(e){e()},cancel:function(){n=!0}}}},{key:"setPageLabel",value:function(e){this.pageLabel="string"==typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}}])&&c(t.prototype,n),i&&c(t,i),e}();t.PDFPageView=d},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFRenderingQueue=t.RenderingStates=void 0;var r={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};t.RenderingStates=r;var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}var t,n,o;return t=e,(n=[{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setThumbnailViewer",value:function(e){this.pdfThumbnailViewer=e}},{key:"isHighestPriority",value:function(e){return this.highestPriorityPage===e.renderingId}},{key:"renderHighestPriority",value:function(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}},{key:"getHighestPriority",value:function(e,t,n){var i=e.views,r=i.length;if(0===r)return null;for(var o=0;o<r;++o){var a=i[o].view;if(!this.isViewFinished(a))return a}if(n){var s=e.last.id;if(t[s]&&!this.isViewFinished(t[s]))return t[s]}else{var l=e.first.id-2;if(t[l]&&!this.isViewFinished(t[l]))return t[l]}return null}},{key:"isViewFinished",value:function(e){return e.renderingState===r.FINISHED}},{key:"renderView",value:function(e){var t=this;switch(e.renderingState){case r.FINISHED:return!1;case r.PAUSED:this.highestPriorityPage=e.renderingId,e.resume();break;case r.RUNNING:this.highestPriorityPage=e.renderingId;break;case r.INITIAL:this.highestPriorityPage=e.renderingId,e.draw().finally(function(){t.renderHighestPriority()}).catch(function(e){console.error('renderView: "'.concat(e,'"'))})}return!0}}])&&i(t.prototype,n),o&&i(t,o),e}();t.PDFRenderingQueue=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSinglePageViewer=void 0;var i=n(19),r=n(2);function o(e){"@babel/helpers - typeof";return(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})(e)}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(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,i=c(e);if(t){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=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&&l(e,t)}(d,i.BaseViewer);var t,n,o,h=u(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(t=h.call(this,e)).eventBus._on("pagesinit",function(e){t._ensurePageViewVisible()}),t}return t=d,(n=[{key:"_resetView",value:function(){s(c(d.prototype),"_resetView",this).call(this),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}},{key:"_ensurePageViewVisible",value:function(){var e=this._pages[this._currentPageNumber-1],t=this._pages[this._previousPageNumber-1],n=this.viewer.childNodes;switch(n.length){case 0:this.viewer.appendChild(e.div);break;case 1:if(n[0]!==t.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(e===t)break;this._shadowViewer.appendChild(t.div),this.viewer.appendChild(e.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}},{key:"_scrollUpdate",value:function(){this._updateScrollDown&&this._updateScrollDown(),s(c(d.prototype),"_scrollUpdate",this).call(this)}},{key:"_scrollIntoView",value:function(e){var t=this,n=e.pageDiv,i=e.pageSpot,r=void 0===i?null:i,o=e.pageNumber,a=void 0===o?null:o;a&&this._setCurrentPageNumber(a);var l=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),s(c(d.prototype),"_scrollIntoView",this).call(this,{pageDiv:n,pageSpot:r,pageNumber:a}),this._updateScrollDown=function(){t.scroll.down=l,t._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(e){}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_viewerElement",get:function(){return(0,r.shadow)(this,"_viewerElement",this._shadowViewer)}},{key:"_isScrollModeHorizontal",get:function(){return(0,r.shadow)(this,"_isScrollModeHorizontal",!1)}}])&&a(t.prototype,n),o&&a(t,o),d}();t.PDFSinglePageViewer=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseViewer=void 0;var i=n(3),r=n(17),o=n(1),a=n(2),s=n(16),l=n(7),u=n(8);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return h(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 h(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,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var f=function(){function e(t){var n=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.constructor===e)throw new Error("Cannot initialize BaseViewer.");if(this._name=this.constructor.name,this.container=t.container,this.viewer=t.viewer||t.container.firstElementChild,!(this.container instanceof HTMLDivElement&&this.viewer instanceof HTMLDivElement))throw new Error("Invalid `container` and/or `viewer` option.");this.eventBus=t.eventBus,this.linkService=t.linkService||new l.SimpleLinkService,this.downloadManager=t.downloadManager||null,this.findController=t.findController||null,this.removePageBorders=t.removePageBorders||!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:i.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms="boolean"!=typeof t.renderInteractiveForms||t.renderInteractiveForms,this.enablePrintAutoRotate=t.enablePrintAutoRotate||!1,this.renderer=t.renderer||i.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels,this.l10n=t.l10n||i.NullL10n,this.defaultRenderingQueue=!t.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new r.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=t.renderingQueue,this.scroll=(0,i.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=i.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then(function(){n.eventBus.dispatch("baseviewerinit",{source:n})})}var t,n,h;return t=e,(n=[{key:"getPageView",value:function(e){return this._pages[e]}},{key:"_setCurrentPageNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._currentPageNumber===e?(t&&this._resetCurrentPageView(),!0):0<e&&e<=this.pagesCount&&(this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:e,pageLabel:this._pageLabels&&this._pageLabels[e-1]}),t&&this._resetCurrentPageView(),!0)}},{key:"_onePageRenderedOrForceFetch",value:function(){return this.container.offsetParent&&0!==this._getVisiblePages().views.length?this._onePageRenderedCapability.promise:Promise.resolve()}},{key:"setDocument",value:function(e){var t=this;if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=e,e){var n=e.numPages,r=e.getPage(1),o=e.annotationStorage,a=e.getOptionalContentConfig();this._pagesCapability.promise.then(function(){t.eventBus.dispatch("pagesloaded",{source:t,pagesCount:n})}),this._onBeforeDraw=function(e){var n=t._pages[e.pageNumber-1];n&&t._buffer.push(n)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=function(e){e.cssTransform||t._onePageRenderedCapability.settled||(t._onePageRenderedCapability.resolve(),t.eventBus._off("pagerendered",t._onAfterDraw),t._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),r.then(function(r){t._firstPageCapability.resolve(r),t._optionalContentConfigPromise=a;for(var l=t.currentScale,u=r.getViewport({scale:l*i.CSS_UNITS}),c=t.textLayerMode!==i.TextLayerMode.DISABLE?t:null,h=1;h<=n;++h){var d=new s.PDFPageView({container:t._viewerElement,eventBus:t.eventBus,id:h,scale:l,defaultViewport:u.clone(),annotationStorage:o,optionalContentConfigPromise:a,renderingQueue:t.renderingQueue,textLayerFactory:c,textLayerMode:t.textLayerMode,annotationLayerFactory:t,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,renderer:t.renderer,enableWebGL:t.enableWebGL,useOnlyCssZoom:t.useOnlyCssZoom,maxCanvasPixels:t.maxCanvasPixels,l10n:t.l10n});t._pages.push(d)}var f=t._pages[0];f&&(f.setPdfPage(r),t.linkService.cachePageRef(1,r.ref)),t._spreadMode!==i.SpreadMode.NONE&&t._updateSpreadMode(),t._onePageRenderedOrForceFetch().then(function(){if(t.findController&&t.findController.setDocument(e),e.loadingParams.disableAutoFetch||n>7500)t._pagesCapability.resolve();else{var i=n-1;if(i<=0)t._pagesCapability.resolve();else for(var r=function(n){e.getPage(n).then(function(e){var r=t._pages[n-1];r.pdfPage||r.setPdfPage(e),t.linkService.cachePageRef(n,e.ref),0==--i&&t._pagesCapability.resolve()},function(e){console.error("Unable to get page ".concat(n," to initialize viewer"),e),0==--i&&t._pagesCapability.resolve()})},o=2;o<=n;++o)r(o)}}),t.eventBus.dispatch("pagesinit",{source:t}),t.defaultRenderingQueue&&t.update()}).catch(function(e){console.error("Unable to initialize viewer",e)})}}},{key:"setPageLabels",value:function(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("".concat(this._name,".setPageLabels: Invalid page labels."))):this._pageLabels=null;for(var t=0,n=this._pages.length;t<n;t++){var i=this._pages[t],r=this._pageLabels&&this._pageLabels[t];i.setPageLabel(r)}}}},{key:"_resetView",value:function(){this._pages=[],this._currentPageNumber=1,this._currentScale=i.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new function(e){var t=[];this.push=function(n){var i=t.indexOf(n);i>=0&&t.splice(i,1),t.push(n),t.length>e&&t.shift().destroy()},this.resize=function(n,r){if(e=n,r){for(var o=new Set,a=0,s=r.length;a<s;++a)o.add(r[a].id);(0,i.moveToEndOfArray)(t,function(e){return o.has(e.id)})}for(;t.length>e;)t.shift().destroy()}}(10),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,a.createPromiseCapability)(),this._onePageRenderedCapability=(0,a.createPromiseCapability)(),this._pagesCapability=(0,a.createPromiseCapability)(),this._scrollMode=i.ScrollMode.VERTICAL,this._spreadMode=i.SpreadMode.NONE,this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.viewer.textContent="",this._updateScrollMode()}},{key:"_scrollUpdate",value:function(){0!==this.pagesCount&&this.update()}},{key:"_scrollIntoView",value:function(e){var t=e.pageDiv,n=e.pageSpot,r=void 0===n?null:n;e.pageNumber;(0,i.scrollIntoView)(t,r)}},{key:"_setScaleUpdatePages",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._currentScaleValue=t.toString(),function(e,t){return t===e||Math.abs(t-e)<1e-15}(this._currentScale,e))i&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t});else{for(var r=0,o=this._pages.length;r<o;r++)this._pages[r].update(e);if(this._currentScale=e,!n){var a,s=this._currentPageNumber;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(s=this._location.pageNumber,a=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:s,destArray:a,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:i?t:void 0}),this.defaultRenderingQueue&&this.update()}}},{key:"_setScale",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=parseFloat(e);if(n>0)this._setScaleUpdatePages(n,e,t,!1);else{var r=this._pages[this._currentPageNumber-1];if(!r)return;var o=this.isInPresentationMode||this.removePageBorders,a=o?0:i.SCROLLBAR_PADDING,s=o?0:i.VERTICAL_PADDING;if(!o&&this._isScrollModeHorizontal){var l=[s,a];a=l[0],s=l[1]}var u=(this.container.clientWidth-a)/r.width*r.scale,c=(this.container.clientHeight-s)/r.height*r.scale;switch(e){case"page-actual":n=1;break;case"page-width":n=u;break;case"page-height":n=c;break;case"page-fit":n=Math.min(u,c);break;case"auto":var h=(0,i.isPortraitOrientation)(r)?u:Math.min(c,u);n=Math.min(i.MAX_AUTO_SCALE,h);break;default:return void console.error("".concat(this._name,'._setScale: "').concat(e,'" is an unknown zoom value.'))}this._setScaleUpdatePages(n,e,t,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);var e=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:e.div})}},{key:"scrollPageIntoView",value:function(e){var t=e.pageNumber,n=e.destArray,r=void 0===n?null:n,o=e.allowNegativeOffset,a=void 0!==o&&o,s=e.ignoreDestinationZoom,l=void 0!==s&&s;if(this.pdfDocument){var u=Number.isInteger(t)&&this._pages[t-1];if(u)if(!this.isInPresentationMode&&r){var c,h,d=0,f=0,p=0,A=0,g=u.rotation%180!=0,v=(g?u.height:u.width)/u.scale/i.CSS_UNITS,m=(g?u.width:u.height)/u.scale/i.CSS_UNITS,y=0;switch(r[1].name){case"XYZ":d=r[2],f=r[3],y=r[4],d=null!==d?d:0,f=null!==f?f:m;break;case"Fit":case"FitB":y="page-fit";break;case"FitH":case"FitBH":y="page-width",null===(f=r[2])&&this._location&&(d=this._location.left,f=this._location.top);break;case"FitV":case"FitBV":d=r[2],p=v,A=m,y="page-height";break;case"FitR":d=r[2],f=r[3],p=r[4]-d,A=r[5]-f;var _=this.removePageBorders?0:i.SCROLLBAR_PADDING,b=this.removePageBorders?0:i.VERTICAL_PADDING;c=(this.container.clientWidth-_)/p/i.CSS_UNITS,h=(this.container.clientHeight-b)/A/i.CSS_UNITS,y=Math.min(Math.abs(c),Math.abs(h));break;default:return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(r[1].name,'" is not a valid destination type.'))}if(l||(y&&y!==this._currentScale?this.currentScaleValue=y:this._currentScale===i.UNKNOWN_SCALE&&(this.currentScaleValue=i.DEFAULT_SCALE_VALUE)),"page-fit"!==y||r[4]){var w=[u.viewport.convertToViewportPoint(d,f),u.viewport.convertToViewportPoint(d+p,f+A)],x=Math.min(w[0][0],w[1][0]),C=Math.min(w[0][1],w[1][1]);a||(x=Math.max(x,0),C=Math.max(C,0)),this._scrollIntoView({pageDiv:u.div,pageSpot:{left:x,top:C},pageNumber:t})}else this._scrollIntoView({pageDiv:u.div,pageNumber:t})}else this._setCurrentPageNumber(t,!0);else console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(t,'" is not a valid pageNumber parameter.'))}}},{key:"_updateLocation",value:function(e){var t=this._currentScale,n=this._currentScaleValue,i=parseFloat(n)===t?Math.round(1e4*t)/100:n,r=e.id,o="#page="+r;o+="&zoom="+i;var a=this._pages[r-1],s=this.container,l=a.getPagePoint(s.scrollLeft-e.x,s.scrollTop-e.y),u=Math.round(l[0]),c=Math.round(l[1]);o+=","+u+","+c,this._location={pageNumber:r,scale:i,top:c,left:u,rotation:this._pagesRotation,pdfOpenParams:o}}},{key:"_updateHelper",value:function(e){throw new Error("Not implemented: _updateHelper")}},{key:"update",value:function(){var e=this._getVisiblePages(),t=e.views,n=t.length;if(0!==n){var i=Math.max(10,2*n+1);this._buffer.resize(i,t),this.renderingQueue.renderHighestPriority(e),this._updateHelper(t),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"containsElement",value:function(e){return this.container.contains(e)}},{key:"focus",value:function(){this.container.focus()}},{key:"_getCurrentVisiblePage",value:function(){if(!this.pagesCount)return{views:[]};var e=this._pages[this._currentPageNumber-1],t=e.div,n={id:e.id,x:t.offsetLeft+t.clientLeft,y:t.offsetTop+t.clientTop,view:e};return{first:n,last:n,views:[n]}}},{key:"_getVisiblePages",value:function(){return(0,i.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}},{key:"isPageVisible",value:function(e){return!!this.pdfDocument&&(e<1||e>this.pagesCount?(console.error("".concat(this._name,'.isPageVisible: "').concat(e,'" is out of bounds.')),!1):this._getVisiblePages().views.some(function(t){return t.id===e}))}},{key:"cleanup",value:function(){for(var e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].renderingState!==r.RenderingStates.FINISHED&&this._pages[e].reset()}},{key:"_cancelRendering",value:function(){for(var e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].cancelRendering()}},{key:"_ensurePdfPageLoaded",value:function(e){var t=this;if(e.pdfPage)return Promise.resolve(e.pdfPage);if(this._pagesRequests.has(e))return this._pagesRequests.get(e);var n=this.pdfDocument.getPage(e.id).then(function(n){return e.pdfPage||e.setPdfPage(n),t._pagesRequests.delete(e),n}).catch(function(n){console.error("Unable to get page for page view",n),t._pagesRequests.delete(e)});return this._pagesRequests.set(e,n),n}},{key:"forceRendering",value:function(e){var t=this,n=e||this._getVisiblePages(),i=this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,r=this.renderingQueue.getHighestPriority(n,this._pages,i);return!!r&&(this._ensurePdfPageLoaded(r).then(function(){t.renderingQueue.renderView(r)}),!0)}},{key:"createTextLayerBuilder",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0;return new u.TextLayerBuilder({textLayerDiv:e,eventBus:r,pageIndex:t,viewport:n,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&i})}},{key:"createAnnotationLayerBuilder",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:i.NullL10n;return new o.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n,imageResourcesPath:r,renderInteractiveForms:a,linkService:this.linkService,downloadManager:this.downloadManager,l10n:s})}},{key:"getPagesOverview",value:function(){var e=this._pages.map(function(e){var t=e.pdfPage.getViewport({scale:1});return{width:t.width,height:t.height,rotation:t.rotation}});return this.enablePrintAutoRotate?e.map(function(e){return(0,i.isPortraitOrientation)(e)?e:{width:e.height,height:e.width,rotation:(e.rotation+90)%360}}):e}},{key:"_updateScrollMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",t===i.ScrollMode.HORIZONTAL),n.classList.toggle("scrollWrapped",t===i.ScrollMode.WRAPPED),this.pdfDocument&&e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}},{key:"_updateSpreadMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var t=this.viewer,n=this._pages;if(t.textContent="",this._spreadMode===i.SpreadMode.NONE)for(var r=0,o=n.length;r<o;++r)t.appendChild(n[r].div);else for(var a=this._spreadMode-1,s=null,l=0,u=n.length;l<u;++l)null===s?((s=document.createElement("div")).className="spread",t.appendChild(s)):l%2===a&&(s=s.cloneNode(!1),t.appendChild(s)),s.appendChild(n[l].div);e&&(this._setCurrentPageNumber(e,!0),this.update())}}},{key:"pagesCount",get:function(){return this._pages.length}},{key:"pageViewsReady",get:function(){return!!this._pagesCapability.settled&&this._pages.every(function(e){return e&&e.pdfPage})}},{key:"currentPageNumber",get:function(){return this._currentPageNumber},set:function(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(e,!0)||console.error("".concat(this._name,'.currentPageNumber: "').concat(e,'" is not a valid page.')))}},{key:"currentPageLabel",get:function(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]},set:function(e){if(this.pdfDocument){var t=0|e;if(this._pageLabels){var n=this._pageLabels.indexOf(e);n>=0&&(t=n+1)}this._setCurrentPageNumber(t,!0)||console.error("".concat(this._name,'.currentPageLabel: "').concat(e,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return this._currentScale!==i.UNKNOWN_SCALE?this._currentScale:i.DEFAULT_SCALE},set:function(e){if(isNaN(e))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(e,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(e){this.pdfDocument&&this._setScale(e,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(e){if(!(0,i.isValidRotation)(e))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&this._pagesRotation!==e){this._pagesRotation=e;for(var t=this._currentPageNumber,n=0,r=this._pages.length;n<r;n++){var o=this._pages[n];o.update(o.scale,e)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}}},{key:"firstPagePromise",get:function(){return this.pdfDocument?this._firstPageCapability.promise:null}},{key:"onePageRendered",get:function(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}},{key:"pagesPromise",get:function(){return this.pdfDocument?this._pagesCapability.promise:null}},{key:"_viewerElement",get:function(){throw new Error("Not implemented: _viewerElement")}},{key:"_isScrollModeHorizontal",get:function(){return!this.isInPresentationMode&&this._scrollMode===i.ScrollMode.HORIZONTAL}},{key:"isInPresentationMode",get:function(){return this.presentationModeState===i.PresentationModeState.FULLSCREEN}},{key:"isChangingPresentationMode",get:function(){return this.presentationModeState===i.PresentationModeState.CHANGING}},{key:"isHorizontalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"hasEqualPageSizes",get:function(){for(var e=this._pages[0],t=1,n=this._pages.length;t<n;++t){var i=this._pages[t];if(i.width!==e.width||i.height!==e.height)return!1}return!0}},{key:"optionalContentConfigPromise",get:function(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:this.pdfDocument.getOptionalContentConfig():Promise.resolve(null)},set:function(e){if(!(e instanceof Promise))throw new Error("Invalid optionalContentConfigPromise: ".concat(e));if(this.pdfDocument&&this._optionalContentConfigPromise){this._optionalContentConfigPromise=e;var t,n=c(this._pages);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.update(i.scale,i.rotation,e)}}catch(e){n.e(e)}finally{n.f()}this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:e})}}},{key:"scrollMode",get:function(){return this._scrollMode},set:function(e){if(this._scrollMode!==e){if(!(0,i.isValidScrollMode)(e))throw new Error("Invalid scroll mode: ".concat(e));this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber)}}},{key:"spreadMode",get:function(){return this._spreadMode},set:function(e){if(this._spreadMode!==e){if(!(0,i.isValidSpreadMode)(e))throw new Error("Invalid spread mode: ".concat(e));this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}}])&&d(t.prototype,n),h&&d(t,h),e}();t.BaseViewer=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFViewer=void 0;var i=n(19),r=n(2);function o(e){"@babel/helpers - typeof";return(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})(e)}function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){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,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(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,i=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=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&&c(e,t)}(f,i.BaseViewer);var t,n,o,s=h(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),s.apply(this,arguments)}return t=f,(n=[{key:"_scrollIntoView",value:function(e){var t=e.pageDiv,n=e.pageSpot,i=void 0===n?null:n,r=e.pageNumber,o=void 0===r?null:r;if(!i&&!this.isInPresentationMode){var a=t.offsetLeft+t.clientLeft,s=a+t.clientWidth,l=this.container,c=l.scrollLeft,h=l.clientWidth;(this._isScrollModeHorizontal||a<c||s>c+h)&&(i={left:0,top:0})}u(d(f.prototype),"_scrollIntoView",this).call(this,{pageDiv:t,pageSpot:i,pageNumber:o})}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():u(d(f.prototype),"_getVisiblePages",this).call(this)}},{key:"_updateHelper",value:function(e){if(!this.isInPresentationMode){var t,n=this._currentPageNumber,i=!1,r=a(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o.percent<100)break;if(o.id===n){i=!0;break}}}catch(e){r.e(e)}finally{r.f()}i||(n=e[0].id),this._setCurrentPageNumber(n)}}},{key:"_viewerElement",get:function(){return(0,r.shadow)(this,"_viewerElement",this.viewer)}}])&&l(t.prototype,n),o&&l(t,o),f}();t.PDFViewer=f}])},e.exports=i()},L42u:function(e,t,n){var i,r,o,a=n("+ZMJ"),s=n("knuC"),l=n("RPLV"),u=n("ON07"),c=n("7KvD"),h=c.process,d=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,A=c.Dispatch,g=0,v={},m=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},y=function(e){m.call(e.data)};d&&f||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},i(g),g},f=function(e){delete v[e]},"process"==n("R9M2")(h)?i=function(e){h.nextTick(a(m,e,1))}:A&&A.now?i=function(e){A.now(a(m,e,1))}:p?(o=(r=new p).port2,r.port1.onmessage=y,i=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(e){c.postMessage(e+"","*")},c.addEventListener("message",y,!1)):i="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),m.call(e)}}:function(e){setTimeout(a(m,e,1),0)}),e.exports={set:d,clear:f}},LKZe:function(e,t,n){var i=n("NpIQ"),r=n("X8DO"),o=n("TcQ7"),a=n("MmMw"),s=n("D2L2"),l=n("SfB7"),u=Object.getOwnPropertyDescriptor;t.f=n("+E39")?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},M3Bs:function(e,t){!function(e){"use strict";var t=e.document,n=e.jsMind;if(n&&void 0===n.draggable){var i=n.util.dom,r="getSelection"in e?function(){e.getSelection().removeAllRanges()}:function(){t.selection.empty()},o=5,a=500,s=80;n.draggable=function(e){this.jm=e,this.e_canvas=null,this.canvas_ctx=null,this.shadow=null,this.shadow_w=0,this.shadow_h=0,this.active_node=null,this.target_node=null,this.target_direct=null,this.client_w=0,this.client_h=0,this.offset_x=0,this.offset_y=0,this.hlookup_delay=0,this.hlookup_timer=0,this.capture=!1,this.moved=!1},n.draggable.prototype={init:function(){this._create_canvas(),this._create_shadow(),this._event_bind()},resize:function(){this.jm.view.e_nodes.appendChild(this.shadow),this.e_canvas.width=this.jm.view.size.w,this.e_canvas.height=this.jm.view.size.h},_create_canvas:function(){var e=t.createElement("canvas");this.jm.view.e_panel.appendChild(e);var n=e.getContext("2d");this.e_canvas=e,this.canvas_ctx=n},_create_shadow:function(){var e=t.createElement("jmnode");e.style.visibility="hidden",e.style.zIndex="3",e.style.cursor="move",e.style.opacity="0.7",this.shadow=e},reset_shadow:function(e){var t=this.shadow.style;this.shadow.innerHTML=e.innerHTML,t.left=e.style.left,t.top=e.style.top,t.width=e.style.width,t.height=e.style.height,t.backgroundImage=e.style.backgroundImage,t.backgroundSize=e.style.backgroundSize,t.transform=e.style.transform,this.shadow_w=this.shadow.clientWidth,this.shadow_h=this.shadow.clientHeight},show_shadow:function(){this.moved||(this.shadow.style.visibility="visible")},hide_shadow:function(){this.shadow.style.visibility="hidden"},_magnet_shadow:function(e){e&&(this.canvas_ctx.lineWidth=o,this.canvas_ctx.strokeStyle="rgba(0,0,0,0.3)",this.canvas_ctx.lineCap="round",this._clear_lines(),this._canvas_lineto(e.sp.x,e.sp.y,e.np.x,e.np.y))},_clear_lines:function(){this.canvas_ctx.clearRect(0,0,this.jm.view.size.w,this.jm.view.size.h)},_canvas_lineto:function(e,t,n,i){this.canvas_ctx.beginPath(),this.canvas_ctx.moveTo(e,t),this.canvas_ctx.lineTo(n,i),this.canvas_ctx.stroke()},_lookup_close_node:function(){var e,t,i=this.jm.get_root(),r=i.get_location(),a=i.get_size(),s=r.x+a.w/2,l=this.shadow_w,u=this.shadow_h,c=this.shadow.offsetLeft,h=this.shadow.offsetTop,d=c+l/2>=s?n.direction.right:n.direction.left,f=this.jm.mind.nodes,p=null,A=this.jm.layout,g=Number.MAX_VALUE,v=0,m=null,y=null,_=null;for(var b in f){var w,x;if((p=f[b]).isroot||p.direction==d){if(p.id==this.active_node.id)continue;if(!A.is_visible(p))continue;if(e=p.get_size(),t=p.get_location(),d==n.direction.right){if(c-t.x-e.w<=0)continue;v=Math.abs(c-t.x-e.w)+Math.abs(h+u/2-t.y-e.h/2),w={x:t.x+e.w-o,y:t.y+e.h/2},x={x:c+o,y:h+u/2}}else{if(t.x-c-l<=0)continue;v=Math.abs(c+l-t.x)+Math.abs(h+u/2-t.y-e.h/2),w={x:t.x+o,y:t.y+e.h/2},x={x:c+l-o,y:h+u/2}}v<g&&(m=p,y=w,_=x,g=v)}}var C=null;return m&&(C={node:m,direction:d,sp:_,np:y}),C},lookup_close_node:function(){var e=this._lookup_close_node();e&&(this._magnet_shadow(e),this.target_node=e.node,this.target_direct=e.direction)},_event_bind:function(){var e=this,t=this.jm.view.container;i.add_event(t,"mousedown",function(t){var n=t||event;e.dragstart.call(e,n)}),i.add_event(t,"mousemove",function(t){var n=t||event;e.drag.call(e,n)}),i.add_event(t,"mouseup",function(t){var n=t||event;e.dragend.call(e,n)}),i.add_event(t,"touchstart",function(t){var n=t||event;e.dragstart.call(e,n)}),i.add_event(t,"touchmove",function(t){var n=t||event;e.drag.call(e,n)}),i.add_event(t,"touchend",function(t){var n=t||event;e.dragend.call(e,n)})},dragstart:function(t){if(this.jm.get_editable()&&!this.capture){this.active_node=null;var n=this.jm.view,i=t.target||event.srcElement;if("jmnode"==i.tagName.toLowerCase()){var r=n.get_binded_nodeid(i);if(r){var o=this.jm.get_node(r);if(!o.isroot){this.reset_shadow(i),this.active_node=o,this.offset_x=(t.clientX||t.touches[0].clientX)/n.actualZoom-i.offsetLeft,this.offset_y=(t.clientY||t.touches[0].clientY)/n.actualZoom-i.offsetTop,this.client_hw=Math.floor(i.clientWidth/2),this.client_hh=Math.floor(i.clientHeight/2),0!=this.hlookup_delay&&e.clearTimeout(this.hlookup_delay),0!=this.hlookup_timer&&e.clearInterval(this.hlookup_timer);var l=this;this.hlookup_delay=e.setTimeout(function(){l.hlookup_delay=0,l.hlookup_timer=e.setInterval(function(){l.lookup_close_node.call(l)},s)},a),this.capture=!0}}}}},drag:function(e){if(this.jm.get_editable()&&this.capture){e.preventDefault(),this.show_shadow(),this.moved=!0,r();var t=this.jm.view,n=(e.clientX||e.touches[0].clientX)/t.actualZoom-this.offset_x,i=(e.clientY||e.touches[0].clientY)/t.actualZoom-this.offset_y;this.shadow.style.left=n+"px",this.shadow.style.top=i+"px",r()}},dragend:function(t){if(this.jm.get_editable()){if(this.capture){if(0!=this.hlookup_delay&&(e.clearTimeout(this.hlookup_delay),this.hlookup_delay=0,this._clear_lines()),0!=this.hlookup_timer&&(e.clearInterval(this.hlookup_timer),this.hlookup_timer=0,this._clear_lines()),this.moved){var n=this.active_node,i=this.target_node,r=this.target_direct;this.move_node(n,i,r)}this.hide_shadow()}this.moved=!1,this.capture=!1}},move_node:function(e,t,i){var r=this.shadow.offsetTop;if(t&&e&&!n.node.inherited(e,t)){for(var o=t.children,a=o.length,s=null,l=Number.MAX_VALUE,u=null,c="_last_";a--;)if((s=o[a]).direction==i&&s.id!=e.id){var h=s.get_location().y-r;h>0&&h<l&&(l=h,u=s,c="_first_")}u&&(c=u.id),this.jm.move_node(e.id,c,t.id,i)}this.active_node=null,this.target_node=null,this.target_direct=null},jm_event_handle:function(e,t){e===n.event_type.resize&&this.resize()}};var l=new n.plugin("draggable",function(e){var t=new n.draggable(e);t.init(),e.add_event_listener(function(e,n){t.jm_event_handle.call(t,e,n)})});n.register_plugin(l)}}(window)},M6a0:function(e,t){},MU5D:function(e,t,n){var i=n("R9M2");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},Mhyx:function(e,t,n){var i=n("/bQp"),r=n("dSzd")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[r]===e)}},MmMw:function(e,t,n){var i=n("EqjI");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},NMof:function(e,t,n){"use strict";var i,r;"function"==typeof Symbol&&Symbol.iterator;void 0===(r="function"==typeof(i=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,i){this._reference=e.jquery?e[0]:e,this.state={};var r=void 0===n||null===n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=r||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,i),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),c(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function i(t){var n=t.style.display,i=t.style.visibility;t.style.display="block",t.style.visibility="hidden";t.offsetWidth;var r=e.getComputedStyle(t),o=parseFloat(r.marginTop)+parseFloat(r.marginBottom),a=parseFloat(r.marginLeft)+parseFloat(r.marginRight),s={width:t.offsetWidth+a,height:t.offsetHeight+o};return t.style.display=n,t.style.visibility=i,s}function r(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 o(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function a(e,t){var n,i=0;for(n in e){if(e[n]===t)return i;i++}return null}function s(t,n){return e.getComputedStyle(t,null)[n]}function l(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function u(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:u(t.parentNode):t}function c(e,t){Object.keys(t).forEach(function(n){var i,r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&(""!==(i=t[n])&&!isNaN(parseFloat(i))&&isFinite(i))&&(r="px"),e.style[n]=t[n]+r})}function h(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function d(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE")&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:n,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-n}}function f(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[f("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement,e._originalPlacement=this._options.placement,e.offsets=this._getOffsets(this._popper,this._reference,e.placement),e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement),e=this.runModifiers(e,this._options.modifiers),"function"==typeof this.state.updateCallback&&this.state.updateCallback(e)},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 i=e.document,r=i.createElement(t.tagName);if(s(r,t.classNames),l(r,t.attributes),"node"===t.contentType?r.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?r.innerHTML=t.content:r.textContent=t.content,t.arrowTagName){var o=i.createElement(t.arrowTagName);s(o,t.arrowClassNames),l(o,t.arrowAttributes),r.appendChild(o)}var a=t.parent.jquery?t.parent[0]:t.parent;if("string"==typeof a){if((a=i.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===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element==!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(r),r;function s(e,t){t.forEach(function(t){e.classList.add(t)})}function l(e,t){t.forEach(function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")})}},n.prototype._getPosition=function(t,n){l(n);return this._options.forceAbsolute?"absolute":function t(n){if(n===e.document.body)return!1;if("fixed"===s(n,"position"))return!0;return n.parentNode?t(n.parentNode):n}(n)?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var r={};r.position=this.state.position;var o="fixed"===r.position,a=function(e,t,n){var i=d(e),r=d(t);if(n){var o=u(t);r.top+=o.scrollTop,r.bottom+=o.scrollTop,r.left+=o.scrollLeft,r.right+=o.scrollLeft}return{top:i.top-r.top,left:i.left-r.left,bottom:i.top-r.top+i.height,right:i.left-r.left+i.width,width:i.width,height:i.height}}(t,l(e),o),s=i(e);return-1!==["right","left"].indexOf(n)?(r.top=a.top+a.height/2-s.height/2,r.left="left"===n?a.left-s.width:a.right):(r.left=a.left+a.width/2-s.width/2,r.top="top"===n?a.top-s.height:a.bottom),r.width=s.width,r.height=s.height,{popper:r,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=u(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(t,n,i){var r,o,a={};if("window"===i){var s=e.document.body,c=e.document.documentElement;r=Math.max(s.scrollHeight,s.offsetHeight,c.clientHeight,c.scrollHeight,c.offsetHeight),a={top:0,right:Math.max(s.scrollWidth,s.offsetWidth,c.clientWidth,c.scrollWidth,c.offsetWidth),bottom:r,left:0}}else if("viewport"===i){var d=l(this._popper),f=u(this._popper),p=h(d),A="fixed"===t.offsets.popper.position?0:(o=f)==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):o.scrollTop,g="fixed"===t.offsets.popper.position?0:function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft}(f);a={top:0-(p.top-A),right:e.document.documentElement.clientWidth-(p.left-g),bottom:e.document.documentElement.clientHeight-(p.top-A),left:0-(p.left-g)}}else a=l(this._popper)===i?{top:0,left:0,right:i.clientWidth,bottom:i.clientHeight}:h(i);return a.left+=n,a.right-=n,a.top=a.top+n,a.bottom=a.bottom-n,a},n.prototype.runModifiers=function(e,t,n){var i=t.slice();return void 0!==n&&(i=this._options.modifiers.slice(0,a(this._options.modifiers,n))),i.forEach(function(t){var n;(n=t)&&"[object Function]"==={}.toString.call(n)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=a(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(e){var t,n={position:e.offsets.popper.position},i=Math.round(e.offsets.popper.left),r=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=f("transform"))?(n[t]="translate3d("+i+"px, "+r+"px, 0)",n.top=0,n.left=0):(n.left=i,n.top=r),Object.assign(n,e.styles),c(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&c(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets.reference,a=o(e.offsets.popper),s={y:{start:{top:r.top},end:{top:r.top+r.height-a.height}},x:{start:{left:r.left},end:{left:r.left+r.width-a.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(a,s[l][i])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),i={left:function(){var t=n.left;return n.left<e.boundaries.left&&(t=Math.max(n.left,e.boundaries.left)),{left:t}},right:function(){var t=n.left;return n.right>e.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.top<e.boundaries.top&&(t=Math.max(n.top,e.boundaries.top)),{top:t}},bottom:function(){var t=n.top;return n.bottom>e.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach(function(t){e.offsets.popper=Object.assign(n,i[t]())}),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,i=Math.floor;return t.right<i(n.left)&&(e.offsets.popper.left=i(n.left)-t.width),t.left>i(n.right)&&(e.offsets.popper.left=i(n.right)),t.bottom<i(n.top)&&(e.offsets.popper.top=i(n.top)-t.height),t.top>i(n.bottom)&&(e.offsets.popper.top=i(n.bottom)),e},n.prototype.modifiers.flip=function(e){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!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=r(t),i=e.placement.split("-")[1]||"",a=[];return(a="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior).forEach(function(s,l){if(t===s&&a.length!==l+1){t=e.placement.split("-")[0],n=r(t);var u=o(e.offsets.popper),c=-1!==["right","bottom"].indexOf(t);(c&&Math.floor(e.offsets.reference[t])>Math.floor(u[n])||!c&&Math.floor(e.offsets.reference[t])<Math.floor(u[n]))&&(e.flipped=!0,e.placement=a[l+1],i&&(e.placement+="-"+i),e.offsets.popper=this._getOffsets(this._popper,this._reference,e.placement).popper,e=this.runModifiers(e,this._options.modifiers,this._flip))}}.bind(this)),e},n.prototype.modifiers.offset=function(e){var t=this._options.offset,n=e.offsets.popper;return-1!==e.placement.indexOf("left")?n.top-=t:-1!==e.placement.indexOf("right")?n.top+=t:-1!==e.placement.indexOf("top")?n.left-=t:-1!==e.placement.indexOf("bottom")&&(n.left+=t),e},n.prototype.modifiers.arrow=function(e){var t=this._options.arrowElement,n=this._options.arrowOffset;if("string"==typeof t&&(t=this._popper.querySelector(t)),!t)return e;if(!this._popper.contains(t))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),e;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!"),e;var r={},a=e.placement.split("-")[0],s=o(e.offsets.popper),l=e.offsets.reference,u=-1!==["left","right"].indexOf(a),c=u?"height":"width",h=u?"top":"left",d=u?"left":"top",f=u?"bottom":"right",p=i(t)[c];l[f]-p<s[h]&&(e.offsets.popper[h]-=s[h]-(l[f]-p)),l[h]+p>s[f]&&(e.offsets.popper[h]+=l[h]+p-s[f]);var A=l[h]+(n||l[c]/2-p/2)-s[h];return A=Math.max(Math.min(s[c]-p-8,A),8),r[h]=A,r[d]="",e.offsets.arrow=r,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(void 0!==i&&null!==i){i=Object(i);for(var r=Object.keys(i),o=0,a=r.length;o<a;o++){var s=r[o],l=Object.getOwnPropertyDescriptor(i,s);void 0!==l&&l.enumerable&&(t[s]=i[s])}}}return t}}),n})?i.call(t,n,t,e):i)||(e.exports=r)},"NWt+":function(e,t,n){var i=n("+ZMJ"),r=n("msXi"),o=n("Mhyx"),a=n("77Pl"),s=n("QRG4"),l=n("3fs2"),u={},c={};(t=e.exports=function(e,t,n,h,d){var f,p,A,g,v=d?function(){return e}:l(e),m=i(n,h,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(f=s(e.length);f>y;y++)if((g=t?m(a(p=e[y])[0],p[1]):m(e[y]))===u||g===c)return g}else for(A=v.call(e);!(p=A.next()).done;)if((g=r(A,m,p.value,t))===u||g===c)return g}).BREAK=u,t.RETURN=c},NYxO:function(e,t,n){"use strict";(function(e){var n=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(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 o=Array.isArray(e)?[]:{};return t.push({original:e,copy:o}),Object.keys(e).forEach(function(n){o[n]=i(e[n],t)}),o}function r(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function o(e){return null!==e&&"object"==typeof e}var a=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)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(e,t){this._children[e]=t},a.prototype.removeChild=function(e){delete this._children[e]},a.prototype.getChild=function(e){return this._children[e]},a.prototype.hasChild=function(e){return e in this._children},a.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)},a.prototype.forEachChild=function(e){r(this._children,e)},a.prototype.forEachGetter=function(e){this._rawModule.getters&&r(this._rawModule.getters,e)},a.prototype.forEachAction=function(e){this._rawModule.actions&&r(this._rawModule.actions,e)},a.prototype.forEachMutation=function(e){this._rawModule.mutations&&r(this._rawModule.mutations,e)},Object.defineProperties(a.prototype,s);var l=function(e){this.register([],e,!1)};l.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},l.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")},"")},l.prototype.update=function(e){!function e(t,n,i){0;n.update(i);if(i.modules)for(var r in i.modules){if(!n.getChild(r))return void 0;e(t.concat(r),n.getChild(r),i.modules[r])}}([],this.root,e)},l.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var o=new a(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&r(t.modules,function(t,r){i.register(e.concat(r),t,n)})},l.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},l.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var u;var c=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!=typeof window&&window.Vue&&m(window.Vue);var i=e.plugins;void 0===i&&(i=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,n){return s.call(o,e,t,n)},this.strict=r;var c=this._modules.root.state;A(this,c,[],this._modules.root),p(this,c),i.forEach(function(e){return e(t)}),(void 0!==e.devtools?e.devtools:u.config.devtools)&&function(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(e,t){n.emit("vuex:mutation",e,t)},{prepend:!0}),e.subscribeAction(function(e,t){n.emit("vuex:action",e,t)},{prepend:!0}))}(this)},h={state:{configurable:!0}};function d(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function f(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;A(e,n,[],e._modules.root,!0),p(e,n,t)}function p(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o={};r(e._wrappedGetters,function(t,n){o[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 a=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:o}),u.config.silent=a,e.strict&&function(e){e._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(e),i&&(n&&e._withCommit(function(){i._data.$$state=null}),u.nextTick(function(){return i.$destroy()}))}function A(e,t,n,i,r){var o=!n.length,a=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=i),!o&&!r){var s=g(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){u.set(s,l,i.state)})}var c=i.context=function(e,t,n){var i=""===t,r={dispatch:i?e.dispatch:function(n,i,r){var o=v(n,i,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:i?e.commit:function(n,i,r){var o=v(n,i,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach(function(r){if(r.slice(0,i)===t){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return g(e.state,n)}}}),r}(e,a,n);i.forEachMutation(function(t,n){!function(e,t,n,i){(e._mutations[t]||(e._mutations[t]=[])).push(function(t){n.call(e,i.state,t)})}(e,a+n,t,c)}),i.forEachAction(function(t,n){var i=t.root?n:a+n,r=t.handler||t;!function(e,t,n,i){(e._actions[t]||(e._actions[t]=[])).push(function(t){var r,o=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return(r=o)&&"function"==typeof r.then||(o=Promise.resolve(o)),e._devtoolHook?o.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):o})}(e,i,r,c)}),i.forEachGetter(function(t,n){!function(e,t,n,i){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)}}(e,a+n,t,c)}),i.forEachChild(function(i,o){A(e,t,n.concat(o),i,r)})}function g(e,t){return t.reduce(function(e,t){return e[t]},e)}function v(e,t,n){return o(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function m(e){u&&e===u||
  32. /*!
  33. * vuex v3.6.2
  34. * (c) 2021 Evan You
  35. * @license MIT
  36. */
  37. 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)}}(u=e)}h.state.get=function(){return this._vm._data.$$state},h.state.set=function(e){0},c.prototype.commit=function(e,t,n){var i=this,r=v(e,t,n),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit(function(){l.forEach(function(e){e(a)})}),this._subscribers.slice().forEach(function(e){return e(s,i.state)}))},c.prototype.dispatch=function(e,t){var n=this,i=v(e,t),r=i.type,o=i.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter(function(e){return e.before}).forEach(function(e){return e.before(a,n.state)})}catch(e){0}var l=s.length>1?Promise.all(s.map(function(e){return e(o)})):s[0](o);return new Promise(function(e,t){l.then(function(t){try{n._actionSubscribers.filter(function(e){return e.after}).forEach(function(e){return e.after(a,n.state)})}catch(e){0}e(t)},function(e){try{n._actionSubscribers.filter(function(e){return e.error}).forEach(function(t){return t.error(a,n.state,e)})}catch(e){0}t(e)})})}},c.prototype.subscribe=function(e,t){return d(e,this._subscribers,t)},c.prototype.subscribeAction=function(e,t){return d("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},c.prototype.watch=function(e,t,n){var i=this;return this._watcherVM.$watch(function(){return e(i.state,i.getters)},t,n)},c.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._vm._data.$$state=e})},c.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),A(this,this.state,e,this._modules.get(e),n.preserveState),p(this,this.state)},c.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var n=g(t.state,e.slice(0,-1));u.delete(n,e[e.length-1])}),f(this)},c.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},c.prototype.hotUpdate=function(e){this._modules.update(e),f(this,!0)},c.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(c.prototype,h);var y=C(function(e,t){var n={};return x(t).forEach(function(t){var i=t.key,r=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=S(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"==typeof r?r.call(this,t,n):t[r]},n[i].vuex=!0}),n}),_=C(function(e,t){var n={};return x(t).forEach(function(t){var i=t.key,r=t.val;n[i]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var i=this.$store.commit;if(e){var o=S(this.$store,"mapMutations",e);if(!o)return;i=o.context.commit}return"function"==typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}}),n}),b=C(function(e,t){var n={};return x(t).forEach(function(t){var i=t.key,r=t.val;r=e+r,n[i]=function(){if(!e||S(this.$store,"mapGetters",e))return this.$store.getters[r]},n[i].vuex=!0}),n}),w=C(function(e,t){var n={};return x(t).forEach(function(t){var i=t.key,r=t.val;n[i]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var o=S(this.$store,"mapActions",e);if(!o)return;i=o.context.dispatch}return"function"==typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}}),n});function x(e){return function(e){return Array.isArray(e)||o(e)}(e)?Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function C(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function S(e,t,n){return e._modulesNamespaceMap[n]}function k(e,t,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,t)}catch(n){e.log(t)}}function B(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function T(){var e=new Date;return" @ "+E(e.getHours(),2)+":"+E(e.getMinutes(),2)+":"+E(e.getSeconds(),2)+"."+E(e.getMilliseconds(),3)}function E(e,t){return n="0",i=t-e.toString().length,new Array(i+1).join(n)+e;var n,i}var I={Store:c,install:m,version:"3.6.2",mapState:y,mapMutations:_,mapGetters:b,mapActions:w,createNamespacedHelpers:function(e){return{mapState:y.bind(null,e),mapGetters:b.bind(null,e),mapMutations:_.bind(null,e),mapActions:w.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var o=e.mutationTransformer;void 0===o&&(o=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var u=e.logActions;void 0===u&&(u=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var h=i(e.state);void 0!==c&&(l&&e.subscribe(function(e,a){var s=i(a);if(n(e,h,s)){var l=T(),u=o(e),d="mutation "+e.type+l;k(c,d,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(h)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),B(c)}h=s}),u&&e.subscribeAction(function(e,n){if(a(e,n)){var i=T(),r=s(e),o="action "+e.type+i;k(c,o,t),c.log("%c action","color: #03A9F4; font-weight: bold",r),B(c)}}))}}};t.a=I}).call(t,n("DuR2"))},NpIQ:function(e,t){t.f={}.propertyIsEnumerable},O4g8:function(e,t){e.exports=!0},OAzY:function(e,t,n){"use strict";t.__esModule=!0;var i,r=n("7+uW"),o=(i=r)&&i.__esModule?i:{default:i},a=n("2kvA");var s=!1,l=!1,u=void 0,c=function(){if(!o.default.prototype.$isServer){var e=d.modalDom;return e?s=!0:(s=!1,e=document.createElement("div"),d.modalDom=e,e.addEventListener("touchmove",function(e){e.preventDefault(),e.stopPropagation()}),e.addEventListener("click",function(){d.doOnModalClick&&d.doOnModalClick()})),e}},h={},d={modalFade:!0,getInstance:function(e){return h[e]},register:function(e,t){e&&t&&(h[e]=t)},deregister:function(e){e&&(h[e]=null,delete h[e])},nextZIndex:function(){return d.zIndex++},modalStack:[],doOnModalClick:function(){var e=d.modalStack[d.modalStack.length-1];if(e){var t=d.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,i,r){if(!o.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=r;for(var l=this.modalStack,u=0,h=l.length;u<h;u++){if(l[u].id===e)return}var d=c();if((0,a.addClass)(d,"v-modal"),this.modalFade&&!s&&(0,a.addClass)(d,"v-modal-enter"),i)i.trim().split(/\s+/).forEach(function(e){return(0,a.addClass)(d,e)});setTimeout(function(){(0,a.removeClass)(d,"v-modal-enter")},200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(d):document.body.appendChild(d),t&&(d.style.zIndex=t),d.tabIndex=0,d.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:i})}},closeModal:function(e){var t=this.modalStack,n=c();if(t.length>0){var i=t[t.length-1];if(i.id===e){if(i.modalClass)i.modalClass.trim().split(/\s+/).forEach(function(e){return(0,a.removeClass)(n,e)});t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var r=t.length-1;r>=0;r--)if(t[r].id===e){t.splice(r,1);break}}0===t.length&&(this.modalFade&&(0,a.addClass)(n,"v-modal-leave"),setTimeout(function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",d.modalDom=void 0),(0,a.removeClass)(n,"v-modal-leave")},200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:function(){return l||(u=u||(o.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),u},set:function(e){u=e}});o.default.prototype.$isServer||window.addEventListener("keydown",function(e){if(27===e.keyCode){var t=function(){if(!o.default.prototype.$isServer&&d.modalStack.length>0){var e=d.modalStack[d.modalStack.length-1];if(!e)return;return d.getInstance(e.id)}}();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}}),t.default=d},ON07:function(e,t,n){var i=n("EqjI"),r=n("7KvD").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},ON3O:function(e,t,n){var i=n("uY1a");e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},OYls:function(e,t,n){n("crlp")("asyncIterator")},"Oi+a":function(e,t,n){"use strict";var i=n("dIwP"),r=n("qRfI");e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},OvRC:function(e,t,n){e.exports={default:n("oM7Q"),__esModule:!0}},PzxK:function(e,t,n){var i=n("D2L2"),r=n("sB3e"),o=n("ax3d")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},QRG4:function(e,t,n){var i=n("UuGF"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},"QWe/":function(e,t,n){n("crlp")("observable")},QzLT:function(module,exports,__webpack_require__){(function(Buffer,process,global){var factory;factory=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLinkAttributes",{enumerable:!0,get:function(){return i.addLinkAttributes}}),Object.defineProperty(t,"getFilenameFromUrl",{enumerable:!0,get:function(){return i.getFilenameFromUrl}}),Object.defineProperty(t,"LinkTarget",{enumerable:!0,get:function(){return i.LinkTarget}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return i.loadScript}}),Object.defineProperty(t,"PDFDateString",{enumerable:!0,get:function(){return i.PDFDateString}}),Object.defineProperty(t,"RenderingCancelledException",{enumerable:!0,get:function(){return i.RenderingCancelledException}}),Object.defineProperty(t,"build",{enumerable:!0,get:function(){return r.build}}),Object.defineProperty(t,"getDocument",{enumerable:!0,get:function(){return r.getDocument}}),Object.defineProperty(t,"LoopbackPort",{enumerable:!0,get:function(){return r.LoopbackPort}}),Object.defineProperty(t,"PDFDataRangeTransport",{enumerable:!0,get:function(){return r.PDFDataRangeTransport}}),Object.defineProperty(t,"PDFWorker",{enumerable:!0,get:function(){return r.PDFWorker}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}}),Object.defineProperty(t,"CMapCompressionType",{enumerable:!0,get:function(){return o.CMapCompressionType}}),Object.defineProperty(t,"createObjectURL",{enumerable:!0,get:function(){return o.createObjectURL}}),Object.defineProperty(t,"createPromiseCapability",{enumerable:!0,get:function(){return o.createPromiseCapability}}),Object.defineProperty(t,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return o.createValidAbsoluteUrl}}),Object.defineProperty(t,"InvalidPDFException",{enumerable:!0,get:function(){return o.InvalidPDFException}}),Object.defineProperty(t,"MissingPDFException",{enumerable:!0,get:function(){return o.MissingPDFException}}),Object.defineProperty(t,"OPS",{enumerable:!0,get:function(){return o.OPS}}),Object.defineProperty(t,"PasswordResponses",{enumerable:!0,get:function(){return o.PasswordResponses}}),Object.defineProperty(t,"PermissionFlag",{enumerable:!0,get:function(){return o.PermissionFlag}}),Object.defineProperty(t,"removeNullCharacters",{enumerable:!0,get:function(){return o.removeNullCharacters}}),Object.defineProperty(t,"shadow",{enumerable:!0,get:function(){return o.shadow}}),Object.defineProperty(t,"UnexpectedResponseException",{enumerable:!0,get:function(){return o.UnexpectedResponseException}}),Object.defineProperty(t,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return o.UNSUPPORTED_FEATURES}}),Object.defineProperty(t,"Util",{enumerable:!0,get:function(){return o.Util}}),Object.defineProperty(t,"VerbosityLevel",{enumerable:!0,get:function(){return o.VerbosityLevel}}),Object.defineProperty(t,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(t,"apiCompatibilityParams",{enumerable:!0,get:function(){return s.apiCompatibilityParams}}),Object.defineProperty(t,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(t,"renderTextLayer",{enumerable:!0,get:function(){return u.renderTextLayer}}),Object.defineProperty(t,"SVGGraphics",{enumerable:!0,get:function(){return c.SVGGraphics}});var i=n(1),r=n(202),o=n(5),a=n(216),s=n(206),l=n(209),u=n(217),c=n(218);if(n(7).isNodeJS){var h=n(219).PDFNodeStream;(0,r.setPDFNetworkStreamFactory)(function(e){return new h(e)})}else{var d,f=n(222).PDFNetworkStream;(0,i.isFetchSupported)()&&(d=n(223).PDFFetchStream),(0,r.setPDFNetworkStreamFactory)(function(e){return d&&(0,i.isValidFetchUrl)(e.url)?new d(e):new f(e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,i=t.target,r=t.rel,a=t.enabled,s=void 0===a||a;(0,o.assert)(n&&"string"==typeof n,'addLinkAttributes: A valid "url" parameter must provided.');var l=(0,o.removeNullCharacters)(n);s?e.href=e.title=l:(e.href="",e.title="Disabled: ".concat(l),e.onclick=function(){return!1});var u="";switch(i){case B.NONE:break;case B.SELF:u="_self";break;case B.BLANK:u="_blank";break;case B.PARENT:u="_parent";break;case B.TOP:u="_top"}e.target=u,e.rel="string"==typeof r?r:m},t.getFilenameFromUrl=function(e){var t=e.indexOf("#"),n=e.indexOf("?"),i=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",i)+1,i)},t.isFetchSupported=I,t.isValidFetchUrl=M,t.loadScript=function(e){return new Promise(function(t,n){var i=document.createElement("script");i.src=e,i.onload=t,i.onerror=function(){n(new Error("Cannot load script at: ".concat(i.src)))},(document.head||document.documentElement).appendChild(i)})},t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.BaseCMapReaderFactory=t.DOMCanvasFactory=t.BaseCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var i,r=(i=n(2))&&i.__esModule?i:{default:i},o=n(5);function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){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,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function u(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){l(o,i,r,a,s,"next",e)}function s(e){l(o,i,r,a,s,"throw",e)}a(void 0)})}}function c(e){"@babel/helpers - typeof";return(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})(e)}function h(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&&d(e,t)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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,i=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function v(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}var m="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=m;var y="http://www.w3.org/2000/svg",_=function(){function e(){A(this,e),this.constructor===e&&(0,o.unreachable)("Cannot initialize BaseCanvasFactory.")}return v(e,[{key:"create",value:function(e,t){(0,o.unreachable)("Abstract method `create` called.")}},{key:"reset",value:function(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}}]),e}();t.BaseCanvasFactory=_;var b=function(e){h(n,_);var t=f(n);function n(){var e,i=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).ownerDocument,r=void 0===i?globalThis.document:i;return A(this,n),(e=t.call(this))._document=r,e}return v(n,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var n=this._document.createElement("canvas"),i=n.getContext("2d");return n.width=e,n.height=t,{canvas:n,context:i}}}]),n}();t.DOMCanvasFactory=b;var w=function(){function e(t){var n=t.baseUrl,i=void 0===n?null:n,r=t.isCompressed,a=void 0!==r&&r;A(this,e),this.constructor===e&&(0,o.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=i,this.isCompressed=a}return v(e,[{key:"fetch",value:function(){var e=u(r.default.mark(function e(t){var n,i,a,s=this;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(n){e.next=5;break}throw new Error("CMap name must be specified.");case 5:return i=this.baseUrl+n+(this.isCompressed?".bcmap":""),a=this.isCompressed?o.CMapCompressionType.BINARY:o.CMapCompressionType.NONE,e.abrupt("return",this._fetchData(i,a).catch(function(e){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"","CMap at: ").concat(i))}));case 8:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"_fetchData",value:function(e,t){(0,o.unreachable)("Abstract method `_fetchData` called.")}}]),e}();t.BaseCMapReaderFactory=w;var x=function(e){h(n,w);var t=f(n);function n(){return A(this,n),t.apply(this,arguments)}return v(n,[{key:"_fetchData",value:function(e,t){var n=this;return I()&&M(e,document.baseURI)?fetch(e).then(function(){var e=u(r.default.mark(function e(i){var a;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i.ok){e.next=2;break}throw new Error(i.statusText);case 2:if(!n.isCompressed){e.next=10;break}return e.t0=Uint8Array,e.next=6,i.arrayBuffer();case 6:e.t1=e.sent,a=new e.t0(e.t1),e.next=15;break;case 10:return e.t2=o.stringToBytes,e.next=13,i.text();case 13:e.t3=e.sent,a=(0,e.t2)(e.t3);case 15:return e.abrupt("return",{cMapData:a,compressionType:t});case 16:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()):new Promise(function(i,r){var a=new XMLHttpRequest;a.open("GET",e,!0),n.isCompressed&&(a.responseType="arraybuffer"),a.onreadystatechange=function(){if(a.readyState===XMLHttpRequest.DONE){var e;if(200===a.status||0===a.status)if(n.isCompressed&&a.response?e=new Uint8Array(a.response):!n.isCompressed&&a.responseText&&(e=(0,o.stringToBytes)(a.responseText)),e)return void i({cMapData:e,compressionType:t});r(new Error(a.statusText))}},a.send(null)})}}]),n}();t.DOMCMapReaderFactory=x;var C=function(){function e(){A(this,e)}return v(e,[{key:"create",value:function(e,t){(0,o.assert)(e>0&&t>0,"Invalid SVG dimensions");var n=document.createElementNS(y,"svg:svg");return n.setAttribute("version","1.1"),n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 "+e+" "+t),n}},{key:"createElement",value:function(e){return(0,o.assert)("string"==typeof e,"Invalid SVG element type"),document.createElementNS(y,e)}}]),e}();t.DOMSVGFactory=C;var S=function(){function e(t){var n=t.viewBox,i=t.scale,r=t.rotation,o=t.offsetX,a=void 0===o?0:o,s=t.offsetY,l=void 0===s?0:s,u=t.dontFlip,c=void 0!==u&&u;A(this,e),this.viewBox=n,this.scale=i,this.rotation=r,this.offsetX=a,this.offsetY=l;var h,d,f,p,g,v,m,y,_=(n[2]+n[0])/2,b=(n[3]+n[1])/2;switch(r=(r%=360)<0?r+360:r){case 180:h=-1,d=0,f=0,p=1;break;case 90:h=0,d=1,f=1,p=0;break;case 270:h=0,d=-1,f=-1,p=0;break;case 0:h=1,d=0,f=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}c&&(f=-f,p=-p),0===h?(g=Math.abs(b-n[1])*i+a,v=Math.abs(_-n[0])*i+l,m=Math.abs(n[3]-n[1])*i,y=Math.abs(n[2]-n[0])*i):(g=Math.abs(_-n[0])*i+a,v=Math.abs(b-n[1])*i+l,m=Math.abs(n[2]-n[0])*i,y=Math.abs(n[3]-n[1])*i),this.transform=[h*i,d*i,f*i,p*i,g-h*i*_-f*i*b,v-d*i*_-p*i*b],this.width=m,this.height=y}return v(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.scale,i=void 0===n?this.scale:n,r=t.rotation,o=void 0===r?this.rotation:r,a=t.offsetX,s=void 0===a?this.offsetX:a,l=t.offsetY,u=void 0===l?this.offsetY:l,c=t.dontFlip,h=void 0!==c&&c;return new e({viewBox:this.viewBox.slice(),scale:i,rotation:o,offsetX:s,offsetY:u,dontFlip:h})}},{key:"convertToViewportPoint",value:function(e,t){return o.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=o.Util.applyTransform([e[0],e[1]],this.transform),n=o.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}},{key:"convertToPdfPoint",value:function(e,t){return o.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=S;var k=function(e){h(n,o.BaseException);var t=f(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).type=i,r}return n}();t.RenderingCancelledException=k;var B={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};t.LinkTarget=B;var T,E=function(){function e(){A(this,e),this.started=Object.create(null),this.times=[]}return v(e,[{key:"time",value:function(e){e in this.started&&(0,o.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,o.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e,t=[],n=0,i=a(this.times);try{for(i.s();!(e=i.n()).done;){var r=e.value.name;r.length>n&&(n=r.length)}}catch(e){i.e(e)}finally{i.f()}var o,s=a(this.times);try{for(s.s();!(o=s.n()).done;){var l=o.value,u=l.end-l.start;t.push("".concat(l.name.padEnd(n)," ").concat(u,"ms\n"))}}catch(e){s.e(e)}finally{s.f()}return t.join("")}}]),e}();function I(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function M(e,t){try{var n=(t?new URL(e,t):new URL(e)).protocol;return"http:"===n||"https:"===n}catch(e){return!1}}t.StatTimer=E;var D=function(){function e(){A(this,e)}return v(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,o.isString)(e))return null;T||(T=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=T.exec(e);if(!t)return null;var n=parseInt(t[1],10),i=parseInt(t[2],10);i=i>=1&&i<=12?i-1:0;var r=parseInt(t[3],10);r=r>=1&&r<=31?r:1;var a=parseInt(t[4],10);a=a>=0&&a<=23?a:0;var s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;var l=parseInt(t[6],10);l=l>=0&&l<=59?l:0;var u=t[7]||"Z",c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;var h=parseInt(t[9],10)||0;return h=h>=0&&h<=59?h:0,"-"===u?(a+=c,s+=h):"+"===u&&(a-=c,s-=h),new Date(Date.UTC(n,i,r,a,s,l))}}]),e}();t.PDFDateString=D},function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){"use strict";(function(e){function t(e){"@babel/helpers - typeof";return(t="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 n=function(e){var n,i=Object.prototype,r=i.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var r=t&&t.prototype instanceof v?t:v,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(e,t,n){var i=d;return function(r,o){if(i===p)throw new Error("Generator is already running");if(i===A){if("throw"===r)throw o;return M()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var l=h(e,t,n);if("normal"===l.type){if(i=n.done?A:f,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=A,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",A="completed",g={};function v(){}function m(){}function y(){}var _={};_[a]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==i&&r.call(w,a)&&(_=w);var x=y.prototype=v.prototype=Object.create(_);function C(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function S(e,n){var i;this._invoke=function(o,a){function s(){return new n(function(i,s){!function i(o,a,s,l){var u=h(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"===t(d)&&r.call(d,"__await")?n.resolve(d.__await).then(function(e){i("next",e,s,l)},function(e){i("throw",e,s,l)}):n.resolve(d).then(function(e){c.value=e,s(c)},function(e){return i("throw",e,s,l)})}l(u.arg)}(o,a,i,s)})}return i=i?i.then(s,s):s()}}function k(e,t){var i=e.iterator[t.method];if(i===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,k(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=h(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,g;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function B(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function I(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function t(){for(;++i<e.length;)if(r.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:M}}function M(){return{value:n,done:!0}}return m.prototype=x.constructor=y,y.constructor=m,m.displayName=u(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},C(S.prototype),S.prototype[s]=function(){return this},e.AsyncIterator=S,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new S(c(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},C(x),u(x,l,"Generator"),x[a]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=I,E.prototype={constructor:E,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(T),!e)for(var t in this)"t"===t.charAt(0)&&r.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 i(i,r){return s.type="throw",s.arg=e,t.next=i,r&&(t.method="next",t.arg=n),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:I(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=n),g}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(4)(e))},function(e,t,n){"use strict";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){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e){"@babel/helpers - typeof";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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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&&s(e,t)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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,i=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=k,t.arraysToBytes=function(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var n=0,i=0;i<t;i++)n+=k(e[i]);for(var r=0,o=new Uint8Array(n),a=0;a<t;a++){var s=e[a];s instanceof Uint8Array||(s="string"==typeof s?S(s):new Uint8Array(s));var l=s.byteLength;o.set(s,r),r+=l}return o},t.assert=p,t.bytesToString=function(e){p(null!==e&&"object"===r(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length;if(t<8192)return String.fromCharCode.apply(null,e);for(var n=[],i=0;i<t;i+=8192){var o=Math.min(i+8192,t),a=e.subarray(i,o);n.push(String.fromCharCode.apply(null,a))}return n.join("")},t.createPromiseCapability=function(){var e=Object.create(null),t=!1;return Object.defineProperty(e,"settled",{get:function(){return t}}),e.promise=new Promise(function(n,i){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,i(e)}}),e},t.escapeString=function(e){return e.replace(/([\(\)\\])/g,"\\$1")},t.getModificationDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date(Date.now());return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),(e.getUTCDate()+1).toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getVerbosityLevel=function(){return h},t.info=function(e){h>=c.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===r(e)&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;return e.every(function(e,n){return e===t[n]})},t.isBool=function(e){return"boolean"==typeof e},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSameOrigin=function(e,t){var n;try{if(!(n=new URL(e)).origin||"null"===n.origin)return!1}catch(e){return!1}var i=new URL(t,n);return n.origin===i.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var n=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(e){}return null},t.removeNullCharacters=function(e){if("string"!=typeof e)return d("The argument for removeNullCharacters must be a string."),e;return e.replace(C,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(h=e)},t.shadow=A,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=S,t.stringToPDFString=function(e){var t=e.length,n=[];if("þ"===e[0]&&"ÿ"===e[1])for(var i=2;i<t;i+=2)n.push(String.fromCharCode(e.charCodeAt(i)<<8|e.charCodeAt(i+1)));else if("ÿ"===e[0]&&"þ"===e[1])for(var r=2;r<t;r+=2)n.push(String.fromCharCode(e.charCodeAt(r+1)<<8|e.charCodeAt(r)));else for(var o=0;o<t;++o){var a=M[e.charCodeAt(o)];n.push(a?String.fromCharCode(a):e.charAt(o))}return n.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=d,t.unreachable=f,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,n(6);t.IDENTITY_MATRIX=[1,0,0,1,0,0];t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReplyType={GROUP:"Group",REPLY:"R"};t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var c={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=c;t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"};t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var h=c.WARNINGS;function d(e){h>=c.WARNINGS&&console.log("Warning: ".concat(e))}function f(e){throw new Error(e)}function p(e,t){e||f(t)}function A(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}var g=function(){function e(t){this.constructor===e&&f("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=g;var v=function(e){a(n,g);var t=l(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).code=i,r}return n}();t.PasswordException=v;var m=function(e){a(n,g);var t=l(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).details=i,r}return n}();t.UnknownErrorException=m;var y=function(e){a(n,g);var t=l(n);function n(){return o(this,n),t.apply(this,arguments)}return n}();t.InvalidPDFException=y;var _=function(e){a(n,g);var t=l(n);function n(){return o(this,n),t.apply(this,arguments)}return n}();t.MissingPDFException=_;var b=function(e){a(n,g);var t=l(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).status=i,r}return n}();t.UnexpectedResponseException=b;var w=function(e){a(n,g);var t=l(n);function n(){return o(this,n),t.apply(this,arguments)}return n}();t.FormatError=w;var x=function(e){a(n,g);var t=l(n);function n(){return o(this,n),t.apply(this,arguments)}return n}();t.AbortException=x;var C=/\x00/g;function S(e){p("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,n=new Uint8Array(t),i=0;i<t;++i)n[i]=255&e.charCodeAt(i);return n}function k(e){return void 0!==e.length?e.length:(p(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}var B={get value(){return A(this,"value",((e=new Uint8Array(4))[0]=1,1===new Uint32Array(e.buffer,0,1)[0]));var e}};t.IsLittleEndianCached=B;var T={get value(){return A(this,"value",function(){try{return new Function(""),!0}catch(e){return!1}}())}};t.IsEvalSupportedCached=T;var E=["rgb(",0,",",0,",",0,")"],I=function(){function e(){o(this,e)}var t,n,r;return t=e,r=[{key:"makeCssRgb",value:function(e,t,n){return E[1]=e,E[3]=t,E[5]=n,E.join("")}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}},{key:"applyInverseTransform",value:function(e,t){var n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}},{key:"getAxialAlignedBoundingBox",value:function(t,n){var i=e.applyTransform(t,n),r=e.applyTransform(t.slice(2,4),n),o=e.applyTransform([t[0],t[3]],n),a=e.applyTransform([t[2],t[1]],n);return[Math.min(i[0],r[0],o[0],a[0]),Math.min(i[1],r[1],o[1],a[1]),Math.max(i[0],r[0],o[0],a[0]),Math.max(i[1],r[1],o[1],a[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"apply3dTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],i=e[0]*t[1]+e[1]*t[3],r=e[2]*t[0]+e[3]*t[2],o=e[2]*t[1]+e[3]*t[3],a=(n+o)/2,s=Math.sqrt((n+o)*(n+o)-4*(n*o-r*i))/2,l=a+s||1,u=a-s||1;return[Math.sqrt(l),Math.sqrt(u)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,n){function i(e,t){return e-t}var r=[t[0],t[2],n[0],n[2]].sort(i),o=[t[1],t[3],n[1],n[3]].sort(i),a=[];return t=e.normalizeRect(t),n=e.normalizeRect(n),r[0]===t[0]&&r[1]===n[0]||r[0]===n[0]&&r[1]===t[0]?(a[0]=r[1],a[2]=r[2],o[0]===t[1]&&o[1]===n[1]||o[0]===n[1]&&o[1]===t[1]?(a[1]=o[1],a[3]=o[2],a):null):null}}],(n=null)&&i(t.prototype,n),r&&i(t,r),e}();t.Util=I;var M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];var D,P=(D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",function(e,t){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var n=new Blob([e],{type:t});return URL.createObjectURL(n)}for(var i="data:".concat(t,";base64,"),r=0,o=e.length;r<o;r+=3){var a=255&e[r],s=255&e[r+1],l=255&e[r+2];i+=D[a>>2]+D[(3&a)<<4|s>>4]+D[r+1<o?(15&s)<<2|l>>6:64]+D[r+2<o?63&l:64]}return i});t.createObjectURL=P},function(e,t,n){"use strict";var i=n(7);function r(e){"@babel/helpers - typeof";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)}if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=n(8)),globalThis._pdfjsCompatibilityChecked=!0;var o="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document)),a="undefined"!=typeof navigator&&navigator.userAgent||"",s=/Trident/.test(a);!globalThis.btoa&&i.isNodeJS&&(globalThis.btoa=function(e){return Buffer.from(e,"binary").toString("base64")}),!globalThis.atob&&i.isNodeJS&&(globalThis.atob=function(e){return Buffer.from(e,"base64").toString("binary")}),o&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),function(){if(o&&!i.isNodeJS){var e=document.createElement("div");if(e.classList.add("testOne","testTwo"),!0!==e.classList.contains("testOne")||!0!==e.classList.contains("testTwo")){var t=DOMTokenList.prototype.add,n=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];t.call(this,a)}},DOMTokenList.prototype.remove=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(var r=0,o=t;r<o.length;r++){var a=o[r];n.call(this,a)}}}}}(),o&&!i.isNodeJS&&!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(e){var t=arguments.length>1?!!arguments[1]:!this.contains(e);return this[t?"add":"remove"](e),t}),function(){if(o&&s){var e=window.history.pushState,t=window.history.replaceState;window.history.pushState=function(t,n,i){var r=void 0===i?[t,n]:[t,n,i];e.apply(this,r)},window.history.replaceState=function(e,n,i){var r=void 0===i?[e,n]:[e,n,i];t.apply(this,r)}}}(),String.prototype.startsWith||n(53),String.prototype.endsWith||n(64),String.prototype.includes||n(66),Array.prototype.includes||n(68),Array.from||n(76),Object.assign||n(98),Object.fromEntries||n(101),Math.log2||(Math.log2=n(105)),Number.isNaN||(Number.isNaN=n(107)),Number.isInteger||(Number.isInteger=n(109)),Uint8Array.prototype.slice||n(112),globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=n(117)),globalThis.URL=n(138),function(){var e=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),e=!0}catch(e){}e||(globalThis.ReadableStream=n(145).ReadableStream)}(),globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=n(146)),globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=n(153)),globalThis.WeakMap||(globalThis.WeakMap=n(155)),globalThis.WeakSet||(globalThis.WeakSet=n(161)),String.prototype.codePointAt||n(163),String.fromCodePoint||(String.fromCodePoint=n(165)),globalThis.Symbol||n(167),String.prototype.padStart||n(190),String.prototype.padEnd||n(195),Object.values||(Object.values=n(197)),Object.entries||(Object.entries=n(200))}},function(e,t,n){"use strict";function i(e){"@babel/helpers - typeof";return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var r=!("object"!==(void 0===process?"undefined":i(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=r},function(e,t,n){n(9),e.exports=n(11)},function(e,t,n){n(10)({global:!0},{globalThis:n(11)})},function(e,t,n){var i=n(11),r=n(12).f,o=n(26),a=n(29),s=n(30),l=n(40),u=n(52);e.exports=function(e,t){var n,c,h,d,f,p=e.target,A=e.global,g=e.stat;if(n=A?i:g?i[p]||s(p,{}):(i[p]||{}).prototype)for(c in t){if(d=t[c],h=e.noTargetGet?(f=r(n,c))&&f.value:n[c],!u(A?c:p+(g?".":"#")+c,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(e.sham||h&&h.sham)&&o(d,"sham",!0),a(n,c,d,e)}}},function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},function(e,t,n){var i=n(13),r=n(15),o=n(16),a=n(17),s=n(21),l=n(23),u=n(24),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=a(e),t=s(t,!0),u)try{return c(e,t)}catch(e){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var i=n(14);e.exports=!i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},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 i=n(18),r=n(20);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(14),r=n(19),o="".split;e.exports=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==r(e)?o.call(e,""):Object(e)}:Object},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(22);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(13),r=n(14),o=n(25);e.exports=!i&&!r(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(11),r=n(22),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var i=n(13),r=n(27),o=n(16);e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(13),r=n(24),o=n(28),a=n(21),s=Object.defineProperty;t.f=i?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),r)try{return s(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 i=n(22);e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var i=n(11),r=n(26),o=n(23),a=n(30),s=n(31),l=n(33),u=l.get,c=l.enforce,h=String(String).split("String");(e.exports=function(e,t,n,s){var l=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||r(n,"name",t),c(n).source=h.join("string"==typeof t?t:"")),e!==i?(l?!d&&e[t]&&(u=!0):delete e[t],u?e[t]=n:r(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&u(this).source||s(this)})},function(e,t,n){var i=n(11),r=n(26);e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},function(e,t,n){var i=n(32),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},function(e,t,n){var i=n(11),r=n(30),o=i["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=o},function(e,t,n){var i,r,o,a=n(34),s=n(11),l=n(22),u=n(26),c=n(23),h=n(35),d=n(39),f=s.WeakMap;if(a){var p=new f,A=p.get,g=p.has,v=p.set;i=function(e,t){return v.call(p,e,t),t},r=function(e){return A.call(p,e)||{}},o=function(e){return g.call(p,e)}}else{var m=h("state");d[m]=!0,i=function(e,t){return u(e,m,t),t},r=function(e){return c(e,m)?e[m]:{}},o=function(e){return c(e,m)}}e.exports={set:i,get:r,has:o,enforce:function(e){return o(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var i=n(11),r=n(31),o=i.WeakMap;e.exports="function"==typeof o&&/native code/.test(r(o))},function(e,t,n){var i=n(36),r=n(38),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var i=n(37),r=n(32);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var i=n(23),r=n(41),o=n(12),a=n(27);e.exports=function(e,t){for(var n=r(t),s=a.f,l=o.f,u=0;u<n.length;u++){var c=n[u];i(e,c)||s(e,c,l(t,c))}}},function(e,t,n){var i=n(42),r=n(44),o=n(51),a=n(28);e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var i=n(43),r=n(11),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e])||o(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},function(e,t,n){var i=n(11);e.exports=i},function(e,t,n){var i=n(45),r=n(50).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){var i=n(23),r=n(17),o=n(46).indexOf,a=n(39);e.exports=function(e,t){var n,s=r(e),l=0,u=[];for(n in s)!i(a,n)&&i(s,n)&&u.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var i=n(17),r=n(47),o=n(49),a=function(e){return function(t,n,a){var s,l=i(t),u=r(l.length),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var i=n(48),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(48),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(14),r=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=l&&("function"==typeof t?i(t):!!t)},a=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},function(e,t,n){n(54);var i=n(61);e.exports=i("String","startsWith")},function(e,t,n){"use strict";var i,r=n(10),o=n(12).f,a=n(47),s=n(55),l=n(20),u=n(60),c=n(37),h="".startsWith,d=Math.min,f=u("startsWith");r({target:"String",proto:!0,forced:!!(c||f||(i=o(String.prototype,"startsWith"),!i||i.writable))&&!f},{startsWith:function(e){var t=String(l(this));s(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return h?h.call(t,i,n):t.slice(n,n+i.length)===i}})},function(e,t,n){var i=n(56);e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var i=n(22),r=n(19),o=n(57)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==r(e))}},function(e,t,n){var i=n(11),r=n(36),o=n(23),a=n(38),s=n(58),l=n(59),u=r("wks"),c=i.Symbol,h=l?c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(c,e)?u[e]=c[e]:u[e]=h("Symbol."+e)),u[e]}},function(e,t,n){var i=n(14);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())})},function(e,t,n){var i=n(58);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var i=n(57)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var i=n(11),r=n(62),o=Function.call;e.exports=function(e,t,n){return r(o,i[e].prototype[t],n)}},function(e,t,n){var i=n(63);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){n(65);var i=n(61);e.exports=i("String","endsWith")},function(e,t,n){"use strict";var i,r=n(10),o=n(12).f,a=n(47),s=n(55),l=n(20),u=n(60),c=n(37),h="".endsWith,d=Math.min,f=u("endsWith");r({target:"String",proto:!0,forced:!!(c||f||(i=o(String.prototype,"endsWith"),!i||i.writable))&&!f},{endsWith:function(e){var t=String(l(this));s(e);var n=arguments.length>1?arguments[1]:void 0,i=a(t.length),r=void 0===n?i:d(a(n),i),o=String(e);return h?h.call(t,o,r):t.slice(r-o.length,r)===o}})},function(e,t,n){n(67);var i=n(61);e.exports=i("String","includes")},function(e,t,n){"use strict";var i=n(10),r=n(55),o=n(20);i({target:"String",proto:!0,forced:!n(60)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(r(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(69);var i=n(61);e.exports=i("Array","includes")},function(e,t,n){"use strict";var i=n(10),r=n(46).includes,o=n(70);i({target:"Array",proto:!0,forced:!n(75)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){var i=n(57),r=n(71),o=n(27),a=i("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){var i,r=n(28),o=n(72),a=n(50),s=n(39),l=n(74),u=n(25),c=n(35)("IE_PROTO"),h=function(){},d=function(e){return"<script>"+e+"<\/script>"},f=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;f=i?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(i):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete f.prototype[a[n]];return f()};s[c]=!0,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 i=n(13),r=n(27),o=n(28),a=n(73);e.exports=i?Object.defineProperties:function(e,t){o(e);for(var n,i=a(t),s=i.length,l=0;s>l;)r.f(e,n=i[l++],t[n]);return e}},function(e,t,n){var i=n(45),r=n(50);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(42);e.exports=i("document","documentElement")},function(e,t,n){var i=n(13),r=n(14),o=n(23),a=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,c=o(t,0)?t[0]:l,h=o(t,1)?t[1]:void 0;return s[e]=!!n&&!r(function(){if(u&&!i)return!0;var e={length:-1};u?a(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,c,h)})}},function(e,t,n){n(77),n(89);var i=n(43);e.exports=i.Array.from},function(e,t,n){"use strict";var i=n(78).charAt,r=n(33),o=n(79),a=r.set,s=r.getterFor("String Iterator");o(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})})},function(e,t,n){var i=n(48),r=n(20),o=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){"use strict";var i=n(10),r=n(80),o=n(82),a=n(87),s=n(85),l=n(26),u=n(29),c=n(57),h=n(37),d=n(86),f=n(81),p=f.IteratorPrototype,A=f.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v=function(){return this};e.exports=function(e,t,n,c,f,m,y){r(n,t,c);var _,b,w,x=function(e){if(e===f&&T)return T;if(!A&&e in k)return k[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",S=!1,k=e.prototype,B=k[g]||k["@@iterator"]||f&&k[f],T=!A&&B||x(f),E="Array"==t&&k.entries||B;if(E&&(_=o(E.call(new e)),p!==Object.prototype&&_.next&&(h||o(_)===p||(a?a(_,p):"function"!=typeof _[g]&&l(_,g,v)),s(_,C,!0,!0),h&&(d[C]=v))),"values"==f&&B&&"values"!==B.name&&(S=!0,T=function(){return B.call(this)}),h&&!y||k[g]===T||l(k,g,T),d[t]=T,f)if(b={values:x("values"),keys:m?T:x("keys"),entries:x("entries")},y)for(w in b)!A&&!S&&w in k||u(k,w,b[w]);else i({target:t,proto:!0,forced:A||S},b);return b}},function(e,t,n){"use strict";var i=n(81).IteratorPrototype,r=n(71),o=n(16),a=n(85),s=n(86),l=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=r(i,{next:o(1,n)}),a(e,u,!1,!0),s[u]=l,e}},function(e,t,n){"use strict";var i,r,o,a=n(82),s=n(26),l=n(23),u=n(57),c=n(37),h=u("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(r=a(a(o)))!==Object.prototype&&(i=r):d=!0),void 0==i&&(i={}),c||l(i,h)||s(i,h,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var i=n(23),r=n(83),o=n(35),a=n(84),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),i(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){var i=n(20);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(14);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var i=n(27).f,r=n(23),o=n(57)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,n){var i=n(28),r=n(88);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return i(n),r(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){var i=n(22);e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var i=n(10),r=n(90);i({target:"Array",stat:!0,forced:!n(97)(function(e){Array.from(e)})},{from:r})},function(e,t,n){"use strict";var i=n(62),r=n(83),o=n(91),a=n(92),s=n(47),l=n(93),u=n(94);e.exports=function(e){var t,n,c,h,d,f,p=r(e),A="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,m=void 0!==v,y=u(p),_=0;if(m&&(v=i(v,g>2?arguments[2]:void 0,2)),void 0==y||A==Array&&a(y))for(n=new A(t=s(p.length));t>_;_++)f=m?v(p[_],_):p[_],l(n,_,f);else for(d=(h=y.call(p)).next,n=new A;!(c=d.call(h)).done;_++)f=m?o(h,v,[c.value,_],!0):c.value,l(n,_,f);return n.length=_,n}},function(e,t,n){var i=n(28);e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&i(o.call(e)),t}}},function(e,t,n){var i=n(57),r=n(86),o=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},function(e,t,n){"use strict";var i=n(21),r=n(27),o=n(16);e.exports=function(e,t,n){var a=i(t);a in e?r.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){var i=n(95),r=n(86),o=n(57)("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||r[i(e)]}},function(e,t,n){var i=n(96),r=n(19),o=n(57)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=i?r:function(e){var t,n,i;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:a?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,n){var i={};i[n(57)("toStringTag")]="z",e.exports="[object z]"===String(i)},function(e,t,n){var i=n(57)("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){n(99);var i=n(43);e.exports=i.Object.assign},function(e,t,n){var i=n(10),r=n(100);i({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";var i=n(13),r=n(14),o=n(73),a=n(51),s=n(15),l=n(83),u=n(18),c=Object.assign,h=Object.defineProperty;e.exports=!c||r(function(){if(i&&1!==c({b:1},c(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||"abcdefghijklmnopqrst"!=o(c({},t)).join("")})?function(e,t){for(var n=l(e),r=arguments.length,c=1,h=a.f,d=s.f;r>c;)for(var f,p=u(arguments[c++]),A=h?o(p).concat(h(p)):o(p),g=A.length,v=0;g>v;)f=A[v++],i&&!d.call(p,f)||(n[f]=p[f]);return n}:c},function(e,t,n){n(102),n(103);var i=n(43);e.exports=i.Object.fromEntries},function(e,t,n){"use strict";var i=n(17),r=n(70),o=n(86),a=n(33),s=n(79),l=a.set,u=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){l(this,{type:"Array Iterator",target:i(e),index:0,kind:t})},function(){var e=u(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var i=n(10),r=n(104),o=n(93);i({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,function(e,n){o(t,e,n)},void 0,!0),t}})},function(e,t,n){var i=n(28),r=n(92),o=n(47),a=n(62),s=n(94),l=n(91),u=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,c,h){var d,f,p,A,g,v,m,y=a(t,n,c?2:1);if(h)d=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(r(f)){for(p=0,A=o(e.length);A>p;p++)if((g=c?y(i(m=e[p])[0],m[1]):y(e[p]))&&g instanceof u)return g;return new u(!1)}d=f.call(e)}for(v=d.next;!(m=v.call(d)).done;)if("object"==typeof(g=l(d,y,m.value,c))&&g&&g instanceof u)return g;return new u(!1)}).stop=function(e){return new u(!0,e)}},function(e,t,n){n(106);var i=n(43);e.exports=i.Math.log2},function(e,t,n){var i=n(10),r=Math.log,o=Math.LN2;i({target:"Math",stat:!0},{log2:function(e){return r(e)/o}})},function(e,t,n){n(108);var i=n(43);e.exports=i.Number.isNaN},function(e,t,n){n(10)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){n(110);var i=n(43);e.exports=i.Number.isInteger},function(e,t,n){n(10)({target:"Number",stat:!0},{isInteger:n(111)})},function(e,t,n){var i=n(22),r=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&r(e)===e}},function(e,t,n){n(113)},function(e,t,n){"use strict";var i=n(114),r=n(116),o=n(14),a=i.aTypedArray,s=i.aTypedArrayConstructor,l=i.exportTypedArrayMethod,u=[].slice;l("slice",function(e,t){for(var n=u.call(a(this),e,t),i=r(this,this.constructor),o=0,l=n.length,c=new(s(i))(l);l>o;)c[o]=n[o++];return c},o(function(){new Int8Array(1).slice()}))},function(e,t,n){"use strict";var i,r=n(115),o=n(13),a=n(11),s=n(22),l=n(23),u=n(95),c=n(26),h=n(29),d=n(27).f,f=n(82),p=n(87),A=n(57),g=n(38),v=a.Int8Array,m=v&&v.prototype,y=a.Uint8ClampedArray,_=y&&y.prototype,b=v&&f(v),w=m&&f(m),x=Object.prototype,C=x.isPrototypeOf,S=A("toStringTag"),k=g("TYPED_ARRAY_TAG"),B=r&&!!p&&"Opera"!==u(a.opera),T=!1,E={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},I=function(e){return s(e)&&l(E,u(e))};for(i in E)a[i]||(B=!1);if((!B||"function"!=typeof b||b===Function.prototype)&&(b=function(){throw TypeError("Incorrect invocation")},B))for(i in E)a[i]&&p(a[i],b);if((!B||!w||w===x)&&(w=b.prototype,B))for(i in E)a[i]&&p(a[i].prototype,w);if(B&&f(_)!==w&&p(_,w),o&&!l(w,S))for(i in T=!0,d(w,S,{get:function(){return s(this)?this[k]:void 0}}),E)a[i]&&c(a[i],k,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:B,TYPED_ARRAY_TAG:T&&k,aTypedArray:function(e){if(I(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(p){if(C.call(b,e))return e}else for(var t in E)if(l(E,i)){var n=a[t];if(n&&(e===n||C.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(o){if(n)for(var i in E){var r=a[i];r&&l(r.prototype,e)&&delete r.prototype[e]}w[e]&&!n||h(w,e,n?t:B&&m[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var i,r;if(o){if(p){if(n)for(i in E)(r=a[i])&&l(r,e)&&delete r[e];if(b[e]&&!n)return;try{return h(b,e,n?t:B&&v[e]||t)}catch(e){}}for(i in E)!(r=a[i])||r[e]&&!n||h(r,e,t)}},isView:function(e){var t=u(e);return"DataView"===t||l(E,t)},isTypedArray:I,TypedArray:b,TypedArrayPrototype:w}},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var i=n(28),r=n(63),o=n(57)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||void 0==(n=i(a)[o])?t:r(n)}},function(e,t,n){n(118),n(77),n(120),n(122),n(136),n(137);var i=n(43);e.exports=i.Promise},function(e,t,n){var i=n(96),r=n(29),o=n(119);i||r(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";var i=n(96),r=n(95);e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,n){var i=n(11),r=n(121),o=n(102),a=n(26),s=n(57),l=s("iterator"),u=s("toStringTag"),c=o.values;for(var h in r){var d=i[h],f=d&&d.prototype;if(f){if(f[l]!==c)try{a(f,l,c)}catch(e){f[l]=c}if(f[u]||a(f,u,h),r[h])for(var p in o)if(f[p]!==o[p])try{a(f,p,o[p])}catch(e){f[p]=o[p]}}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var i,r,o,a,s=n(10),l=n(37),u=n(11),c=n(42),h=n(123),d=n(29),f=n(124),p=n(85),A=n(125),g=n(22),v=n(63),m=n(126),y=n(19),_=n(31),b=n(104),w=n(97),x=n(116),C=n(127).set,S=n(130),k=n(131),B=n(133),T=n(132),E=n(134),I=n(33),M=n(52),D=n(57),P=n(135),F=D("species"),O="Promise",L=I.get,N=I.set,R=I.getterFor(O),U=h,Q=u.TypeError,H=u.document,j=u.process,V=c("fetch"),z=T.f,$=z,G="process"==y(j),W=!!(H&&H.createEvent&&u.dispatchEvent),K=M(O,function(){if(!(_(U)!==String(U))){if(66===P)return!0;if(!G&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!U.prototype.finally)return!0;if(P>=51&&/native code/.test(U))return!1;var e=U.resolve(1),t=function(e){e(function(){},function(){})};return(e.constructor={})[F]=t,!(e.then(function(){})instanceof t)}),Y=K||!w(function(e){U.all(e).catch(function(){})}),q=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},X=function(e,t,n){if(!t.notified){t.notified=!0;var i=t.reactions;S(function(){for(var r=t.value,o=1==t.state,a=0;i.length>a;){var s,l,u,c=i[a++],h=o?c.ok:c.fail,d=c.resolve,f=c.reject,p=c.domain;try{h?(o||(2===t.rejection&&te(e,t),t.rejection=1),!0===h?s=r:(p&&p.enter(),s=h(r),p&&(p.exit(),u=!0)),s===c.promise?f(Q("Promise-chain cycle")):(l=q(s))?l.call(s,d,f):d(s)):f(r)}catch(e){p&&!u&&p.exit(),f(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Z(e,t)})}},J=function(e,t,n){var i,r;W?((i=H.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),u.dispatchEvent(i)):i={promise:t,reason:n},(r=u["on"+e])?r(i):"unhandledrejection"===e&&B("Unhandled promise rejection",n)},Z=function(e,t){C.call(u,function(){var n,i=t.value;if(ee(t)&&(n=E(function(){G?j.emit("unhandledRejection",i,e):J("unhandledrejection",e,i)}),t.rejection=G||ee(t)?2:1,n.error))throw n.value})},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){C.call(u,function(){G?j.emit("rejectionHandled",e):J("rejectionhandled",e,t.value)})},ne=function(e,t,n,i){return function(r){e(t,n,r,i)}},ie=function(e,t,n,i){t.done||(t.done=!0,i&&(t=i),t.value=n,t.state=2,X(e,t,!0))},re=function(e,t,n,i){if(!t.done){t.done=!0,i&&(t=i);try{if(e===n)throw Q("Promise can't be resolved itself");var r=q(n);r?S(function(){var i={done:!1};try{r.call(n,ne(re,e,i,t),ne(ie,e,i,t))}catch(n){ie(e,i,n,t)}}):(t.value=n,t.state=1,X(e,t,!1))}catch(n){ie(e,{done:!1},n,t)}}};K&&(U=function(e){m(this,U,O),v(e),i.call(this);var t=L(this);try{e(ne(re,this,t),ne(ie,this,t))}catch(e){ie(this,t,e)}},(i=function(e){N(this,{type:O,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(U.prototype,{then:function(e,t){var n=R(this),i=z(x(this,U));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=G?j.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&X(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i,t=L(e);this.promise=e,this.resolve=ne(re,e,t),this.reject=ne(ie,e,t)},T.f=z=function(e){return e===U||e===o?new r(e):$(e)},l||"function"!=typeof h||(a=h.prototype.then,d(h.prototype,"then",function(e,t){var n=this;return new U(function(e,t){a.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof V&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return k(U,V.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:K},{Promise:U}),p(U,O,!1,!0),A(O),o=c(O),s({target:O,stat:!0,forced:K},{reject:function(e){var t=z(this);return t.reject.call(void 0,e),t.promise}}),s({target:O,stat:!0,forced:l||K},{resolve:function(e){return k(l&&this===o?U:this,e)}}),s({target:O,stat:!0,forced:Y},{all:function(e){var t=this,n=z(t),i=n.resolve,r=n.reject,o=E(function(){var n=v(t.resolve),o=[],a=0,s=1;b(e,function(e){var l=a++,u=!1;o.push(void 0),s++,n.call(t,e).then(function(e){u||(u=!0,o[l]=e,--s||i(o))},r)}),--s||i(o)});return o.error&&r(o.value),n.promise},race:function(e){var t=this,n=z(t),i=n.reject,r=E(function(){var r=v(t.resolve);b(e,function(e){r.call(t,e).then(n.resolve,i)})});return r.error&&i(r.value),n.promise}})},function(e,t,n){var i=n(11);e.exports=i.Promise},function(e,t,n){var i=n(29);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},function(e,t,n){"use strict";var i=n(42),r=n(27),o=n(57),a=n(13),s=o("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var i,r,o,a=n(11),s=n(14),l=n(19),u=n(62),c=n(74),h=n(25),d=n(128),f=a.location,p=a.setImmediate,A=a.clearImmediate,g=a.process,v=a.MessageChannel,m=a.Dispatch,y=0,_={},b=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},w=function(e){return function(){b(e)}},x=function(e){b(e.data)},C=function(e){a.postMessage(e+"",f.protocol+"//"+f.host)};p&&A||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(y),y},A=function(e){delete _[e]},"process"==l(g)?i=function(e){g.nextTick(w(e))}:m&&m.now?i=function(e){m.now(w(e))}:v&&!d?(o=(r=new v).port2,r.port1.onmessage=x,i=u(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(C)||"file:"===f.protocol?i="onreadystatechange"in h("script")?function(e){c.appendChild(h("script")).onreadystatechange=function(){c.removeChild(this),b(e)}}:function(e){setTimeout(w(e),0)}:(i=C,a.addEventListener("message",x,!1))),e.exports={set:p,clear:A}},function(e,t,n){var i=n(129);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},function(e,t,n){var i=n(42);e.exports=i("navigator","userAgent")||""},function(e,t,n){var i,r,o,a,s,l,u,c,h=n(11),d=n(12).f,f=n(19),p=n(127).set,A=n(128),g=h.MutationObserver||h.WebKitMutationObserver,v=h.process,m=h.Promise,y="process"==f(v),_=d(h,"queueMicrotask"),b=_&&_.value;b||(i=function(){var e,t;for(y&&(e=v.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(e){throw r?a():o=void 0,e}}o=void 0,e&&e.enter()},y?a=function(){v.nextTick(i)}:g&&!A?(s=!0,l=document.createTextNode(""),new g(i).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):m&&m.resolve?(u=m.resolve(void 0),c=u.then,a=function(){c.call(u,i)}):a=function(){p.call(h,i)}),e.exports=b||function(e){var t={fn:e,next:void 0};o&&(o.next=t),r||(r=t,a()),o=t}},function(e,t,n){var i=n(28),r=n(22),o=n(132);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var i=n(63);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i}),this.resolve=i(t),this.reject=i(n)}(e)}},function(e,t,n){var i=n(11);e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){var i,r,o=n(11),a=n(129),s=o.process,l=s&&s.versions,u=l&&l.v8;u?r=(i=u.split("."))[0]+i[1]:a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=i[1]),e.exports=r&&+r},function(e,t,n){"use strict";var i=n(10),r=n(63),o=n(132),a=n(134),s=n(104);i({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),i=n.resolve,l=n.reject,u=a(function(){var n=r(t.resolve),o=[],a=0,l=1;s(e,function(e){var r=a++,s=!1;o.push(void 0),l++,n.call(t,e).then(function(e){s||(s=!0,o[r]={status:"fulfilled",value:e},--l||i(o))},function(e){s||(s=!0,o[r]={status:"rejected",reason:e},--l||i(o))})}),--l||i(o)});return u.error&&l(u.value),n.promise}})},function(e,t,n){"use strict";var i=n(10),r=n(37),o=n(123),a=n(14),s=n(42),l=n(116),u=n(131),c=n(29);i({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=l(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then(function(){return n})}:e,n?function(n){return u(t,e()).then(function(){throw n})}:e)}}),r||"function"!=typeof o||o.prototype.finally||c(o.prototype,"finally",s("Promise").prototype.finally)},function(e,t,n){n(139),n(144),n(142);var i=n(43);e.exports=i.URL},function(e,t,n){"use strict";n(77);var i,r=n(10),o=n(13),a=n(140),s=n(11),l=n(72),u=n(29),c=n(126),h=n(23),d=n(100),f=n(90),p=n(78).codeAt,A=n(141),g=n(85),v=n(142),m=n(33),y=s.URL,_=v.URLSearchParams,b=v.getState,w=m.set,x=m.getterFor("URL"),C=Math.floor,S=Math.pow,k=/[A-Za-z]/,B=/[\d+-.A-Za-z]/,T=/\d/,E=/^(0x|0X)/,I=/^[0-7]+$/,M=/^\d+$/,D=/^[\dA-Fa-f]+$/,P=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,F=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,O=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,L=/[\u0009\u000A\u000D]/g,N=function(e,t){var n,i,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=U(t.slice(1,-1))))return"Invalid host";e.host=n}else if(W(e)){if(t=A(t),P.test(t))return"Invalid host";if(null===(n=R(t)))return"Invalid host";e.host=n}else{if(F.test(t))return"Invalid host";for(n="",i=f(t),r=0;r<i.length;r++)n+=$(i[r],H);e.host=n}},R=function(e){var t,n,i,r,o,a,s,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(t=l.length)>4)return e;for(n=[],i=0;i<t;i++){if(""==(r=l[i]))return e;if(o=10,r.length>1&&"0"==r.charAt(0)&&(o=E.test(r)?16:8,r=r.slice(8==o?1:2)),""===r)a=0;else{if(!(10==o?M:8==o?I:D).test(r))return e;a=parseInt(r,o)}n.push(a)}for(i=0;i<t;i++)if(a=n[i],i==t-1){if(a>=S(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),i=0;i<n.length;i++)s+=n[i]*S(256,3-i);return s},U=function(e){var t,n,i,r,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,h=0,d=function(){return e.charAt(h)};if(":"==d()){if(":"!=e.charAt(1))return;h+=2,c=++u}for(;d();){if(8==u)return;if(":"!=d()){for(t=n=0;n<4&&D.test(d());)t=16*t+parseInt(d(),16),h++,n++;if("."==d()){if(0==n)return;if(h-=n,u>6)return;for(i=0;d();){if(r=null,i>0){if(!("."==d()&&i<4))return;h++}if(!T.test(d()))return;for(;T.test(d());){if(o=parseInt(d(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;h++}l[u]=256*l[u]+r,2!=++i&&4!=i||u++}if(4!=i)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[u++]=t}else{if(null!==c)return;h++,c=++u}}if(null!==c)for(a=u-c,u=7;0!=u&&a>0;)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s;else if(8!=u)return;return l},Q=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=C(e/256);return t.join(".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},H={},j=d({},H,{" ":1,'"':1,"<":1,">":1,"`":1}),V=d({},j,{"#":1,"?":1,"{":1,"}":1}),z=d({},V,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),$=function(e,t){var n=p(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},G={ftp:21,file:null,http:80,https:443,ws:80,wss:443},W=function(e){return h(G,e.scheme)},K=function(e){return""!=e.username||""!=e.password},Y=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},q=function(e,t){var n;return 2==e.length&&k.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},X=function(e){var t;return e.length>1&&q(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},J=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&q(t[0],!0)||t.pop()},Z=function(e){return"."===e||"%2e"===e.toLowerCase()},ee={},te={},ne={},ie={},re={},oe={},ae={},se={},le={},ue={},ce={},he={},de={},fe={},pe={},Ae={},ge={},ve={},me={},ye={},_e={},be=function(e,t,n,r){var o,a,s,l,u,c=n||ee,d=0,p="",A=!1,g=!1,v=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(O,"")),t=t.replace(L,""),o=f(t);d<=o.length;){switch(a=o[d],c){case ee:if(!a||!k.test(a)){if(n)return"Invalid scheme";c=ne;continue}p+=a.toLowerCase(),c=te;break;case te:if(a&&(B.test(a)||"+"==a||"-"==a||"."==a))p+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";p="",c=ne,d=0;continue}if(n&&(W(e)!=h(G,p)||"file"==p&&(K(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=p,n)return void(W(e)&&G[e.scheme]==e.port&&(e.port=null));p="","file"==e.scheme?c=fe:W(e)&&r&&r.scheme==e.scheme?c=ie:W(e)?c=se:"/"==o[d+1]?(c=re,d++):(e.cannotBeABaseURL=!0,e.path.push(""),c=me)}break;case ne:if(!r||r.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==a){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,c=_e;break}c="file"==r.scheme?fe:oe;continue;case ie:if("/"!=a||"/"!=o[d+1]){c=oe;continue}c=le,d++;break;case re:if("/"==a){c=ue;break}c=ve;continue;case oe:if(e.scheme=r.scheme,a==i)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==a||"\\"==a&&W(e))c=ae;else if("?"==a)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",c=ye;else{if("#"!=a){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),c=ve;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=_e}break;case ae:if(!W(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,c=ve;continue}c=ue}else c=le;break;case se:if(c=le,"/"!=a||"/"!=p.charAt(d+1))continue;d++;break;case le:if("/"!=a&&"\\"!=a){c=ue;continue}break;case ue:if("@"==a){A&&(p="%40"+p),A=!0,s=f(p);for(var m=0;m<s.length;m++){var y=s[m];if(":"!=y||v){var _=$(y,z);v?e.password+=_:e.username+=_}else v=!0}p=""}else if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&W(e)){if(A&&""==p)return"Invalid authority";d-=f(p).length+1,p="",c=ce}else p+=a;break;case ce:case he:if(n&&"file"==e.scheme){c=Ae;continue}if(":"!=a||g){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&W(e)){if(W(e)&&""==p)return"Invalid host";if(n&&""==p&&(K(e)||null!==e.port))return;if(l=N(e,p))return l;if(p="",c=ge,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),p+=a}else{if(""==p)return"Invalid host";if(l=N(e,p))return l;if(p="",c=de,n==he)return}break;case de:if(!T.test(a)){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&W(e)||n){if(""!=p){var b=parseInt(p,10);if(b>65535)return"Invalid port";e.port=W(e)&&b===G[e.scheme]?null:b,p=""}if(n)return;c=ge;continue}return"Invalid port"}p+=a;break;case fe:if(e.scheme="file","/"==a||"\\"==a)c=pe;else{if(!r||"file"!=r.scheme){c=ve;continue}if(a==i)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==a)e.host=r.host,e.path=r.path.slice(),e.query="",c=ye;else{if("#"!=a){X(o.slice(d).join(""))||(e.host=r.host,e.path=r.path.slice(),J(e)),c=ve;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=_e}}break;case pe:if("/"==a||"\\"==a){c=Ae;break}r&&"file"==r.scheme&&!X(o.slice(d).join(""))&&(q(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),c=ve;continue;case Ae:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&q(p))c=ve;else if(""==p){if(e.host="",n)return;c=ge}else{if(l=N(e,p))return l;if("localhost"==e.host&&(e.host=""),n)return;p="",c=ge}continue}p+=a;break;case ge:if(W(e)){if(c=ve,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=i&&(c=ve,"/"!=a))continue}else e.fragment="",c=_e;else e.query="",c=ye;break;case ve:if(a==i||"/"==a||"\\"==a&&W(e)||!n&&("?"==a||"#"==a)){if(".."===(u=(u=p).toLowerCase())||"%2e."===u||".%2e"===u||"%2e%2e"===u?(J(e),"/"==a||"\\"==a&&W(e)||e.path.push("")):Z(p)?"/"==a||"\\"==a&&W(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&q(p)&&(e.host&&(e.host=""),p=p.charAt(0)+":"),e.path.push(p)),p="","file"==e.scheme&&(a==i||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",c=ye):"#"==a&&(e.fragment="",c=_e)}else p+=$(a,V);break;case me:"?"==a?(e.query="",c=ye):"#"==a?(e.fragment="",c=_e):a!=i&&(e.path[0]+=$(a,H));break;case ye:n||"#"!=a?a!=i&&("'"==a&&W(e)?e.query+="%27":e.query+="#"==a?"%23":$(a,H)):(e.fragment="",c=_e);break;case _e:a!=i&&(e.fragment+=$(a,j))}d++}},we=function(e){var t,n,i=c(this,we,"URL"),r=arguments.length>1?arguments[1]:void 0,a=String(e),s=w(i,{type:"URL"});if(void 0!==r)if(r instanceof we)t=x(r);else if(n=be(t={},String(r)))throw TypeError(n);if(n=be(s,a,null,t))throw TypeError(n);var l=s.searchParams=new _,u=b(l);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(l)||null},o||(i.href=Ce.call(i),i.origin=Se.call(i),i.protocol=ke.call(i),i.username=Be.call(i),i.password=Te.call(i),i.host=Ee.call(i),i.hostname=Ie.call(i),i.port=Me.call(i),i.pathname=De.call(i),i.search=Pe.call(i),i.searchParams=Fe.call(i),i.hash=Oe.call(i))},xe=we.prototype,Ce=function(){var e=x(this),t=e.scheme,n=e.username,i=e.password,r=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==r?(u+="//",K(e)&&(u+=n+(i?":"+i:"")+"@"),u+=Q(r),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},Se=function(){var e=x(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&W(e)?t+"://"+Q(e.host)+(null!==n?":"+n:""):"null"},ke=function(){return x(this).scheme+":"},Be=function(){return x(this).username},Te=function(){return x(this).password},Ee=function(){var e=x(this),t=e.host,n=e.port;return null===t?"":null===n?Q(t):Q(t)+":"+n},Ie=function(){var e=x(this).host;return null===e?"":Q(e)},Me=function(){var e=x(this).port;return null===e?"":String(e)},De=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Pe=function(){var e=x(this).query;return e?"?"+e:""},Fe=function(){return x(this).searchParams},Oe=function(){var e=x(this).fragment;return e?"#"+e:""},Le=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&l(xe,{href:Le(Ce,function(e){var t=x(this),n=String(e),i=be(t,n);if(i)throw TypeError(i);b(t.searchParams).updateSearchParams(t.query)}),origin:Le(Se),protocol:Le(ke,function(e){var t=x(this);be(t,String(e)+":",ee)}),username:Le(Be,function(e){var t=x(this),n=f(String(e));if(!Y(t)){t.username="";for(var i=0;i<n.length;i++)t.username+=$(n[i],z)}}),password:Le(Te,function(e){var t=x(this),n=f(String(e));if(!Y(t)){t.password="";for(var i=0;i<n.length;i++)t.password+=$(n[i],z)}}),host:Le(Ee,function(e){var t=x(this);t.cannotBeABaseURL||be(t,String(e),ce)}),hostname:Le(Ie,function(e){var t=x(this);t.cannotBeABaseURL||be(t,String(e),he)}),port:Le(Me,function(e){var t=x(this);Y(t)||(""==(e=String(e))?t.port=null:be(t,e,de))}),pathname:Le(De,function(e){var t=x(this);t.cannotBeABaseURL||(t.path=[],be(t,e+"",ge))}),search:Le(Pe,function(e){var t=x(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",be(t,e,ye)),b(t.searchParams).updateSearchParams(t.query)}),searchParams:Le(Fe),hash:Le(Oe,function(e){var t=x(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",be(t,e,_e)):t.fragment=null})}),u(xe,"toJSON",function(){return Ce.call(this)},{enumerable:!0}),u(xe,"toString",function(){return Ce.call(this)},{enumerable:!0}),y){var Ne=y.createObjectURL,Re=y.revokeObjectURL;Ne&&u(we,"createObjectURL",function(e){return Ne.apply(y,arguments)}),Re&&u(we,"revokeObjectURL",function(e){return Re.apply(y,arguments)})}g(we,"URL"),r({global:!0,forced:!a,sham:!o},{URL:we})},function(e,t,n){var i=n(14),r=n(57),o=n(37),a=r("iterator");e.exports=!i(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach(function(e,i){t.delete("b"),n+=i+e}),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})},function(e,t,n){"use strict";var i=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,l=function(e){return e+22+75*(e<26)},u=function(e,t,n){var i=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;i+=36)e=a(e/35);return a(i+36*e/(e+38))},c=function(e){var t,n,i=[],r=(e=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&r)<<10)+(1023&o)+65536):(t.push(r),n--)}else t.push(r)}return t}(e)).length,c=128,h=0,d=72;for(t=0;t<e.length;t++)(n=e[t])<128&&i.push(s(n));var f=i.length,p=f;for(f&&i.push("-");p<r;){var A=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=c&&n<A&&(A=n);var g=p+1;if(A-c>a((2147483647-h)/g))throw RangeError(o);for(h+=(A-c)*g,c=A,t=0;t<e.length;t++){if((n=e[t])<c&&++h>2147483647)throw RangeError(o);if(n==c){for(var v=h,m=36;;m+=36){var y=m<=d?1:m>=d+26?26:m-d;if(v<y)break;var _=v-y,b=36-y;i.push(s(l(y+_%b))),v=a(_/b)}i.push(s(l(v))),d=u(h,g,p==f),h=0,++p}}++h,++c}return i.join("")};e.exports=function(e){var t,n,o=[],a=e.toLowerCase().replace(r,".").split(".");for(t=0;t<a.length;t++)n=a[t],o.push(i.test(n)?"xn--"+c(n):n);return o.join(".")}},function(e,t,n){"use strict";n(102);var i=n(10),r=n(42),o=n(140),a=n(29),s=n(124),l=n(85),u=n(80),c=n(33),h=n(126),d=n(23),f=n(62),p=n(95),A=n(28),g=n(22),v=n(71),m=n(16),y=n(143),_=n(94),b=n(57),w=r("fetch"),x=r("Headers"),C=b("iterator"),S=c.set,k=c.getterFor("URLSearchParams"),B=c.getterFor("URLSearchParamsIterator"),T=/\+/g,E=Array(4),I=function(e){return E[e-1]||(E[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},M=function(e){try{return decodeURIComponent(e)}catch(t){return e}},D=function(e){var t=e.replace(T," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(I(n--),M);return t}},P=/[!'()~]|%20/g,F={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},O=function(e){return F[e]},L=function(e){return encodeURIComponent(e).replace(P,O)},N=function(e,t){if(t)for(var n,i,r=t.split("&"),o=0;o<r.length;)(n=r[o++]).length&&(i=n.split("="),e.push({key:D(i.shift()),value:D(i.join("="))}))},R=function(e){this.entries.length=0,N(this.entries,e)},U=function(e,t){if(e<t)throw TypeError("Not enough arguments")},Q=u(function(e,t){S(this,{type:"URLSearchParamsIterator",iterator:y(k(e).entries),kind:t})},"Iterator",function(){var e=B(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n}),H=function(){h(this,H,"URLSearchParams");var e,t,n,i,r,o,a,s,l,u=arguments.length>0?arguments[0]:void 0,c=[];if(S(this,{type:"URLSearchParams",entries:c,updateURL:function(){},updateSearchParams:R}),void 0!==u)if(g(u))if("function"==typeof(e=_(u)))for(n=(t=e.call(u)).next;!(i=n.call(t)).done;){if((a=(o=(r=y(A(i.value))).next).call(r)).done||(s=o.call(r)).done||!o.call(r).done)throw TypeError("Expected sequence with length 2");c.push({key:a.value+"",value:s.value+""})}else for(l in u)d(u,l)&&c.push({key:l,value:u[l]+""});else N(c,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},j=H.prototype;s(j,{append:function(e,t){U(arguments.length,2);var n=k(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){U(arguments.length,1);for(var t=k(this),n=t.entries,i=e+"",r=0;r<n.length;)n[r].key===i?n.splice(r,1):r++;t.updateURL()},get:function(e){U(arguments.length,1);for(var t=k(this).entries,n=e+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){U(arguments.length,1);for(var t=k(this).entries,n=e+"",i=[],r=0;r<t.length;r++)t[r].key===n&&i.push(t[r].value);return i},has:function(e){U(arguments.length,1);for(var t=k(this).entries,n=e+"",i=0;i<t.length;)if(t[i++].key===n)return!0;return!1},set:function(e,t){U(arguments.length,1);for(var n,i=k(this),r=i.entries,o=!1,a=e+"",s=t+"",l=0;l<r.length;l++)(n=r[l]).key===a&&(o?r.splice(l--,1):(o=!0,n.value=s));o||r.push({key:a,value:s}),i.updateURL()},sort:function(){var e,t,n,i=k(this),r=i.entries,o=r.slice();for(r.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(r[t].key>e.key){r.splice(t,0,e);break}t===n&&r.push(e)}i.updateURL()},forEach:function(e){for(var t,n=k(this).entries,i=f(e,arguments.length>1?arguments[1]:void 0,3),r=0;r<n.length;)i((t=n[r++]).value,t.key,this)},keys:function(){return new Q(this,"keys")},values:function(){return new Q(this,"values")},entries:function(){return new Q(this,"entries")}},{enumerable:!0}),a(j,C,j.entries),a(j,"toString",function(){for(var e,t=k(this).entries,n=[],i=0;i<t.length;)e=t[i++],n.push(L(e.key)+"="+L(e.value));return n.join("&")},{enumerable:!0}),l(H,"URLSearchParams"),i({global:!0,forced:!o},{URLSearchParams:H}),o||"function"!=typeof w||"function"!=typeof x||i({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,i,r=[e];return arguments.length>1&&(t=arguments[1],g(t)&&(n=t.body,"URLSearchParams"===p(n)&&((i=t.headers?new x(t.headers):new x).has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:m(0,String(n)),headers:m(0,i)}))),r.push(t)),w.apply(this,r)}}),e.exports={URLSearchParams:H,getState:k}},function(e,t,n){var i=n(28),r=n(94);e.exports=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return i(t.call(e))}},function(e,t,n){"use strict";n(10)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,n){!function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(e){return"Symbol("+e+")"};function n(){}var i=Number.isNaN||function(e){return e!=e},r=n;function o(e){return"object"==typeof e&&null!==e||"function"==typeof e}function a(e){return e.slice()}function s(e){return!1!==function(e){return"number"==typeof e&&(!i(e)&&!(e<0))}(e)&&e!==1/0}function l(e,t,n){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,n)}function u(e,t,n,i){var r=e[t];if(void 0!==r){if("function"!=typeof r)throw new TypeError(r+" is not a method");switch(n){case 0:return function(){return h(r,e,i)};case 1:return function(t){var n=[t].concat(i);return h(r,e,n)}}}return function(){return _(void 0)}}function c(e,t,n){var i=e[t];if(void 0!==i)return l(i,e,n)}function h(e,t,n){try{return _(l(e,t,n))}catch(e){return b(e)}}function d(e){return e}function f(e){if(e=Number(e),i(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function p(e){if(void 0===e)return function(){return 1};if("function"!=typeof e)throw new TypeError("size property of a queuing strategy must be a function");return function(t){return e(t)}}var A=Promise,g=Promise.prototype.then,v=Promise.resolve.bind(A),m=Promise.reject.bind(A);function y(e){return new A(e)}function _(e){return v(e)}function b(e){return m(e)}function w(e,t,n){return g.call(e,t,n)}function x(e,t,n){w(w(e,t,n),void 0,r)}function C(e,t){x(e,t)}function S(e,t){x(e,void 0,t)}function k(e,t,n){return w(e,t,n)}function B(e){w(e,void 0,r)}var T=function(){function e(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.push=function(e){var t=this._back,n=t;16383===t._elements.length&&(n={_elements:[],_next:void 0}),t._elements.push(e),n!==t&&(this._back=n,t._next=n),++this._size},e.prototype.shift=function(){var e=this._front,t=e,n=this._cursor,i=n+1,r=e._elements,o=r[n];return 16384===i&&(t=e._next,i=0),--this._size,this._cursor=i,e!==t&&(this._front=t),r[n]=void 0,o},e.prototype.forEach=function(e){for(var t=this._cursor,n=this._front,i=n._elements;!(t===i.length&&void 0===n._next||t===i.length&&(n=n._next,i=n._elements,t=0,0===i.length));)e(i[t]),++t},e.prototype.peek=function(){var e=this._front,t=this._cursor;return e._elements[t]},e}();function E(e,t,n){var i=null;!0===n&&(i=Object.prototype);var r=Object.create(i);return r.value=e,r.done=t,r}function I(e,t){e._forAuthorCode=!0,e._ownerReadableStream=t,t._reader=e,"readable"===t._state?F(e):"closed"===t._state?function(e){F(e),N(e)}(e):O(e,t._storedError)}function M(e,t){var n=e._ownerReadableStream;return Ht(n,t)}function D(e){"readable"===e._ownerReadableStream._state?L(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e,t){O(e,t)}(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function P(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function F(e){e._closedPromise=y(function(t,n){e._closedPromise_resolve=t,e._closedPromise_reject=n})}function O(e,t){F(e),L(e,t)}function L(e,t){B(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function N(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}var R=t("[[CancelSteps]]"),U=t("[[PullSteps]]");function Q(e,t){void 0===t&&(t=!1);var n=new W(e);return n._forAuthorCode=t,n}function H(e){var t=y(function(t,n){var i={_resolve:t,_reject:n};e._reader._readRequests.push(i)});return t}function j(e,t,n){var i=e._reader,r=i._readRequests.shift();r._resolve(E(t,n,i._forAuthorCode))}function V(e){return e._reader._readRequests.length}function z(e){var t=e._reader;return void 0!==t&&!!K(t)}var $,G,W=function(){function e(e){if(!1===Ut(e))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===Qt(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");I(this,e),this._readRequests=new T}return Object.defineProperty(e.prototype,"closed",{get:function(){return K(this)?this._closedPromise:b(q("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return K(this)?void 0===this._ownerReadableStream?b(P("cancel")):M(this,e):b(q("cancel"))},e.prototype.read=function(){return K(this)?void 0===this._ownerReadableStream?b(P("read from")):Y(this):b(q("read"))},e.prototype.releaseLock=function(){if(!K(this))throw q("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");D(this)}},e}();function K(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function Y(e){var t=e._ownerReadableStream;return t._disturbed=!0,"closed"===t._state?_(E(void 0,!0,e._forAuthorCode)):"errored"===t._state?b(t._storedError):t._readableStreamController[U]()}function q(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof t.asyncIterator&&(($={})[t.asyncIterator]=function(){return this},G=$,Object.defineProperty(G,t.asyncIterator,{enumerable:!1}));var X={next:function(){if(!1===J(this))return b(Z("next"));var e=this._asyncIteratorReader;return void 0===e._ownerReadableStream?b(P("iterate")):k(Y(e),function(t){var n=t.done;n&&D(e);var i=t.value;return E(i,n,!0)})},return:function(e){if(!1===J(this))return b(Z("next"));var t=this._asyncIteratorReader;if(void 0===t._ownerReadableStream)return b(P("finish iterating"));if(t._readRequests.length>0)return b(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var n=M(t,e);return D(t),k(n,function(){return E(e,!0,!0)})}return D(t),_(E(e,!0,!0))}};function J(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader")}function Z(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function ee(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function te(e,t,n){if(!s(n=Number(n)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:n}),e._queueTotalSize+=n}function ne(e){e._queue=new T,e._queueTotalSize=0}void 0!==G&&Object.setPrototypeOf(X,G),Object.defineProperty(X,"next",{enumerable:!1}),Object.defineProperty(X,"return",{enumerable:!1});var ie=t("[[AbortSteps]]"),re=t("[[ErrorSteps]]"),oe=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),se(this);var n=t.size,i=t.highWaterMark,r=e.type;if(void 0!==r)throw new RangeError("Invalid type is specified");var o=p(n);void 0===i&&(i=1),i=f(i),function(e,t,n,i){var r=Object.create(Se.prototype),o=u(t,"write",1,[r]),a=u(t,"close",0,[]),s=u(t,"abort",1,[]);ke(e,r,function(){return c(t,"start",[r])},o,a,s,n,i)}(this,e,i,o)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===le(this))throw Pe("locked");return ue(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===le(this)?b(Pe("abort")):!0===ue(this)?b(new TypeError("Cannot abort a stream that already has a writer")):ce(this,e)},e.prototype.close=function(){return!1===le(this)?b(Pe("close")):!0===ue(this)?b(new TypeError("Cannot close a stream that already has a writer")):!0===Ae(this)?b(new TypeError("Cannot close an already-closing stream")):he(this)},e.prototype.getWriter=function(){if(!1===le(this))throw Pe("getWriter");return ae(this)},e}();function ae(e){return new me(e)}function se(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new T,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function le(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function ue(e){return void 0!==e._writer}function ce(e,t){var n=e._state;if("closed"===n||"errored"===n)return _(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var i=!1;"erroring"===n&&(i=!0,t=void 0);var r=y(function(n,r){e._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:r,_reason:t,_wasAlreadyErroring:i}});return e._pendingAbortRequest._promise=r,!1===i&&fe(e,t),r}function he(e){var t=e._state;if("closed"===t||"errored"===t)return b(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var n,i=y(function(t,n){var i={_resolve:t,_reject:n};e._closeRequest=i}),r=e._writer;return void 0!==r&&!0===e._backpressure&&"writable"===t&&ze(r),te(n=e._writableStreamController,"close",0),Ee(n),i}function de(e,t){var n=e._state;"writable"!==n?pe(e):fe(e,t)}function fe(e,t){var n=e._writableStreamController;e._state="erroring",e._storedError=t;var i=e._writer;void 0!==i&&we(i,t),!1===function(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}(e)&&!0===n._started&&pe(e)}function pe(e){e._state="errored",e._writableStreamController[re]();var t=e._storedError;if(e._writeRequests.forEach(function(e){e._reject(t)}),e._writeRequests=new T,void 0!==e._pendingAbortRequest){var n=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,!0===n._wasAlreadyErroring)return n._reject(t),void ge(e);var i=e._writableStreamController[ie](n._reason);x(i,function(){n._resolve(),ge(e)},function(t){n._reject(t),ge(e)})}else ge(e)}function Ae(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function ge(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&Re(t,e._storedError)}function ve(e,t){var n=e._writer;void 0!==n&&t!==e._backpressure&&(!0===t?function(e){Qe(e)}(n):ze(n)),e._backpressure=t}var me=function(){function e(e){if(!1===le(e))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===ue(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;var t,n=e._state;if("writable"===n)!1===Ae(e)&&!0===e._backpressure?Qe(this):je(this),Le(this);else if("erroring"===n)He(this,e._storedError),Le(this);else if("closed"===n)je(this),Le(t=this),Ue(t);else{var i=e._storedError;He(this,i),Ne(this,i)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return!1===ye(this)?b(Fe("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===ye(this))throw Fe("desiredSize");if(void 0===this._ownerWritableStream)throw Oe("desiredSize");return e=this._ownerWritableStream,"errored"===(t=e._state)||"erroring"===t?null:"closed"===t?0:Te(e._writableStreamController);var e,t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return!1===ye(this)?b(Fe("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===ye(this)?b(Fe("abort")):void 0===this._ownerWritableStream?b(Oe("abort")):function(e,t){return ce(e._ownerWritableStream,t)}(this,e)},e.prototype.close=function(){if(!1===ye(this))return b(Fe("close"));var e=this._ownerWritableStream;return void 0===e?b(Oe("close")):!0===Ae(e)?b(new TypeError("Cannot close an already-closing stream")):_e(this)},e.prototype.releaseLock=function(){if(!1===ye(this))throw Fe("releaseLock");var e=this._ownerWritableStream;void 0!==e&&xe(this)},e.prototype.write=function(e){return!1===ye(this)?b(Fe("write")):void 0===this._ownerWritableStream?b(Oe("write to")):Ce(this,e)},e}();function ye(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function _e(e){var t=e._ownerWritableStream;return he(t)}function be(e,t){"pending"===e._closedPromiseState?Re(e,t):function(e,t){Ne(e,t)}(e,t)}function we(e,t){"pending"===e._readyPromiseState?Ve(e,t):function(e,t){He(e,t)}(e,t)}function xe(e){var t=e._ownerWritableStream,n=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");we(e,n),be(e,n),t._writer=void 0,e._ownerWritableStream=void 0}function Ce(e,t){var n=e._ownerWritableStream,i=n._writableStreamController,r=function(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return Ie(e,t),1}}(i,t);if(n!==e._ownerWritableStream)return b(Oe("write to"));var o=n._state;if("errored"===o)return b(n._storedError);if(!0===Ae(n)||"closed"===o)return b(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return b(n._storedError);var a=function(e){return y(function(t,n){var i={_resolve:t,_reject:n};e._writeRequests.push(i)})}(n);return function(e,t,n){var i={chunk:t};try{te(e,i,n)}catch(t){return void Ie(e,t)}var r=e._controlledWritableStream;if(!1===Ae(r)&&"writable"===r._state){var o=Me(e);ve(r,o)}Ee(e)}(i,t,r),a}var Se=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(e){if(!1==(!!o(t=this)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledWritableStream")))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var t,n=this._controlledWritableStream._state;"writable"===n&&De(this,e)},e.prototype[ie]=function(e){var t=this._abortAlgorithm(e);return Be(this),t},e.prototype[re]=function(){ne(this)},e}();function ke(e,t,n,i,r,o,a,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,ne(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=a,t._writeAlgorithm=i,t._closeAlgorithm=r,t._abortAlgorithm=o;var l=Me(t);ve(e,l);var u=n(),c=_(u);x(c,function(){t._started=!0,Ee(t)},function(n){t._started=!0,de(e,n)})}function Be(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Te(e){return e._strategyHWM-e._queueTotalSize}function Ee(e){var t=e._controlledWritableStream;if(!1!==e._started&&void 0===t._inFlightWriteRequest){var n=t._state;if("erroring"!==n){if(0!==e._queue.length){var i=e._queue.peek().value;"close"===i?function(e){var t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),ee(e);var n=e._closeAlgorithm();Be(e),x(n,function(){!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var t=e._writer;void 0!==t&&Ue(t)}(t)},function(e){!function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),de(e,t)}(t,e)})}(e):function(e,t){var n=e._controlledWritableStream;(function(e){e._inFlightWriteRequest=e._writeRequests.shift()})(n),x(e._writeAlgorithm(t),function(){!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(n);var t=n._state;if(ee(e),!1===Ae(n)&&"writable"===t){var i=Me(e);ve(n,i)}Ee(e)},function(t){"writable"===n._state&&Be(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,de(e,t)}(n,t)})}(e,i.chunk)}}else pe(t)}}function Ie(e,t){"writable"===e._controlledWritableStream._state&&De(e,t)}function Me(e){var t=Te(e);return t<=0}function De(e,t){var n=e._controlledWritableStream;Be(e),fe(n,t)}function Pe(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function Fe(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function Oe(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Le(e){e._closedPromise=y(function(t,n){e._closedPromise_resolve=t,e._closedPromise_reject=n,e._closedPromiseState="pending"})}function Ne(e,t){Le(e),Re(e,t)}function Re(e,t){B(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function Ue(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function Qe(e){e._readyPromise=y(function(t,n){e._readyPromise_resolve=t,e._readyPromise_reject=n}),e._readyPromiseState="pending"}function He(e,t){Qe(e),Ve(e,t)}function je(e){Qe(e),ze(e)}function Ve(e,t){B(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function ze(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function $e(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}var Ge,We="undefined"!=typeof DOMException?DOMException:void 0,Ke=function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(We)?We:((Ge=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}).prototype=Object.create(Error.prototype),Object.defineProperty(Ge.prototype,"constructor",{value:Ge,writable:!0,configurable:!0}),Ge);function Ye(e,t,i,r,o,a){var s=Q(e),l=ae(t);e._disturbed=!0;var u=!1,c=_(void 0);return y(function(h,d){var f,p,A,g;if(void 0!==a){if(f=function(){var n=new Ke("Aborted","AbortError"),i=[];!1===r&&i.push(function(){return"writable"===t._state?ce(t,n):_(void 0)}),!1===o&&i.push(function(){return"readable"===e._state?Ht(e,n):_(void 0)}),T(function(){return Promise.all(i.map(function(e){return e()}))},!0,n)},!0===a.aborted)return void f();a.addEventListener("abort",f)}if(k(e,s._closedPromise,function(e){!1===r?T(function(){return ce(t,e)},!0,e):E(!0,e)}),k(t,l._closedPromise,function(t){!1===o?T(function(){return Ht(e,t)},!0,t):E(!0,t)}),p=e,A=s._closedPromise,g=function(){!1===i?T(function(){return function(e){var t=e._ownerWritableStream,n=t._state;return!0===Ae(t)||"closed"===n?_(void 0):"errored"===n?b(t._storedError):_e(e)}(l)}):E()},"closed"===p._state?g():C(A,g),!0===Ae(t)||"closed"===t._state){var v=new TypeError("the destination writable stream closed before all data could be piped to it");!1===o?T(function(){return Ht(e,v)},!0,v):E(!0,v)}function m(){var e=c;return w(c,function(){return e!==c?m():void 0})}function k(e,t,n){"errored"===e._state?n(e._storedError):S(t,n)}function T(e,n,i){function r(){x(e(),function(){return I(n,i)},function(e){return I(!0,e)})}!0!==u&&(u=!0,"writable"===t._state&&!1===Ae(t)?C(m(),r):r())}function E(e,n){!0!==u&&(u=!0,"writable"===t._state&&!1===Ae(t)?C(m(),function(){return I(e,n)}):I(e,n))}function I(e,t){xe(l),D(s),void 0!==a&&a.removeEventListener("abort",f),e?d(t):h(void 0)}B(y(function(e,t){!function i(r){r?e():w(!0===u?_(!0):w(l._readyPromise,function(){return w(Y(s),function(e){return!0===e.done||(c=w(Ce(l,e.value),void 0,n),!1)})}),i,t)}(!1)}))})}var qe=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Xe(this))throw st("desiredSize");return rt(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===Xe(this))throw st("close");if(!1===ot(this))throw new TypeError("The stream is not in a state that permits close");tt(this)},e.prototype.enqueue=function(e){if(!1===Xe(this))throw st("enqueue");if(!1===ot(this))throw new TypeError("The stream is not in a state that permits enqueue");return nt(this,e)},e.prototype.error=function(e){if(!1===Xe(this))throw st("error");it(this,e)},e.prototype[R]=function(e){ne(this);var t=this._cancelAlgorithm(e);return et(this),t},e.prototype[U]=function(){var e=this._controlledReadableStream;if(this._queue.length>0){var t=ee(this);return!0===this._closeRequested&&0===this._queue.length?(et(this),jt(e)):Je(this),_(E(t,!1,e._reader._forAuthorCode))}var n=H(e);return Je(this),n},e}();function Xe(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function Je(e){var t=Ze(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var n=e._pullAlgorithm();x(n,function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Je(e))},function(t){it(e,t)})}else e._pullAgain=!0}function Ze(e){var t=e._controlledReadableStream;if(!1===ot(e))return!1;if(!1===e._started)return!1;if(!0===Qt(t)&&V(t)>0)return!0;var n=rt(e);return n>0}function et(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function tt(e){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(et(e),jt(t))}function nt(e,t){var n=e._controlledReadableStream;if(!0===Qt(n)&&V(n)>0)j(n,t,!1);else{var i=void 0;try{i=e._strategySizeAlgorithm(t)}catch(t){throw it(e,t),t}try{te(e,t,i)}catch(t){throw it(e,t),t}}Je(e)}function it(e,t){var n=e._controlledReadableStream;"readable"===n._state&&(ne(e),et(e),Vt(n,t))}function rt(e){var t=e._controlledReadableStream,n=t._state;return"errored"===n?null:"closed"===n?0:e._strategyHWM-e._queueTotalSize}function ot(e){var t=e._controlledReadableStream._state;return!1===e._closeRequested&&"readable"===t}function at(e,t,n,i,r,o,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ne(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=o,t._pullAlgorithm=i,t._cancelAlgorithm=r,e._readableStreamController=t;var s=n();x(_(s),function(){t._started=!0,Je(t)},function(e){it(t,e)})}function st(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}var lt=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},ut=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!1===dt(this))throw Tt("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(e){if(!1===dt(this))throw Tt("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,function(e,t){if(!1===s(t=Number(t)))throw new RangeError("bytesWritten must be a finite");wt(e,t)}(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!1===dt(this))throw Tt("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");e.buffer,function(e,t){var n=e._pendingPullIntos.peek();if(n.byteOffset+n.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(n.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");n.buffer=t.buffer,wt(e,t.byteLength)}(this._associatedReadableByteStreamController,e)},e}(),ct=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!1===ht(this))throw Et("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var e=this._pendingPullIntos.peek(),t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),n=Object.create(ut.prototype);!function(e,t,n){e._associatedReadableByteStreamController=t,e._view=n}(n,this,t),this._byobRequest=n}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===ht(this))throw Et("desiredSize");return kt(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===ht(this))throw Et("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");!function(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){var n=e._pendingPullIntos.peek();if(n.bytesFilled>0){var i=new TypeError("Insufficient bytes to fill elements in the given buffer");throw St(e,i),i}}Ct(e),jt(t)}}(this)},e.prototype.enqueue=function(e){if(!1===ht(this))throw Et("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(e))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");e.buffer,function(e,t){var n=e._controlledReadableByteStream,i=t.buffer,r=t.byteOffset,o=t.byteLength,a=d(i);if(!0===z(n))if(0===V(n))gt(e,a,r,o);else{var s=new Uint8Array(a,r,o);j(n,s,!1)}else!0===Dt(n)?(gt(e,a,r,o),bt(e)):gt(e,a,r,o);ft(e)}(this,e)},e.prototype.error=function(e){if(!1===ht(this))throw Et("error");St(this,e)},e.prototype[R]=function(e){if(this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek();t.bytesFilled=0}ne(this);var n=this._cancelAlgorithm(e);return Ct(this),n},e.prototype[U]=function(){var e=this._controlledReadableByteStream;if(this._queueTotalSize>0){var t=this._queue.shift();this._queueTotalSize-=t.byteLength,yt(this);var n=void 0;try{n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}catch(e){return b(e)}return _(E(n,!1,e._reader._forAuthorCode))}var i=this._autoAllocateChunkSize;if(void 0!==i){var r=void 0;try{r=new ArrayBuffer(i)}catch(e){return b(e)}var o={buffer:r,byteOffset:0,byteLength:i,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}var a=H(e);return ft(this),a},e}();function ht(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function dt(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function ft(e){var t=function(e){var t=e._controlledReadableByteStream;return"readable"===t._state&&(!0!==e._closeRequested&&(!1!==e._started&&(!0===z(t)&&V(t)>0||(!0===Dt(t)&&Mt(t)>0||kt(e)>0))))}(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var n=e._pullAlgorithm();x(n,function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,ft(e))},function(t){St(e,t)})}else e._pullAgain=!0}function pt(e,t){var n=!1;"closed"===e._state&&(n=!0);var i=At(t);"default"===t.readerType?j(e,i,n):function(e,t,n){var i=e._reader;i._readIntoRequests.shift()._resolve(E(t,n,i._forAuthorCode))}(e,i,n)}function At(e){var t=e.bytesFilled,n=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/n)}function gt(e,t,n,i){e._queue.push({buffer:t,byteOffset:n,byteLength:i}),e._queueTotalSize+=i}function vt(e,t){var n=t.elementSize,i=t.bytesFilled-t.bytesFilled%n,r=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+r,a=o-o%n,s=r,l=!1;a>i&&(s=a-t.bytesFilled,l=!0);for(var u,c,h,d,f,p=e._queue;s>0;){var A=p.peek(),g=Math.min(s,A.byteLength),v=t.byteOffset+t.bytesFilled;u=t.buffer,c=v,h=A.buffer,d=A.byteOffset,f=g,new Uint8Array(u).set(new Uint8Array(h,d,f),c),A.byteLength===g?p.shift():(A.byteOffset+=g,A.byteLength-=g),e._queueTotalSize-=g,mt(e,g,t),s-=g}return l}function mt(e,t,n){_t(e),n.bytesFilled+=t}function yt(e){0===e._queueTotalSize&&!0===e._closeRequested?(Ct(e),jt(e._controlledReadableByteStream)):ft(e)}function _t(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function bt(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();!0===vt(e,t)&&(xt(e),pt(e._controlledReadableByteStream,t))}}function wt(e,t){var n=e._pendingPullIntos.peek(),i=e._controlledReadableByteStream;if("closed"===i._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function(e,t){t.buffer=d(t.buffer);var n=e._controlledReadableByteStream;if(!0===Dt(n))for(;Mt(n)>0;){var i=xt(e);pt(n,i)}}(e,n)}else!function(e,t,n){if(n.bytesFilled+t>n.byteLength)throw new RangeError("bytesWritten out of range");if(mt(e,t,n),!(n.bytesFilled<n.elementSize)){xt(e);var i=n.bytesFilled%n.elementSize;if(i>0){var r=n.byteOffset+n.bytesFilled,o=n.buffer.slice(r-i,r);gt(e,o,0,o.byteLength)}n.buffer=d(n.buffer),n.bytesFilled-=i,pt(e._controlledReadableByteStream,n),bt(e)}}(e,t,n);ft(e)}function xt(e){var t=e._pendingPullIntos.shift();return _t(e),t}function Ct(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function St(e,t){var n=e._controlledReadableByteStream;"readable"===n._state&&(function(e){_t(e),e._pendingPullIntos=new T}(e),ne(e),Ct(e),Vt(n,t))}function kt(e){var t=e._controlledReadableByteStream,n=t._state;return"errored"===n?null:"closed"===n?0:e._strategyHWM-e._queueTotalSize}function Bt(e,t,n){var i=Object.create(ct.prototype),r=u(t,"pull",0,[i]),o=u(t,"cancel",1,[]),a=t.autoAllocateChunkSize;if(void 0!==a&&(a=Number(a),!1===lt(a)||a<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(e,t,n,i,r,o,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=void 0,t._queue=t._queueTotalSize=void 0,ne(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=f(o),t._pullAlgorithm=i,t._cancelAlgorithm=r,t._autoAllocateChunkSize=a,t._pendingPullIntos=new T,e._readableStreamController=t,x(_(n()),function(){t._started=!0,ft(t)},function(e){St(t,e)})}(e,i,function(){return c(t,"start",[i])},r,o,n,a)}function Tt(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Et(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function It(e){var t=y(function(t,n){var i={_resolve:t,_reject:n};e._reader._readIntoRequests.push(i)});return t}function Mt(e){return e._reader._readIntoRequests.length}function Dt(e){var t=e._reader;return void 0!==t&&!!Ft(t)}var Pt=function(){function e(e){if(!Ut(e))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===ht(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Qt(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");I(this,e),this._readIntoRequests=new T}return Object.defineProperty(e.prototype,"closed",{get:function(){return Ft(this)?this._closedPromise:b(Ot("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return Ft(this)?void 0===this._ownerReadableStream?b(P("cancel")):M(this,e):b(Ot("cancel"))},e.prototype.read=function(e){return Ft(this)?void 0===this._ownerReadableStream?b(P("read from")):ArrayBuffer.isView(e)?(e.buffer,0===e.byteLength?b(new TypeError("view must have non-zero byteLength")):function(e,t){var n=e._ownerReadableStream;return n._disturbed=!0,"errored"===n._state?b(n._storedError):function(e,t){var n=e._controlledReadableByteStream,i=1;t.constructor!==DataView&&(i=t.constructor.BYTES_PER_ELEMENT);var r=t.constructor,o={buffer:d(t.buffer),byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:i,ctor:r,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(o),It(n);if("closed"===n._state){var a=new r(o.buffer,o.byteOffset,0);return _(E(a,!0,n._reader._forAuthorCode))}if(e._queueTotalSize>0){if(!0===vt(e,o)){var s=At(o);return yt(e),_(E(s,!1,n._reader._forAuthorCode))}if(!0===e._closeRequested){var l=new TypeError("Insufficient bytes to fill elements in the given buffer");return St(e,l),b(l)}}e._pendingPullIntos.push(o);var u=It(n);return ft(e),u}(n._readableStreamController,t)}(this,e)):b(new TypeError("view must be an array buffer view")):b(Ot("read"))},e.prototype.releaseLock=function(){if(!Ft(this))throw Ot("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");D(this)}},e}();function Ft(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function Ot(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}var Lt=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Rt(this);var n=t.size,i=t.highWaterMark,r=e.type,o=String(r);if("bytes"===o){if(void 0!==n)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===i&&(i=0),i=f(i),Bt(this,e,i)}else{if(void 0!==r)throw new RangeError("Invalid type is specified");var a=p(n);void 0===i&&(i=1),i=f(i),function(e,t,n,i){var r=Object.create(qe.prototype),o=u(t,"pull",0,[r]),a=u(t,"cancel",1,[]);at(e,r,function(){return c(t,"start",[r])},o,a,n,i)}(this,e,i,a)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===Ut(this))throw zt("locked");return Qt(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return!1===Ut(this)?b(zt("cancel")):!0===Qt(this)?b(new TypeError("Cannot cancel a stream that already has a reader")):Ht(this,e)},e.prototype.getReader=function(e){var t=(void 0===e?{}:e).mode;if(!1===Ut(this))throw zt("getReader");if(void 0===t)return Q(this,!0);if("byob"===(t=String(t)))return function(e,t){void 0===t&&(t=!1);var n=new Pt(e);return n._forAuthorCode=t,n}(this,!0);throw new RangeError("Invalid mode is specified")},e.prototype.pipeThrough=function(e,t){var n=e.writable,i=e.readable,r=void 0===t?{}:t,o=r.preventClose,a=r.preventAbort,s=r.preventCancel,l=r.signal;if(!1===Ut(this))throw zt("pipeThrough");if(!1===le(n))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===Ut(i))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),a=Boolean(a),s=Boolean(s),void 0!==l&&!$e(l))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===Qt(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===ue(n))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var u=Ye(this,n,o,a,s,l);return B(u),i},e.prototype.pipeTo=function(e,t){var n=void 0===t?{}:t,i=n.preventClose,r=n.preventAbort,o=n.preventCancel,a=n.signal;return!1===Ut(this)?b(zt("pipeTo")):!1===le(e)?b(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(i=Boolean(i),r=Boolean(r),o=Boolean(o),void 0===a||$e(a)?!0===Qt(this)?b(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===ue(e)?b(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Ye(this,e,i,r,o,a):b(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},e.prototype.tee=function(){if(!1===Ut(this))throw zt("tee");var e=function(e,t){var n,i,r,o,s,l=Q(e),u=!1,c=!1,h=!1,d=y(function(e){s=e});function f(){if(!0===u)return _(void 0);u=!0;var e=k(Y(l),function(e){u=!1;var t=e.done;if(!0===t)return!1===c&&tt(r._readableStreamController),void(!1===h&&tt(o._readableStreamController));var n=e.value,i=n,a=n;!1===c&&nt(r._readableStreamController,i),!1===h&&nt(o._readableStreamController,a)});return B(e),_(void 0)}function p(){}return r=Nt(p,f,function(t){if(c=!0,n=t,!0===h){var r=a([n,i]),o=Ht(e,r);s(o)}return d}),o=Nt(p,f,function(t){if(h=!0,i=t,!0===c){var r=a([n,i]),o=Ht(e,r);s(o)}return d}),S(l._closedPromise,function(e){it(r._readableStreamController,e),it(o._readableStreamController,e)}),[r,o]}(this);return a(e)},e.prototype.getIterator=function(e){var t=(void 0===e?{}:e).preventCancel,n=void 0!==t&&t;if(!1===Ut(this))throw zt("getIterator");return function(e,t){void 0===t&&(t=!1);var n=Q(e),i=Object.create(X);return i._asyncIteratorReader=n,i._preventCancel=Boolean(t),i}(this,n)},e}();function Nt(e,t,n,i,r){void 0===i&&(i=1),void 0===r&&(r=function(){return 1});var o=Object.create(Lt.prototype);Rt(o);var a=Object.create(qe.prototype);return at(o,a,e,t,n,i,r),o}function Rt(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Ut(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function Qt(e){return void 0!==e._reader}function Ht(e,t){if(e._disturbed=!0,"closed"===e._state)return _(void 0);if("errored"===e._state)return b(e._storedError);jt(e);var i=e._readableStreamController[R](t);return k(i,n)}function jt(e){e._state="closed";var t=e._reader;void 0!==t&&(K(t)&&(t._readRequests.forEach(function(e){e._resolve(E(void 0,!0,t._forAuthorCode))}),t._readRequests=new T),N(t))}function Vt(e,t){e._state="errored",e._storedError=t;var n=e._reader;void 0!==n&&(K(n)?(n._readRequests.forEach(function(e){e._reject(t)}),n._readRequests=new T):(n._readIntoRequests.forEach(function(e){e._reject(t)}),n._readIntoRequests=new T),L(n,t))}function zt(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}"symbol"==typeof t.asyncIterator&&Object.defineProperty(Lt.prototype,t.asyncIterator,{value:Lt.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var $t=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(e){return e.byteLength},e}(),Gt=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(){return 1},e}(),Wt=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={});var i=t.size,r=t.highWaterMark,o=n.size,a=n.highWaterMark,s=e.writableType;if(void 0!==s)throw new RangeError("Invalid writable type specified");var l=p(i);void 0===r&&(r=1),r=f(r);var d=e.readableType;if(void 0!==d)throw new RangeError("Invalid readable type specified");var A,g=p(o);void 0===a&&(a=0),a=f(a);var v=y(function(e){A=e});!function(e,t,n,i,r,o){function a(){return t}e._writable=function(e,t,n,i,r,o){void 0===r&&(r=1),void 0===o&&(o=function(){return 1});var a=Object.create(oe.prototype);se(a);var s=Object.create(Se.prototype);return ke(a,s,e,t,n,i,r,o),a}(a,function(t){return function(e,t){var n=e._transformStreamController;if(!0===e._backpressure){var i=e._backpressureChangePromise;return k(i,function(){var i=e._writable,r=i._state;if("erroring"===r)throw i._storedError;return nn(n,t)})}return nn(n,t)}(e,t)},function(){return function(e){var t=e._readable,n=e._transformStreamController,i=n._flushAlgorithm();return en(n),k(i,function(){if("errored"===t._state)throw t._storedError;var e=t._readableStreamController;!0===ot(e)&&tt(e)},function(n){throw Yt(e,n),t._storedError})}(e)},function(t){return function(e,t){return Yt(e,t),_(void 0)}(e,t)},n,i),e._readable=Nt(a,function(){return function(e){return Xt(e,!1),e._backpressureChangePromise}(e)},function(t){return qt(e,t),_(void 0)},r,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Xt(e,!0),e._transformStreamController=void 0}(this,v,r,l,a,g),function(e,t){var n=Object.create(Jt.prototype),i=function(e){try{return tn(n,e),_(void 0)}catch(e){return b(e)}},r=t.transform;if(void 0!==r){if("function"!=typeof r)throw new TypeError("transform is not a method");i=function(e){return h(r,t,[e,n])}}var o=u(t,"flush",0,[n]);!function(e,t,n,i){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=n,t._flushAlgorithm=i}(e,n,i,o)}(this,e);var m=c(e,"start",[this._transformStreamController]);A(m)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!1===Kt(this))throw on("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!1===Kt(this))throw on("writable");return this._writable},enumerable:!0,configurable:!0}),e}();function Kt(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function Yt(e,t){it(e._readable._readableStreamController,t),qt(e,t)}function qt(e,t){en(e._transformStreamController),Ie(e._writable._writableStreamController,t),!0===e._backpressure&&Xt(e,!1)}function Xt(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=y(function(t){e._backpressureChangePromise_resolve=t}),e._backpressure=t}var Jt=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Zt(this))throw rn("desiredSize");var e=this._controlledTransformStream._readable._readableStreamController;return rt(e)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(e){if(!1===Zt(this))throw rn("enqueue");tn(this,e)},e.prototype.error=function(e){if(!1===Zt(this))throw rn("error");var t;t=e,Yt(this._controlledTransformStream,t)},e.prototype.terminate=function(){if(!1===Zt(this))throw rn("terminate");!function(e){var t=e._controlledTransformStream,n=t._readable._readableStreamController;!0===ot(n)&&tt(n);var i=new TypeError("TransformStream terminated");qt(t,i)}(this)},e}();function Zt(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function en(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function tn(e,t){var n=e._controlledTransformStream,i=n._readable._readableStreamController;if(!1===ot(i))throw new TypeError("Readable side is not in a state that permits enqueue");try{nt(i,t)}catch(e){throw qt(n,e),n._readable._storedError}var r=function(e){return!0!==Ze(e)}(i);r!==n._backpressure&&Xt(n,!0)}function nn(e,t){var n=e._transformAlgorithm(t);return k(n,void 0,function(t){throw Yt(e._controlledTransformStream,t),t})}function rn(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function on(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}e.ByteLengthQueuingStrategy=$t,e.CountQueuingStrategy=Gt,e.ReadableStream=Lt,e.TransformStream=Wt,e.WritableStream=oe,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){n(147),n(118),n(77),n(120);var i=n(43);e.exports=i.Map},function(e,t,n){"use strict";var i=n(148),r=n(152);e.exports=i("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},r)},function(e,t,n){"use strict";var i=n(10),r=n(11),o=n(52),a=n(29),s=n(149),l=n(104),u=n(126),c=n(22),h=n(14),d=n(97),f=n(85),p=n(151);e.exports=function(e,t,n){var A=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),v=A?"set":"add",m=r[e],y=m&&m.prototype,_=m,b={},w=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!c(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!c(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof m||!(g||y.forEach&&!h(function(){(new m).entries().next()}))))_=n.getConstructor(t,e,A,v),s.REQUIRED=!0;else if(o(e,!0)){var x=new _,C=x[v](g?{}:-0,1)!=x,S=h(function(){x.has(1)}),k=d(function(e){new m(e)}),B=!g&&h(function(){for(var e=new m,t=5;t--;)e[v](t,t);return!e.has(-0)});k||((_=t(function(t,n){u(t,_,e);var i=p(new m,t,_);return void 0!=n&&l(n,i[v],i,A),i})).prototype=y,y.constructor=_),(S||B)&&(w("delete"),w("has"),A&&w("get")),(B||C)&&w(v),g&&y.clear&&delete y.clear}return b[e]=_,i({global:!0,forced:_!=m},b),f(_,e),g||n.setStrong(_,e,A),_}},function(e,t,n){var i=n(39),r=n(22),o=n(23),a=n(27).f,s=n(38),l=n(150),u=s("meta"),c=0,h=Object.isExtensible||function(){return!0},d=function(e){a(e,u,{value:{objectID:"O"+ ++c,weakData:{}}})},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,u)){if(!h(e))return"F";if(!t)return"E";d(e)}return e[u].objectID},getWeakData:function(e,t){if(!o(e,u)){if(!h(e))return!0;if(!t)return!1;d(e)}return e[u].weakData},onFreeze:function(e){return l&&f.REQUIRED&&h(e)&&!o(e,u)&&d(e),e}};i[u]=!0},function(e,t,n){var i=n(14);e.exports=!i(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var i=n(22),r=n(87);e.exports=function(e,t,n){var o,a;return r&&"function"==typeof(o=t.constructor)&&o!==n&&i(a=o.prototype)&&a!==n.prototype&&r(e,a),e}},function(e,t,n){"use strict";var i=n(27).f,r=n(71),o=n(124),a=n(62),s=n(126),l=n(104),u=n(79),c=n(125),h=n(13),d=n(149).fastKey,f=n(33),p=f.set,A=f.getterFor;e.exports={getConstructor:function(e,t,n,u){var c=e(function(e,i){s(e,c,t),p(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),h||(e.size=0),void 0!=i&&l(i,e[u],e,n)}),f=A(t),g=function(e,t,n){var i,r,o=f(e),a=v(e,t);return a?a.value=n:(o.last=a={index:r=d(t,!0),key:t,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),h?o.size++:e.size++,"F"!==r&&(o.index[r]=a)),e},v=function(e,t){var n,i=f(e),r=d(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return o(c.prototype,{clear:function(){for(var e=f(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t=f(this),n=v(this,e);if(n){var i=n.next,r=n.previous;delete t.index[n.index],n.removed=!0,r&&(r.next=i),i&&(i.previous=r),t.first==n&&(t.first=i),t.last==n&&(t.last=r),h?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=f(this),i=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(c.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),h&&i(c.prototype,"size",{get:function(){return f(this).size}}),c},setStrong:function(e,t,n){var i=t+" Iterator",r=A(t),o=A(i);u(e,t,function(e,t){p(this,{type:i,target:e,state:r(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),c(t)}}},function(e,t,n){n(154),n(118),n(77),n(120);var i=n(43);e.exports=i.Set},function(e,t,n){"use strict";var i=n(148),r=n(152);e.exports=i("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},r)},function(e,t,n){n(118),n(156),n(120);var i=n(43);e.exports=i.WeakMap},function(e,t,n){"use strict";var i,r=n(11),o=n(124),a=n(149),s=n(148),l=n(157),u=n(22),c=n(33).enforce,h=n(34),d=!r.ActiveXObject&&"ActiveXObject"in r,f=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},A=e.exports=s("WeakMap",p,l);if(h&&d){i=l.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var g=A.prototype,v=g.delete,m=g.has,y=g.get,_=g.set;o(g,{delete:function(e){if(u(e)&&!f(e)){var t=c(this);return t.frozen||(t.frozen=new i),v.call(this,e)||t.frozen.delete(e)}return v.call(this,e)},has:function(e){if(u(e)&&!f(e)){var t=c(this);return t.frozen||(t.frozen=new i),m.call(this,e)||t.frozen.has(e)}return m.call(this,e)},get:function(e){if(u(e)&&!f(e)){var t=c(this);return t.frozen||(t.frozen=new i),m.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(u(e)&&!f(e)){var n=c(this);n.frozen||(n.frozen=new i),m.call(this,e)?_.call(this,e,t):n.frozen.set(e,t)}else _.call(this,e,t);return this}})}},function(e,t,n){"use strict";var i=n(124),r=n(149).getWeakData,o=n(28),a=n(22),s=n(126),l=n(104),u=n(158),c=n(23),h=n(33),d=h.set,f=h.getterFor,p=u.find,A=u.findIndex,g=0,v=function(e){return e.frozen||(e.frozen=new m)},m=function(){this.entries=[]},y=function(e,t){return p(e.entries,function(e){return e[0]===t})};m.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=A(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,u){var h=e(function(e,i){s(e,h,t),d(e,{type:t,id:g++,frozen:void 0}),void 0!=i&&l(i,e[u],e,n)}),p=f(t),A=function(e,t,n){var i=p(e),a=r(o(t),!0);return!0===a?v(i).set(t,n):a[i.id]=n,e};return i(h.prototype,{delete:function(e){var t=p(this);if(!a(e))return!1;var n=r(e);return!0===n?v(t).delete(e):n&&c(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!a(e))return!1;var n=r(e);return!0===n?v(t).has(e):n&&c(n,t.id)}}),i(h.prototype,n?{get:function(e){var t=p(this);if(a(e)){var n=r(e);return!0===n?v(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return A(this,e,t)}}:{add:function(e){return A(this,e,!0)}}),h}}},function(e,t,n){var i=n(62),r=n(18),o=n(83),a=n(47),s=n(159),l=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,h=6==e,d=5==e||h;return function(f,p,A,g){for(var v,m,y=o(f),_=r(y),b=i(p,A,3),w=a(_.length),x=0,C=g||s,S=t?C(f,w):n?C(f,0):void 0;w>x;x++)if((d||x in _)&&(m=b(v=_[x],x,y),e))if(t)S[x]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:l.call(S,v)}else if(c)return!1;return h?-1:u||c?c:S}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},function(e,t,n){var i=n(22),r=n(160),o=n(57)("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?i(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var i=n(19);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){n(118),n(162),n(120);var i=n(43);e.exports=i.WeakSet},function(e,t,n){"use strict";n(148)("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(157))},function(e,t,n){n(164);var i=n(61);e.exports=i("String","codePointAt")},function(e,t,n){"use strict";var i=n(10),r=n(78).codeAt;i({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},function(e,t,n){n(166);var i=n(43);e.exports=i.String.fromCodePoint},function(e,t,n){var i=n(10),r=n(49),o=String.fromCharCode,a=String.fromCodePoint;i({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,n=[],i=arguments.length,a=0;i>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){n(168),n(118),n(170),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189);var i=n(43);e.exports=i.Symbol},function(e,t,n){"use strict";var i=n(10),r=n(14),o=n(160),a=n(22),s=n(83),l=n(47),u=n(93),c=n(159),h=n(169),d=n(57),f=n(135),p=d("isConcatSpreadable"),A=f>=51||!r(function(){var e=[];return e[p]=!1,e.concat()[0]!==e}),g=h("concat"),v=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)};i({target:"Array",proto:!0,forced:!A||!g},{concat:function(e){var t,n,i,r,o,a=s(this),h=c(a,0),d=0;for(t=-1,i=arguments.length;t<i;t++)if(o=-1===t?a:arguments[t],v(o)){if(d+(r=l(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<r;n++,d++)n in o&&u(h,d,o[n])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");u(h,d++,o)}return h.length=d,h}})},function(e,t,n){var i=n(14),r=n(57),o=n(135),a=r("species");e.exports=function(e){return o>=51||!i(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,n){"use strict";var i=n(10),r=n(11),o=n(42),a=n(37),s=n(13),l=n(58),u=n(59),c=n(14),h=n(23),d=n(160),f=n(22),p=n(28),A=n(83),g=n(17),v=n(21),m=n(16),y=n(71),_=n(73),b=n(44),w=n(171),x=n(51),C=n(12),S=n(27),k=n(15),B=n(26),T=n(29),E=n(36),I=n(35),M=n(39),D=n(38),P=n(57),F=n(172),O=n(173),L=n(85),N=n(33),R=n(158).forEach,U=I("hidden"),Q=P("toPrimitive"),H=N.set,j=N.getterFor("Symbol"),V=Object.prototype,z=r.Symbol,$=o("JSON","stringify"),G=C.f,W=S.f,K=w.f,Y=k.f,q=E("symbols"),X=E("op-symbols"),J=E("string-to-symbol-registry"),Z=E("symbol-to-string-registry"),ee=E("wks"),te=r.QObject,ne=!te||!te.prototype||!te.prototype.findChild,ie=s&&c(function(){return 7!=y(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=G(V,t);i&&delete V[t],W(e,t,n),i&&e!==V&&W(V,t,i)}:W,re=function(e,t){var n=q[e]=y(z.prototype);return H(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},oe=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof z},ae=function(e,t,n){e===V&&ae(X,t,n),p(e);var i=v(t,!0);return p(n),h(q,i)?(n.enumerable?(h(e,U)&&e[U][i]&&(e[U][i]=!1),n=y(n,{enumerable:m(0,!1)})):(h(e,U)||W(e,U,m(1,{})),e[U][i]=!0),ie(e,i,n)):W(e,i,n)},se=function(e,t){p(e);var n=g(t),i=_(n).concat(he(n));return R(i,function(t){s&&!le.call(n,t)||ae(e,t,n[t])}),e},le=function(e){var t=v(e,!0),n=Y.call(this,t);return!(this===V&&h(q,t)&&!h(X,t))&&(!(n||!h(this,t)||!h(q,t)||h(this,U)&&this[U][t])||n)},ue=function(e,t){var n=g(e),i=v(t,!0);if(n!==V||!h(q,i)||h(X,i)){var r=G(n,i);return!r||!h(q,i)||h(n,U)&&n[U][i]||(r.enumerable=!0),r}},ce=function(e){var t=K(g(e)),n=[];return R(t,function(e){h(q,e)||h(M,e)||n.push(e)}),n},he=function(e){var t=e===V,n=K(t?X:g(e)),i=[];return R(n,function(e){!h(q,e)||t&&!h(V,e)||i.push(q[e])}),i};(l||(T((z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=D(e),n=function(e){this===V&&n.call(X,e),h(this,U)&&h(this[U],t)&&(this[U][t]=!1),ie(this,t,m(1,e))};return s&&ne&&ie(V,t,{configurable:!0,set:n}),re(t,e)}).prototype,"toString",function(){return j(this).tag}),T(z,"withoutSetter",function(e){return re(D(e),e)}),k.f=le,S.f=ae,C.f=ue,b.f=w.f=ce,x.f=he,F.f=function(e){return re(P(e),e)},s&&(W(z.prototype,"description",{configurable:!0,get:function(){return j(this).description}}),a||T(V,"propertyIsEnumerable",le,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:z}),R(_(ee),function(e){O(e)}),i({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=String(e);if(h(J,t))return J[t];var n=z(t);return J[t]=n,Z[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(h(Z,e))return Z[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),i({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?y(e):se(y(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ue}),i({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ce,getOwnPropertySymbols:he}),i({target:"Object",stat:!0,forced:c(function(){x.f(1)})},{getOwnPropertySymbols:function(e){return x.f(A(e))}}),$)&&i({target:"JSON",stat:!0,forced:!l||c(function(){var e=z();return"[null]"!=$([e])||"{}"!=$({a:e})||"{}"!=$(Object(e))})},{stringify:function(e,t,n){for(var i,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(i=t,(f(t)||void 0!==e)&&!oe(e))return d(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!oe(t))return t}),r[1]=t,$.apply(null,r)}});z.prototype[Q]||B(z.prototype,Q,z.prototype.valueOf),L(z,"Symbol"),M[U]=!0},function(e,t,n){var i=n(17),r=n(44).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(i(e))}},function(e,t,n){var i=n(57);t.f=i},function(e,t,n){var i=n(43),r=n(23),o=n(172),a=n(27).f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){n(173)("asyncIterator")},function(e,t,n){"use strict";var i=n(10),r=n(13),o=n(11),a=n(23),s=n(22),l=n(27).f,u=n(40),c=o.Symbol;if(r&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var h={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new c(e):void 0===e?c():c(e);return""===e&&(h[t]=!0),t};u(d,c);var f=d.prototype=c.prototype;f.constructor=d;var p=f.toString,A="Symbol(test)"==String(c("test")),g=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(h,e))return"";var n=A?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:d})}},function(e,t,n){n(173)("hasInstance")},function(e,t,n){n(173)("isConcatSpreadable")},function(e,t,n){n(173)("iterator")},function(e,t,n){n(173)("match")},function(e,t,n){n(173)("matchAll")},function(e,t,n){n(173)("replace")},function(e,t,n){n(173)("search")},function(e,t,n){n(173)("species")},function(e,t,n){n(173)("split")},function(e,t,n){n(173)("toPrimitive")},function(e,t,n){n(173)("toStringTag")},function(e,t,n){n(173)("unscopables")},function(e,t,n){n(85)(Math,"Math",!0)},function(e,t,n){var i=n(11);n(85)(i.JSON,"JSON",!0)},function(e,t,n){n(191);var i=n(61);e.exports=i("String","padStart")},function(e,t,n){"use strict";var i=n(10),r=n(192).start;i({target:"String",proto:!0,forced:n(194)},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(47),r=n(193),o=n(20),a=Math.ceil,s=function(e){return function(t,n,s){var l,u,c=String(o(t)),h=c.length,d=void 0===s?" ":String(s),f=i(n);return f<=h||""==d?c:(l=f-h,(u=r.call(d,a(l/d.length))).length>l&&(u=u.slice(0,l)),e?c+u:u+c)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,n){"use strict";var i=n(48),r=n(20);e.exports="".repeat||function(e){var t=String(r(this)),n="",o=i(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){var i=n(129);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i)},function(e,t,n){n(196);var i=n(61);e.exports=i("String","padEnd")},function(e,t,n){"use strict";var i=n(10),r=n(192).end;i({target:"String",proto:!0,forced:n(194)},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(198);var i=n(43);e.exports=i.Object.values},function(e,t,n){var i=n(10),r=n(199).values;i({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,n){var i=n(13),r=n(73),o=n(17),a=n(15).f,s=function(e){return function(t){for(var n,s=o(t),l=r(s),u=l.length,c=0,h=[];u>c;)n=l[c++],i&&!a.call(s,n)||h.push(e?[n,s[n]]:s[n]);return h}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){n(201);var i=n(43);e.exports=i.Object.entries},function(e,t,n){var i=n(10),r=n(199).entries;i({target:"Object",stat:!0},{entries:function(e){return r(e)}})},function(module,exports,__w_pdfjs_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(203),_node_utils=__w_pdfjs_require__(204),_annotation_storage=__w_pdfjs_require__(205),_api_compatibility=__w_pdfjs_require__(206),_canvas=__w_pdfjs_require__(207),_worker_options=__w_pdfjs_require__(209),_is_node=__w_pdfjs_require__(7),_message_handler=__w_pdfjs_require__(210),_metadata=__w_pdfjs_require__(211),_optional_content_config=__w_pdfjs_require__(213),_transport_stream=__w_pdfjs_require__(214),_webgl=__w_pdfjs_require__(215);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function asyncGeneratorStep(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){asyncGeneratorStep(o,i,r,a,s,"next",e)}function s(e){asyncGeneratorStep(o,i,r,a,s,"throw",e)}a(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(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,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(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)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _typeof(e){"@babel/helpers - typeof";return(_typeof="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 DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_is_node.isNodeJS?_node_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory,DefaultCMapReaderFactory=_is_node.isNodeJS?_node_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory,createPDFNetworkStream;function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){var t,n=new PDFDocumentLoadingTask;if("string"==typeof e)t={url:e};else if((0,_util.isArrayBuffer)(e))t={data:e};else if(e instanceof PDFDataRangeTransport)t={range:e};else{if("object"!==_typeof(e))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");t=e}var i=Object.create(null),r=null,o=null;for(var a in t)if("url"!==a||"undefined"==typeof window)if("range"!==a)if("worker"!==a)if("data"!==a||t[a]instanceof Uint8Array)i[a]=t[a];else{var s=t[a];if("string"==typeof s)i[a]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");i[a]=new Uint8Array(s)}else i[a]=new Uint8Array(s)}else o=t[a];else r=t[a];else i[a]=new URL(t[a],window.location).href;if(i.rangeChunkSize=i.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,i.CMapReaderFactory=i.CMapReaderFactory||DefaultCMapReaderFactory,i.ignoreErrors=!0!==i.stopAtErrors,i.fontExtraProperties=!0===i.fontExtraProperties,i.pdfBug=!0===i.pdfBug,Number.isInteger(i.maxImageSize)||(i.maxImageSize=-1),"boolean"!=typeof i.isEvalSupported&&(i.isEvalSupported=!0),"boolean"!=typeof i.disableFontFace&&(i.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),void 0===i.ownerDocument&&(i.ownerDocument=globalThis.document),"boolean"!=typeof i.disableRange&&(i.disableRange=!1),"boolean"!=typeof i.disableStream&&(i.disableStream=!1),"boolean"!=typeof i.disableAutoFetch&&(i.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(i.verbosity),!o){var l={verbosity:i.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};o=l.port?PDFWorker.fromPort(l):new PDFWorker(l),n._worker=o}var u=n.docId;return o.promise.then(function(){if(n.destroyed)throw new Error("Loading aborted");var e=_fetchDocument(o,i,r,u),t=new Promise(function(e){var t;r?t=new _transport_stream.PDFDataTransportStream({length:i.length,initialData:i.initialData,progressiveDone:i.progressiveDone,disableRange:i.disableRange,disableStream:i.disableStream},r):i.data||(t=createPDFNetworkStream({url:i.url,length:i.length,httpHeaders:i.httpHeaders,withCredentials:i.withCredentials,rangeChunkSize:i.rangeChunkSize,disableRange:i.disableRange,disableStream:i.disableStream})),e(t)});return Promise.all([e,t]).then(function(e){var t=_slicedToArray(e,2),r=t[0],a=t[1];if(n.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(u,r,o.port);s.postMessageTransfers=o.postMessageTransfers;var l=new WorkerTransport(s,n,a,i);n._transport=l,s.send("Ready",null)})}).catch(n._capability.reject),n}function _fetchDocument(e,t,n,i){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(n&&(t.length=n.length,t.initialData=n.initialData,t.progressiveDone=n.progressiveDone),e.messageHandler.sendWithPromise("GetDocRequest",{docId:i,apiVersion:"2.6.347",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties}).then(function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t}))}var PDFDocumentLoadingTask=(nextDocumentId=0,function(){function e(){_classCallCheck(this,e),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+nextDocumentId++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(e,[{key:"destroy",value:function(){var e=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)})}},{key:"promise",get:function(){return this._capability.promise}}]),e}()),nextDocumentId,PDFDataRangeTransport=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.length=t,this.initialData=n,this.progressiveDone=i,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var n,i=_createForOfIteratorHelper(this._rangeListeners);try{for(i.s();!(n=i.n()).done;){(0,n.value)(e,t)}}catch(e){i.e(e)}finally{i.f()}}},{key:"onDataProgress",value:function(e,t){var n=this;this._readyCapability.promise.then(function(){var i,r=_createForOfIteratorHelper(n._progressListeners);try{for(r.s();!(i=r.n()).done;){(0,i.value)(e,t)}}catch(e){r.e(e)}finally{r.f()}})}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then(function(){var n,i=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(i.s();!(n=i.n()).done;){(0,n.value)(e)}}catch(e){i.e(e)}finally{i.f()}})}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then(function(){var t,n=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(n.s();!(t=n.n()).done;){(0,t.value)()}}catch(e){n.e(e)}finally{n.f()}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function e(t,n){_classCallCheck(this,e),this._pdfInfo=t,this._transport=n}return _createClass(e,[{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getOptionalContentConfig",value:function(){return this._transport.getOptionalContentConfig()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"saveDocument",value:function(e){return this._transport.saveDocument(e)}},{key:"annotationStorage",get:function(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),e}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function e(t,n,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=n,this._ownerDocument=r,this._transport=i,this._stats=o?new _display_utils.StatTimer:null,this._pdfBug=o,this.commonObjs=i.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this.destroyed=!1}return _createClass(e,[{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,n=e.rotation,i=void 0===n?this.rotate:n,r=e.offsetX,o=void 0===r?0:r,a=e.offsetY,s=void 0===a?0:a,l=e.dontFlip,u=void 0!==l&&l;return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:i,offsetX:o,offsetY:s,dontFlip:u})}},{key:"getAnnotations",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intent,t=void 0===e?null:e;return this.annotationsPromise&&this.annotationsIntent===t||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,t),this.annotationsIntent=t),this.annotationsPromise}},{key:"render",value:function(e){var t=this,n=e.canvasContext,i=e.viewport,r=e.intent,o=void 0===r?"display":r,a=e.enableWebGL,s=void 0!==a&&a,l=e.renderInteractiveForms,u=void 0!==l&&l,c=e.transform,h=void 0===c?null:c,d=e.imageLayer,f=void 0===d?null:d,p=e.canvasFactory,A=void 0===p?null:p,g=e.background,v=void 0===g?null:g,m=e.annotationStorage,y=void 0===m?null:m,_=e.optionalContentConfigPromise,b=void 0===_?null:_;this._stats&&this._stats.time("Overall");var w="print"===o?"print":"display";this.pendingCleanup=!1,b||(b=this._transport.getOptionalContentConfig());var x=this._intentStates.get(w);x||(x=Object.create(null),this._intentStates.set(w,x)),x.streamReaderCancelTimeout&&(clearTimeout(x.streamReaderCancelTimeout),x.streamReaderCancelTimeout=null);var C=A||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),S=new _webgl.WebGLContext({enable:s});x.displayReadyCapability||(x.displayReadyCapability=(0,_util.createPromiseCapability)(),x.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:w,renderInteractiveForms:!0===u,annotationStorage:y&&y.getAll()||null}));var k=function(e){var n=x.renderTasks.indexOf(B);n>=0&&x.renderTasks.splice(n,1),(t.cleanupAfterRender||"print"===w)&&(t.pendingCleanup=!0),t._tryCleanup(),e?(B.capability.reject(e),t._abortOperatorList({intentState:x,reason:e})):B.capability.resolve(),t._stats&&(t._stats.timeEnd("Rendering"),t._stats.timeEnd("Overall"))},B=new InternalRenderTask({callback:k,params:{canvasContext:n,viewport:i,transform:h,imageLayer:f,background:v},objs:this.objs,commonObjs:this.commonObjs,operatorList:x.operatorList,pageIndex:this._pageIndex,canvasFactory:C,webGLContext:S,useRequestAnimationFrame:"print"!==w,pdfBug:this._pdfBug});x.renderTasks||(x.renderTasks=[]),x.renderTasks.push(B);var T=B.task;return Promise.all([x.displayReadyCapability.promise,b]).then(function(e){var n=_slicedToArray(e,2),i=n[0],r=n[1];t.pendingCleanup?k():(t._stats&&t._stats.time("Rendering"),B.initializeGraphics({transparency:i,optionalContentConfig:r}),B.operatorListChanged())}).catch(k),T}},{key:"getOperatorList",value:function(){var e,t=this._intentStates.get("oplist");return t||(t=Object.create(null),this._intentStates.set("oplist",t)),t.opListReadCapability||((e=Object.create(null)).operatorListChanged=function(){if(t.operatorList.lastChunk){t.opListReadCapability.resolve(t.operatorList);var n=t.renderTasks.indexOf(e);n>=0&&t.renderTasks.splice(n,1)}},t.opListReadCapability=(0,_util.createPromiseCapability)(),t.renderTasks=[],t.renderTasks.push(e),t.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:"oplist"})),t.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,n=void 0!==t&&t,i=e.disableCombineTextItems,r=void 0!==i&&i;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===n,combineTextItems:!0!==r},{highWaterMark:100,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.streamTextContent(e);return new Promise(function(e,n){var i=t.getReader(),r={items:[],styles:Object.create(null)};!function t(){i.read().then(function(n){var i,o=n.value;n.done?e(r):(Object.assign(r.styles,o.styles),(i=r.items).push.apply(i,_toConsumableArray(o.items)),t())},n)}()})}},{key:"_destroy",value:function(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var e,t=[],n=_createForOfIteratorHelper(this._intentStates);try{for(n.s();!(e=n.n()).done;){var i=_slicedToArray(e.value,2),r=i[0],o=i[1];if(this._abortOperatorList({intentState:o,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==r){var a,s=_createForOfIteratorHelper(o.renderTasks);try{for(s.s();!(a=s.n()).done;){var l=a.value;t.push(l.completed),l.cancel()}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){n.e(e)}finally{n.f()}return this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}},{key:"_tryCleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.pendingCleanup)return!1;var t,n=_createForOfIteratorHelper(this._intentStates.values());try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.renderTasks,o=i.operatorList;if(0!==r.length||!o.lastChunk)return!1}}catch(e){n.e(e)}finally{n.f()}return this._intentStates.clear(),this.objs.clear(),this.annotationsPromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}},{key:"_startRenderPage",value:function(e,t){var n=this._intentStates.get(t);n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var n=0,i=e.length;n<i;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk;for(var r=0;r<t.renderTasks.length;r++)t.renderTasks[r].operatorListChanged();e.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(e){var t=this;(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var n=this._transport.messageHandler.sendWithStream("GetOperatorList",e).getReader(),i=this._intentStates.get(e.intent);i.streamReader=n;!function e(){n.read().then(function(n){var r=n.value;n.done?i.streamReader=null:t._transport.destroyed||(t._renderPageChunk(r,i),e())},function(e){if(i.streamReader=null,!t._transport.destroyed){if(i.operatorList){i.operatorList.lastChunk=!0;for(var n=0;n<i.renderTasks.length;n++)i.renderTasks[n].operatorListChanged();t._tryCleanup()}if(i.displayReadyCapability)i.displayReadyCapability.reject(e);else{if(!i.opListReadCapability)throw e;i.opListReadCapability.reject(e)}}})}()}},{key:"_abortOperatorList",value:function(e){var t=this,n=e.intentState,i=e.reason,r=e.force,o=void 0!==r&&r;if((0,_util.assert)(i instanceof Error||"object"===_typeof(i)&&null!==i,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),n.streamReader){if(!o){if(0!==n.renderTasks.length)return;if(i instanceof _display_utils.RenderingCancelledException)return void(n.streamReaderCancelTimeout=setTimeout(function(){t._abortOperatorList({intentState:n,reason:i,force:!0}),n.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}if(n.streamReader.cancel(new _util.AbortException(i&&i.message)),n.streamReader=null,!this._transport.destroyed){var a,s=_createForOfIteratorHelper(this._intentStates);try{for(s.s();!(a=s.n()).done;){var l=_slicedToArray(a.value,2),u=l[0];if(l[1]===n){this._intentStates.delete(u);break}}}catch(e){s.e(e)}finally{s.f()}this.cleanup()}}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),e}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return _createClass(e,[{key:"postMessage",value:function(e,t){var n=this;if(this._defer){var i=new WeakMap,r={data:function e(n){if("object"!==_typeof(n)||null===n)return n;if(i.has(n))return i.get(n);var r,o;if((r=n.buffer)&&(0,_util.isArrayBuffer)(r))return o=t&&t.includes(r)?new n.constructor(r,n.byteOffset,n.byteLength):new n.constructor(n),i.set(n,o),o;for(var a in o=Array.isArray(n)?[]:{},i.set(n,o),n){for(var s=void 0,l=n;!(s=Object.getOwnPropertyDescriptor(l,a));)l=Object.getPrototypeOf(l);if(void 0!==s.value)if("function"!=typeof s.value)o[a]=e(s.value);else if(n.hasOwnProperty&&n.hasOwnProperty(a))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(n[a]))}return o}(e)};this._deferred.then(function(){n._listeners.forEach(function(e){e.call(n,r)})})}else this._listeners.forEach(function(t){t.call(n,{data:e})})}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this._listeners.indexOf(t);this._listeners.splice(n,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"==typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(e){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref12=_asyncToGenerator(_regenerator.default.mark(function _callee(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}},_callee)}));return function(){return _ref12.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){var t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}var PDFWorker=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.name,i=void 0===n?null:n,r=t.port,o=void 0===r?null:r,a=t.verbosity,s=void 0===a?(0,_util.getVerbosityLevel)():a;if(_classCallCheck(this,e),o&&pdfWorkerPorts.has(o))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=i,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,o)return pdfWorkerPorts.set(o,this),void this._initializeFromPort(o);this._initialize()}return _createClass(e,[{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var e=this;if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var t=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));var n=new Worker(t),i=new _message_handler.MessageHandler("main","worker",n),r=function(){n.removeEventListener("error",o),i.destroy(),n.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},o=function(){e._webWorker||r()};n.addEventListener("error",o),i.on("test",function(t){n.removeEventListener("error",o),e.destroyed?r():t?(e._messageHandler=i,e._port=n,e._webWorker=n,t.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),i.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),i.destroy(),n.terminate())}),i.on("ready",function(t){if(n.removeEventListener("error",o),e.destroyed)r();else try{a()}catch(t){e._setupFakeWorker()}});var a=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{i.send("test",t,[t.buffer])}catch(e){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,i.send("test",t)}};return void a()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(function(t){if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var n=new LoopbackPort;e._port=n;var i="fake"+nextFakeWorkerId++,r=new _message_handler.MessageHandler(i+"_worker",i,n);t.setup(r,n);var o=new _message_handler.MessageHandler(i,i+"_worker",n);e._messageHandler=o,e._readyCapability.resolve(),o.send("configure",{verbosity:e.verbosity})}}).catch(function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))})}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(t){if(!t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(t.port)?pdfWorkerPorts.get(t.port):new e(t)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),e}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function e(t,n,i,r){_classCallCheck(this,e),this.messageHandler=t,this.loadingTask=n,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:n.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:r.ownerDocument}),this._params=r,this.CMapReaderFactory=new r.CMapReaderFactory({baseUrl:r.cMapUrl,isCompressed:r.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=i,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(e,[{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];this.pageCache.forEach(function(e){e&&t.push(e._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;var n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then(function(){e.fontLoader.clear(),e._networkStream&&e._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,n=this.loadingTask;t.on("GetReader",function(t,n){(0,_util.assert)(e._networkStream,"GetReader - no `IPDFStream` instance available."),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},n.onPull=function(){e._fullReader.read().then(function(e){var t=e.value;e.done?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(t),"GetReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(t),1,[t]))}).catch(function(e){n.error(e)})},n.onCancel=function(t){e._fullReader.cancel(t),n.ready.catch(function(t){if(!e.destroyed)throw t})}}),t.on("ReaderHeadersReady",function(t){var i=(0,_util.createPromiseCapability)(),r=e._fullReader;return r.headersReady.then(function(){r.isStreamingSupported&&r.isRangeSupported||(e._lastProgress&&n.onProgress&&n.onProgress(e._lastProgress),r.onProgress=function(e){n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})}),i.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})},i.reject),i.promise}),t.on("GetRangeReader",function(t,n){(0,_util.assert)(e._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var i=e._networkStream.getRangeReader(t.begin,t.end);i?(n.onPull=function(){i.read().then(function(e){var t=e.value;e.done?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(t),"GetRangeReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(t),1,[t]))}).catch(function(e){n.error(e)})},n.onCancel=function(t){i.cancel(t),n.ready.catch(function(t){if(!e.destroyed)throw t})}):n.close()}),t.on("GetDoc",function(t){var i=t.pdfInfo;e._numPages=i.numPages,n._capability.resolve(new PDFDocumentProxy(i,e))}),t.on("DocException",function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details)}if(!(t instanceof Error)){(0,_util.warn)("DocException - expected a valid Error.")}n._capability.reject(t)}),t.on("PasswordRequest",function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),n.onPassword){try{n.onPassword(function(t){e._passwordCapability.resolve({password:t})},t.code)}catch(t){e._passwordCapability.reject(t)}}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise}),t.on("DataLoaded",function(t){n.onProgress&&n.onProgress({loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)}),t.on("StartRenderPage",function(t){e.destroyed||e.pageCache[t.pageIndex]._startRenderPage(t.transparency,t.intent)}),t.on("commonobj",function(n){if(!e.destroyed){var i=_slicedToArray(n,3),r=i[0],o=i[1],a=i[2];if(!e.commonObjs.has(r))switch(o){case"Font":var s=e._params;if("error"in a){var l=a.error;(0,_util.warn)("Error during font loading: ".concat(l)),e.commonObjs.resolve(r,l);break}var u=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(u={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var c=new _font_loader.FontFaceObject(a,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:u});e.fontLoader.bind(c).catch(function(e){return t.sendWithPromise("FontFallback",{id:r})}).finally(function(){!s.fontExtraProperties&&c.data&&(c.data=null),e.commonObjs.resolve(r,c)});break;case"FontPath":case"Image":e.commonObjs.resolve(r,a);break;default:throw new Error("Got unknown common object type ".concat(o))}}}),t.on("obj",function(t){if(!e.destroyed){var n=_slicedToArray(t,4),i=n[0],r=n[1],o=n[2],a=n[3],s=e.pageCache[r];if(!s.objs.has(i))switch(o){case"Image":s.objs.resolve(i,a);a&&"data"in a&&a.data.length>8e6&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(o))}}}),t.on("DocProgress",function(t){e.destroyed||n.onProgress&&n.onProgress({loaded:t.loaded,total:t.total})}),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("FetchBuiltInCMap",function(t,n){if(e.destroyed)n.error(new Error("Worker was destroyed"));else{var i=!1;n.onPull=function(){i?n.close():(i=!0,e.CMapReaderFactory.fetch(t).then(function(e){n.enqueue(e,1,[e.cMapData.buffer])}).catch(function(e){n.error(e)}))}}})}},{key:"_onUnsupportedFeature",value:function(e){var t=e.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(t)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));var n=e-1;if(n in this.pagePromises)return this.pagePromises[n];var i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(function(e){if(t.destroyed)throw new Error("Transport destroyed");var i=new PDFPageProxy(n,e,t,t._params.ownerDocument,t._params.pdfBug);return t.pageCache[n]=i,i});return this.pagePromises[n]=i,i}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch(function(e){return Promise.reject(new Error(e))})}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"saveDocument",value:function(e){return this.messageHandler.sendWithPromise("SaveDocument",{numPages:this._numPages,annotationStorage:e&&e.getAll()||null,filename:this._fullReader?this._fullReader.filename:null}).finally(function(){e&&e.resetModified()})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(function(e){return new _optional_content_config.OptionalContentConfig(e)})}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(t){return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:e._fullReader?e._fullReader.filename:null}})}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var e=this;return this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var t=0,n=e.pageCache.length;t<n;t++){var i=e.pageCache[t];if(i)if(!i.cleanup())throw new Error("startCleanup: Page ".concat(t+1," is currently rendering."))}e.commonObjs.clear(),e.fontLoader.clear()})}},{key:"loadingParams",get:function(){var e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,disableFontFace:e.disableFontFace})}}]),e}(),PDFObjects=function(){function e(){_classCallCheck(this,e),this._objs=Object.create(null)}return _createClass(e,[{key:"_ensureObj",value:function(e){return this._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var n=this._objs[e];if(!n||!n.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return n.data}},{key:"has",value:function(e){var t=this._objs[e];return!!t&&t.resolved}},{key:"resolve",value:function(e,t){var n=this._ensureObj(e);n.resolved=!0,n.data=t,n.capability.resolve(t)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),e}(),RenderTask=function(){function e(t){_classCallCheck(this,e),this._internalRenderTask=t,this.onContinue=null}return _createClass(e,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),e}(),InternalRenderTask=(canvasInRendering=new WeakSet,function(){function e(t){var n=t.callback,i=t.params,r=t.objs,o=t.commonObjs,a=t.operatorList,s=t.pageIndex,l=t.canvasFactory,u=t.webGLContext,c=t.useRequestAnimationFrame,h=void 0!==c&&c,d=t.pdfBug,f=void 0!==d&&d;_classCallCheck(this,e),this.callback=n,this.params=i,this.objs=r,this.commonObjs=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=l,this.webGLContext=u,this._pdfBug=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=i.canvasContext.canvas}return _createClass(e,[{key:"initializeGraphics",value:function(e){var t=e.transparency,n=void 0!==t&&t,i=e.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(canvasInRendering.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");canvasInRendering.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var r=this.params,o=r.canvasContext,a=r.viewport,s=r.transform,l=r.imageLayer,u=r.background;this.gfx=new _canvas.CanvasGraphics(o,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,l,i),this.gfx.beginDrawing({transform:s,viewport:a,transparency:n,background:u}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&canvasInRendering.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame(function(){e._nextBound().catch(e.cancel.bind(e))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:(t=_asyncToGenerator(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.cancelled){e.next=2;break}return e.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&canvasInRendering.delete(this._canvas),this.callback()));case 4:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"completed",get:function(){return this.capability.promise.catch(function(){})}}]),e;var t}()),canvasInRendering,version="2.6.347";exports.version=version;var build="3be9c65f";exports.build=build},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var i,r=(i=n(2))&&i.__esModule?i:{default:i},o=n(5);function a(e){"@babel/helpers - typeof";return(a="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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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,i=u(e);if(t){var r=u(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}var p,A=function(){function e(t){var n=t.docId,i=t.onUnsupportedFeature,r=t.ownerDocument,a=void 0===r?globalThis.document:r;h(this,e),this.constructor===e&&(0,o.unreachable)("Cannot initialize BaseFontLoader."),this.docId=n,this._onUnsupportedFeature=i,this._document=a,this.nativeFontFaces=[],this.styleElement=null}return f(e,[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.push(e),this._document.fonts.add(e)}},{key:"insertRule",value:function(e){var t=this.styleElement;t||((t=this.styleElement=this._document.createElement("style")).id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),this._document.documentElement.getElementsByTagName("head")[0].appendChild(t));var n=t.sheet;n.insertRule(e,n.cssRules.length)}},{key:"clear",value:function(){var e=this;this.nativeFontFaces.forEach(function(t){e._document.fonts.delete(t)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){var e,t=(e=r.default.mark(function e(t){var n,i,a=this;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.attached&&!t.missingFile){e.next=2;break}return e.abrupt("return");case 2:if(t.attached=!0,!this.isFontLoadingAPISupported){e.next=19;break}if(!(n=t.createNativeFontFace())){e.next=18;break}return this.addNativeFontFace(n),e.prev=7,e.next=10,n.loaded;case 10:e.next=18;break;case 12:throw e.prev=12,e.t0=e.catch(7),this._onUnsupportedFeature({featureId:o.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,o.warn)("Failed to load font '".concat(n.family,"': '").concat(e.t0,"'.")),t.disableFontFace=!0,e.t0;case 18:return e.abrupt("return");case 19:if(!(i=t.createFontFaceRule())){e.next=26;break}if(this.insertRule(i),!this.isSyncFontLoadingSupported){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,new Promise(function(e){var n=a._queueLoadingCallback(e);a._prepareFontLoadEvent([i],[t],n)});case 26:case"end":return e.stop()}},e,this,[[7,12]])}),function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){c(o,i,r,a,s,"next",e)}function s(e){c(o,i,r,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}()},{key:"_queueLoadingCallback",value:function(e){(0,o.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(e,t,n){(0,o.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var e=void 0!==this._document&&!!this._document.fonts;return(0,o.shadow)(this,"isFontLoadingAPISupported",e)}},{key:"isSyncFontLoadingSupported",get:function(){(0,o.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,o.unreachable)("Abstract method `_loadTestFont`.")}}]),e}();t.FontLoader=p,t.FontLoader=p=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&&s(e,t)}(n,A);var t=l(n);function n(e){var i;return h(this,n),(i=t.call(this,e)).loadingContext={requests:[],nextRequestId:0},i.loadTestFontId=0,i}return f(n,[{key:"_queueLoadingCallback",value:function(e){var t=this.loadingContext,n={id:"pdfjs-font-loading-".concat(t.nextRequestId++),done:!1,complete:function(){for((0,o.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.requests.length>0&&t.requests[0].done;){var e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(n),n}},{key:"_prepareFontLoadEvent",value:function(e,t,n){var i,r,a=this;function s(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function l(e,t,n,i){return e.substring(0,t)+i+e.substring(t+n)}var u=this._document.createElement("canvas");u.width=1,u.height=1;var c=u.getContext("2d"),h=0;var d="lt".concat(Date.now()).concat(this.loadTestFontId++),f=this._loadTestFont,p=s(f=l(f,976,d.length,d),16);for(i=0,r=d.length-3;i<r;i+=4)p=p-1482184792+s(d,i)|0;i<d.length&&(p=p-1482184792+s(d+"XXX",i)|0),f=l(f,16,4,(0,o.string32)(p));var A="url(data:font/opentype;base64,".concat(btoa(f),");"),g='@font-face {font-family:"'.concat(d,'";src:').concat(A,"}");this.insertRule(g);var v=[];for(i=0,r=t.length;i<r;i++)v.push(t[i].loadedName);v.push(d);var m=this._document.createElement("div");for(m.style.visibility="hidden",m.style.width=m.style.height="10px",m.style.position="absolute",m.style.top=m.style.left="0px",i=0,r=v.length;i<r;++i){var y=this._document.createElement("span");y.textContent="Hi",y.style.fontFamily=v[i],m.appendChild(y)}this._document.body.appendChild(m),function e(t,n){if(++h>30)return(0,o.warn)("Load test font never loaded."),void n();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(d,function(){a._document.body.removeChild(m),n.complete()})}},{key:"isSyncFontLoadingSupported",get:function(){var e=!1;if("undefined"==typeof navigator)e=!0;else{var t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,o.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_loadTestFont",get:function(){return(0,o.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}}]),n}();var g=function(){function e(t,n){var i=n.isEvalSupported,r=void 0===i||i,o=n.disableFontFace,a=void 0!==o&&o,s=n.ignoreErrors,l=void 0!==s&&s,u=n.onUnsupportedFeature,c=void 0===u?null:u,d=n.fontRegistry,f=void 0===d?null:d;for(var p in h(this,e),this.compiledGlyphs=Object.create(null),t)this[p]=t[p];this.isEvalSupported=!1!==r,this.disableFontFace=!0===a,this.ignoreErrors=!0===l,this._onUnsupportedFeature=c,this.fontRegistry=f}return f(e,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var e=(0,o.bytesToString)(new Uint8Array(this.data)),t="url(data:".concat(this.mimetype,";base64,").concat(btoa(e),");"),n='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(t,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var n,i;try{n=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:o.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,o.warn)('getPathGenerator - ignoring character: "'.concat(e,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&o.IsEvalSupportedCached.value){for(var r,a="",s=0,l=n.length;s<l;s++)r=void 0!==(i=n[s]).args?i.args.join(","):"",a+="c."+i.cmd+"("+r+");\n";return this.compiledGlyphs[t]=new Function("c","size",a)}return this.compiledGlyphs[t]=function(e,t){for(var r=0,o=n.length;r<o;r++)"scale"===(i=n[r]).cmd&&(i.args=[t,-t]),e[i.cmd].apply(e,i.args)}}}]),e}();t.FontFaceObject=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeCMapReaderFactory=t.NodeCanvasFactory=void 0;var i=n(1),r=n(7),o=n(5);function a(e){"@babel/helpers - typeof";return(a="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 s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(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&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(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,i=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=function e(){f(this,e),(0,o.unreachable)("Not implemented: NodeCanvasFactory")};t.NodeCanvasFactory=p;var A=function e(){f(this,e),(0,o.unreachable)("Not implemented: NodeCMapReaderFactory")};t.NodeCMapReaderFactory=A,r.isNodeJS&&(t.NodeCanvasFactory=p=function(e){u(n,i.BaseCanvasFactory);var t=h(n);function n(){return f(this,n),t.apply(this,arguments)}return l(n,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var n=__webpack_require__(1).createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}}]),n}(),t.NodeCMapReaderFactory=A=function(e){u(n,i.BaseCMapReaderFactory);var t=h(n);function n(){return f(this,n),t.apply(this,arguments)}return l(n,[{key:"_fetchData",value:function(e,t){return new Promise(function(n,i){__webpack_require__(0).readFile(e,function(e,r){!e&&r?n({cMapData:new Uint8Array(r),compressionType:t}):i(new Error(e))})})}}]),n}())},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationStorage=void 0;var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}var t,n,r;return t=e,(n=[{key:"getOrCreateValue",value:function(e,t){return this._storage.has(e)?this._storage.get(e):(this._storage.set(e,t),t)}},{key:"setValue",value:function(e,t){this._storage.get(e)!==t&&this._setModified(),this._storage.set(e,t)}},{key:"getAll",value:function(){return 0===this._storage.size?null:Object.fromEntries(this._storage)}},{key:"_setModified",value:function(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}},{key:"resetModified",value:function(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}},{key:"size",get:function(){return this._storage.size}}])&&i(t.prototype,n),r&&i(t,r),e}();t.AnnotationStorage=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiCompatibilityParams=void 0;var i=n(7),r=Object.create(null);i.isNodeJS&&(r.disableFontFace=!0);var o=Object.freeze(r);t.apiCompatibilityParams=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var i=n(5),r=n(208);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(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 a(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,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var s=16;function l(e){e.mozCurrentTransform||(e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[],Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],a=e[5],s=t*r-n*i,l=n*i-t*r;return[r/s,n/l,i/l,t/s,(r*o-i*a)/l,(n*o-t*a)/s]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var n=this._transformMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5],this._originalTranslate(e,t)},e.scale=function(e,t){var n=this._transformMatrix;n[0]=n[0]*e,n[1]=n[1]*e,n[2]=n[2]*t,n[3]=n[3]*t,this._originalScale(e,t)},e.transform=function(t,n,i,r,o,a){var s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*n,s[1]*t+s[3]*n,s[0]*i+s[2]*r,s[1]*i+s[3]*r,s[0]*o+s[2]*a+s[4],s[1]*o+s[3]*a+s[5]],e._originalTransform(t,n,i,r,o,a)},e.setTransform=function(t,n,i,r,o,a){this._transformMatrix=[t,n,i,r,o,a],e._originalSetTransform(t,n,i,r,o,a)},e.rotate=function(e){var t=Math.cos(e),n=Math.sin(e),i=this._transformMatrix;this._transformMatrix=[i[0]*t+i[2]*n,i[1]*t+i[3]*n,i[0]*-n+i[2]*t,i[1]*-n+i[3]*t,i[4],i[5]],this._originalRotate(e)})}var u=function(){function e(e){this.canvasFactory=e,this.cache=Object.create(null)}return e.prototype={getCanvas:function(e,t,n,i){var r;return void 0!==this.cache[e]?(r=this.cache[e],this.canvasFactory.reset(r,t,n),r.context.setTransform(1,0,0,1,0,0)):(r=this.canvasFactory.create(t,n),this.cache[e]=r),i&&l(r.context),r},clear:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}},e}();var c=function(){function e(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=i.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=i.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null,this.transferMaps=null}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),h=function(){function e(e,t,n,i,r,o,a){this.ctx=e,this.current=new c,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=i,this.webGLContext=r,this.imageLayer=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=a,this.cachedCanvases=new u(this.canvasFactory),e&&l(e),this._cachedGetSinglePixelWidth=null}function t(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("undefined"!=typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var r,o,a,l,u,c,h,d,f,p=t.height,A=t.width,g=p%s,v=(p-g)/s,m=0===g?v:v+1,y=e.createImageData(A,s),_=0,b=t.data,w=y.data;if(n)switch(n.length){case 1:c=n[0],h=n[0],d=n[0],f=n[0];break;case 4:c=n[0],h=n[1],d=n[2],f=n[3]}if(t.kind===i.ImageKind.GRAYSCALE_1BPP){var x=b.byteLength,C=new Uint32Array(w.buffer,0,w.byteLength>>2),S=C.length,k=A+7>>3,B=4294967295,T=i.IsLittleEndianCached.value?4278190080:255;if(f&&255===f[0]&&0===f[255]){var E=[T,B];B=E[0],T=E[1]}for(o=0;o<m;o++){for(l=o<v?s:g,r=0,a=0;a<l;a++){for(var I=x-_,M=0,D=I>k?A:8*I-7,P=-8&D,F=0,O=0;M<P;M+=8)O=b[_++],C[r++]=128&O?B:T,C[r++]=64&O?B:T,C[r++]=32&O?B:T,C[r++]=16&O?B:T,C[r++]=8&O?B:T,C[r++]=4&O?B:T,C[r++]=2&O?B:T,C[r++]=1&O?B:T;for(;M<D;M++)0===F&&(O=b[_++],F=128),C[r++]=O&F?B:T,F>>=1}for(;r<S;)C[r++]=0;e.putImageData(y,0,o*s)}}else if(t.kind===i.ImageKind.RGBA_32BPP){var L=!!(c||h||d);for(a=0,u=A*s*4,o=0;o<v;o++){if(w.set(b.subarray(_,_+u)),_+=u,L)for(var N=0;N<u;N+=4)c&&(w[N+0]=c[w[N+0]]),h&&(w[N+1]=h[w[N+1]]),d&&(w[N+2]=d[w[N+2]]);e.putImageData(y,0,a),a+=s}if(o<m){if(u=A*g*4,w.set(b.subarray(_,_+u)),L)for(var R=0;R<u;R+=4)c&&(w[R+0]=c[w[R+0]]),h&&(w[R+1]=h[w[R+1]]),d&&(w[R+2]=d[w[R+2]]);e.putImageData(y,0,a)}}else{if(t.kind!==i.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));var U=!!(c||h||d);for(u=A*(l=s),o=0;o<m;o++){for(o>=v&&(u=A*(l=g)),r=0,a=u;a--;)w[r++]=b[_++],w[r++]=b[_++],w[r++]=b[_++],w[r++]=255;if(U)for(var Q=0;Q<r;Q+=4)c&&(w[Q+0]=c[w[Q+0]]),h&&(w[Q+1]=h[w[Q+1]]),d&&(w[Q+2]=d[w[Q+2]]);e.putImageData(y,0,o*s)}}}}function n(e,t){for(var n=t.height,i=t.width,r=n%s,o=(n-r)/s,a=0===r?o:o+1,l=e.createImageData(i,s),u=0,c=t.data,h=l.data,d=0;d<a;d++){for(var f=d<o?s:r,p=3,A=0;A<f;A++)for(var g=0,v=0;v<i;v++){if(!g){var m=c[u++];g=128}h[p]=m&g?0:255,p+=4,g>>=1}e.putImageData(l,0,d*s)}}function a(e,t){for(var n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],i=0,r=n.length;i<r;i++){var o=n[i];void 0!==e[o]&&(t[o]=e[o])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function h(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function d(e,t,n,i){for(var r=e.length,o=3;o<r;o+=4){var a=e[o];if(0===a)e[o-3]=t,e[o-2]=n,e[o-1]=i;else if(a<255){var s=255-a;e[o-3]=e[o-3]*a+t*s>>8,e[o-2]=e[o-2]*a+n*s>>8,e[o-1]=e[o-1]*a+i*s>>8}}}function f(e,t,n){for(var i=e.length,r=3;r<i;r+=4){var o=n?n[e[r]]:e[r];t[r]=t[r]*o*(1/255)|0}}function p(e,t,n){for(var i=e.length,r=3;r<i;r+=4){var o=77*e[r-3]+152*e[r-2]+28*e[r-1];t[r]=n?t[r]*n[o>>8]>>8:t[r]*o>>16}}function A(e,t,n,i){var r=t.canvas,o=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var a=t.backdrop||null;if(!t.transferMap&&i.isEnabled){var s=i.composeSMask({layer:n.canvas,mask:r,properties:{subtype:t.subtype,backdrop:a}});return e.setTransform(1,0,0,1,0,0),void e.drawImage(s,t.offsetX,t.offsetY)}!function(e,t,n,i,r,o,a){var s,l=!!o,u=l?o[0]:0,c=l?o[1]:0,h=l?o[2]:0;s="Luminosity"===r?p:f;for(var A=Math.min(i,Math.ceil(1048576/n)),g=0;g<i;g+=A){var v=Math.min(A,i-g),m=e.getImageData(0,g,n,v),y=t.getImageData(0,g,n,v);l&&d(m.data,u,c,h),s(m.data,y.data,a),e.putImageData(y,0,g)}}(o,n,r.width,r.height,t.subtype,a,t.transferMap),e.drawImage(r,0,0)}var g=["butt","round","square"],v=["miter","round","bevel"],m={},y={};for(var _ in e.prototype={beginDrawing:function(e){var t=e.transform,n=e.viewport,i=e.transparency,r=void 0!==i&&i,o=e.background,a=void 0===o?null:o,s=this.ctx.canvas.width,l=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=a||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,s,l),this.ctx.restore(),r){var u=this.cachedCanvases.getCanvas("transparent",s,l,!0);this.compositeCtx=this.ctx,this.transparentCanvas=u.canvas,this.ctx=u.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),h(this.ctx),t&&this.ctx.transform.apply(this.ctx,t),this.ctx.transform.apply(this.ctx,n.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(e,t,n,r){var a=e.argsArray,s=e.fnArray,l=t||0,u=a.length;if(u===l)return l;for(var c,h=u-l>10&&"function"==typeof n,d=h?Date.now()+15:0,f=0,p=this.commonObjs,A=this.objs;;){if(void 0!==r&&l===r.nextBreakPoint)return r.breakIt(l,n),l;if((c=s[l])!==i.OPS.dependency)this[c].apply(this,a[l]);else{var g,v=o(a[l]);try{for(v.s();!(g=v.n()).done;){var m=g.value,y=m.startsWith("g_")?p:A;if(!y.has(m))return y.get(m,n),l}}catch(e){v.e(e)}finally{v.f()}}if(++l===u)return l;if(h&&++f>10){if(Date.now()>d)return n(),l;f=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=g[e]},setLineJoin:function(e){this.ctx.lineJoin=v[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t],r=i[0],o=i[1];switch(r){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o[0],o[1]);break;case"CA":this.current.strokeAlpha=i[1];break;case"ca":this.current.fillAlpha=i[1],this.ctx.globalAlpha=i[1];break;case"BM":this.ctx.globalCompositeOperation=o;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=o?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break;case"TR":this.current.transferMaps=o}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,n=e.canvas.height,i="smaskGroupAt"+this.groupLevel,r=this.cachedCanvases.getCanvas(i,t,n,!0),o=this.ctx,s=o.mozCurrentTransform;this.ctx.save();var l=r.context;l.scale(1/e.scaleX,1/e.scaleY),l.translate(-e.offsetX,-e.offsetY),l.transform.apply(l,s),e.startTransformInverse=l.mozCurrentTransformInverse,a(o,l),this.ctx=l,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(o),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),A(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),a(e,this.ctx),this.current.resumeSMaskCtx=e;var t=i.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),A(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),a(e,this.ctx);var t=i.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(e,t,n,i,r,o){this.ctx.transform(e,t,n,i,r,o),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var n=this.ctx,r=this.current,o=r.x,a=r.y,s=0,l=0,u=e.length;s<u;s++)switch(0|e[s]){case i.OPS.rectangle:o=t[l++],a=t[l++];var c=t[l++],h=t[l++];0===c&&n.lineWidth<this.getSinglePixelWidth()&&(c=this.getSinglePixelWidth()),0===h&&n.lineWidth<this.getSinglePixelWidth()&&(h=this.getSinglePixelWidth());var d=o+c,f=a+h;n.moveTo(o,a),n.lineTo(d,a),n.lineTo(d,f),n.lineTo(o,f),n.lineTo(o,a),n.closePath();break;case i.OPS.moveTo:o=t[l++],a=t[l++],n.moveTo(o,a);break;case i.OPS.lineTo:o=t[l++],a=t[l++],n.lineTo(o,a);break;case i.OPS.curveTo:o=t[l+4],a=t[l+5],n.bezierCurveTo(t[l],t[l+1],t[l+2],t[l+3],o,a),l+=6;break;case i.OPS.curveTo2:n.bezierCurveTo(o,a,t[l],t[l+1],t[l+2],t[l+3]),o=t[l+2],a=t[l+3],l+=4;break;case i.OPS.curveTo3:o=t[l+2],a=t[l+3],n.bezierCurveTo(t[l],t[l+1],o,a,o,a),l+=4;break;case i.OPS.closePath:n.closePath()}r.setCurrentPoint(o,a)},closePath:function(){this.ctx.closePath()},stroke:function(e){e=void 0===e||e;var t=this.ctx,n=this.current.strokeColor;if(t.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(n&&n.hasOwnProperty("type")&&"Pattern"===n.type){t.save();var r=t.mozCurrentTransform,o=i.Util.singularValueDecompose2dScale(r)[0];t.strokeStyle=n.getPattern(t,this),t.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth*o),t.stroke(),t.restore()}else t.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth),t.stroke();e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e=void 0===e||e;var t=this.ctx,n=this.current.fillColor,i=!1;this.current.patternFill&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=n.getPattern(t,this),i=!0),this.contentVisible&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),i&&t.restore(),e&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=m},eoClip:function(){this.pendingClip=y},beginText:function(){this.current.textMatrix=i.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(var n=0;n<e.length;n++){var i=e[n];t.setTransform.apply(t,i.transform),t.translate(i.x,i.y),i.addToPath(t,i.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){var n=this.commonObjs.get(e),r=this.current;if(!n)throw new Error("Can't find font for ".concat(e));if(r.fontMatrix=n.fontMatrix?n.fontMatrix:i.FONT_IDENTITY_MATRIX,0!==r.fontMatrix[0]&&0!==r.fontMatrix[3]||(0,i.warn)("Invalid font matrix for font "+e),t<0?(t=-t,r.fontDirection=-1):r.fontDirection=1,this.current.font=n,this.current.fontSize=t,!n.isType3Font){var o=n.loadedName||"sans-serif",a="normal";n.black?a="900":n.bold&&(a="bold");var s=n.italic?"italic":"normal",l='"'.concat(o,'", ').concat(n.fallbackName),u=t;t<16?u=16:t>100&&(u=100),this.current.fontSizeScale=t/u,this.ctx.font="".concat(s," ").concat(a," ").concat(u,"px ").concat(l)}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,n,i,r,o){this.current.textMatrix=[e,t,n,i,r,o],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,n,r){var o,a=this.ctx,s=this.current,l=s.font,u=s.textRenderingMode,c=s.fontSize/s.fontSizeScale,h=u&i.TextRenderingMode.FILL_STROKE_MASK,d=!!(u&i.TextRenderingMode.ADD_TO_PATH_FLAG),f=s.patternFill&&!l.missingFile;((l.disableFontFace||d||f)&&(o=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||f?(a.save(),a.translate(t,n),a.beginPath(),o(a,c),r&&a.setTransform.apply(a,r),h!==i.TextRenderingMode.FILL&&h!==i.TextRenderingMode.FILL_STROKE||a.fill(),h!==i.TextRenderingMode.STROKE&&h!==i.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore()):(h!==i.TextRenderingMode.FILL&&h!==i.TextRenderingMode.FILL_STROKE||a.fillText(e,t,n),h!==i.TextRenderingMode.STROKE&&h!==i.TextRenderingMode.FILL_STROKE||a.strokeText(e,t,n)),d)&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:a.mozCurrentTransform,x:t,y:n,fontSize:c,addToPath:o})},get isFontSubpixelAAEnabled(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,n=!1,r=3;r<t.length;r+=4)if(t[r]>0&&t[r]<255){n=!0;break}return(0,i.shadow)(this,"isFontSubpixelAAEnabled",n)},showText:function(e){var t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);var r=t.fontSize;if(0!==r){var o,a=this.ctx,s=t.fontSizeScale,l=t.charSpacing,u=t.wordSpacing,c=t.fontDirection,h=t.textHScale*c,d=e.length,f=n.vertical,p=f?1:-1,A=n.defaultVMetrics,g=r*t.fontMatrix[0],v=t.textRenderingMode===i.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;if(a.save(),t.patternFill){a.save();var m=t.fillColor.getPattern(a,this);o=a.mozCurrentTransform,a.restore(),a.fillStyle=m}a.transform.apply(a,t.textMatrix),a.translate(t.x,t.y+t.textRise),c>0?a.scale(h,-1):a.scale(h,1);var y=t.lineWidth,_=t.textMatrixScale;if(0===_||0===y){var b=t.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;b!==i.TextRenderingMode.STROKE&&b!==i.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,y=.65*this.getSinglePixelWidth())}else y/=_;1!==s&&(a.scale(s,s),y/=s),a.lineWidth=y;var w,x=0;for(w=0;w<d;++w){var C=e[w];if((0,i.isNum)(C))x+=p*C*r/1e3;else{var S,k,B,T,E,I,M,D=!1,P=(C.isSpace?u:0)+l,F=C.fontChar,O=C.accent,L=C.width;if(f)E=C.vmetric||A,I=-(I=C.vmetric?E[1]:.5*L)*g,M=E[2]*g,L=E?-E[0]:L,S=I/s,k=(x+M)/s;else S=x/s,k=0;if(n.remeasure&&L>0){var N=1e3*a.measureText(F).width/r*s;if(L<N&&this.isFontSubpixelAAEnabled){var R=L/N;D=!0,a.save(),a.scale(R,1),S/=R}else L!==N&&(S+=(L-N)/2e3*r/s)}this.contentVisible&&(C.isInFont||n.missingFile)&&(v&&!O?a.fillText(F,S,k):(this.paintChar(F,S,k,o),O&&(B=S+r*O.offset.x/s,T=k-r*O.offset.y/s,this.paintChar(O.fontChar,B,T,o)))),x+=f?L*g-P*c:L*g+P*c,D&&a.restore()}}f?t.y-=x:t.x+=x*h,a.restore()}},showType3Text:function(e){var t,n,r,o,a=this.ctx,s=this.current,l=s.font,u=s.fontSize,c=s.fontDirection,h=l.vertical?1:-1,d=s.charSpacing,f=s.wordSpacing,p=s.textHScale*c,A=s.fontMatrix||i.FONT_IDENTITY_MATRIX,g=e.length;if(!(s.textRenderingMode===i.TextRenderingMode.INVISIBLE)&&0!==u){for(this._cachedGetSinglePixelWidth=null,a.save(),a.transform.apply(a,s.textMatrix),a.translate(s.x,s.y),a.scale(p,c),t=0;t<g;++t)if(n=e[t],(0,i.isNum)(n))o=h*n*u/1e3,this.ctx.translate(o,0),s.x+=o*p;else{var v=(n.isSpace?f:0)+d,m=l.charProcOperatorList[n.operatorListId];if(m)this.contentVisible&&(this.processingType3=n,this.save(),a.scale(u,u),a.transform.apply(a,A),this.executeOperatorList(m),this.restore()),r=i.Util.applyTransform([n.width,0],A)[0]*u+v,a.translate(r,0),s.x+=r*p;else(0,i.warn)('Type3 character "'.concat(n.operatorListId,'" is not available.'))}a.restore(),this.processingType3=null}},setCharWidth:function(e,t){},setCharWidthAndBounds:function(e,t,n,i,r,o){this.ctx.rect(n,i,r-n,o-i),this.clip(),this.endPath()},getColorN_Pattern:function(t){var n,i=this;if("TilingPattern"===t[0]){var o=t[1],a=this.baseTransform||this.ctx.mozCurrentTransform.slice(),s={createCanvasGraphics:function(t){return new e(t,i.commonObjs,i.objs,i.canvasFactory,i.webGLContext)}};n=new r.TilingPattern(t,o,this.ctx,s,a)}else n=(0,r.getShadingPatternFromIR)(t);return n},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(e,t,n){var r=i.Util.makeCssRgb(e,t,n);this.ctx.strokeStyle=r,this.current.strokeColor=r},setFillRGBColor:function(e,t,n){var r=i.Util.makeCssRgb(e,t,n);this.ctx.fillStyle=r,this.current.fillColor=r,this.current.patternFill=!1},shadingFill:function(e){if(this.contentVisible){var t=this.ctx;this.save();var n=(0,r.getShadingPatternFromIR)(e);t.fillStyle=n.getPattern(t,this,!0);var o=t.mozCurrentTransformInverse;if(o){var a=t.canvas,s=a.width,l=a.height,u=i.Util.applyTransform([0,0],o),c=i.Util.applyTransform([0,l],o),h=i.Util.applyTransform([s,0],o),d=i.Util.applyTransform([s,l],o),f=Math.min(u[0],c[0],h[0],d[0]),p=Math.min(u[1],c[1],h[1],d[1]),A=Math.max(u[0],c[0],h[0],d[0]),g=Math.max(u[1],c[1],h[1],d[1]);this.ctx.fillRect(f,p,A-f,g-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()}},beginInlineImage:function(){(0,i.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,i.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t)){var n=t[2]-t[0],i=t[3]-t[1];this.ctx.rect(t[0],t[1],n,i),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())},beginGroup:function(e){if(this.contentVisible){this.save();var t=this.ctx;e.isolated||(0,i.info)("TODO: Support non-isolated groups."),e.knockout&&(0,i.warn)("Knockout groups not supported.");var n=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");var r=i.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),o=[0,0,t.canvas.width,t.canvas.height];r=i.Util.intersect(r,o)||[0,0,0,0];var s=Math.floor(r[0]),l=Math.floor(r[1]),u=Math.max(Math.ceil(r[2])-s,1),c=Math.max(Math.ceil(r[3])-l,1),h=1,d=1;u>4096&&(h=u/4096,u=4096),c>4096&&(d=c/4096,c=4096);var f="groupAt"+this.groupLevel;e.smask&&(f+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(f,u,c,!0),A=p.context;A.scale(1/h,1/d),A.translate(-s,-l),A.transform.apply(A,n),e.smask?this.smaskStack.push({canvas:p.canvas,context:A,offsetX:s,offsetY:l,scaleX:h,scaleY:d,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(s,l),t.scale(h,d)),a(t,A),this.ctx=A,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null}},endGroup:function(e){if(this.contentVisible){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()}},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,n){if(this.save(),h(this.ctx),this.current=new c,Array.isArray(e)&&4===e.length){var i=e[2]-e[0],r=e[3]-e[1];this.ctx.rect(e[0],e[1],i,r),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,n)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(e){if(this.contentVisible){var t=this.ctx,i=e.width,r=e.height,o=this.current.fillColor,a=this.current.patternFill,s=this.processingType3;if(s&&void 0===s.compiled&&(s.compiled=i<=1e3&&r<=1e3?function(e){var t,n,i,r,o=e.width,a=e.height,s=o+1,l=new Uint8Array(s*(a+1)),u=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),c=o+7&-8,h=e.data,d=new Uint8Array(c*a),f=0;for(t=0,r=h.length;t<r;t++)for(var p=128,A=h[t];p>0;)d[f++]=A&p?0:255,p>>=1;var g=0;for(0!==d[f=0]&&(l[0]=1,++g),n=1;n<o;n++)d[f]!==d[f+1]&&(l[n]=d[f]?2:1,++g),f++;for(0!==d[f]&&(l[n]=2,++g),t=1;t<a;t++){i=t*s,d[(f=t*c)-c]!==d[f]&&(l[i]=d[f]?1:8,++g);var v=(d[f]?4:0)+(d[f-c]?8:0);for(n=1;n<o;n++)u[v=(v>>2)+(d[f+1]?4:0)+(d[f-c+1]?8:0)]&&(l[i+n]=u[v],++g),f++;if(d[f-c]!==d[f]&&(l[i+n]=d[f]?2:4,++g),g>1e3)return null}for(i=t*s,0!==d[f=c*(a-1)]&&(l[i]=8,++g),n=1;n<o;n++)d[f]!==d[f+1]&&(l[i+n]=d[f]?4:8,++g),f++;if(0!==d[f]&&(l[i+n]=4,++g),g>1e3)return null;var m=new Int32Array([0,s,-1,0,-s,0,0,0,1]),y=[];for(t=0;g&&t<=a;t++){for(var _=t*s,b=_+o;_<b&&!l[_];)_++;if(_!==b){var w,x=[_%s,t],C=l[_],S=_;do{var k=m[C];do{_+=k}while(!l[_]);5!==(w=l[_])&&10!==w?(C=w,l[_]=0):(C=w&51*C>>4,l[_]&=C>>2|C<<2),x.push(_%s),x.push(_/s|0),l[_]||--g}while(S!==_);y.push(x),--t}}return function(e){e.save(),e.scale(1/o,-1/a),e.translate(0,-a),e.beginPath();for(var t=0,n=y.length;t<n;t++){var i=y[t];e.moveTo(i[0],i[1]);for(var r=2,s=i.length;r<s;r+=2)e.lineTo(i[r],i[r+1])}e.fill(),e.beginPath(),e.restore()}}({data:e.data,width:i,height:r}):null),s&&s.compiled)s.compiled(t);else{var l=this.cachedCanvases.getCanvas("maskCanvas",i,r),u=l.context;u.save(),n(u,e),u.globalCompositeOperation="source-in",u.fillStyle=a?o.getPattern(u,this):o,u.fillRect(0,0,i,r),u.restore(),this.paintInlineImageXObject(l.canvas)}}},paintImageMaskXObjectRepeat:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){var s=e.width,l=e.height,u=this.current.fillColor,c=this.current.patternFill,h=this.cachedCanvases.getCanvas("maskCanvas",s,l),d=h.context;d.save(),n(d,e),d.globalCompositeOperation="source-in",d.fillStyle=c?u.getPattern(d,this):u,d.fillRect(0,0,s,l),d.restore();for(var f=this.ctx,p=0,A=a.length;p<A;p+=2)f.save(),f.transform(t,i,r,o,a[p],a[p+1]),f.scale(1,-1),f.drawImage(h.canvas,0,0,s,l,0,-1,1,1),f.restore()}},paintImageMaskXObjectGroup:function(e){if(this.contentVisible)for(var t=this.ctx,i=this.current.fillColor,r=this.current.patternFill,o=0,a=e.length;o<a;o++){var s=e[o],l=s.width,u=s.height,c=this.cachedCanvases.getCanvas("maskCanvas",l,u),h=c.context;h.save(),n(h,s),h.globalCompositeOperation="source-in",h.fillStyle=r?i.getPattern(h,this):i,h.fillRect(0,0,l,u),h.restore(),t.save(),t.transform.apply(t,s.transform),t.scale(1,-1),t.drawImage(c.canvas,0,0,l,u,0,-1,1,1),t.restore()}},paintImageXObject:function(e){if(this.contentVisible){var t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,i.warn)("Dependent image isn't ready yet")}},paintImageXObjectRepeat:function(e,t,n,r){if(this.contentVisible){var o=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);if(o){for(var a=o.width,s=o.height,l=[],u=0,c=r.length;u<c;u+=2)l.push({transform:[t,0,0,n,r[u],r[u+1]],x:0,y:0,w:a,h:s});this.paintInlineImageXObjectGroup(o,l)}else(0,i.warn)("Dependent image isn't ready yet")}},paintInlineImageXObject:function(e){if(this.contentVisible){var n=e.width,i=e.height,r=this.ctx;this.save(),r.scale(1/n,-1/i);var o,a,s=r.mozCurrentTransformInverse,l=s[0],u=s[1],c=Math.max(Math.sqrt(l*l+u*u),1),h=s[2],d=s[3],f=Math.max(Math.sqrt(h*h+d*d),1);if("function"==typeof HTMLElement&&e instanceof HTMLElement||!e.data)o=e;else{var p=(a=this.cachedCanvases.getCanvas("inlineImage",n,i)).context;t(p,e,this.current.transferMaps),o=a.canvas}for(var A=n,g=i,v="prescale1";c>2&&A>1||f>2&&g>1;){var m=A,y=g;c>2&&A>1&&(c/=A/(m=Math.ceil(A/2))),f>2&&g>1&&(f/=g/(y=Math.ceil(g/2))),(p=(a=this.cachedCanvases.getCanvas(v,m,y)).context).clearRect(0,0,m,y),p.drawImage(o,0,0,A,g,0,0,m,y),o=a.canvas,A=m,g=y,v="prescale1"===v?"prescale2":"prescale1"}if(r.drawImage(o,0,0,A,g,0,-i,n,i),this.imageLayer){var _=this.getCanvasPosition(0,-i);this.imageLayer.appendImage({imgData:e,left:_[0],top:_[1],width:n/s[0],height:i/s[3]})}this.restore()}},paintInlineImageXObjectGroup:function(e,n){if(this.contentVisible){var i=this.ctx,r=e.width,o=e.height,a=this.cachedCanvases.getCanvas("inlineImage",r,o);t(a.context,e,this.current.transferMaps);for(var s=0,l=n.length;s<l;s++){var u=n[s];if(i.save(),i.transform.apply(i,u.transform),i.scale(1,-1),i.drawImage(a.canvas,u.x,u.y,u.w,u.h,0,-1,1,1),this.imageLayer){var c=this.getCanvasPosition(u.x,u.y);this.imageLayer.appendImage({imgData:e,left:c[0],top:c[1],width:r,height:o})}i.restore()}}},paintSolidColorImageMask:function(){this.contentVisible&&this.ctx.fillRect(0,0,1,1)},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){this.markedContentStack.push({visible:!0})},beginMarkedContentProps:function(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()},endMarkedContent:function(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()},beginCompat:function(){},endCompat:function(){},consumePath:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===y?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth:function(e){if(null===this._cachedGetSinglePixelWidth){var t=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1],t[2]*t[2]+t[3]*t[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(e,t){var n=this.ctx.mozCurrentTransform;return[n[0]*e+n[2]*t+n[4],n[1]*e+n[3]*t+n[5]]},isContentVisible:function(){for(var e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}},i.OPS)e.prototype[i.OPS[_]]=e.prototype[_];return e}();t.CanvasGraphics=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPatternFromIR=function(e){var t=r[e[0]];if(!t)throw new Error("Unknown IR type: ".concat(e[0]));return t.fromIR(e)},t.TilingPattern=void 0;var i=n(5),r={};function o(e,t){if(t&&"undefined"!=typeof Path2D){var n=t[2]-t[0],i=t[3]-t[1],r=new Path2D;r.rect(t[0],t[1],n,i),e.clip(r)}}r.RadialAxial={fromIR:function(e){var t=e[1],n=e[2],i=e[3],r=e[4],a=e[5],s=e[6],l=e[7];return{type:"Pattern",getPattern:function(e){var u;o(e,n),"axial"===t?u=e.createLinearGradient(r[0],r[1],a[0],a[1]):"radial"===t&&(u=e.createRadialGradient(r[0],r[1],s,a[0],a[1],l));for(var c=0,h=i.length;c<h;++c){var d=i[c];u.addColorStop(d[0],d[1])}return u}}}};var a=function(){function e(e,t,n,i,r,o,a,s){var l,u=t.coords,c=t.colors,h=e.data,d=4*e.width;u[n+1]>u[i+1]&&(l=n,n=i,i=l,l=o,o=a,a=l),u[i+1]>u[r+1]&&(l=i,i=r,r=l,l=a,a=s,s=l),u[n+1]>u[i+1]&&(l=n,n=i,i=l,l=o,o=a,a=l);var f=(u[n]+t.offsetX)*t.scaleX,p=(u[n+1]+t.offsetY)*t.scaleY,A=(u[i]+t.offsetX)*t.scaleX,g=(u[i+1]+t.offsetY)*t.scaleY,v=(u[r]+t.offsetX)*t.scaleX,m=(u[r+1]+t.offsetY)*t.scaleY;if(!(p>=m))for(var y,_,b,w,x,C,S,k,B=c[o],T=c[o+1],E=c[o+2],I=c[a],M=c[a+1],D=c[a+2],P=c[s],F=c[s+1],O=c[s+2],L=Math.round(p),N=Math.round(m),R=L;R<=N;R++){if(R<g){var U=void 0;y=f-(f-A)*(U=R<p?0:p===g?1:(p-R)/(p-g)),_=B-(B-I)*U,b=T-(T-M)*U,w=E-(E-D)*U}else{var Q=void 0;y=A-(A-v)*(Q=R>m?1:g===m?0:(g-R)/(g-m)),_=I-(I-P)*Q,b=M-(M-F)*Q,w=D-(D-O)*Q}var H=void 0;x=f-(f-v)*(H=R<p?0:R>m?1:(p-R)/(p-m)),C=B-(B-P)*H,S=T-(T-F)*H,k=E-(E-O)*H;for(var j=Math.round(Math.min(y,x)),V=Math.round(Math.max(y,x)),z=d*R+4*j,$=j;$<=V;$++)(H=(y-$)/(y-x))<0?H=0:H>1&&(H=1),h[z++]=_-(_-C)*H|0,h[z++]=b-(b-S)*H|0,h[z++]=w-(w-k)*H|0,h[z++]=255}}function t(t,n,i){var r,o,a=n.coords,s=n.colors;switch(n.type){case"lattice":var l=n.verticesPerRow,u=Math.floor(a.length/l)-1,c=l-1;for(r=0;r<u;r++)for(var h=r*l,d=0;d<c;d++,h++)e(t,i,a[h],a[h+1],a[h+l],s[h],s[h+1],s[h+l]),e(t,i,a[h+l+1],a[h+1],a[h+l],s[h+l+1],s[h+1],s[h+l]);break;case"triangles":for(r=0,o=a.length;r<o;r+=3)e(t,i,a[r],a[r+1],a[r+2],s[r],s[r+1],s[r+2]);break;default:throw new Error("illegal figure")}}return function(e,n,i,r,o,a,s,l){var u,c,h,d,f=Math.floor(e[0]),p=Math.floor(e[1]),A=Math.ceil(e[2])-f,g=Math.ceil(e[3])-p,v=Math.min(Math.ceil(Math.abs(A*n[0]*1.1)),3e3),m=Math.min(Math.ceil(Math.abs(g*n[1]*1.1)),3e3),y=A/v,_=g/m,b={coords:i,colors:r,offsetX:-f,offsetY:-p,scaleX:1/y,scaleY:1/_},w=v+4,x=m+4;if(l.isEnabled)u=l.drawFigures({width:v,height:m,backgroundColor:a,figures:o,context:b}),(c=s.getCanvas("mesh",w,x,!1)).context.drawImage(u,2,2),u=c.canvas;else{var C=(c=s.getCanvas("mesh",w,x,!1)).context,S=C.createImageData(v,m);if(a){var k=S.data;for(h=0,d=k.length;h<d;h+=4)k[h]=a[0],k[h+1]=a[1],k[h+2]=a[2],k[h+3]=255}for(h=0;h<o.length;h++)t(S,o[h],b);C.putImageData(S,2,2),u=c.canvas}return{canvas:u,offsetX:f-2*y,offsetY:p-2*_,scaleX:y,scaleY:_}}}();r.Mesh={fromIR:function(e){var t=e[2],n=e[3],r=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return{type:"Pattern",getPattern:function(e,h,d){var f;if(o(e,u),d)f=i.Util.singularValueDecompose2dScale(e.mozCurrentTransform);else if(f=i.Util.singularValueDecompose2dScale(h.baseTransform),l){var p=i.Util.singularValueDecompose2dScale(l);f=[f[0]*p[0],f[1]*p[1]]}var A=a(s,f,t,n,r,d?null:c,h.cachedCanvases,h.webGLContext);return d||(e.setTransform.apply(e,h.baseTransform),l&&e.transform.apply(e,l)),e.translate(A.offsetX,A.offsetY),e.scale(A.scaleX,A.scaleY),e.createPattern(A.canvas,"no-repeat")}}}},r.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var s=function(){var e=1,t=2;function n(e,t,n,i,r){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=i,this.baseTransform=r,this.type="Pattern",this.ctx=n}return n.prototype={createPatternCanvas:function(e){var t=this.operatorList,n=this.bbox,r=this.xstep,o=this.ystep,a=this.paintType,s=this.tilingType,l=this.color,u=this.canvasGraphicsFactory;(0,i.info)("TilingType: "+s);var c=n[0],h=n[1],d=n[2],f=n[3],p=i.Util.singularValueDecompose2dScale(this.matrix),A=i.Util.singularValueDecompose2dScale(this.baseTransform),g=[p[0]*A[0],p[1]*A[1]],v=this.getSizeAndScale(r,this.ctx.canvas.width,g[0]),m=this.getSizeAndScale(o,this.ctx.canvas.height,g[1]),y=e.cachedCanvases.getCanvas("pattern",v.size,m.size,!0),_=y.context,b=u.createCanvasGraphics(_);return b.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(b,a,l),b.transform(v.scale,0,0,m.scale,0,0),b.transform(1,0,0,1,-c,-h),this.clipBbox(b,n,c,h,d,f),b.executeOperatorList(t),this.ctx.transform(1,0,0,1,c,h),this.ctx.scale(1/v.scale,1/m.scale),y.canvas},getSizeAndScale:function(e,t,n){e=Math.abs(e);var i=Math.max(3e3,t),r=Math.ceil(e*n);return r>=i?r=i:n=r/e,{scale:n,size:r}},clipBbox:function(e,t,n,i,r,o){if(Array.isArray(t)&&4===t.length){var a=r-n,s=o-i;e.ctx.rect(n,i,a,s),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(n,r,o){var a=n.ctx,s=n.current;switch(r){case e:var l=this.ctx;a.fillStyle=l.fillStyle,a.strokeStyle=l.strokeStyle,s.fillColor=l.fillStyle,s.strokeColor=l.strokeStyle;break;case t:var u=i.Util.makeCssRgb(o[0],o[1],o[2]);a.fillStyle=u,a.strokeStyle=u,s.fillColor=u,s.strokeColor=u;break;default:throw new i.FormatError("Unsupported paint type: ".concat(r))}},getPattern:function(e,t){(e=this.ctx).setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var n=this.createPatternCanvas(t);return e.createPattern(n,"repeat")}},n}();t.TilingPattern=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var i=Object.create(null);t.GlobalWorkerOptions=i,i.workerPort=void 0===i.workerPort?null:i.workerPort,i.workerSrc=void 0===i.workerSrc?"":i.workerSrc},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var i,r=(i=n(2))&&i.__esModule?i:{default:i},o=n(5);function a(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e){"@babel/helpers - typeof";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})(e)}var u={UNKNOWN:0,DATA:1,ERROR:2},c=1,h=2,d=3,f=4,p=5,A=6,g=7,v=8;function m(e){if("object"!==l(e)||null===e)return e;switch(e.name){case"AbortException":return new o.AbortException(e.message);case"MissingPDFException":return new o.MissingPDFException(e.message);case"UnexpectedResponseException":return new o.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new o.UnknownErrorException(e.message,e.details);default:return new o.UnknownErrorException(e.message,e.toString())}}var y=function(){function e(t,n,i){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceName=t,this.targetName=n,this.comObj=i,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===r.sourceName)if(t.stream)r._processStreamMessage(t);else if(t.callback){var n=t.callbackId,o=r.callbackCapabilities[n];if(!o)throw new Error("Cannot resolve callback ".concat(n));if(delete r.callbackCapabilities[n],t.callback===u.DATA)o.resolve(t.data);else{if(t.callback!==u.ERROR)throw new Error("Unexpected callback case");o.reject(m(t.reason))}}else{var a=r.actionHandler[t.action];if(!a)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var s=r.sourceName,l=t.sourceName;new Promise(function(e){e(a(t.data))}).then(function(e){i.postMessage({sourceName:s,targetName:l,callback:u.DATA,callbackId:t.callbackId,data:e})},function(e){i.postMessage({sourceName:s,targetName:l,callback:u.ERROR,callbackId:t.callbackId,reason:m(e)})})}else t.streamId?r._createStreamSink(t):a(t.data)}},i.addEventListener("message",this._onComObjOnMessage)}var t,n,i;return t=e,(n=[{key:"on",value:function(e,t){var n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called "'.concat(e,'"'));n[e]=t}},{key:"send",value:function(e,t,n){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}},{key:"sendWithPromise",value:function(e,t,n){var i=this.callbackId++,r=(0,o.createPromiseCapability)();this.callbackCapabilities[i]=r;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(e){r.reject(e)}return r.promise}},{key:"sendWithStream",value:function(e,t,n,i){var r=this,a=this.streamId++,s=this.sourceName,l=this.targetName,u=this.comObj;return new ReadableStream({start:function(n){var u=(0,o.createPromiseCapability)();return r.streamControllers[a]={controller:n,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},r._postMessage({sourceName:s,targetName:l,action:e,streamId:a,data:t,desiredSize:n.desiredSize},i),u.promise},pull:function(e){var t=(0,o.createPromiseCapability)();return r.streamControllers[a].pullCall=t,u.postMessage({sourceName:s,targetName:l,stream:A,streamId:a,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,o.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,o.createPromiseCapability)();return r.streamControllers[a].cancelCall=t,r.streamControllers[a].isClosed=!0,u.postMessage({sourceName:s,targetName:l,stream:c,streamId:a,reason:m(e)}),t.promise}},n)}},{key:"_createStreamSink",value:function(e){var t=this,n=this.actionHandler[e.action],i=e.streamId,r=this.sourceName,a=e.sourceName,s=this.comObj,l={enqueue:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var l=this.desiredSize;this.desiredSize-=n,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,o.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:r,targetName:a,stream:f,streamId:i,chunk:e},s)}},close:function(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:r,targetName:a,stream:d,streamId:i}),delete t.streamSinks[i])},error:function(e){(0,o.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:r,targetName:a,stream:p,streamId:i,reason:m(e)}))},sinkCapability:(0,o.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[i]=l,new Promise(function(t){t(n(e.data,l))}).then(function(){s.postMessage({sourceName:r,targetName:a,stream:v,streamId:i,success:!0})},function(e){s.postMessage({sourceName:r,targetName:a,stream:v,streamId:i,reason:m(e)})})}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,n=this.sourceName,i=e.sourceName,r=this.comObj;switch(e.stream){case v:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(m(e.reason));break;case g:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(m(e.reason));break;case A:if(!this.streamSinks[t]){r.postMessage({sourceName:n,targetName:i,stream:g,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var a=this.streamSinks[e.streamId].onPull;new Promise(function(e){e(a&&a())}).then(function(){r.postMessage({sourceName:n,targetName:i,stream:g,streamId:t,success:!0})},function(e){r.postMessage({sourceName:n,targetName:i,stream:g,streamId:t,reason:m(e)})});break;case f:if((0,o.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case d:if((0,o.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case p:(0,o.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(m(e.reason)),this._deleteStreamController(t);break;case h:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(m(e.reason)),this._deleteStreamController(t);break;case c:if(!this.streamSinks[t])break;var s=this.streamSinks[e.streamId].onCancel;new Promise(function(t){t(s&&s(m(e.reason)))}).then(function(){r.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,success:!0})},function(e){r.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,reason:m(e)})}),this.streamSinks[t].sinkCapability.reject(m(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e,t=(e=r.default.mark(function e(t){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map(function(e){return e&&e.promise}));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}},e,this)}),function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function s(e){a(o,i,r,s,l,"next",e)}function l(e){a(o,i,r,s,l,"throw",e)}s(void 0)})});return function(e){return t.apply(this,arguments)}}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}])&&s(t.prototype,n),i&&s(t,i),e}();t.MessageHandler=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var i=n(5),r=n(212);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,i.assert)("string"==typeof t,"Metadata: input is not a string"),t=this._repair(t);var n=(new r.SimpleXMLParser).parseFromString(t);this._metadataMap=new Map,n&&this._parse(n)}var t,n,a;return t=e,(n=[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(e,t){for(var n=t.replace(/\\([0-3])([0-7])([0-7])/g,function(e,t,n,i){return String.fromCharCode(64*t+8*n+1*i)}).replace(/&(amp|apos|gt|lt|quot);/g,function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))}),i="",r=0,o=n.length;r<o;r+=2){var a=256*n.charCodeAt(r)+n.charCodeAt(r+1);i+=a>=32&&a<127&&60!==a&&62!==a&&38!==a?String.fromCharCode(a):"&#x"+(65536+a).toString(16).substring(1)+";"}return">"+i})}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase())for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName.toLowerCase();)t=t.nextSibling;var n=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===n&&t.hasChildNodes())for(var i=t.childNodes,r=0,o=i.length;r<o;r++){var a=i[r];if("rdf:description"===a.nodeName.toLowerCase())for(var s=0,l=a.childNodes.length;s<l;s++)if("#text"!==a.childNodes[s].nodeName.toLowerCase()){var u=a.childNodes[s],c=u.nodeName.toLowerCase();this._metadataMap.set(c,u.textContent.trim())}}}},{key:"get",value:function(e){return this._metadataMap.has(e)?this._metadataMap.get(e):null}},{key:"getAll",value:function(){return Object.fromEntries(this._metadataMap)}},{key:"has",value:function(e){return this._metadataMap.has(e)}}])&&o(t.prototype,n),a&&o(t,a),e}();t.Metadata=a},function(e,t,n){"use strict";function i(e){"@babel/helpers - typeof";return(i="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 r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(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 o(e,t)}(e,t)||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.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleXMLParser=void 0;var f={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function p(e,t){var n=e[t];return" "===n||"\n"===n||"\r"===n||"\t"===n}var A=function(){function e(){c(this,e)}return d(e,[{key:"_resolveEntities",value:function(e){var t=this;return e.replace(/&([^;]+);/g,function(e,n){if("#x"===n.substring(0,2))return String.fromCharCode(parseInt(n.substring(2),16));if("#"===n.substring(0,1))return String.fromCharCode(parseInt(n.substring(1),10));switch(n){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return t.onResolveEntity(n)})}},{key:"_parseContent",value:function(e,t){var n=[],i=t;function r(){for(;i<e.length&&p(e,i);)++i}for(;i<e.length&&!p(e,i)&&">"!==e[i]&&"/"!==e[i];)++i;var o=e.substring(t,i);for(r();i<e.length&&">"!==e[i]&&"/"!==e[i]&&"?"!==e[i];){r();for(var a,s="";i<e.length&&!p(e,i)&&"="!==e[i];)s+=e[i],++i;if(r(),"="!==e[i])return null;++i,r();var l=e[i];if('"'!==l&&"'"!==l)return null;var u=e.indexOf(l,++i);if(u<0)return null;a=e.substring(i,u),n.push({name:s,value:this._resolveEntities(a)}),i=u+1,r()}return{name:o,attributes:n,parsed:i-t}}},{key:"_parseProcessingInstruction",value:function(e,t){var n=t;for(;n<e.length&&!p(e,n)&&">"!==e[n]&&"/"!==e[n];)++n;var i=e.substring(t,n);!function(){for(;n<e.length&&p(e,n);)++n}();for(var r=n;n<e.length&&("?"!==e[n]||">"!==e[n+1]);)++n;return{name:i,value:e.substring(r,n),parsed:n-t}}},{key:"parseXml",value:function(e){for(var t=0;t<e.length;){var n=t;if("<"===e[t]){var i=void 0;switch(e[++n]){case"/":if(++n,(i=e.indexOf(">",n))<0)return void this.onError(f.UnterminatedElement);this.onEndElement(e.substring(n,i)),n=i+1;break;case"?":++n;var r=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+r.parsed,n+r.parsed+2))return void this.onError(f.UnterminatedXmlDeclaration);this.onPi(r.name,r.value),n+=r.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if((i=e.indexOf("--\x3e",n+3))<0)return void this.onError(f.UnterminatedComment);this.onComment(e.substring(n+3,i)),n=i+3}else if("[CDATA["===e.substring(n+1,n+8)){if((i=e.indexOf("]]>",n+8))<0)return void this.onError(f.UnterminatedCdat);this.onCdata(e.substring(n+8,i)),n=i+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(f.MalformedElement);var o=e.indexOf("[",n+8),a=!1;if((i=e.indexOf(">",n+8))<0)return void this.onError(f.UnterminatedDoctypeDeclaration);if(o>0&&i>o){if((i=e.indexOf("]>",n+8))<0)return void this.onError(f.UnterminatedDoctypeDeclaration);a=!0}var s=e.substring(n+8,i+(a?1:0));this.onDoctype(s),n=i+(a?2:1)}break;default:var l=this._parseContent(e,n);if(null===l)return void this.onError(f.MalformedElement);var u=!1;if("/>"===e.substring(n+l.parsed,n+l.parsed+2))u=!0;else if(">"!==e.substring(n+l.parsed,n+l.parsed+1))return void this.onError(f.UnterminatedElement);this.onBeginElement(l.name,l.attributes,u),n+=l.parsed+(u?2:1)}}else{for(;n<e.length&&"<"!==e[n];)n++;var c=e.substring(t,n);this.onText(this._resolveEntities(c))}t=n}}},{key:"onResolveEntity",value:function(e){return"&".concat(e,";")}},{key:"onPi",value:function(e,t){}},{key:"onComment",value:function(e){}},{key:"onCdata",value:function(e){}},{key:"onDoctype",value:function(e){}},{key:"onText",value:function(e){}},{key:"onBeginElement",value:function(e,t,n){}},{key:"onEndElement",value:function(e){}},{key:"onError",value:function(e){}}]),e}(),g=function(){function e(t,n){c(this,e),this.nodeName=t,this.nodeValue=n,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return d(e,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map(function(e){return e.textContent}).join(""):this.nodeValue||""}}]),e}(),v=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&&s(e,t)}(n,A);var t=l(n);function n(){var e;return c(this,n),(e=t.call(this))._currentFragment=null,e._stack=null,e._errorCode=f.NoError,e}return d(n,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=f.NoError,this.parseXml(e),this._errorCode===f.NoError){var t=r(this._currentFragment,1)[0];if(t)return{documentElement:t}}}},{key:"onResolveEntity",value:function(e){switch(e){case"apos":return"'"}return a(u(n.prototype),"onResolveEntity",this).call(this,e)}},{key:"onText",value:function(e){if(!function(e){for(var t=0,n=e.length;t<n;t++)if(!p(e,t))return!1;return!0}(e)){var t=new g("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new g("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,n){var i=new g(e);i.childNodes=[],this._currentFragment.push(i),n||(this._stack.push(this._currentFragment),this._currentFragment=i.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment[this._currentFragment.length-1];if(t)for(var n=0,i=t.childNodes.length;n<i;n++)t.childNodes[n].parentNode=t}},{key:"onError",value:function(e){this._errorCode=e}}]),n}();t.SimpleXMLParser=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var i=n(5);function r(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(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 o(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 a,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function e(t,n){s(this,e),this.visible=!0,this.name=t,this.intent=n},u=function(){function e(t){if(s(this,e),this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==t){this.name=t.name,this.creator=t.creator,this._order=t.order;var n,i=r(t.groups);try{for(i.s();!(n=i.n()).done;){var o=n.value;this._groups.set(o.id,new l(o.name,o.intent))}}catch(e){i.e(e)}finally{i.f()}if("OFF"===t.baseState){var a,u=r(this._groups);try{for(u.s();!(a=u.n()).done;){a.value.visible=!1}}catch(e){u.e(e)}finally{u.f()}}var c,h=r(t.on);try{for(h.s();!(c=h.n()).done;){var d=c.value;this._groups.get(d).visible=!0}}catch(e){h.e(e)}finally{h.f()}var f,p=r(t.off);try{for(p.s();!(f=p.n()).done;){var A=f.value;this._groups.get(A).visible=!1}}catch(e){p.e(e)}finally{p.f()}}}var t,n,o;return t=e,(n=[{key:"isVisible",value:function(e){if("OCG"===e.type)return this._groups.has(e.id)?this._groups.get(e.id).visible:((0,i.warn)("Optional content group not found: ".concat(e.id)),!0);if("OCMD"===e.type){if(e.expression&&(0,i.warn)("Visibility expression not supported yet."),!e.policy||"AnyOn"===e.policy){var t,n=r(e.ids);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(!this._groups.has(o))return(0,i.warn)("Optional content group not found: ".concat(o)),!0;if(this._groups.get(o).visible)return!0}}catch(e){n.e(e)}finally{n.f()}return!1}if("AllOn"===e.policy){var a,s=r(e.ids);try{for(s.s();!(a=s.n()).done;){var l=a.value;if(!this._groups.has(l))return(0,i.warn)("Optional content group not found: ".concat(l)),!0;if(!this._groups.get(l).visible)return!1}}catch(e){s.e(e)}finally{s.f()}return!0}if("AnyOff"===e.policy){var u,c=r(e.ids);try{for(c.s();!(u=c.n()).done;){var h=u.value;if(!this._groups.has(h))return(0,i.warn)("Optional content group not found: ".concat(h)),!0;if(!this._groups.get(h).visible)return!0}}catch(e){c.e(e)}finally{c.f()}return!1}if("AllOff"===e.policy){var d,f=r(e.ids);try{for(f.s();!(d=f.n()).done;){var p=d.value;if(!this._groups.has(p))return(0,i.warn)("Optional content group not found: ".concat(p)),!0;if(this._groups.get(p).visible)return!1}}catch(e){f.e(e)}finally{f.f()}return!0}return(0,i.warn)("Unknown optional content policy ".concat(e.policy,".")),!0}return(0,i.warn)("Unknown group type ".concat(e.type,".")),!0}},{key:"setVisibility",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._groups.has(e)?this._groups.get(e).visible=!!t:(0,i.warn)("Optional content group not found: ".concat(e))}},{key:"getOrder",value:function(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}},{key:"getGroups",value:function(){return this._groups.size?Object.fromEntries(this._groups):null}},{key:"getGroup",value:function(e){return this._groups.get(e)||null}}])&&a(t.prototype,n),o&&a(t,o),e}();t.OptionalContentConfig=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var i,r=(i=n(2))&&i.__esModule?i:{default:i},o=n(5);function a(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function s(e){a(o,i,r,s,l,"next",e)}function l(e){a(o,i,r,s,l,"throw",e)}s(void 0)})}}function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(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 u(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,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}var f=function(){function e(t,n){var i=this;c(this,e),(0,o.assert)(n,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=t.progressiveDone||!1;var r=t.initialData;if(r&&r.length>0){var a=new Uint8Array(r).buffer;this._queuedChunks.push(a)}this._pdfDataRangeTransport=n,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(e,t){i._onReceiveData({begin:e,chunk:t})}),this._pdfDataRangeTransport.addProgressListener(function(e,t){i._onProgress({loaded:e,total:t})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(e){i._onReceiveData({chunk:e})}),this._pdfDataRangeTransport.addProgressiveDoneListener(function(){i._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}return d(e,[{key:"_onReceiveData",value:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var n=this._rangeReaders.some(function(n){return n._begin===e.begin&&(n._enqueue(t),!0)});(0,o.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_onProgress",value:function(e){if(void 0===e.total){var t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{var n=this._fullRequestReader;n&&n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,o.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new p(this,e,this._progressiveDone)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=new A(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeReaders.slice(0).forEach(function(t){t.cancel(e)}),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFDataTransportStream=f;var p=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];c(this,e),this._stream=t,this._done=i||!1,this._filename=null,this._queuedChunks=n||[],this._loaded=0;var r,o=l(this._queuedChunks);try{for(o.s();!(r=o.n()).done;){var a=r.value;this._loaded+=a.byteLength}}catch(e){o.e(e)}finally{o.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return d(e,[{key:"_enqueue",value:function(e){if(!this._done){if(this._requests.length>0)this._requests.shift().resolve({value:e,done:!1});else this._queuedChunks.push(e);this._loaded+=e.byteLength}}},{key:"read",value:function(){var e=s(r.default.mark(function e(){var t,n;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return n=(0,o.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 8:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),e}(),A=function(){function e(t,n,i){c(this,e),this._stream=t,this._begin=n,this._end=i,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return d(e,[{key:"_enqueue",value:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else this._requests.shift().resolve({value:e,done:!1}),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[];this._done=!0,this._stream._removeRangeReader(this)}}},{key:"read",value:function(){var e=s(r.default.mark(function e(){var t,n;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,o.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var i=n(5);function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function e(t){var n=t.enable,i=void 0!==n&&n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._enabled=!0===i}var t,n,o;return t=e,(n=[{key:"composeSMask",value:function(e){var t=e.layer,n=e.mask,i=e.properties;return a.composeSMask(t,n,i)}},{key:"drawFigures",value:function(e){var t=e.width,n=e.height,i=e.backgroundColor,r=e.figures,o=e.context;return a.drawFigures(t,n,i,r,o)}},{key:"clear",value:function(){a.cleanup()}},{key:"isEnabled",get:function(){var e=this._enabled;return e&&(e=a.tryInitGL()),(0,i.shadow)(this,"isEnabled",e)}}])&&r(t.prototype,n),o&&r(t,o),e}();t.WebGLContext=o;var a=function(){function e(e,t,n){var i=e.createShader(n);if(e.shaderSource(i,t),e.compileShader(i),!e.getShaderParameter(i,e.COMPILE_STATUS)){var r=e.getShaderInfoLog(i);throw new Error("Error during shader compilation: "+r)}return i}function t(t,n){return e(t,n,t.VERTEX_SHADER)}function n(t,n){return e(t,n,t.FRAGMENT_SHADER)}function i(e,t){for(var n=e.createProgram(),i=0,r=t.length;i<r;++i)e.attachShader(n,t[i]);if(e.linkProgram(n),!e.getProgramParameter(n,e.LINK_STATUS)){var o=e.getProgramInfoLog(n);throw new Error("Error during program linking: "+o)}return n}function r(e,t,n){e.activeTexture(n);var i=e.createTexture();return e.bindTexture(e.TEXTURE_2D,i),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),i}var o,a;function s(){o||(a=document.createElement("canvas"),o=a.getContext("webgl",{premultipliedalpha:!1}))}var l=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",u=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",c=null;var h=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",d=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",f=null;return{tryInitGL:function(){try{return s(),!!o}catch(e){}return!1},composeSMask:function(e,h,d){var f=e.width,p=e.height;c||function(){var e,r;s(),e=a,a=null,r=o,o=null;var h=i(r,[t(r,l),n(r,u)]);r.useProgram(h);var d={};d.gl=r,d.canvas=e,d.resolutionLocation=r.getUniformLocation(h,"u_resolution"),d.positionLocation=r.getAttribLocation(h,"a_position"),d.backdropLocation=r.getUniformLocation(h,"u_backdrop"),d.subtypeLocation=r.getUniformLocation(h,"u_subtype");var f=r.getAttribLocation(h,"a_texCoord"),p=r.getUniformLocation(h,"u_image"),A=r.getUniformLocation(h,"u_mask"),g=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,g),r.bufferData(r.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),r.STATIC_DRAW),r.enableVertexAttribArray(f),r.vertexAttribPointer(f,2,r.FLOAT,!1,0,0),r.uniform1i(p,0),r.uniform1i(A,1),c=d}();var A=c,g=A.canvas,v=A.gl;g.width=f,g.height=p,v.viewport(0,0,v.drawingBufferWidth,v.drawingBufferHeight),v.uniform2f(A.resolutionLocation,f,p),d.backdrop?v.uniform4f(A.resolutionLocation,d.backdrop[0],d.backdrop[1],d.backdrop[2],1):v.uniform4f(A.resolutionLocation,0,0,0,0),v.uniform1i(A.subtypeLocation,"Luminosity"===d.subtype?1:0);var m=r(v,e,v.TEXTURE0),y=r(v,h,v.TEXTURE1),_=v.createBuffer();return v.bindBuffer(v.ARRAY_BUFFER,_),v.bufferData(v.ARRAY_BUFFER,new Float32Array([0,0,f,0,0,p,0,p,f,0,f,p]),v.STATIC_DRAW),v.enableVertexAttribArray(A.positionLocation),v.vertexAttribPointer(A.positionLocation,2,v.FLOAT,!1,0,0),v.clearColor(0,0,0,0),v.enable(v.BLEND),v.blendFunc(v.ONE,v.ONE_MINUS_SRC_ALPHA),v.clear(v.COLOR_BUFFER_BIT),v.drawArrays(v.TRIANGLES,0,6),v.flush(),v.deleteTexture(m),v.deleteTexture(y),v.deleteBuffer(_),g},drawFigures:function(e,r,l,u,c){f||function(){var e,r;s(),e=a,a=null,r=o,o=null;var l=i(r,[t(r,h),n(r,d)]);r.useProgram(l);var u={};u.gl=r,u.canvas=e,u.resolutionLocation=r.getUniformLocation(l,"u_resolution"),u.scaleLocation=r.getUniformLocation(l,"u_scale"),u.offsetLocation=r.getUniformLocation(l,"u_offset"),u.positionLocation=r.getAttribLocation(l,"a_position"),u.colorLocation=r.getAttribLocation(l,"a_color"),f=u}();var p=f,A=p.canvas,g=p.gl;A.width=e,A.height=r,g.viewport(0,0,g.drawingBufferWidth,g.drawingBufferHeight),g.uniform2f(p.resolutionLocation,e,r);var v,m,y,_=0;for(v=0,m=u.length;v<m;v++)switch(u[v].type){case"lattice":_+=((y=u[v].coords.length/u[v].verticesPerRow|0)-1)*(u[v].verticesPerRow-1)*6;break;case"triangles":_+=u[v].coords.length}var b=new Float32Array(2*_),w=new Uint8Array(3*_),x=c.coords,C=c.colors,S=0,k=0;for(v=0,m=u.length;v<m;v++){var B=u[v],T=B.coords,E=B.colors;switch(B.type){case"lattice":var I=B.verticesPerRow;y=T.length/I|0;for(var M=1;M<y;M++)for(var D=M*I+1,P=1;P<I;P++,D++)b[S]=x[T[D-I-1]],b[S+1]=x[T[D-I-1]+1],b[S+2]=x[T[D-I]],b[S+3]=x[T[D-I]+1],b[S+4]=x[T[D-1]],b[S+5]=x[T[D-1]+1],w[k]=C[E[D-I-1]],w[k+1]=C[E[D-I-1]+1],w[k+2]=C[E[D-I-1]+2],w[k+3]=C[E[D-I]],w[k+4]=C[E[D-I]+1],w[k+5]=C[E[D-I]+2],w[k+6]=C[E[D-1]],w[k+7]=C[E[D-1]+1],w[k+8]=C[E[D-1]+2],b[S+6]=b[S+2],b[S+7]=b[S+3],b[S+8]=b[S+4],b[S+9]=b[S+5],b[S+10]=x[T[D]],b[S+11]=x[T[D]+1],w[k+9]=w[k+3],w[k+10]=w[k+4],w[k+11]=w[k+5],w[k+12]=w[k+6],w[k+13]=w[k+7],w[k+14]=w[k+8],w[k+15]=C[E[D]],w[k+16]=C[E[D]+1],w[k+17]=C[E[D]+2],S+=12,k+=18;break;case"triangles":for(var F=0,O=T.length;F<O;F++)b[S]=x[T[F]],b[S+1]=x[T[F]+1],w[k]=C[E[F]],w[k+1]=C[E[F]+1],w[k+2]=C[E[F]+2],S+=2,k+=3}}l?g.clearColor(l[0]/255,l[1]/255,l[2]/255,1):g.clearColor(0,0,0,0),g.clear(g.COLOR_BUFFER_BIT);var L=g.createBuffer();g.bindBuffer(g.ARRAY_BUFFER,L),g.bufferData(g.ARRAY_BUFFER,b,g.STATIC_DRAW),g.enableVertexAttribArray(p.positionLocation),g.vertexAttribPointer(p.positionLocation,2,g.FLOAT,!1,0,0);var N=g.createBuffer();return g.bindBuffer(g.ARRAY_BUFFER,N),g.bufferData(g.ARRAY_BUFFER,w,g.STATIC_DRAW),g.enableVertexAttribArray(p.colorLocation),g.vertexAttribPointer(p.colorLocation,3,g.UNSIGNED_BYTE,!1,0,0),g.uniform2f(p.scaleLocation,c.scaleX,c.scaleY),g.uniform2f(p.offsetLocation,c.offsetX,c.offsetY),g.drawArrays(g.TRIANGLES,0,_),g.flush(),g.deleteBuffer(L),g.deleteBuffer(N),A},cleanup:function(){c&&c.canvas&&(c.canvas.width=0,c.canvas.height=0),f&&f.canvas&&(f.canvas.width=0,f.canvas.height=0),c=null,f=null}}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var i=n(1),r=n(5),o=n(205);function a(e,t,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(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 l(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,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function u(e){"@babel/helpers - typeof";return(u="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 c(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&&h(e,t)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(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,i=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return f(e)}(this,n)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function v(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}var m=function(){function e(){A(this,e)}return v(e,null,[{key:"create",value:function(e){switch(e.data.annotationType){case r.AnnotationType.LINK:return new _(e);case r.AnnotationType.TEXT:return new b(e);case r.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new x(e);case"Btn":return e.data.radioButton?new S(e):e.data.checkBox?new C(e):new k(e);case"Ch":return new B(e)}return new w(e);case r.AnnotationType.POPUP:return new T(e);case r.AnnotationType.FREETEXT:return new I(e);case r.AnnotationType.LINE:return new M(e);case r.AnnotationType.SQUARE:return new D(e);case r.AnnotationType.CIRCLE:return new P(e);case r.AnnotationType.POLYLINE:return new F(e);case r.AnnotationType.CARET:return new L(e);case r.AnnotationType.INK:return new N(e);case r.AnnotationType.POLYGON:return new O(e);case r.AnnotationType.HIGHLIGHT:return new R(e);case r.AnnotationType.UNDERLINE:return new U(e);case r.AnnotationType.SQUIGGLY:return new Q(e);case r.AnnotationType.STRIKEOUT:return new H(e);case r.AnnotationType.STAMP:return new j(e);case r.AnnotationType.FILEATTACHMENT:return new V(e);default:return new y(e)}}}]),e}(),y=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];A(this,e),this.isRenderable=n,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,n&&(this.container=this._createContainer(i))}return v(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,n=this.page,i=this.viewport,o=document.createElement("section"),a=t.rect[2]-t.rect[0],s=t.rect[3]-t.rect[1];o.setAttribute("data-annotation-id",t.id);var l=r.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(o.style.transform="matrix(".concat(i.transform.join(","),")"),o.style.transformOrigin="-".concat(l[0],"px -").concat(l[1],"px"),!e&&t.borderStyle.width>0){o.style.borderWidth="".concat(t.borderStyle.width,"px"),t.borderStyle.style!==r.AnnotationBorderStyleType.UNDERLINE&&(a-=2*t.borderStyle.width,s-=2*t.borderStyle.width);var u=t.borderStyle.horizontalCornerRadius,c=t.borderStyle.verticalCornerRadius;if(u>0||c>0){var h="".concat(u,"px / ").concat(c,"px");o.style.borderRadius=h}switch(t.borderStyle.style){case r.AnnotationBorderStyleType.SOLID:o.style.borderStyle="solid";break;case r.AnnotationBorderStyleType.DASHED:o.style.borderStyle="dashed";break;case r.AnnotationBorderStyleType.BEVELED:(0,r.warn)("Unimplemented border style: beveled");break;case r.AnnotationBorderStyleType.INSET:(0,r.warn)("Unimplemented border style: inset");break;case r.AnnotationBorderStyleType.UNDERLINE:o.style.borderBottomStyle="solid"}t.color?o.style.borderColor=r.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):o.style.borderWidth=0}return o.style.left="".concat(l[0],"px"),o.style.top="".concat(l[1],"px"),o.style.width="".concat(a,"px"),o.style.height="".concat(s,"px"),o}},{key:"_createPopup",value:function(e,t,n){t||((t=document.createElement("div")).style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var i=new E({container:e,trigger:t,color:n.color,title:n.title,modificationDate:n.modificationDate,contents:n.contents,hideWrapper:!0}).render();i.style.left=e.style.width,e.appendChild(i)}},{key:"render",value:function(){(0,r.unreachable)("Abstract method `AnnotationElement.render` called")}}]),e}(),_=function(e){c(n,y);var t=d(n);function n(e){A(this,n);var i=!!(e.data.url||e.data.dest||e.data.action);return t.call(this,e,i)}return v(n,[{key:"render",value:function(){this.container.className="linkAnnotation";var e=this.data,t=this.linkService,n=document.createElement("a");return e.url?(0,i.addLinkAttributes)(n,{url:e.url,target:e.newWindow?i.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(n,e.action):this._bindLink(n,e.dest),this.container.appendChild(n),this.container}},{key:"_bindLink",value:function(e,t){var n=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&n.linkService.navigateTo(t),!1},t&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var n=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return n.linkService.executeNamedAction(t),!1},e.className="internalLink"}}]),n}(),b=function(e){c(n,y);var t=d(n);function n(e){A(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,i)}return v(n,[{key:"render",value:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}]),n}(),w=function(e){c(n,y);var t=d(n);function n(){return A(this,n),t.apply(this,arguments)}return v(n,[{key:"render",value:function(){return this.container}}]),n}(),x=function(e){c(n,w);var t=d(n);function n(e){A(this,n);var i=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return t.call(this,e,i)}return v(n,[{key:"render",value:function(){var e=this.annotationStorage,t=this.data.id;this.container.className="textWidgetAnnotation";var n=null;if(this.renderInteractiveForms){var i=e.getOrCreateValue(t,this.data.fieldValue);if(this.data.multiLine?(n=document.createElement("textarea")).textContent=i:((n=document.createElement("input")).type="text",n.setAttribute("value",i)),n.addEventListener("input",function(n){e.setValue(t,n.target.value)}),n.disabled=this.data.readOnly,n.name=this.data.fieldName,null!==this.data.maxLen&&(n.maxLength=this.data.maxLen),this.data.comb){var r=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;n.classList.add("comb"),n.style.letterSpacing="calc(".concat(r,"px - 1ch)")}}else{(n=document.createElement("div")).textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell";var o=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(o=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(n,o)}return null!==this.data.textAlignment&&(n.style.textAlign=["left","center","right"][this.data.textAlignment]),this.container.appendChild(n),this.container}},{key:"_setTextStyle",value:function(e,t){var n=e.style;if(n.fontSize="".concat(this.data.fontSize,"px"),n.direction=this.data.fontDirection<0?"rtl":"ltr",t){var i="normal";t.black?i="900":t.bold&&(i="bold"),n.fontWeight=i,n.fontStyle=t.italic?"italic":"normal";var r=t.loadedName?'"'.concat(t.loadedName,'", '):"",o=t.fallbackName||"Helvetica, sans-serif";n.fontFamily=r+o}}}]),n}(),C=function(e){c(n,w);var t=d(n);function n(e){return A(this,n),t.call(this,e,e.renderInteractiveForms)}return v(n,[{key:"render",value:function(){var e=this.annotationStorage,t=this.data,n=t.id,i=e.getOrCreateValue(n,t.fieldValue&&"Off"!==t.fieldValue);this.container.className="buttonWidgetAnnotation checkBox";var r=document.createElement("input");return r.disabled=t.readOnly,r.type="checkbox",r.name=this.data.fieldName,i&&r.setAttribute("checked",!0),r.addEventListener("change",function(t){e.setValue(n,t.target.checked)}),this.container.appendChild(r),this.container}}]),n}(),S=function(e){c(n,w);var t=d(n);function n(e){return A(this,n),t.call(this,e,e.renderInteractiveForms)}return v(n,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var e=this.annotationStorage,t=this.data,n=t.id,i=e.getOrCreateValue(n,t.fieldValue===t.buttonValue),r=document.createElement("input");return r.disabled=t.readOnly,r.type="radio",r.name=t.fieldName,i&&r.setAttribute("checked",!0),r.addEventListener("change",function(t){var i,r=t.target.name,o=s(document.getElementsByName(r));try{for(o.s();!(i=o.n()).done;){var a=i.value;a!==t.target&&e.setValue(a.parentNode.getAttribute("data-annotation-id"),!1)}}catch(e){o.e(e)}finally{o.f()}e.setValue(n,t.target.checked)}),this.container.appendChild(r),this.container}}]),n}(),k=function(e){c(n,_);var t=d(n);function n(){return A(this,n),t.apply(this,arguments)}return v(n,[{key:"render",value:function(){var e=a(p(n.prototype),"render",this).call(this);return e.className="buttonWidgetAnnotation pushButton",e}}]),n}(),B=function(e){c(n,w);var t=d(n);function n(e){return A(this,n),t.call(this,e,e.renderInteractiveForms)}return v(n,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var e=this.annotationStorage,t=this.data.id;e.getOrCreateValue(t,this.data.fieldValue.length>0?this.data.fieldValue[0]:null);var n=document.createElement("select");n.disabled=this.data.readOnly,n.name=this.data.fieldName,this.data.combo||(n.size=this.data.options.length,this.data.multiSelect&&(n.multiple=!0));var i,r=s(this.data.options);try{for(r.s();!(i=r.n()).done;){var o=i.value,a=document.createElement("option");a.textContent=o.displayValue,a.value=o.exportValue,this.data.fieldValue.includes(o.exportValue)&&a.setAttribute("selected",!0),n.appendChild(a)}}catch(e){r.e(e)}finally{r.f()}return n.addEventListener("input",function(n){var i=n.target.options,r=i[i.selectedIndex].value;e.setValue(t,r)}),this.container.appendChild(n),this.container}}]),n}(),T=function(e){c(n,y);var t=d(n);function n(e){A(this,n);var i=!(!e.data.title&&!e.data.contents);return t.call(this,e,i)}return v(n,[{key:"render",value:function(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;var e='[data-annotation-id="'.concat(this.data.parentId,'"]'),t=this.layer.querySelector(e);if(!t)return this.container;var n=new E({container:this.container,trigger:t,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),i=parseFloat(t.style.left),r=parseFloat(t.style.width);return this.container.style.transformOrigin="-".concat(i+r,"px -").concat(t.style.top),this.container.style.left="".concat(i+r,"px"),this.container.appendChild(n.render()),this.container}}]),n}(),E=function(){function e(t){A(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.modificationDate=t.modificationDate,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}return v(e,[{key:"render",value:function(){var e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.setAttribute("hidden",!0);var t=document.createElement("div");t.className="popup";var n=this.color;if(n){var o=.7*(255-n[0])+n[0],a=.7*(255-n[1])+n[1],s=.7*(255-n[2])+n[2];t.style.backgroundColor=r.Util.makeCssRgb(0|o,0|a,0|s)}var l=document.createElement("h1");l.textContent=this.title,t.appendChild(l);var u=i.PDFDateString.toDateObject(this.modificationDate);if(u){var c=document.createElement("span");c.textContent="{{date}}, {{time}}",c.dataset.l10nId="annotation_date_string",c.dataset.l10nArgs=JSON.stringify({date:u.toLocaleDateString(),time:u.toLocaleTimeString()}),t.appendChild(c)}var h=this._formatContents(this.contents);return t.appendChild(h),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}},{key:"_formatContents",value:function(e){for(var t=document.createElement("p"),n=e.split(/(?:\r\n?|\n)/),i=0,r=n.length;i<r;++i){var o=n[i];t.appendChild(document.createTextNode(o)),i<r-1&&t.appendChild(document.createElement("br"))}return t}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),e}(),I=function(e){c(n,y);var t=d(n);function n(e){A(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,i,!0)}return v(n,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),M=function(e){c(n,y);var t=d(n);function n(e){A(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,i,!0)}return v(n,[{key:"render",value:function(){this.container.className="lineAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],i=this.svgFactory.create(t,n),r=this.svgFactory.createElement("svg:line");return r.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),r.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),r.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),r.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),r.setAttribute("stroke-width",e.borderStyle.width||1),r.setAttribute("stroke","transparent"),i.appendChild(r),this.container.append(i),this._createPopup(this.container,r,e),this.container}}]),n}(),D=function(e){c(n,y);var t=d(n);function n(e){A(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,i,!0)}return v(n,[{key:"render",value:function(){this.container.className="squareAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],i=this.svgFactory.create(t,n),r=e.borderStyle.width,o=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",r/2),o.setAttribute("y",r/2),o.setAttribute("width",t-r),o.setAttribute("height",n-r),o.setAttribute("stroke-width",r||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),i.appendChild(o),this.container.append(i),this._createPopup(this.container,o,e),this.container}}]),n}(),P=function(e){c(n,y);var t=d(n);function n(e){A(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,i,!0)}return v(n,[{key:"render",value:function(){this.container.className="circleAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],i=this.svgFactory.create(t,n),r=e.borderStyle.width,o=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",t/2),o.setAttribute("cy",n/2),o.setAttribute("rx",t/2-r/2),o.setAttribute("ry",n/2-r/2),o.setAttribute("stroke-width",r||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),i.appendChild(o),this.container.append(i),this._createPopup(this.container,o,e),this.container}}]),n}(),F=function(e){c(n,y);var t=d(n);function n(e){var i;A(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return(i=t.call(this,e,r,!0)).containerClassName="polylineAnnotation",i.svgElementName="svg:polyline",i}return v(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,n=t.rect[2]-t.rect[0],i=t.rect[3]-t.rect[1],r=this.svgFactory.create(n,i),o=[],a=s(t.vertices);try{for(a.s();!(e=a.n()).done;){var l=e.value,u=l.x-t.rect[0],c=t.rect[3]-l.y;o.push(u+","+c)}}catch(e){a.e(e)}finally{a.f()}o=o.join(" ");var h=this.svgFactory.createElement(this.svgElementName);return h.setAttribute("points",o),h.setAttribute("stroke-width",t.borderStyle.width||1),h.setAttribute("stroke","transparent"),h.setAttribute("fill","none"),r.appendChild(h),this.container.append(r),this._createPopup(this.container,h,t),this.container}}]),n}(),O=function(e){c(n,F);var t=d(n);function n(e){var i;return A(this,n),(i=t.call(this,e)).containerClassName="polygonAnnotation",i.svgElementName="svg:polygon",i}return n}(),L=function(e){c(n,y);var t=d(n);function n(e){A(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,i,!0)}return v(n,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),N=function(e){c(n,y);var t=d(n);function n(e){var i;A(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return(i=t.call(this,e,r,!0)).containerClassName="inkAnnotation",i.svgElementName="svg:polyline",i}return v(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,n=t.rect[2]-t.rect[0],i=t.rect[3]-t.rect[1],r=this.svgFactory.create(n,i),o=s(t.inkLists);try{for(o.s();!(e=o.n()).done;){var a,l=[],u=s(e.value);try{for(u.s();!(a=u.n()).done;){var c=a.value,h=c.x-t.rect[0],d=t.rect[3]-c.y;l.push("".concat(h,",").concat(d))}}catch(e){u.e(e)}finally{u.f()}l=l.join(" ");var f=this.svgFactory.createElement(this.svgElementName);f.setAttribute("points",l),f.setAttribute("stroke-width",t.borderStyle.width||1),f.setAttribute("stroke","transparent"),f.setAttribute("fill","none"),this._createPopup(this.container,f,t),r.appendChild(f)}}catch(e){o.e(e)}finally{o.f()}return this.container.append(r),this.container}}]),n}(),R=function(e){c(n,y);var t=d(n);function n(e){A(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,i,!0)}return v(n,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),U=function(e){c(n,y);var t=d(n);function n(e){A(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,i,!0)}return v(n,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),Q=function(e){c(n,y);var t=d(n);function n(e){A(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,i,!0)}return v(n,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),H=function(e){c(n,y);var t=d(n);function n(e){A(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,i,!0)}return v(n,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),j=function(e){c(n,y);var t=d(n);function n(e){A(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,i,!0)}return v(n,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),V=function(e){c(n,y);var t=d(n);function n(e){var o;A(this,n);var a=(o=t.call(this,e,!0)).data.file,s=a.filename,l=a.content;return o.filename=(0,i.getFilenameFromUrl)(s),o.content=l,o.linkService.eventBus&&o.linkService.eventBus.dispatch("fileattachmentannotation",{source:f(o),id:(0,r.stringToPDFString)(s),filename:s,content:l}),o}return v(n,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,r.warn)("Download cannot be started due to unavailable download manager")}}]),n}(),z=function(){function e(){A(this,e)}return v(e,null,[{key:"render",value:function(e){var t,n=[],a=[],l=s(e.annotations);try{for(l.s();!(t=l.n()).done;){var u=t.value;u&&(u.annotationType!==r.AnnotationType.POPUP?n.push(u):a.push(u))}}catch(e){l.e(e)}finally{l.f()}a.length&&n.push.apply(n,a);for(var c=0,h=n;c<h.length;c++){var d=h[c],f=m.create({data:d,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderInteractiveForms:"boolean"!=typeof e.renderInteractiveForms||e.renderInteractiveForms,svgFactory:new i.DOMSVGFactory,annotationStorage:e.annotationStorage||new o.AnnotationStorage});f.isRenderable&&e.div.appendChild(f.render())}}},{key:"update",value:function(e){var t,n=s(e.annotations);try{for(n.s();!(t=n.n()).done;){var i=t.value,r=e.div.querySelector('[data-annotation-id="'.concat(i.id,'"]'));r&&(r.style.transform="matrix(".concat(e.viewport.transform.join(","),")"))}}catch(e){n.e(e)}finally{n.f()}e.div.removeAttribute("hidden")}}]),e}();t.AnnotationLayer=z},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var i=n(5),r=function(){var e=1e5,t=/\S/;function n(e,n,r){var o,a=document.createElement("span"),s={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(e._textDivs.push(a),o=n.str,!t.test(o))return s.isWhitespace=!0,void e._textDivProperties.set(a,s);var l=i.Util.transform(e._viewport.transform,n.transform),u=Math.atan2(l[1],l[0]),c=r[n.fontName];c.vertical&&(u+=Math.PI/2);var h,d,f=Math.sqrt(l[2]*l[2]+l[3]*l[3]),p=f;c.ascent?p=c.ascent*p:c.descent&&(p=(1+c.descent)*p),0===u?(h=l[4],d=l[5]-p):(h=l[4]+p*Math.sin(u),d=l[5]-p*Math.cos(u)),a.style.left="".concat(h,"px"),a.style.top="".concat(d,"px"),a.style.fontSize="".concat(f,"px"),a.style.fontFamily=c.fontFamily,a.textContent=n.str,e._fontInspectorEnabled&&(a.dataset.fontName=n.fontName),0!==u&&(s.angle=u*(180/Math.PI));var A=!1;if(n.str.length>1)A=!0;else if(n.transform[0]!==n.transform[3]){var g=Math.abs(n.transform[0]),v=Math.abs(n.transform[3]);g!==v&&Math.max(g,v)/Math.min(g,v)>1.5&&(A=!0)}if(A&&(c.vertical?s.canvasWidth=n.height*e._viewport.scale:s.canvasWidth=n.width*e._viewport.scale),e._textDivProperties.set(a,s),e._textContentStream&&e._layoutText(a),e._enhanceTextSelection){var m=1,y=0;0!==u&&(m=Math.cos(u),y=Math.sin(u));var _,b,w=(c.vertical?n.height:n.width)*e._viewport.scale,x=f;0!==u?(_=[m,y,-y,m,h,d],b=i.Util.getAxialAlignedBoundingBox([0,0,w,x],_)):b=[h,d,h+w,d+x],e._bounds.push({left:b[0],top:b[1],right:b[2],bottom:b[3],div:a,size:[w,x],m:_})}}function r(t){if(!t._canceled){var n=t._textDivs,i=t._capability,r=n.length;if(r>e)return t._renderingDone=!0,void i.resolve();if(!t._textContentStream)for(var o=0;o<r;o++)t._layoutText(n[o]);t._renderingDone=!0,i.resolve()}}function o(e,t,n){for(var i=0,r=0;r<n;r++){var o=e[t++];o>0&&(i=i?Math.min(o,i):o)}return i}function a(e){for(var t=e._bounds,n=e._viewport,r=function(e,t,n){var i=n.map(function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}});s(e,i);var r=new Array(n.length);return i.forEach(function(e){var t=e.index;r[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}}),n.map(function(t,n){var o=r[n],a=i[n];a.x1=t.top,a.y1=e-o.right,a.x2=t.bottom,a.y2=e-o.left,a.index=n,a.x1New=void 0,a.x2New=void 0}),s(t,i),i.forEach(function(e){var t=e.index;r[t].top=e.x1New,r[t].bottom=e.x2New}),r}(n.width,n.height,t),a=0;a<r.length;a++){var l=t[a].div,u=e._textDivProperties.get(l);if(0!==u.angle){var c=r[a],h=t[a],d=h.m,f=d[0],p=d[1],A=[[0,0],[0,h.size[1]],[h.size[0],0],h.size],g=new Float64Array(64);A.forEach(function(e,t){var n=i.Util.applyTransform(e,d);g[t+0]=f&&(c.left-n[0])/f,g[t+4]=p&&(c.top-n[1])/p,g[t+8]=f&&(c.right-n[0])/f,g[t+12]=p&&(c.bottom-n[1])/p,g[t+16]=p&&(c.left-n[0])/-p,g[t+20]=f&&(c.top-n[1])/f,g[t+24]=p&&(c.right-n[0])/-p,g[t+28]=f&&(c.bottom-n[1])/f,g[t+32]=f&&(c.left-n[0])/-f,g[t+36]=p&&(c.top-n[1])/-p,g[t+40]=f&&(c.right-n[0])/-f,g[t+44]=p&&(c.bottom-n[1])/-p,g[t+48]=p&&(c.left-n[0])/p,g[t+52]=f&&(c.top-n[1])/-f,g[t+56]=p&&(c.right-n[0])/p,g[t+60]=f&&(c.bottom-n[1])/-f});var v=1+Math.min(Math.abs(f),Math.abs(p));u.paddingLeft=o(g,32,16)/v,u.paddingTop=o(g,48,16)/v,u.paddingRight=o(g,0,16)/v,u.paddingBottom=o(g,16,16)/v,e._textDivProperties.set(l,u)}else u.paddingLeft=t[a].left-r[a].left,u.paddingTop=t[a].top-r[a].top,u.paddingRight=r[a].right-t[a].right,u.paddingBottom=r[a].bottom-t[a].bottom,e._textDivProperties.set(l,u)}}function s(e,t){t.sort(function(e,t){return e.x1-t.x1||e.index-t.index});var n=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];t.forEach(function(e){for(var t=0;t<n.length&&n[t].end<=e.y1;)t++;for(var i,r,o=n.length-1;o>=0&&n[o].start>=e.y2;)o--;var a,s,l=-1/0;for(a=t;a<=o;a++){var u;(u=(r=(i=n[a]).boundary).x2>e.x1?r.index>e.index?r.x1New:e.x1:void 0===r.x2New?(r.x2+e.x1)/2:r.x2New)>l&&(l=u)}for(e.x1New=l,a=t;a<=o;a++)void 0===(r=(i=n[a]).boundary).x2New?r.x2>e.x1?r.index>e.index&&(r.x2New=r.x2):r.x2New=l:r.x2New>l&&(r.x2New=Math.max(l,r.x2));var c=[],h=null;for(a=t;a<=o;a++){var d=(r=(i=n[a]).boundary).x2>e.x2?r:e;h===d?c[c.length-1].end=i.end:(c.push({start:i.start,end:i.end,boundary:d}),h=d)}for(n[t].start<e.y1&&(c[0].start=e.y1,c.unshift({start:n[t].start,end:e.y1,boundary:n[t].boundary})),e.y2<n[o].end&&(c[c.length-1].end=e.y2,c.push({start:e.y2,end:n[o].end,boundary:n[o].boundary})),a=t;a<=o;a++)if(void 0===(r=(i=n[a]).boundary).x2New){var f=!1;for(s=t-1;!f&&s>=0&&n[s].start>=r.y1;s--)f=n[s].boundary===r;for(s=o+1;!f&&s<n.length&&n[s].end<=r.y2;s++)f=n[s].boundary===r;for(s=0;!f&&s<c.length;s++)f=c[s].boundary===r;f||(r.x2New=l)}Array.prototype.splice.apply(n,[t,o-t+1].concat(c))}),n.forEach(function(t){var n=t.boundary;void 0===n.x2New&&(n.x2New=Math.max(e,n.x2))})}function l(e){var t=this,n=e.textContent,r=e.textContentStream,o=e.container,a=e.viewport,s=e.textDivs,l=e.textContentItemsStr,u=e.enhanceTextSelection;this._textContent=n,this._textContentStream=r,this._container=o,this._document=o.ownerDocument,this._viewport=a,this._textDivs=s||[],this._textContentItemsStr=l||[],this._enhanceTextSelection=!!u,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,i.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(function(){t._layoutTextCtx&&(t._layoutTextCtx.canvas.width=0,t._layoutTextCtx.canvas.height=0,t._layoutTextCtx=null)}).catch(function(){})}return l.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new i.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(e,t){for(var i=0,r=e.length;i<r;i++)this._textContentItemsStr.push(e[i].str),n(this,e[i],t)},_layoutText:function(e){var t=this._textDivProperties.get(e);if(!t.isWhitespace){var n="";if(0!==t.canvasWidth){var i=e.style,r=i.fontSize,o=i.fontFamily;r===this._layoutTextLastFontSize&&o===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(r," ").concat(o),this._layoutTextLastFontSize=r,this._layoutTextLastFontFamily=o);var a=this._layoutTextCtx.measureText(e.textContent).width;a>0&&(t.scale=t.canvasWidth/a,n="scaleX(".concat(t.scale,")"))}0!==t.angle&&(n="rotate(".concat(t.angle,"deg) ").concat(n)),n.length>0&&(this._enhanceTextSelection&&(t.originalTransform=n),e.style.transform=n),this._textDivProperties.set(e,t),this._container.appendChild(e)}},_render:function(e){var t=this,n=(0,i.createPromiseCapability)(),o=Object.create(null),a=this._document.createElement("canvas");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,l=this._textContent.styles;this._processItems(s,l),n.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');this._reader=this._textContentStream.getReader(),function e(){t._reader.read().then(function(i){var r=i.value;i.done?n.resolve():(Object.assign(o,r.styles),t._processItems(r.items,o),e())},n.reject)}()}n.promise.then(function(){o=null,e?t._renderTimer=setTimeout(function(){r(t),t._renderTimer=null},e):r(t)},this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(a(this),this._bounds=null);for(var t=[],n=[],i=0,r=this._textDivs.length;i<r;i++){var o=this._textDivs[i],s=this._textDivProperties.get(o);s.isWhitespace||(e?(t.length=0,n.length=0,s.originalTransform&&t.push(s.originalTransform),s.paddingTop>0?(n.push("".concat(s.paddingTop,"px")),t.push("translateY(".concat(-s.paddingTop,"px)"))):n.push(0),s.paddingRight>0?n.push("".concat(s.paddingRight/s.scale,"px")):n.push(0),s.paddingBottom>0?n.push("".concat(s.paddingBottom,"px")):n.push(0),s.paddingLeft>0?(n.push("".concat(s.paddingLeft/s.scale,"px")),t.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):n.push(0),o.style.padding=n.join(" "),t.length&&(o.style.transform=t.join(" "))):(o.style.padding=null,o.style.transform=s.originalTransform))}}}},function(e){var t=new l({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}}();t.renderTextLayer=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var i=n(5),r=n(1),o=n(7);function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||u(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 s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(e,t)||u(e,t)||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.")}()}function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=u(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,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(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}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}var p=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=p;var A=function(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)},g=function(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(A(e[0])," ").concat(A(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(A(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(A(e[4])," ").concat(A(e[5]),")");return"matrix(".concat(A(e[0])," ").concat(A(e[1])," ").concat(A(e[2])," ").concat(A(e[3])," ").concat(A(e[4])," ")+"".concat(A(e[5]),")")},v={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},m=["butt","round","square"],y=["miter","round","bevel"],_=function(){for(var e=new Uint8Array([137,80,78,71,13,10,26,10]),t=12,n=new Int32Array(256),r=0;r<256;r++){for(var a=r,s=0;s<8;s++)a=1&a?3988292384^a>>1&2147483647:a>>1&2147483647;n[r]=a}function l(e,t,i,r){var o=r,a=t.length;i[o]=a>>24&255,i[o+1]=a>>16&255,i[o+2]=a>>8&255,i[o+3]=255&a,i[o+=4]=255&e.charCodeAt(0),i[o+1]=255&e.charCodeAt(1),i[o+2]=255&e.charCodeAt(2),i[o+3]=255&e.charCodeAt(3),o+=4,i.set(t,o);var s=function(e,t,i){for(var r=-1,o=t;o<i;o++){var a=255&(r^e[o]);r=r>>>8^n[a]}return-1^r}(i,r+4,o+=t.length);i[o]=s>>24&255,i[o+1]=s>>16&255,i[o+2]=s>>8&255,i[o+3]=255&s}function u(e){var t=e.length,n=Math.ceil(t/65535),i=new Uint8Array(2+t+5*n+4),r=0;i[r++]=120,i[r++]=156;for(var o=0;t>65535;)i[r++]=0,i[r++]=255,i[r++]=255,i[r++]=0,i[r++]=0,i.set(e.subarray(o,o+65535),r),r+=65535,o+=65535,t-=65535;i[r++]=1,i[r++]=255&t,i[r++]=t>>8&255,i[r++]=255&~t,i[r++]=(65535&~t)>>8&255,i.set(e.subarray(o),r),r+=e.length-o;var a=function(e,t,n){for(var i=1,r=0,o=t;o<n;++o)r=(r+(i=(i+(255&e[o]))%65521))%65521;return r<<16|i}(e,0,e.length);return i[r++]=a>>24&255,i[r++]=a>>16&255,i[r++]=a>>8&255,i[r++]=255&a,i}function c(n,r,a,s){var c,h,d,f=n.width,p=n.height,A=n.data;switch(r){case i.ImageKind.GRAYSCALE_1BPP:h=0,c=1,d=f+7>>3;break;case i.ImageKind.RGB_24BPP:h=2,c=8,d=3*f;break;case i.ImageKind.RGBA_32BPP:h=6,c=8,d=4*f;break;default:throw new Error("invalid format")}for(var g=new Uint8Array((1+d)*p),v=0,m=0,y=0;y<p;++y)g[v++]=0,g.set(A.subarray(m,m+d),v),m+=d,v+=d;if(r===i.ImageKind.GRAYSCALE_1BPP&&s){v=0;for(var _=0;_<p;_++){v++;for(var b=0;b<d;b++)g[v++]^=255}}var w=new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,p>>24&255,p>>16&255,p>>8&255,255&p,c,h,0,0,0]),x=function(e){if(!o.isNodeJS)return u(e);try{var t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);var n=__webpack_require__(2).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(e){(0,i.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return u(e)}(g),C=e.length+3*t+w.length+x.length,S=new Uint8Array(C),k=0;return S.set(e,k),l("IHDR",w,S,k+=e.length),l("IDATA",x,S,k+=t+w.length),k+=t+x.length,l("IEND",new Uint8Array(0),S,k),(0,i.createObjectURL)(S,"image/png",a)}return function(e,t,n){return c(e,void 0===e.kind?i.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}(),b=function(){function e(){h(this,e),this.fontSizeScale=1,this.fontWeight=v.fontWeight,this.fontSize=0,this.textMatrix=i.IDENTITY_MATRIX,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=i.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=v.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return f(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}(),w=0,x=0,C=0;t.SVGGraphics=p=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var a in h(this,e),this.svgFactory=new r.DOMSVGFactory,this.current=new b,this.transformMatrix=i.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=n,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!o,this._operatorIdMapping=[],i.OPS)this._operatorIdMapping[i.OPS[a]]=a}return f(e,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,n=e.fnArray,r=e.argsArray,o=0,a=n.length;o<a;o++)if(n[o]===i.OPS.dependency){var s,u=l(r[o]);try{var c=function(){var e=s.value,n=e.startsWith("g_")?t.commonObjs:t.objs,i=new Promise(function(t){n.get(e,t)});t.current.dependencies.push(i)};for(u.s();!(s=u.n()).done;)c()}catch(e){u.e(e)}finally{u.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(e,t,n,r,o,a){var s=[e,t,n,r,o,a];this.transformMatrix=i.Util.transform(this.transformMatrix,s),this.tgrp=null}},{key:"getSVG",value:function(e,t){var n=this;this.viewport=t;var r=this._initialize(t);return this.loadDependencies(e).then(function(){return n.transformMatrix=i.IDENTITY_MATRIX,n.executeOpTree(n.convertOpList(e)),r})}},{key:"convertOpList",value:function(e){for(var t=this._operatorIdMapping,n=e.argsArray,i=e.fnArray,r=[],o=0,a=i.length;o<a;o++){var s=i[o];r.push({fnId:s,fn:t[s],args:n[o]})}return function(e){var t,n=[],i=[],r=l(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;"save"!==o.fn?"restore"===o.fn?n=i.pop():n.push(o):(n.push({fnId:92,fn:"group",items:[]}),i.push(n),n=n[n.length-1].items)}}catch(e){r.e(e)}finally{r.f()}return n}(r)}},{key:"executeOpTree",value:function(e){var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,o=r.fn,a=r.fnId,s=r.args;switch(0|a){case i.OPS.beginText:this.beginText();break;case i.OPS.dependency:break;case i.OPS.setLeading:this.setLeading(s);break;case i.OPS.setLeadingMoveText:this.setLeadingMoveText(s[0],s[1]);break;case i.OPS.setFont:this.setFont(s);break;case i.OPS.showText:case i.OPS.showSpacedText:this.showText(s[0]);break;case i.OPS.endText:this.endText();break;case i.OPS.moveText:this.moveText(s[0],s[1]);break;case i.OPS.setCharSpacing:this.setCharSpacing(s[0]);break;case i.OPS.setWordSpacing:this.setWordSpacing(s[0]);break;case i.OPS.setHScale:this.setHScale(s[0]);break;case i.OPS.setTextMatrix:this.setTextMatrix(s[0],s[1],s[2],s[3],s[4],s[5]);break;case i.OPS.setTextRise:this.setTextRise(s[0]);break;case i.OPS.setTextRenderingMode:this.setTextRenderingMode(s[0]);break;case i.OPS.setLineWidth:this.setLineWidth(s[0]);break;case i.OPS.setLineJoin:this.setLineJoin(s[0]);break;case i.OPS.setLineCap:this.setLineCap(s[0]);break;case i.OPS.setMiterLimit:this.setMiterLimit(s[0]);break;case i.OPS.setFillRGBColor:this.setFillRGBColor(s[0],s[1],s[2]);break;case i.OPS.setStrokeRGBColor:this.setStrokeRGBColor(s[0],s[1],s[2]);break;case i.OPS.setStrokeColorN:this.setStrokeColorN(s);break;case i.OPS.setFillColorN:this.setFillColorN(s);break;case i.OPS.shadingFill:this.shadingFill(s[0]);break;case i.OPS.setDash:this.setDash(s[0],s[1]);break;case i.OPS.setRenderingIntent:this.setRenderingIntent(s[0]);break;case i.OPS.setFlatness:this.setFlatness(s[0]);break;case i.OPS.setGState:this.setGState(s[0]);break;case i.OPS.fill:this.fill();break;case i.OPS.eoFill:this.eoFill();break;case i.OPS.stroke:this.stroke();break;case i.OPS.fillStroke:this.fillStroke();break;case i.OPS.eoFillStroke:this.eoFillStroke();break;case i.OPS.clip:this.clip("nonzero");break;case i.OPS.eoClip:this.clip("evenodd");break;case i.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case i.OPS.paintImageXObject:this.paintImageXObject(s[0]);break;case i.OPS.paintInlineImageXObject:this.paintInlineImageXObject(s[0]);break;case i.OPS.paintImageMaskXObject:this.paintImageMaskXObject(s[0]);break;case i.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(s[0],s[1]);break;case i.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case i.OPS.closePath:this.closePath();break;case i.OPS.closeStroke:this.closeStroke();break;case i.OPS.closeFillStroke:this.closeFillStroke();break;case i.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case i.OPS.nextLine:this.nextLine();break;case i.OPS.transform:this.transform(s[0],s[1],s[2],s[3],s[4],s[5]);break;case i.OPS.constructPath:this.constructPath(s[0],s[1]);break;case i.OPS.endPath:this.endPath();break;case 92:this.group(r.items);break;default:(0,i.warn)("Unimplemented operator ".concat(o))}}}catch(e){n.e(e)}finally{n.f()}}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(e,t,n,i,r,o){var a=this.current;a.textMatrix=a.lineMatrix=[e,t,n,i,r,o],a.textMatrixScale=Math.sqrt(e*e+t*t),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size","".concat(A(a.fontSize),"px")),a.tspan.setAttributeNS(null,"y",A(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.appendChild(a.tspan)}},{key:"beginText",value:function(){var e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=i.IDENTITY_MATRIX,e.lineMatrix=i.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}},{key:"moveText",value:function(e,t){var n=this.current;n.x=n.lineX+=e,n.y=n.lineY+=t,n.xcoords=[],n.ycoords=[],n.tspan=this.svgFactory.createElement("svg:tspan"),n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size","".concat(A(n.fontSize),"px")),n.tspan.setAttributeNS(null,"y",A(-n.y))}},{key:"showText",value:function(e){var t=this.current,n=t.font,r=t.fontSize;if(0!==r){var o,a=t.fontSizeScale,s=t.charSpacing,u=t.wordSpacing,c=t.fontDirection,h=t.textHScale*c,d=n.vertical,f=d?1:-1,p=n.defaultVMetrics,m=r*t.fontMatrix[0],y=0,_=l(e);try{for(_.s();!(o=_.n()).done;){var b=o.value;if(null!==b)if((0,i.isNum)(b))y+=f*b*r/1e3;else{var w=(b.isSpace?u:0)+s,x=b.fontChar,C=void 0,S=void 0,k=b.width;if(d){var B=void 0,T=b.vmetric||p;B=-(B=b.vmetric?T[1]:.5*k)*m;var E=T[2]*m;k=T?-T[0]:k,C=B/a,S=(y+E)/a}else C=y/a,S=0;(b.isInFont||n.missingFile)&&(t.xcoords.push(t.x+C),d&&t.ycoords.push(-t.y+S),t.tspan.textContent+=x);y+=d?k*m-w*c:k*m+w*c}else y+=c*u}}catch(e){_.e(e)}finally{_.f()}t.tspan.setAttributeNS(null,"x",t.xcoords.map(A).join(" ")),d?t.tspan.setAttributeNS(null,"y",t.ycoords.map(A).join(" ")):t.tspan.setAttributeNS(null,"y",A(-t.y)),d?t.y-=y:t.x+=y*h,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(A(t.fontSize),"px")),t.fontStyle!==v.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==v.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);var I=t.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;if(I===i.TextRenderingMode.FILL||I===i.TextRenderingMode.FILL_STROKE?(t.fillColor!==v.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===i.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),I===i.TextRenderingMode.STROKE||I===i.TextRenderingMode.FILL_STROKE){var M=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,M)}var D=t.textMatrix;0!==t.textRise&&((D=D.slice())[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(g(D)," scale(").concat(A(h),", -1)")),t.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.txtElement.appendChild(t.tspan),t.txtgrp.appendChild(t.txtElement),this._ensureTransformGroup().appendChild(t.txtElement)}}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"addFontStyle",value:function(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var t=(0,i.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}},{key:"setFont",value:function(e){var t=this.current,n=this.commonObjs.get(e[0]),r=e[1];t.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),t.fontMatrix=n.fontMatrix?n.fontMatrix:i.FONT_IDENTITY_MATRIX;var o="normal";n.black?o="900":n.bold&&(o="bold");var a=n.italic?"italic":"normal";r<0?(r=-r,t.fontDirection=-1):t.fontDirection=1,t.fontSize=r,t.fontFamily=n.loadedName,t.fontWeight=o,t.fontStyle=a,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",A(-t.y)),t.xcoords=[],t.ycoords=[]}},{key:"endText",value:function(){var e=this.current;e.textRenderingMode&i.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement&&e.txtElement.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(e){e>0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=m[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=y[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,n){this.current.strokeColor=i.Util.makeCssRgb(e,t,n)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,n){this.current.fillColor=i.Util.makeCssRgb(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport.width,n=this.viewport.height,r=i.Util.inverseTransform(this.transformMatrix),o=i.Util.applyTransform([0,0],r),a=i.Util.applyTransform([0,n],r),s=i.Util.applyTransform([t,0],r),l=i.Util.applyTransform([t,n],r),u=Math.min(o[0],a[0],s[0],l[0]),c=Math.min(o[1],a[1],s[1],l[1]),h=Math.max(o[0],a[0],s[0],l[0]),d=Math.max(o[1],a[1],s[1],l[1]),f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x",u),f.setAttributeNS(null,"y",c),f.setAttributeNS(null,"width",h-u),f.setAttributeNS(null,"height",d-c),f.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&f.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(f)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],n=e[2],r=e[3]||i.IDENTITY_MATRIX,o=s(e[4],4),l=o[0],u=o[1],c=o[2],h=o[3],d=e[5],f=e[6],p=e[7],A="shading".concat(C++),g=s(i.Util.applyTransform([l,u],r),2),v=g[0],m=g[1],y=s(i.Util.applyTransform([c,h],r),2),_=y[0],b=y[1],w=s(i.Util.singularValueDecompose2dScale(r),2),x=d*w[0],S=f*w[1],k=this.svgFactory.createElement("svg:pattern");k.setAttributeNS(null,"id",A),k.setAttributeNS(null,"patternUnits","userSpaceOnUse"),k.setAttributeNS(null,"width",x),k.setAttributeNS(null,"height",S),k.setAttributeNS(null,"x","".concat(v)),k.setAttributeNS(null,"y","".concat(m));var B=this.svg,T=this.transformMatrix,E=this.current.fillColor,I=this.current.strokeColor,M=this.svgFactory.create(_-v,b-m);if(this.svg=M,this.transformMatrix=r,2===p){var D=i.Util.makeCssRgb.apply(i.Util,a(t));this.current.fillColor=D,this.current.strokeColor=D}return this.executeOpTree(this.convertOpList(n)),this.svg=B,this.transformMatrix=T,this.current.fillColor=E,this.current.strokeColor=I,k.appendChild(M.childNodes[0]),this.defs.appendChild(k),"url(#".concat(A,")")}},{key:"_makeShadingPattern",value:function(e){switch(e[0]){case"RadialAxial":var t,n="shading".concat(C++),r=e[3];switch(e[1]){case"axial":var o=e[4],a=e[5];(t=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",o[0]),t.setAttributeNS(null,"y1",o[1]),t.setAttributeNS(null,"x2",a[0]),t.setAttributeNS(null,"y2",a[1]);break;case"radial":var s=e[4],u=e[5],c=e[6],h=e[7];(t=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",u[0]),t.setAttributeNS(null,"cy",u[1]),t.setAttributeNS(null,"r",h),t.setAttributeNS(null,"fx",s[0]),t.setAttributeNS(null,"fy",s[1]),t.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var d,f=l(r);try{for(f.s();!(d=f.n()).done;){var p=d.value,A=this.svgFactory.createElement("svg:stop");A.setAttributeNS(null,"offset",p[0]),A.setAttributeNS(null,"stop-color",p[1]),t.appendChild(A)}}catch(e){f.e(e)}finally{f.f()}return this.defs.appendChild(t),"url(#".concat(n,")");case"Mesh":return(0,i.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var n,r=this.current,o=r.x,a=r.y,s=[],u=0,c=l(e);try{for(c.s();!(n=c.n()).done;){switch(0|n.value){case i.OPS.rectangle:o=t[u++],a=t[u++];var h=o+t[u++],d=a+t[u++];s.push("M",A(o),A(a),"L",A(h),A(a),"L",A(h),A(d),"L",A(o),A(d),"Z");break;case i.OPS.moveTo:o=t[u++],a=t[u++],s.push("M",A(o),A(a));break;case i.OPS.lineTo:o=t[u++],a=t[u++],s.push("L",A(o),A(a));break;case i.OPS.curveTo:o=t[u+4],a=t[u+5],s.push("C",A(t[u]),A(t[u+1]),A(t[u+2]),A(t[u+3]),A(o),A(a)),u+=6;break;case i.OPS.curveTo2:s.push("C",A(o),A(a),A(t[u]),A(t[u+1]),A(t[u+2]),A(t[u+3])),o=t[u+2],a=t[u+3],u+=4;break;case i.OPS.curveTo3:o=t[u+2],a=t[u+3],s.push("C",A(t[u]),A(t[u+1]),A(o),A(a),A(o),A(a)),u+=4;break;case i.OPS.closePath:s.push("Z")}}}catch(e){c.e(e)}finally{c.f()}s=s.join(" "),r.path&&e.length>0&&e[0]!==i.OPS.rectangle&&e[0]!==i.OPS.moveTo?s=r.path.getAttributeNS(null,"d")+s:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(r.path)),r.path.setAttributeNS(null,"d",s),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(o,a)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(w++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",g(this.transformMatrix));var i=e.element.cloneNode(!0);"evenodd"===this.pendingClip?i.setAttributeNS(null,"clip-rule","evenodd"):i.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.appendChild(i),this.defs.appendChild(n),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach(function(e){e.clipGroup=null}),n.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var r=s(t.value,2),o=r[0],a=r[1];switch(o){case"LW":this.setLineWidth(a);break;case"LC":this.setLineCap(a);break;case"LJ":this.setLineJoin(a);break;case"ML":this.setMiterLimit(a);break;case"D":this.setDash(a[0],a[1]);break;case"RI":this.setRenderingIntent(a);break;case"FL":this.setFlatness(a);break;case"Font":this.setFont(a);break;case"CA":this.setStrokeAlpha(a);break;case"ca":this.setFillAlpha(a);break;default:(0,i.warn)("Unimplemented graphic state operator ".concat(o))}}}catch(e){n.e(e)}finally{n.f()}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.current,i=n.dashArray;1!==t&&i.length>0&&(i=i.map(function(e){return t*e})),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",A(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",A(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",i.map(A).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",A(t*n.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}},{key:"paintImageXObject",value:function(e){var t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,i.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,t){var n=e.width,i=e.height,r=_(e,this.forceDataSchema,!!t),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",A(n)),o.setAttributeNS(null,"height",A(i)),this.current.element=o,this.clip("nonzero");var a=this.svgFactory.createElement("svg:image");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",A(-i)),a.setAttributeNS(null,"width",A(n)+"px"),a.setAttributeNS(null,"height",A(i)+"px"),a.setAttributeNS(null,"transform","scale(".concat(A(1/n)," ").concat(A(-1/i),")")),t?t.appendChild(a):this._ensureTransformGroup().appendChild(a)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,n=e.width,i=e.height,r=t.fillColor;t.maskId="mask".concat(x++);var o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",t.maskId);var a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",A(n)),a.setAttributeNS(null,"height",A(i)),a.setAttributeNS(null,"fill",r),a.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.appendChild(o),this._ensureTransformGroup().appendChild(a),this.paintInlineImageXObject(e,o)}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var n=t[2]-t[0],i=t[3]-t[1],r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x",t[0]),r.setAttributeNS(null,"y",t[1]),r.setAttributeNS(null,"width",A(n)),r.setAttributeNS(null,"height",A(i)),this.current.element=r,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.appendChild(n),this.defs=n;var i=this.svgFactory.createElement("svg:g");return i.setAttributeNS(null,"transform",g(e.transform)),t.appendChild(i),this.svg=i,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",g(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var i,r=(i=n(2))&&i.__esModule?i:{default:i},o=n(5),a=n(220);function s(e){"@babel/helpers - typeof";return(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})(e)}function l(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&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(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,i=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function f(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){d(o,i,r,a,s,"next",e)}function s(e){d(o,i,r,a,s,"throw",e)}a(void 0)})}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function g(e,t,n){return t&&A(e.prototype,t),n&&A(e,n),e}var v=__webpack_require__(0),m=__webpack_require__(3),y=__webpack_require__(4),_=__webpack_require__(5),b=/^file:\/\/\/[a-zA-Z]:\//;var w=function(){function e(t){var n,i;p(this,e),this.source=t,this.url=(n=t.url,"file:"===(i=_.parse(n)).protocol||i.host?i:/^[a-z]:[/\\]/i.test(n)?_.parse("file:///".concat(n)):(i.host||(i.protocol="file:"),i)),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return g(e,[{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new T(this):new k(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=this.isFsUrl?new E(this,e,t):new B(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFNodeStream=w;var x=function(){function e(t){p(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var n=t.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=(0,o.createPromiseCapability)(),this._headersCapability=(0,o.createPromiseCapability)()}return g(e,[{key:"read",value:function(){var e=f(r.default.mark(function e(){var t,n;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,o.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),n=new Uint8Array(t).buffer,e.abrupt("return",{value:n,done:!1});case 14:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",function(){t._readCapability.resolve()}),e.on("end",function(){e.destroy(),t._done=!0,t._readCapability.resolve()}),e.on("error",function(e){t._error(e)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new o.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),C=function(){function e(t){p(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,o.createPromiseCapability)();var n=t.source;this._isStreamingSupported=!n.disableStream}return g(e,[{key:"read",value:function(){var e=f(r.default.mark(function e(){var t,n;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,o.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),n=new Uint8Array(t).buffer,e.abrupt("return",{value:n,done:!1});case 14:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",function(){t._readCapability.resolve()}),e.on("end",function(){e.destroy(),t._done=!0,t._readCapability.resolve()}),e.on("error",function(e){t._error(e)}),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}();function S(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var k=function(e){l(n,x);var t=c(n);function n(e){var i;p(this,n);var r=function(t){if(404===t.statusCode){var n=new o.MissingPDFException('Missing PDF "'.concat(i._url,'".'));return i._storedError=n,void i._headersCapability.reject(n)}i._headersCapability.resolve(),i._setReadableStream(t);var r=function(e){return i._readableStream.headers[e.toLowerCase()]},s=(0,a.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:e.isHttp,rangeChunkSize:i._rangeChunkSize,disableRange:i._disableRange}),l=s.allowRangeRequests,u=s.suggestedLength;i._isRangeSupported=l,i._contentLength=u||i._contentLength,i._filename=(0,a.extractFilenameFromHeader)(r)};return(i=t.call(this,e))._request=null,"http:"===i._url.protocol?i._request=m.request(S(i._url,e.httpHeaders),r):i._request=y.request(S(i._url,e.httpHeaders),r),i._request.on("error",function(e){i._storedError=e,i._headersCapability.reject(e)}),i._request.end(),i}return n}(),B=function(e){l(n,C);var t=c(n);function n(e,i,r){var a;for(var s in p(this,n),(a=t.call(this,e))._httpHeaders={},e.httpHeaders){var l=e.httpHeaders[s];void 0!==l&&(a._httpHeaders[s]=l)}a._httpHeaders.Range="bytes=".concat(i,"-").concat(r-1);var u=function(e){if(404!==e.statusCode)a._setReadableStream(e);else{var t=new o.MissingPDFException('Missing PDF "'.concat(a._url,'".'));a._storedError=t}};return a._request=null,"http:"===a._url.protocol?a._request=m.request(S(a._url,a._httpHeaders),u):a._request=y.request(S(a._url,a._httpHeaders),u),a._request.on("error",function(e){a._storedError=e}),a._request.end(),a}return n}(),T=function(e){l(n,x);var t=c(n);function n(e){var i;p(this,n),i=t.call(this,e);var r=decodeURIComponent(i._url.path);return b.test(i._url.href)&&(r=r.replace(/^\//,"")),v.lstat(r,function(e,t){if(e)return"ENOENT"===e.code&&(e=new o.MissingPDFException('Missing PDF "'.concat(r,'".'))),i._storedError=e,void i._headersCapability.reject(e);i._contentLength=t.size,i._setReadableStream(v.createReadStream(r)),i._headersCapability.resolve()}),i}return n}(),E=function(e){l(n,C);var t=c(n);function n(e,i,r){var o;p(this,n),o=t.call(this,e);var a=decodeURIComponent(o._url.path);return b.test(o._url.href)&&(a=a.replace(/^\//,"")),o._setReadableStream(v.createReadStream(a,{start:i,end:r-1})),o}return n}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){if(404===e||0===e&&t.startsWith("file:"))return new i.MissingPDFException('Missing PDF "'+t+'".');return new i.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)},t.extractFilenameFromHeader=function(e){var t=e("Content-Disposition");if(t){var n=(0,r.getFilenameFromContentDispositionHeader)(t);if(n.includes("%"))try{n=decodeURIComponent(n)}catch(e){}if(/\.pdf$/i.test(n))return n}return null},t.validateRangeRequestCapabilities=function(e){var t=e.getResponseHeader,n=e.isHttp,r=e.rangeChunkSize,o=e.disableRange;(0,i.assert)(r>0,"Range chunk size must be larger than zero");var a={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);if(!Number.isInteger(s))return a;if(a.suggestedLength=s,s<=2*r)return a;if(o||!n)return a;if("bytes"!==t("Accept-Ranges"))return a;if("identity"!==(t("Content-Encoding")||"identity"))return a;return a.allowRangeRequests=!0,a},t.validateResponseStatus=function(e){return 200===e||206===e};var i=n(5),r=n(221)},function(e,t,n){"use strict";function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(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 r(e,t)}(e,t)||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.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){var t=!0,n=s("filename\\*","i").exec(e);if(n){var r=c(n=n[1]);return u(r=d(r=h(r=unescape(r))))}if(n=function(e){for(var t,n=[],r=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(t=r.exec(e));){var o=t,a=i(o,4),l=a[1],u=a[2],d=a[3];if((l=parseInt(l,10))in n){if(0===l)break}else n[l]=[u,d]}for(var f=[],p=0;p<n.length&&p in n;++p){var A=i(n[p],2),g=A[0],v=A[1];v=c(v),g&&(v=unescape(v),0===p&&(v=h(v))),f.push(v)}return f.join("")}(e)){var o=d(n);return u(o)}if(n=s("filename","i").exec(e)){var a=c(n=n[1]);return u(a=d(a))}function s(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function l(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{var i=new TextDecoder(e,{fatal:!0}),r=Array.from(n,function(e){return 255&e.charCodeAt(0)});n=i.decode(new Uint8Array(r)),t=!1}catch(i){if(/^utf-?8$/i.test(e))try{n=decodeURIComponent(escape(n)),t=!1}catch(e){}}}return n}function u(e){return t&&/[\x80-\xff]/.test(e)&&(e=l("utf-8",e),t&&(e=l("iso-8859-1",e))),e}function c(e){if(e.startsWith('"')){for(var t=e.slice(1).split('\\"'),n=0;n<t.length;++n){var i=t[n].indexOf('"');-1!==i&&(t[n]=t[n].slice(0,i),t.length=n+1),t[n]=t[n].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function h(e){var t=e.indexOf("'");if(-1===t)return e;var n=e.slice(0,t),i=e.slice(t+1),r=i.replace(/^[^']*'/,"");return l(n,r)}function d(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(e,t,n,i){if("q"===n||"Q"===n)return i=(i=i.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))}),l(t,i);try{i=atob(i)}catch(e){}return l(t,i)})}return""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var i,r=(i=n(2))&&i.__esModule?i:{default:i},o=n(5),a=n(220);function s(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){s(o,i,r,a,l,"next",e)}function l(e){s(o,i,r,a,l,"throw",e)}a(void 0)})}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}var d=function(){function e(t,n){u(this,e),this.url=t,n=n||{},this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&n.httpHeaders||{},this.withCredentials=n.withCredentials||!1,this.getXhr=n.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return h(e,[{key:"requestRange",value:function(e,t,n){var i={begin:e,end:t};for(var r in n)i[r]=n[r];return this.request(i)}},{key:"requestFull",value:function(e){return this.request(e)}},{key:"request",value:function(e){var t=this.getXhr(),n=this.currXhrId++,i=this.pendingRequests[n]={xhr:t};for(var r in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var o=this.httpHeaders[r];void 0!==o&&t.setRequestHeader(r,o)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),i.expectedStatus=206):i.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),i.onHeadersReceived=e.onHeadersReceived,i.onDone=e.onDone,i.onError=e.onError,i.onProgress=e.onProgress,t.send(null),n}},{key:"onProgress",value:function(e,t){var n=this.pendingRequests[e];n&&n.onProgress&&n.onProgress(t)}},{key:"onStateChange",value:function(e,t){var n=this.pendingRequests[e];if(n){var i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4===i.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===i.status&&this.isHttp)n.onError&&n.onError(i.status);else{var r=i.status||200;if(200===r&&206===n.expectedStatus||r===n.expectedStatus){var a=function(e){var t=e.response;return"string"!=typeof t?t:(0,o.stringToBytes)(t).buffer}(i);if(206===r){var s=i.getResponseHeader("Content-Range"),l=/bytes (\d+)-(\d+)\/(\d+)/.exec(s);n.onDone({begin:parseInt(l[1],10),chunk:a})}else a?n.onDone({begin:0,chunk:a}):n.onError&&n.onError(i.status)}else n.onError&&n.onError(i.status)}}}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),f=function(){function e(t){u(this,e),this._source=t,this._manager=new d(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return h(e,[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new p(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var n=new A(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}}]),e}();t.PDFNetworkStream=f;var p=function(){function e(t,n){u(this,e),this._manager=t;var i={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._fullRequestId=t.requestFull(i),this._headersReceivedCapability=(0,o.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return h(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=function(e){return t.getResponseHeader(e)},i=(0,a.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),r=i.allowRangeRequests,o=i.suggestedLength;r&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,a.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk));this._done=!0,this._cachedChunks.length>0||(this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[])}},{key:"_onError",value:function(e){var t=this._url,n=(0,a.createResponseStatusError)(e,t);this._storedError=n,this._headersReceivedCapability.reject(n),this._requests.forEach(function(e){e.reject(n)}),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"read",value:function(){var e=l(r.default.mark(function e(){var t,n;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return n=(0,o.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 10:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),e}(),A=function(){function e(t,n,i){u(this,e),this._manager=t;var r={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(n,i,r),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return h(e,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(e){var t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t;this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}},{key:"_onProgress",value:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}},{key:"read",value:function(){var e=l(r.default.mark(function e(){var t,n;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,o.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var i,r=(i=n(2))&&i.__esModule?i:{default:i},o=n(5),a=n(220);function s(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){s(o,i,r,a,l,"next",e)}function l(e){s(o,i,r,a,l,"throw",e)}a(void 0)})}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function d(e,t,n){return{method:"GET",headers:e,signal:n&&n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function f(e){var t=new Headers;for(var n in e){var i=e[n];void 0!==i&&t.append(n,i)}return t}var p=function(){function e(t){u(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return h(e,[{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new A(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=new g(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFFetchStream=p;var A=function(){function e(t){var n=this;u(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var i=t.source;this._withCredentials=i.withCredentials||!1,this._contentLength=i.length,this._headersCapability=(0,o.createPromiseCapability)(),this._disableRange=i.disableRange||!1,this._rangeChunkSize=i.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!i.disableStream,this._isRangeSupported=!i.disableRange,this._headers=f(this._stream.httpHeaders);var r=i.url;fetch(r,d(this._headers,this._withCredentials,this._abortController)).then(function(e){if(!(0,a.validateResponseStatus)(e.status))throw(0,a.createResponseStatusError)(e.status,r);n._reader=e.body.getReader(),n._headersCapability.resolve();var t=function(t){return e.headers.get(t)},i=(0,a.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:n._stream.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),s=i.allowRangeRequests,l=i.suggestedLength;n._isRangeSupported=s,n._contentLength=l||n._contentLength,n._filename=(0,a.extractFilenameFromHeader)(t),!n._isStreamingSupported&&n._isRangeSupported&&n.cancel(new o.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return h(e,[{key:"read",value:function(){var e=l(r.default.mark(function e(){var t,n,i,o;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,n=t.value,!(i=t.done)){e.next=9;break}return e.abrupt("return",{value:n,done:i});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),o=new Uint8Array(n).buffer,e.abrupt("return",{value:o,done:!1});case 13:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),g=function(){function e(t,n,i){var r=this;u(this,e),this._stream=t,this._reader=null,this._loaded=0;var s=t.source;this._withCredentials=s.withCredentials||!1,this._readCapability=(0,o.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=f(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(n,"-").concat(i-1));var l=s.url;fetch(l,d(this._headers,this._withCredentials,this._abortController)).then(function(e){if(!(0,a.validateResponseStatus)(e.status))throw(0,a.createResponseStatusError)(e.status,l);r._readCapability.resolve(),r._reader=e.body.getReader()}).catch(function(e){if(!e||"AbortError"!==e.name)throw e}),this.onProgress=null}return h(e,[{key:"read",value:function(){var e=l(r.default.mark(function e(){var t,n,i,o;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,n=t.value,!(i=t.done)){e.next=9;break}return e.abrupt("return",{value:n,done:i});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),o=new Uint8Array(n).buffer,e.abrupt("return",{value:o,done:!1});case 13:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}()}])},module.exports=factory()}).call(exports,__webpack_require__("EuP9").Buffer,__webpack_require__("lNQ5"),__webpack_require__("DuR2"))},R4wc:function(e,t,n){var i=n("kM2E");i(i.S+i.F,"Object",{assign:n("To3L")})},R9M2:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},RDoK:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=108)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},108:function(e,t,n){"use strict";n.r(t);var i=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",autocomplete:"off"},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)])};i._withStripped=!0;var r=n(4),o={name:"ElRadio",mixins:[n.n(r).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)})}}},a=n(0),s=Object(a.a)(o,i,[],!1,null,null,null);s.options.__file="packages/radio/src/radio.vue";var l=s.exports;l.install=function(e){e.component(l.name,l)};t.default=l},4:function(e,t){e.exports=n("fPll")}})},RPLV:function(e,t,n){var i=n("7KvD").document;e.exports=i&&i.documentElement},"RY/4":function(e,t,n){var i=n("R9M2"),r=n("dSzd")("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:o?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},Rl2i:function(e,t){e.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},Rrel:function(e,t,n){var i=n("TcQ7"),r=n("n0T6").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(i(e))}},S82l:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},SLDG:function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},STLj:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=53)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},3:function(e,t){e.exports=n("ylDJ")},33:function(e,t,n){"use strict";var i=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)};i._withStripped=!0;var r=n(4),o=n.n(r),a=n(3),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},l={mixins:[o.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,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===(void 0===e?"undefined":s(e))&&"object"===(void 0===t?"undefined":s(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(a.getValueByPath)(e,n)===Object(a.getValueByPath)(t,n)}return e===t},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(a.getValueByPath)(e,n)===Object(a.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(a.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,t=e.selected,n=e.multiple?t:[t],i=this.select.cachedOptions.indexOf(this),r=n.indexOf(this);i>-1&&r<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},u=n(0),c=Object(u.a)(l,i,[],!1,null,null,null);c.options.__file="packages/select/src/option.vue";t.a=c.exports},4:function(e,t){e.exports=n("fPll")},53:function(e,t,n){"use strict";n.r(t);var i=n(33);i.a.install=function(e){e.component(i.a.name,i.a)},t.default=i.a}})},SXzR:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=79)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},2:function(e,t){e.exports=n("2kvA")},3:function(e,t){e.exports=n("ylDJ")},5:function(e,t){e.exports=n("fKx3")},7:function(e,t){e.exports=n("7+uW")},79:function(e,t,n){"use strict";n.r(t);var i=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)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)};i._withStripped=!0;var r=n(5),o=n.n(r),a=n(2),s=n(3),l={name:"ElPopover",mixins:[o.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},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(s.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.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(a.addClass)(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(a.on)(t,"focusin",function(){e.handleFocus();var n=t.__vue__;n&&"function"==typeof n.focus&&n.focus()}),Object(a.on)(n,"focusin",this.handleFocus),Object(a.on)(t,"focusout",this.handleBlur),Object(a.on)(n,"focusout",this.handleBlur)),Object(a.on)(t,"keydown",this.handleKeydown),Object(a.on)(t,"click",this.handleClick)),"click"===this.trigger?(Object(a.on)(t,"click",this.doToggle),Object(a.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(a.on)(t,"mouseenter",this.handleMouseEnter),Object(a.on)(n,"mouseenter",this.handleMouseEnter),Object(a.on)(t,"mouseleave",this.handleMouseLeave),Object(a.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(a.on)(t,"focusin",this.doShow),Object(a.on)(t,"focusout",this.doClose)):(Object(a.on)(t,"mousedown",this.doShow),Object(a.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(a.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(a.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(a.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.closeDelay?this._timer=setTimeout(function(){e.showPopper=!1},this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),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||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(a.off)(e,"click",this.doToggle),Object(a.off)(e,"mouseup",this.doClose),Object(a.off)(e,"mousedown",this.doShow),Object(a.off)(e,"focusin",this.doShow),Object(a.off)(e,"focusout",this.doClose),Object(a.off)(e,"mousedown",this.doShow),Object(a.off)(e,"mouseup",this.doClose),Object(a.off)(e,"mouseleave",this.handleMouseLeave),Object(a.off)(e,"mouseenter",this.handleMouseEnter),Object(a.off)(document,"click",this.handleDocumentClick)}},u=n(0),c=Object(u.a)(l,i,[],!1,null,null,null);c.options.__file="packages/popover/src/main.vue";var h=c.exports,d=function(e,t,n){var i=t.expression?t.value:t.arg,r=n.context.$refs[i];r&&(Array.isArray(r)?r[0].$refs.reference=e:r.$refs.reference=e)},f={bind:function(e,t,n){d(e,t,n)},inserted:function(e,t,n){d(e,t,n)}},p=n(7);n.n(p).a.directive("popover",f),h.install=function(e){e.directive("popover",f),e.component(h.name,h)},h.directive=f;t.default=h}})},SfB7:function(e,t,n){e.exports=!n("+E39")&&!n("S82l")(function(){return 7!=Object.defineProperty(n("ON07")("div"),"a",{get:function(){return 7}}).a})},SvnF:function(e,t,n){"use strict";t.__esModule=!0;var i="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),a=1;a<t;a++)n[a-1]=arguments[a];return 1===n.length&&"object"===i(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(o,function(t,i,o,a){var s=void 0;return"{"===e[a-1]&&"}"===e[a+t.length]?o:null===(s=(0,r.hasOwn)(n,o)?n[o]:null)||void 0===s?"":s})}};var r=n("ylDJ"),o=/(%|)\{([0-9a-zA-Z_]+)\}/g},TNV1:function(e,t,n){"use strict";var i=n("cGG2"),r=n("KCLY");e.exports=function(e,t,n){var o=this||r;return i.forEach(n,function(n){e=n.call(o,e,t)}),e}},TcQ7:function(e,t,n){var i=n("MU5D"),r=n("52gC");e.exports=function(e){return i(r(e))}},To3L:function(e,t,n){"use strict";var i=n("+E39"),r=n("lktj"),o=n("1kS7"),a=n("NpIQ"),s=n("sB3e"),l=n("MU5D"),u=Object.assign;e.exports=!u||n("S82l")(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=i})?function(e,t){for(var n=s(e),u=arguments.length,c=1,h=o.f,d=a.f;u>c;)for(var f,p=l(arguments[c++]),A=h?r(p).concat(h(p)):r(p),g=A.length,v=0;g>v;)f=A[v++],i&&!d.call(p,f)||(n[f]=p[f]);return n}:u},U5ju:function(e,t,n){n("M6a0"),n("zQR9"),n("+tPU"),n("CXw9"),n("EqBC"),n("jKW+"),e.exports=n("FeBl").Promise},UuGF:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},V3tA:function(e,t,n){n("R4wc"),e.exports=n("FeBl").Object.assign},"VU/8":function(e,t){e.exports=function(e,t,n,i,r,o){var a,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(a=e,s=e.default);var u,c="function"==typeof s?s.options:s;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r),o?(u=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)},c._ssrRegister=u):i&&(u=i),u){var h=c.functional,d=h?c.render:c.beforeCreate;h?(c._injectStyles=u,c.render=function(e,t){return u.call(t),d(e,t)}):c.beforeCreate=d?[].concat(d,u):[u]}return{esModule:a,exports:s,options:c}}},Vi3T: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:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},WwEC:function(e,t,n){(function(t){!function(t){"use strict";var n=function(){},i="undefined"==typeof console?{log:n,debug:n,error:n,warn:n,info:n}:console;if(void 0!==e&&e.exports||void 0===t.jsMind){var r=t.document,o=function(e){return r.createElement(e)},a=function(e,t){e.hasChildNodes()?e.firstChild.nodeValue=t:e.appendChild(r.createTextNode(t))},s=function(e,t){t instanceof HTMLElement?(e.innerHTML="",e.appendChild(t)):e.innerHTML=t};"function"!=typeof String.prototype.startsWith&&(String.prototype.startsWith=function(e){return this.slice(0,e.length)===e});var l={container:"",editable:!1,theme:null,mode:"full",support_html:!0,view:{engine:"canvas",hmargin:100,vmargin:50,line_width:2,line_color:"#555",draggable:!1,hide_scrollbars_when_draggable:!1},layout:{hspace:30,vspace:20,pspace:13},default_event_handle:{enable_mousedown_handle:!0,enable_click_handle:!0,enable_dblclick_handle:!0,enable_mousewheel_handle:!0},shortcut:{enable:!0,handles:{},mapping:{addchild:45,addbrother:13,editnode:113,delnode:46,toggle:32,left:37,up:38,right:39,down:40}}},u=function(e){u.current=this,this.version="0.4.8";var t={};u.util.json.merge(t,l),u.util.json.merge(t,e),t.container?(this.options=t,this.inited=!1,this.mind=null,this.event_handles=[],this.init()):i.error("the options.container should not be null or empty.")};u.direction={left:-1,center:0,right:1},u.event_type={show:1,resize:2,edit:3,select:4},u.key={meta:8192,ctrl:4096,alt:2048,shift:1024},u.node=function(e,t,n,r,o,a,s,l){e?"number"==typeof t?(void 0===l&&(l=!0),this.id=e,this.index=t,this.topic=n,this.data=r||{},this.isroot=o,this.parent=a,this.direction=s,this.expanded=!!l,this.children=[],this._data={}):i.error("invalid node index"):i.error("invalid nodeid")},u.node.compare=function(e,t){var n=e.index,i=t.index;return n>=0&&i>=0?n-i:-1==n&&-1==i?0:-1==n?1:-1==i?-1:0},u.node.inherited=function(e,t){if(e&&t){if(e.id===t.id)return!0;if(e.isroot)return!0;for(var n=e.id,i=t;!i.isroot;)if((i=i.parent).id===n)return!0}return!1},u.node.prototype={get_location:function(){var e=this._data.view;return{x:e.abs_x,y:e.abs_y}},get_size:function(){var e=this._data.view;return{w:e.width,h:e.height}}},u.mind=function(){this.name=null,this.author=null,this.version=null,this.root=null,this.selected=null,this.nodes={}},u.mind.prototype={get_node:function(e){return e in this.nodes?this.nodes[e]:(i.warn("the node[id="+e+"] can not be found"),null)},set_root:function(e,t,n){null==this.root?(this.root=new u.node(e,0,t,n,!0),this._put_node(this.root)):i.error("root node is already exist")},add_node:function(e,t,n,r,o,a,s){if(!u.util.is_node(e)){var l=this.get_node(e);return l?this.add_node(l,t,n,r,o,a,s):(i.error("the parent_node[id="+e+"] can not be found."),null)}var c=o||-1,h=null;if(e.isroot){var d=u.direction.right;if(isNaN(a)){if("side"!==u.current.options.mode){for(var f=e.children,p=f.length,A=0,g=0;g<p;g++)f[g].direction===u.direction.left?A--:A++;d=p>1&&A>0?u.direction.left:u.direction.right}}else d=a!=u.direction.left?u.direction.right:u.direction.left;h=new u.node(t,c,n,r,!1,e,d,s)}else h=new u.node(t,c,n,r,!1,e,e.direction,s);return this._put_node(h)?(e.children.push(h),this._reindex(e)):(i.error("fail, the nodeid '"+h.id+"' has been already exist."),h=null),h},insert_node_before:function(e,t,n,r){if(!u.util.is_node(e)){var o=this.get_node(e);return o?this.insert_node_before(o,t,n,r):(i.error("the node_before[id="+e+"] can not be found."),null)}var a=e.index-.5;return this.add_node(e.parent,t,n,r,a)},get_node_before:function(e){if(!u.util.is_node(e)){var t=this.get_node(e);return t?this.get_node_before(t):(i.error("the node[id="+e+"] can not be found."),null)}if(e.isroot)return null;var n=e.index-2;return n>=0?e.parent.children[n]:null},insert_node_after:function(e,t,n,r){if(!u.util.is_node(e)){var o=this.get_node(e);return o?this.insert_node_after(o,t,n,r):(i.error("the node_after[id="+e+"] can not be found."),null)}var a=e.index+.5;return this.add_node(e.parent,t,n,r,a)},get_node_after:function(e){if(!u.util.is_node(e)){var t=this.get_node(e);return t?this.get_node_after(t):(i.error("the node[id="+e+"] can not be found."),null)}if(e.isroot)return null;var n=e.index;return e.parent.children.length>=n?e.parent.children[n]:null},move_node:function(e,t,n,r){if(!u.util.is_node(e)){var o=this.get_node(e);return o?this.move_node(o,t,n,r):(i.error("the node[id="+e+"] can not be found."),null)}return n||(n=e.parent.id),this._move_node(e,t,n,r)},_flow_node_direction:function(e,t){void 0===t?t=e.direction:e.direction=t;for(var n=e.children.length;n--;)this._flow_node_direction(e.children[n],t)},_move_node_internal:function(e,t){if(e&&t)if("_last_"==t)e.index=-1,this._reindex(e.parent);else if("_first_"==t)e.index=0,this._reindex(e.parent);else{var n=t?this.get_node(t):null;null!=n&&null!=n.parent&&n.parent.id==e.parent.id&&(e.index=n.index-.5,this._reindex(e.parent))}return e},_move_node:function(e,t,n,i){if(e&&n){if(e.parent.id!=n){for(var r=e.parent.children,o=r.length;o--;)if(r[o].id==e.id){r.splice(o,1);break}e.parent=this.get_node(n),e.parent.children.push(e)}e.parent.isroot?i==u.direction.left?e.direction=i:e.direction=u.direction.right:e.direction=e.parent.direction,this._move_node_internal(e,t),this._flow_node_direction(e)}return e},remove_node:function(e){if(!u.util.is_node(e)){var t=this.get_node(e);return t?this.remove_node(t):(i.error("the node[id="+e+"] can not be found."),!1)}if(!e)return i.error("fail, the node can not be found"),!1;if(e.isroot)return i.error("fail, can not remove root node"),!1;null!=this.selected&&this.selected.id==e.id&&(this.selected=null);for(var n=e.children,r=n.length;r--;)this.remove_node(n[r]);n.length=0;for(var o=e.parent.children,a=o.length;a--;)if(o[a].id==e.id){o.splice(a,1);break}for(var s in delete this.nodes[e.id],e)delete e[s];return e=null,!0},_put_node:function(e){return e.id in this.nodes?(i.warn("the nodeid '"+e.id+"' has been already exist."),!1):(this.nodes[e.id]=e,!0)},_reindex:function(e){if(e instanceof u.node){e.children.sort(u.node.compare);for(var t=0;t<e.children.length;t++)e.children[t].index=t+1}}},u.format={node_tree:{example:{meta:{name:"jsMind",author:"hizzgdev@163.com",version:"0.4.8"},format:"node_tree",data:{id:"root",topic:"jsMind Example"}},get_mind:function(e){var t=u.format.node_tree,n=new u.mind;return n.name=e.meta.name,n.author=e.meta.author,n.version=e.meta.version,t._parse(n,e.data),n},get_data:function(e){var t=u.format.node_tree,n={};return n.meta={name:e.name,author:e.author,version:e.version},n.format="node_tree",n.data=t._buildnode(e.root),n},_parse:function(e,t){var n=u.format.node_tree,i=n._extract_data(t);if(e.set_root(t.id,t.topic,i),"children"in t)for(var r=t.children,o=0;o<r.length;o++)n._extract_subnode(e,e.root,r[o])},_extract_data:function(e){var t={};for(var n in e)"id"!=n&&"topic"!=n&&"children"!=n&&"direction"!=n&&"expanded"!=n&&(t[n]=e[n]);return t},_extract_subnode:function(e,t,n){var i=u.format.node_tree,r=i._extract_data(n),o=null;t.isroot&&(o="left"==n.direction?u.direction.left:u.direction.right);var a=e.add_node(t,n.id,n.topic,r,null,o,n.expanded);if(n.children)for(var s=n.children,l=0;l<s.length;l++)i._extract_subnode(e,a,s[l])},_buildnode:function(e){var t=u.format.node_tree;if(e instanceof u.node){var n={id:e.id,topic:e.topic,expanded:e.expanded};if(e.parent&&e.parent.isroot&&(n.direction=e.direction==u.direction.left?"left":"right"),null!=e.data){var i=e.data;for(var r in i)n[r]=i[r]}var o=e.children;if(o.length>0){n.children=[];for(var a=0;a<o.length;a++)n.children.push(t._buildnode(o[a]))}return n}}},node_array:{example:{meta:{name:"jsMind",author:"hizzgdev@163.com",version:"0.4.8"},format:"node_array",data:[{id:"root",topic:"jsMind Example",isroot:!0}]},get_mind:function(e){var t=u.format.node_array,n=new u.mind;return n.name=e.meta.name,n.author=e.meta.author,n.version=e.meta.version,t._parse(n,e.data),n},get_data:function(e){var t=u.format.node_array,n={};return n.meta={name:e.name,author:e.author,version:e.version},n.format="node_array",n.data=[],t._array(e,n.data),n},_parse:function(e,t){var n=u.format.node_array,r=t.slice(0);r.reverse();var o=n._extract_root(e,r);o?n._extract_subnode(e,o,r):i.error("root node can not be found")},_extract_root:function(e,t){for(var n=u.format.node_array,i=t.length;i--;)if("isroot"in t[i]&&t[i].isroot){var r=t[i],o=n._extract_data(r);return e.set_root(r.id,r.topic,o),t.splice(i,1),r.id}return null},_extract_subnode:function(e,t,n){for(var i=u.format.node_array,r=n.length,o=null,a=null,s=0;r--;)if((o=n[r]).parentid==t){a=i._extract_data(o);var l=null,c=o.direction;c&&(l="left"==c?u.direction.left:u.direction.right),e.add_node(t,o.id,o.topic,a,null,l,o.expanded),n.splice(r,1),s++;var h=i._extract_subnode(e,o.id,n);h>0&&(r=n.length,s+=h)}return s},_extract_data:function(e){var t={};for(var n in e)"id"!=n&&"topic"!=n&&"parentid"!=n&&"isroot"!=n&&"direction"!=n&&"expanded"!=n&&(t[n]=e[n]);return t},_array:function(e,t){u.format.node_array._array_node(e.root,t)},_array_node:function(e,t){var n=u.format.node_array;if(e instanceof u.node){var i={id:e.id,topic:e.topic,expanded:e.expanded};if(e.parent&&(i.parentid=e.parent.id),e.isroot&&(i.isroot=!0),e.parent&&e.parent.isroot&&(i.direction=e.direction==u.direction.left?"left":"right"),null!=e.data){var r=e.data;for(var o in r)i[o]=r[o]}t.push(i);for(var a=e.children.length,s=0;s<a;s++)n._array_node(e.children[s],t)}}},freemind:{example:{meta:{name:"jsMind",author:"hizzgdev@163.com",version:"0.4.8"},format:"freemind",data:'<map version="1.0.1"><node ID="root" TEXT="freemind Example"/></map>'},get_mind:function(e){var t=u.format.freemind,n=new u.mind;n.name=e.meta.name,n.author=e.meta.author,n.version=e.meta.version;var i=e.data,r=t._parse_xml(i),o=t._find_root(r);return t._load_node(n,null,o),n},get_data:function(e){var t=u.format.freemind,n={};n.meta={name:e.name,author:e.author,version:e.version},n.format="freemind";var i=[];return i.push('<map version="1.0.1">'),t._buildmap(e.root,i),i.push("</map>"),n.data=i.join(" "),n},_parse_xml:function(e){var t=null;window.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e));return t},_find_root:function(e){for(var t=e.childNodes,n=null,i=null,r=0;r<t.length;r++)if(1==(i=t[r]).nodeType&&"map"==i.tagName){n=i;break}if(n){var o=n.childNodes;n=null;for(r=0;r<o.length;r++)if(1==(i=o[r]).nodeType&&"node"==i.tagName){n=i;break}}return n},_load_node:function(e,t,n){var i=u.format.freemind,r=n.getAttribute("ID"),o=n.getAttribute("TEXT");if(null==o)for(var a=n.childNodes,s=null,l=0;l<a.length;l++)if(1==(s=a[l]).nodeType&&"richcontent"===s.tagName){o=s.textContent;break}var c=i._load_attributes(n),h=!("expanded"in c)||"true"==c.expanded;delete c.expanded;var d=n.getAttribute("POSITION"),f=null;d&&(f="left"==d?u.direction.left:u.direction.right),t?e.add_node(t,r,o,c,null,f,h):e.set_root(r,o,c);var p=n.childNodes,A=null;for(l=0;l<p.length;l++)1==(A=p[l]).nodeType&&"node"==A.tagName&&i._load_node(e,r,A)},_load_attributes:function(e){for(var t=e.childNodes,n=null,i={},r=0;r<t.length;r++)1==(n=t[r]).nodeType&&"attribute"===n.tagName&&(i[n.getAttribute("NAME")]=n.getAttribute("VALUE"));return i},_buildmap:function(e,t){var n=u.format.freemind,i=null;e.parent&&e.parent.isroot&&(i=e.direction===u.direction.left?"left":"right"),t.push("<node"),t.push('ID="'+e.id+'"'),i&&t.push('POSITION="'+i+'"'),t.push('TEXT="'+e.topic+'">'),t.push('<attribute NAME="expanded" VALUE="'+e.expanded+'"/>');var r=e.data;if(null!=r)for(var o in r)t.push('<attribute NAME="'+o+'" VALUE="'+r[o]+'"/>');for(var a=e.children,s=0;s<a.length;s++)n._buildmap(a[s],t);t.push("</node>")}}},u.util={is_node:function(e){return!!e&&e instanceof u.node},ajax:{_xhr:function(){var e=null;if(window.XMLHttpRequest)e=new XMLHttpRequest;else try{e=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}return e},_eurl:function(e){return encodeURIComponent(e)},request:function(e,t,n,r,o){var a=u.util.ajax,s=null,l=[];for(var c in t)l.push(a._eurl(c)+"="+a._eurl(t[c]));l.length>0&&(s=l.join("&"));var h=a._xhr();h&&(h.onreadystatechange=function(){if(4==h.readyState)if(200==h.status||0==h.status){if("function"==typeof r){var e=u.util.json.string2json(h.responseText);r(null!=e?e:h.responseText)}}else"function"==typeof o?o(h):i.error("xhr request failed.",h)},n=n||"GET",h.open(n,e,!0),h.setRequestHeader("If-Modified-Since","0"),"POST"==n?(h.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),h.send(s)):h.send())},get:function(e,t){return u.util.ajax.request(e,{},"GET",t)},post:function(e,t,n){return u.util.ajax.request(e,t,"POST",n)}},dom:{add_event:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}},file:{read:function(e,t){var n=new FileReader;n.onload=function(){"function"==typeof t&&t(this.result,e.name)},n.readAsText(e)},save:function(e,n,i){var a;if("function"==typeof t.Blob)a=new Blob([e],{type:n});else{var s=new(t.BlobBuilder||t.MozBlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder);s.append(e),a=s.getBlob(n)}if(navigator.msSaveBlob)navigator.msSaveBlob(a,i);else{var l=(t.URL||t.webkitURL).createObjectURL(a),u=o("a");if("download"in u){u.style.visibility="hidden",u.href=l,u.download=i,r.body.appendChild(u);var c=r.createEvent("MouseEvents");c.initEvent("click",!0,!0),u.dispatchEvent(c),r.body.removeChild(u)}else location.href=l}}},json:{json2string:function(e){if(JSON)try{return JSON.stringify(e)}catch(e){return i.warn(e),i.warn("can not convert to string"),null}},string2json:function(e){if(JSON)try{return JSON.parse(e)}catch(e){return i.warn(e),i.warn("can not parse to json"),null}},merge:function(e,t){for(var n in t)n in e?"object"!=typeof e[n]||"[object object]"!=Object.prototype.toString.call(e[n]).toLowerCase()||e[n].length?e[n]=t[n]:u.util.json.merge(e[n],t[n]):e[n]=t[n];return e}},uuid:{newid:function(){return((new Date).getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}},text:{is_empty:function(e){return!e||0==e.replace(/\s*/,"").length}}},u.prototype={init:function(){if(!this.inited){this.inited=!0;var e=this.options,t={mode:e.mode,hspace:e.layout.hspace,vspace:e.layout.vspace,pspace:e.layout.pspace},n={container:e.container,support_html:e.support_html,engine:e.view.engine,hmargin:e.view.hmargin,vmargin:e.view.vmargin,line_width:e.view.line_width,line_color:e.view.line_color,draggable:e.view.draggable,hide_scrollbars_when_draggable:e.view.hide_scrollbars_when_draggable};this.data=new u.data_provider(this),this.layout=new u.layout_provider(this,t),this.view=new u.view_provider(this,n),this.shortcut=new u.shortcut_provider(this,e.shortcut),this.data.init(),this.layout.init(),this.view.init(),this.shortcut.init(),this._event_bind(),u.init_plugins(this)}},enable_edit:function(){this.options.editable=!0},disable_edit:function(){this.options.editable=!1},enable_event_handle:function(e){this.options.default_event_handle["enable_"+e+"_handle"]=!0},disable_event_handle:function(e){this.options.default_event_handle["enable_"+e+"_handle"]=!1},get_editable:function(){return this.options.editable},set_theme:function(e){var t=this.options.theme;this.options.theme=e||null,t!=this.options.theme&&(this.view.reset_theme(),this.view.reset_custom_style())},_event_bind:function(){this.view.add_event(this,"mousedown",this.mousedown_handle),this.view.add_event(this,"click",this.click_handle),this.view.add_event(this,"dblclick",this.dblclick_handle),this.view.add_event(this,"mousewheel",this.mousewheel_handle)},mousedown_handle:function(e){if(this.options.default_event_handle.enable_mousedown_handle){var t=e.target||event.srcElement,n=this.view.get_binded_nodeid(t);n?"jmnode"==t.tagName.toLowerCase()&&this.select_node(n):this.select_clear()}},click_handle:function(e){if(this.options.default_event_handle.enable_click_handle){var t=e.target||event.srcElement;if(this.view.is_expander(t)){var n=this.view.get_binded_nodeid(t);n&&this.toggle_node(n)}}},dblclick_handle:function(e){if(this.options.default_event_handle.enable_dblclick_handle&&this.get_editable()){var t=e.target||event.srcElement,n=this.view.get_binded_nodeid(t);n&&this.begin_edit(n)}},mousewheel_handle:function(e){this.options.default_event_handle.enable_mousewheel_handle&&window.event.ctrlKey&&(e.preventDefault(),"Up"==(e.deltaY>0?"Up":"Down")?this.view.zoomIn():this.view.zoomOut())},begin_edit:function(e){if(!u.util.is_node(e)){var t=this.get_node(e);return t?this.begin_edit(t):(i.error("the node[id="+e+"] can not be found."),!1)}this.get_editable()?this.view.edit_node_begin(e):i.error("fail, this mind map is not editable.")},end_edit:function(){this.view.edit_node_end()},toggle_node:function(e){if(!u.util.is_node(e)){var t=this.get_node(e);return t?this.toggle_node(t):void i.error("the node[id="+e+"] can not be found.")}e.isroot||(this.view.save_location(e),this.layout.toggle_node(e),this.view.relayout(),this.view.restore_location(e))},expand_node:function(e){if(!u.util.is_node(e)){var t=this.get_node(e);return t?this.expand_node(t):void i.error("the node[id="+e+"] can not be found.")}e.isroot||(this.view.save_location(e),this.layout.expand_node(e),this.view.relayout(),this.view.restore_location(e))},collapse_node:function(e){if(!u.util.is_node(e)){var t=this.get_node(e);return t?this.collapse_node(t):void i.error("the node[id="+e+"] can not be found.")}e.isroot||(this.view.save_location(e),this.layout.collapse_node(e),this.view.relayout(),this.view.restore_location(e))},expand_all:function(){this.layout.expand_all(),this.view.relayout()},collapse_all:function(){this.layout.collapse_all(),this.view.relayout()},expand_to_depth:function(e){this.layout.expand_to_depth(e),this.view.relayout()},_reset:function(){this.view.reset(),this.layout.reset(),this.data.reset()},_show:function(e){var t=e||u.format.node_array.example;this.mind=this.data.load(t),this.mind?(i.debug("data.load ok"),this.view.load(),i.debug("view.load ok"),this.layout.layout(),i.debug("layout.layout ok"),this.view.show(!0),i.debug("view.show ok"),this.invoke_event_handle(u.event_type.show,{data:[e]})):i.error("data.load error")},show:function(e){this._reset(),this._show(e)},get_meta:function(){return{name:this.mind.name,author:this.mind.author,version:this.mind.version}},get_data:function(e){var t=e||"node_tree";return this.data.get_data(t)},get_root:function(){return this.mind.root},get_node:function(e){return this.mind.get_node(e)},add_node:function(e,t,n,r){if(this.get_editable()){var o=this.mind.add_node(e,t,n,r);return o&&(this.view.add_node(o),this.layout.layout(),this.view.show(!1),this.view.reset_node_custom_style(o),this.expand_node(e),this.invoke_event_handle(u.event_type.edit,{evt:"add_node",data:[e.id,t,n,r],node:t})),o}return i.error("fail, this mind map is not editable"),null},insert_node_before:function(e,t,n,r){if(this.get_editable()){var o=u.util.is_node(e)?e.id:e,a=this.mind.insert_node_before(e,t,n,r);return a&&(this.view.add_node(a),this.layout.layout(),this.view.show(!1),this.invoke_event_handle(u.event_type.edit,{evt:"insert_node_before",data:[o,t,n,r],node:t})),a}return i.error("fail, this mind map is not editable"),null},insert_node_after:function(e,t,n,r){if(this.get_editable()){var o=u.util.is_node(e)?e.id:e,a=this.mind.insert_node_after(e,t,n,r);return a&&(this.view.add_node(a),this.layout.layout(),this.view.show(!1),this.invoke_event_handle(u.event_type.edit,{evt:"insert_node_after",data:[o,t,n,r],node:t})),a}return i.error("fail, this mind map is not editable"),null},remove_node:function(e){if(!u.util.is_node(e)){var t=this.get_node(e);return t?this.remove_node(t):(i.error("the node[id="+e+"] can not be found."),!1)}if(this.get_editable()){if(e.isroot)return i.error("fail, can not remove root node"),!1;var n=e.id,r=e.parent.id,o=this.get_node(r);return this.view.save_location(o),this.view.remove_node(e),this.mind.remove_node(e),this.layout.layout(),this.view.show(!1),this.view.restore_location(o),this.invoke_event_handle(u.event_type.edit,{evt:"remove_node",data:[n],node:r}),!0}return i.error("fail, this mind map is not editable"),!1},update_node:function(e,t){if(this.get_editable())if(u.util.text.is_empty(t))i.warn("fail, topic can not be empty");else{var n=this.get_node(e);if(n){if(n.topic===t)return i.info("nothing changed"),void this.view.update_node(n);n.topic=t,this.view.update_node(n),this.layout.layout(),this.view.show(!1),this.invoke_event_handle(u.event_type.edit,{evt:"update_node",data:[e,t],node:e})}}else i.error("fail, this mind map is not editable")},move_node:function(e,t,n,r){if(this.get_editable()){var o=this.mind.move_node(e,t,n,r);o&&(this.view.update_node(o),this.layout.layout(),this.view.show(!1),this.invoke_event_handle(u.event_type.edit,{evt:"move_node",data:[e,t,n,r],node:e}))}else i.error("fail, this mind map is not editable")},select_node:function(e){if(!u.util.is_node(e)){var t=this.get_node(e);return t?this.select_node(t):void i.error("the node[id="+e+"] can not be found.")}this.layout.is_visible(e)&&(this.mind.selected=e,this.view.select_node(e),this.invoke_event_handle(u.event_type.select,{evt:"select_node",data:[],node:e.id}))},get_selected_node:function(){return this.mind?this.mind.selected:null},select_clear:function(){this.mind&&(this.mind.selected=null,this.view.select_clear())},is_node_visible:function(e){return this.layout.is_visible(e)},find_node_before:function(e){if(!u.util.is_node(e)){var t=this.get_node(e);return t?this.find_node_before(t):void i.error("the node[id="+e+"] can not be found.")}if(e.isroot)return null;var n=null;if(e.parent.isroot)for(var r=e.parent.children,o=null,a=null,s=0;s<r.length;s++)a=r[s],e.direction===a.direction&&(e.id===a.id&&(n=o),o=a);else n=this.mind.get_node_before(e);return n},find_node_after:function(e){if(!u.util.is_node(e)){var t=this.get_node(e);return t?this.find_node_after(t):void i.error("the node[id="+e+"] can not be found.")}if(e.isroot)return null;var n=null;if(e.parent.isroot){for(var r=e.parent.children,o=!1,a=null,s=0;s<r.length;s++)if(a=r[s],e.direction===a.direction){if(o){n=a;break}e.id===a.id&&(o=!0)}}else n=this.mind.get_node_after(e);return n},set_node_color:function(e,t,n){if(!this.get_editable())return i.error("fail, this mind map is not editable"),null;var r=this.mind.get_node(e);r&&(t&&(r.data["background-color"]=t),n&&(r.data["foreground-color"]=n),this.view.reset_node_custom_style(r))},set_node_font_style:function(e,t,n,r){if(!this.get_editable())return i.error("fail, this mind map is not editable"),null;var o=this.mind.get_node(e);o&&(t&&(o.data["font-size"]=t),n&&(o.data["font-weight"]=n),r&&(o.data["font-style"]=r),this.view.reset_node_custom_style(o),this.view.update_node(o),this.layout.layout(),this.view.show(!1))},set_node_background_image:function(e,t,n,r,o){if(!this.get_editable())return i.error("fail, this mind map is not editable"),null;var a=this.mind.get_node(e);a&&(t&&(a.data["background-image"]=t),n&&(a.data.width=n),r&&(a.data.height=r),o&&(a.data["background-rotation"]=o),this.view.reset_node_custom_style(a),this.view.update_node(a),this.layout.layout(),this.view.show(!1))},set_node_background_rotation:function(e,t){if(!this.get_editable())return i.error("fail, this mind map is not editable"),null;var n=this.mind.get_node(e);if(n){if(!n.data["background-image"])return i.error("fail, only can change rotation angle of node with background image"),null;n.data["background-rotation"]=t,this.view.reset_node_custom_style(n),this.view.update_node(n),this.layout.layout(),this.view.show(!1)}},resize:function(){this.view.resize()},add_event_listener:function(e){"function"==typeof e&&this.event_handles.push(e)},clear_event_listener:function(){this.event_handles=[]},invoke_event_handle:function(e,n){var i=this;t.setTimeout(function(){i._invoke_event_handle(e,n)},0)},_invoke_event_handle:function(e,t){for(var n=this.event_handles.length,i=0;i<n;i++)this.event_handles[i](e,t)}},u.data_provider=function(e){this.jm=e},u.data_provider.prototype={init:function(){i.debug("data.init")},reset:function(){i.debug("data.reset")},load:function(e){var t=null,n=null;return"node_array"==(t="object"==typeof e?e.format?e.format:"node_tree":"freemind")?n=u.format.node_array.get_mind(e):"node_tree"==t?n=u.format.node_tree.get_mind(e):"freemind"==t?n=u.format.freemind.get_mind(e):i.warn("unsupported format"),n},get_data:function(e){var t=null;return"node_array"==e?t=u.format.node_array.get_data(this.jm.mind):"node_tree"==e?t=u.format.node_tree.get_data(this.jm.mind):"freemind"==e?t=u.format.freemind.get_data(this.jm.mind):i.error("unsupported "+e+" format"),t}},u.layout_provider=function(e,t){this.opts=t,this.jm=e,this.isside="side"==this.opts.mode,this.bounds=null,this.cache_valid=!1},u.layout_provider.prototype={init:function(){i.debug("layout.init")},reset:function(){i.debug("layout.reset"),this.bounds={n:0,s:0,w:0,e:0}},layout:function(){i.debug("layout.layout"),this.layout_direction(),this.layout_offset()},layout_direction:function(){this._layout_direction_root()},_layout_direction_root:function(){var e=this.jm.mind.root,t=null;"layout"in e._data?t=e._data.layout:(t={},e._data.layout=t);var n=e.children,i=n.length;if(t.direction=u.direction.center,t.side_index=0,this.isside)for(var r=i;r--;)this._layout_direction_side(n[r],u.direction.right,r);else{r=i;for(var o=null;r--;)(o=n[r]).direction==u.direction.left?this._layout_direction_side(o,u.direction.left,r):this._layout_direction_side(o,u.direction.right,r)}},_layout_direction_side:function(e,t,n){var i=null;"layout"in e._data?i=e._data.layout:(i={},e._data.layout=i);var r=e.children,o=r.length;i.direction=t,i.side_index=n;for(var a=o;a--;)this._layout_direction_side(r[a],t,a)},layout_offset:function(){var e=this.jm.mind.root,t=e._data.layout;t.offset_x=0,t.offset_y=0,t.outer_height=0;for(var n=e.children,i=n.length,r=[],o=[],a=null;i--;)(a=n[i])._data.layout.direction==u.direction.right?o.unshift(a):r.unshift(a);t.left_nodes=r,t.right_nodes=o,t.outer_height_left=this._layout_offset_subnodes(r),t.outer_height_right=this._layout_offset_subnodes(o),this.bounds.e=e._data.view.width/2,this.bounds.w=0-this.bounds.e,this.bounds.n=0,this.bounds.s=Math.max(t.outer_height_left,t.outer_height_right)},_layout_offset_subnodes:function(e){for(var t=0,n=e.length,i=n,r=null,o=0,a=null,s=0,l=null;i--;)a=(r=e[i])._data.layout,null==l&&(l=r.parent._data),o=this._layout_offset_subnodes(r.children),r.expanded||(o=0,this.set_visible(r.children,!1)),o=Math.max(r._data.view.height,o),a.outer_height=o,a.offset_y=s-o/2,a.offset_x=this.opts.hspace*a.direction+l.view.width*(l.layout.direction+a.direction)/2,r.parent.isroot||(a.offset_x+=this.opts.pspace*a.direction),s=s-o-this.opts.vspace,t+=o;n>1&&(t+=this.opts.vspace*(n-1)),i=n;for(var u=t/2;i--;)(r=e[i])._data.layout.offset_y+=u;return t},_layout_offset_subnodes_height:function(e){for(var t=0,n=e.length,i=n,r=null,o=0,a=null,s=0,l=null;i--;)a=(r=e[i])._data.layout,null==l&&(l=r.parent._data),o=this._layout_offset_subnodes_height(r.children),r.expanded||(o=0),o=Math.max(r._data.view.height,o),a.outer_height=o,a.offset_y=s-o/2,s=s-o-this.opts.vspace,t+=o;n>1&&(t+=this.opts.vspace*(n-1)),i=n;for(var u=t/2;i--;)(r=e[i])._data.layout.offset_y+=u;return t},get_node_offset:function(e){var t=e._data.layout,n=null;if("_offset_"in t&&this.cache_valid?n=t._offset_:(n={x:-1,y:-1},t._offset_=n),-1==n.x||-1==n.y){var i=t.offset_x,r=t.offset_y;if(!e.isroot){var o=this.get_node_offset(e.parent);i+=o.x,r+=o.y}n.x=i,n.y=r}return n},get_node_point:function(e){var t=e._data.view,n=this.get_node_offset(e),i={};return i.x=n.x+t.width*(e._data.layout.direction-1)/2,i.y=n.y-t.height/2,i},get_node_point_in:function(e){return this.get_node_offset(e)},get_node_point_out:function(e){var t=e._data.layout,n=null;if("_pout_"in t&&this.cache_valid?n=t._pout_:(n={x:-1,y:-1},t._pout_=n),-1==n.x||-1==n.y)if(e.isroot)n.x=0,n.y=0;else{var i=e._data.view,r=this.get_node_offset(e);n.x=r.x+(i.width+this.opts.pspace)*e._data.layout.direction,n.y=r.y}return n},get_expander_point:function(e){var t=this.get_node_point_out(e),n={};return e._data.layout.direction==u.direction.right?n.x=t.x-this.opts.pspace:n.x=t.x,n.y=t.y-Math.ceil(this.opts.pspace/2),n},get_min_size:function(){var e=this.jm.mind.nodes,t=null,n=null;for(var i in e)t=e[i],(n=this.get_node_point_out(t)).x>this.bounds.e&&(this.bounds.e=n.x),n.x<this.bounds.w&&(this.bounds.w=n.x);return{w:this.bounds.e-this.bounds.w,h:this.bounds.s-this.bounds.n}},toggle_node:function(e){e.isroot||(e.expanded?this.collapse_node(e):this.expand_node(e))},expand_node:function(e){e.expanded=!0,this.part_layout(e),this.set_visible(e.children,!0),this.jm.invoke_event_handle(u.event_type.show,{evt:"expand_node",data:[],node:e.id})},collapse_node:function(e){e.expanded=!1,this.part_layout(e),this.set_visible(e.children,!1),this.jm.invoke_event_handle(u.event_type.show,{evt:"collapse_node",data:[],node:e.id})},expand_all:function(){var e,t=this.jm.mind.nodes,n=0;for(var i in t)(e=t[i]).expanded||(e.expanded=!0,n++);if(n>0){var r=this.jm.mind.root;this.part_layout(r),this.set_visible(r.children,!0)}},collapse_all:function(){var e,t=this.jm.mind.nodes,n=0;for(var i in t)(e=t[i]).expanded&&!e.isroot&&(e.expanded=!1,n++);if(n>0){var r=this.jm.mind.root;this.part_layout(r),this.set_visible(r.children,!0)}},expand_to_depth:function(e,t,n){if(!(e<1))for(var i=t||this.jm.mind.root.children,r=n||1,o=i.length,a=null;o--;)a=i[o],r<e&&(a.expanded||this.expand_node(a),this.expand_to_depth(e,a.children,r+1)),r==e&&a.expanded&&this.collapse_node(a)},part_layout:function(e){var t=this.jm.mind.root;if(t){var n=t._data.layout;e.isroot?(n.outer_height_right=this._layout_offset_subnodes_height(n.right_nodes),n.outer_height_left=this._layout_offset_subnodes_height(n.left_nodes)):e._data.layout.direction==u.direction.right?n.outer_height_right=this._layout_offset_subnodes_height(n.right_nodes):n.outer_height_left=this._layout_offset_subnodes_height(n.left_nodes),this.bounds.s=Math.max(n.outer_height_left,n.outer_height_right),this.cache_valid=!1}else i.warn("can not found root node")},set_visible:function(e,t){for(var n=e.length,i=null;n--;)(i=e[n])._data.layout,i.expanded?this.set_visible(i.children,t):this.set_visible(i.children,!1),i.isroot||(i._data.layout.visible=t)},is_expand:function(e){return e.expanded},is_visible:function(e){var t=e._data.layout;return!("visible"in t&&!t.visible)}},u.graph_canvas=function(e){this.opts=e.opts,this.e_canvas=o("canvas"),this.e_canvas.className="jsmind",this.canvas_ctx=this.e_canvas.getContext("2d"),this.size={w:0,h:0}},u.graph_canvas.prototype={element:function(){return this.e_canvas},set_size:function(e,t){this.size.w=e,this.size.h=t,this.e_canvas.width=e,this.e_canvas.height=t},clear:function(){this.canvas_ctx.clearRect(0,0,this.size.w,this.size.h)},draw_line:function(e,t,n){var i=this.canvas_ctx;i.strokeStyle=this.opts.line_color,i.lineWidth=this.opts.line_width,i.lineCap="round",this._bezier_to(i,t.x+n.x,t.y+n.y,e.x+n.x,e.y+n.y)},copy_to:function(e,t){e.drawImage(this.e_canvas,0,0),t&&t()},_bezier_to:function(e,t,n,i,r){e.beginPath(),e.moveTo(t,n),e.bezierCurveTo(t+2*(i-t)/3,n,t,r,i,r),e.stroke()},_line_to:function(e,t,n,i,r){e.beginPath(),e.moveTo(t,n),e.lineTo(i,r),e.stroke()}},u.graph_svg=function(e){this.view=e,this.opts=e.opts,this.e_svg=u.graph_svg.c("svg"),this.e_svg.setAttribute("class","jsmind"),this.size={w:0,h:0},this.lines=[]},u.graph_svg.c=function(e){return r.createElementNS("http://www.w3.org/2000/svg",e)},u.graph_svg.prototype={element:function(){return this.e_svg},set_size:function(e,t){this.size.w=e,this.size.h=t,this.e_svg.setAttribute("width",e),this.e_svg.setAttribute("height",t)},clear:function(){for(var e=this.lines.length;e--;)this.e_svg.removeChild(this.lines[e]);this.lines.length=0},draw_line:function(e,t,n){var i=u.graph_svg.c("path");i.setAttribute("stroke",this.opts.line_color),i.setAttribute("stroke-width",this.opts.line_width),i.setAttribute("fill","transparent"),this.lines.push(i),this.e_svg.appendChild(i),this._bezier_to(i,t.x+n.x,t.y+n.y,e.x+n.x,e.y+n.y)},copy_to:function(e,t){var n=new Image;n.onload=function(){e.drawImage(n,0,0),t&&t()},n.src="data:image/svg+xml;base64,"+btoa((new XMLSerializer).serializeToString(this.e_svg))},_bezier_to:function(e,t,n,i,r){e.setAttribute("d","M"+t+" "+n+" C "+(t+2*(i-t)/3)+" "+n+", "+t+" "+r+", "+i+" "+r)},_line_to:function(e,t,n,i,r){e.setAttribute("d","M "+t+" "+n+" L "+i+" "+r)}},u.view_provider=function(e,t){this.opts=t,this.jm=e,this.layout=e.layout,this.container=null,this.e_panel=null,this.e_nodes=null,this.size={w:0,h:0},this.selected_node=null,this.editing_node=null,this.graph=null},u.view_provider.prototype={init:function(){var e,t;if(i.debug("view.init"),this.container=(t=this.opts.container)&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument?this.opts.container:(e=this.opts.container,r.getElementById(e)),this.container){this.e_panel=o("div"),this.e_nodes=o("jmnodes"),this.e_editor=o("input"),this.graph="svg"===this.opts.engine.toLowerCase()?new u.graph_svg(this):new u.graph_canvas(this),this.e_panel.className="jsmind-inner",this.e_panel.tabIndex=1,this.e_panel.appendChild(this.graph.element()),this.e_panel.appendChild(this.e_nodes),this.e_editor.className="jsmind-editor",this.e_editor.type="text",this.actualZoom=1,this.zoomStep=.1,this.minZoom=.5,this.maxZoom=2;var n=this;u.util.dom.add_event(this.e_editor,"keydown",function(e){var t=e||event;13==t.keyCode&&(n.edit_node_end(),t.stopPropagation())}),u.util.dom.add_event(this.e_editor,"blur",function(e){n.edit_node_end()}),this.container.appendChild(this.e_panel),this.enable_draggable_canvas()}else i.error("the options.view.container was not be found in dom")},add_event:function(e,t,n){u.util.dom.add_event(this.e_nodes,t,function(t){var i=t||event;n.call(e,i)})},get_binded_nodeid:function(e){if(null==e)return null;var t=e.tagName.toLowerCase();return"jmnodes"==t||"body"==t||"html"==t?null:"jmnode"==t||"jmexpander"==t?e.getAttribute("nodeid"):this.get_binded_nodeid(e.parentElement)},is_expander:function(e){return"jmexpander"==e.tagName.toLowerCase()},reset:function(){i.debug("view.reset"),this.selected_node=null,this.clear_lines(),this.clear_nodes(),this.reset_theme()},reset_theme:function(){var e=this.jm.options.theme;this.e_nodes.className=e?"theme-"+e:""},reset_custom_style:function(){var e=this.jm.mind.nodes;for(var t in e)this.reset_node_custom_style(e[t])},load:function(){i.debug("view.load"),this.init_nodes()},expand_size:function(){var e=this.layout.get_min_size(),t=e.w+2*this.opts.hmargin,n=e.h+2*this.opts.vmargin,i=this.e_panel.clientWidth,r=this.e_panel.clientHeight;i<t&&(i=t),r<n&&(r=n),this.size.w=i,this.size.h=r},init_nodes_size:function(e){var t=e._data.view;t.width=t.element.clientWidth,t.height=t.element.clientHeight},init_nodes:function(){var e=this.jm.mind.nodes,t=r.createDocumentFragment();for(var n in e)this.create_node_element(e[n],t);for(var n in this.e_nodes.appendChild(t),e)this.init_nodes_size(e[n])},add_node:function(e){this.create_node_element(e,this.e_nodes),this.init_nodes_size(e)},create_node_element:function(e,t){var n=null;"view"in e._data?n=e._data.view:(n={},e._data.view=n);var i=o("jmnode");if(e.isroot)i.className="root";else{var r=o("jmexpander");a(r,"-"),r.setAttribute("nodeid",e.id),r.style.visibility="hidden",t.appendChild(r),n.expander=r}e.topic&&(this.opts.support_html?s(i,e.topic):a(i,e.topic)),i.setAttribute("nodeid",e.id),i.style.visibility="hidden",this._reset_node_custom_style(i,e.data),t.appendChild(i),n.element=i},remove_node:function(e){null!=this.selected_node&&this.selected_node.id==e.id&&(this.selected_node=null),null!=this.editing_node&&this.editing_node.id==e.id&&(e._data.view.element.removeChild(this.e_editor),this.editing_node=null);for(var t=e.children,n=t.length;n--;)this.remove_node(t[n]);if(e._data.view){var i=e._data.view.element,r=e._data.view.expander;this.e_nodes.removeChild(i),this.e_nodes.removeChild(r),e._data.view.element=null,e._data.view.expander=null}},update_node:function(e){var t=e._data.view,n=t.element;e.topic&&(this.opts.support_html?s(n,e.topic):a(n,e.topic)),t.width=n.clientWidth,t.height=n.clientHeight},select_node:function(e){this.selected_node&&(this.selected_node._data.view.element.className=this.selected_node._data.view.element.className.replace(/\s*selected\b/i,""),this.reset_node_custom_style(this.selected_node)),e&&(this.selected_node=e,e._data.view.element.className+=" selected",this.clear_node_custom_style(e))},select_clear:function(){this.select_node(null)},get_editing_node:function(){return this.editing_node},is_editing:function(){return!!this.editing_node},edit_node_begin:function(e){if(e.topic){null!=this.editing_node&&this.edit_node_end(),this.editing_node=e;var t=e._data.view.element,n=e.topic,r=getComputedStyle(t);this.e_editor.value=n,this.e_editor.style.width=t.clientWidth-parseInt(r.getPropertyValue("padding-left"))-parseInt(r.getPropertyValue("padding-right"))+"px",t.innerHTML="",t.appendChild(this.e_editor),t.style.zIndex=5,this.e_editor.focus(),this.e_editor.select()}else i.warn("don't edit image nodes")},edit_node_end:function(){if(null!=this.editing_node){var e=this.editing_node;this.editing_node=null;var t=e._data.view.element,n=this.e_editor.value;t.style.zIndex="auto",t.removeChild(this.e_editor),u.util.text.is_empty(n)||e.topic===n?this.opts.support_html?s(t,e.topic):a(t,e.topic):this.jm.update_node(e.id,n)}this.e_panel.focus()},get_view_offset:function(){var e=this.layout.bounds;return{x:(this.size.w-e.e-e.w)/2,y:this.size.h/2}},resize:function(){this.graph.set_size(1,1),this.e_nodes.style.width="1px",this.e_nodes.style.height="1px",this.expand_size(),this._show()},_show:function(){this.graph.set_size(this.size.w,this.size.h),this.e_nodes.style.width=this.size.w+"px",this.e_nodes.style.height=this.size.h+"px",this.show_nodes(),this.show_lines(),this.jm.invoke_event_handle(u.event_type.resize,{data:[]})},zoomIn:function(){return this.setZoom(this.actualZoom+this.zoomStep)},zoomOut:function(){return this.setZoom(this.actualZoom-this.zoomStep)},setZoom:function(e){if(e<this.minZoom||e>this.maxZoom)return!1;this.actualZoom=e;for(var t=0;t<this.e_panel.children.length;t++)this.e_panel.children[t].style.transform="scale("+e+")";return this.show(!0),!0},_center_root:function(){var e=this.e_panel.clientWidth,t=this.e_panel.clientHeight;if(this.size.w>e){var n=this.get_view_offset();this.e_panel.scrollLeft=n.x-e/2}this.size.h>t&&(this.e_panel.scrollTop=(this.size.h-t)/2)},show:function(e){i.debug("view.show"),this.expand_size(),this._show(),e&&this._center_root()},relayout:function(){this.expand_size(),this._show()},save_location:function(e){var t=e._data.view;t._saved_location={x:parseInt(t.element.style.left)-this.e_panel.scrollLeft,y:parseInt(t.element.style.top)-this.e_panel.scrollTop}},restore_location:function(e){var t=e._data.view;this.e_panel.scrollLeft=parseInt(t.element.style.left)-t._saved_location.x,this.e_panel.scrollTop=parseInt(t.element.style.top)-t._saved_location.y},clear_nodes:function(){var e=this.jm.mind;if(null!=e){var t=e.nodes,n=null;for(var i in t)(n=t[i])._data.view.element=null,n._data.view.expander=null;this.e_nodes.innerHTML=""}},show_nodes:function(){var e=this.jm.mind.nodes,t=null,n=null,i=null,r=null,o=null,s="-",l=null,u=this.get_view_offset();for(var c in e)n=(l=(t=e[c])._data.view).element,i=l.expander,this.layout.is_visible(t)?(this.reset_node_custom_style(t),r=this.layout.get_node_point(t),l.abs_x=u.x+r.x,l.abs_y=u.y+r.y,n.style.left=u.x+r.x+"px",n.style.top=u.y+r.y+"px",n.style.display="",n.style.visibility="visible",!t.isroot&&t.children.length>0&&(s=t.expanded?"-":"+",o=this.layout.get_expander_point(t),i.style.left=u.x+o.x+"px",i.style.top=u.y+o.y+"px",i.style.display="",i.style.visibility="visible",a(i,s)),t.isroot||0!=t.children.length||(i.style.display="none",i.style.visibility="hidden")):(n.style.display="none",i.style.display="none")},reset_node_custom_style:function(e){this._reset_node_custom_style(e._data.view.element,e.data)},_reset_node_custom_style:function(e,t){if("background-color"in t&&(e.style.backgroundColor=t["background-color"]),"foreground-color"in t&&(e.style.color=t["foreground-color"]),"width"in t&&(e.style.width=t.width+"px"),"height"in t&&(e.style.height=t.height+"px"),"font-size"in t&&(e.style.fontSize=t["font-size"]+"px"),"font-weight"in t&&(e.style.fontWeight=t["font-weight"]),"font-style"in t&&(e.style.fontStyle=t["font-style"]),"background-image"in t){var n=t["background-image"];if(n.startsWith("data")&&t.width&&t.height){var i=new Image;i.onload=function(){var t=o("canvas");t.width=e.clientWidth,t.height=e.clientHeight;if(t.getContext){t.getContext("2d").drawImage(this,2,2,e.clientWidth,e.clientHeight);var n=t.toDataURL();e.style.backgroundImage="url("+n+")"}},i.src=n}else e.style.backgroundImage="url("+n+")";e.style.backgroundSize="99%","background-rotation"in t&&(e.style.transform="rotate("+t["background-rotation"]+"deg)")}},clear_node_custom_style:function(e){var t=e._data.view.element;t.style.backgroundColor="",t.style.color=""},clear_lines:function(){this.graph.clear()},show_lines:function(){this.clear_lines();var e=this.jm.mind.nodes,t=null,n=null,i=null,r=this.get_view_offset();for(var o in e)(t=e[o]).isroot||"visible"in t._data.layout&&!t._data.layout.visible||(n=this.layout.get_node_point_in(t),i=this.layout.get_node_point_out(t.parent),this.graph.draw_line(i,n,r))},enable_draggable_canvas:function(){if(this.opts.draggable){let e,t,n=!1;this.opts.hide_scrollbars_when_draggable&&(this.e_panel.style="overflow: hidden"),u.util.dom.add_event(this.container,"mousedown",i=>{n=!0,e=i.clientX,t=i.clientY}),u.util.dom.add_event(this.container,"mouseup",()=>{n=!1}),u.util.dom.add_event(this.container,"mousemove",i=>{n&&(this.e_panel.scrollBy(e-i.clientX,t-i.clientY),e=i.clientX,t=i.clientY)})}}},u.shortcut_provider=function(e,t){this.jm=e,this.opts=t,this.mapping=t.mapping,this.handles=t.handles,this._newid=null,this._mapping={}},u.shortcut_provider.prototype={init:function(){for(var e in u.util.dom.add_event(this.jm.view.e_panel,"keydown",this.handler.bind(this)),this.handles.addchild=this.handle_addchild,this.handles.addbrother=this.handle_addbrother,this.handles.editnode=this.handle_editnode,this.handles.delnode=this.handle_delnode,this.handles.toggle=this.handle_toggle,this.handles.up=this.handle_up,this.handles.down=this.handle_down,this.handles.left=this.handle_left,this.handles.right=this.handle_right,this.mapping)this.mapping[e]&&e in this.handles&&(this._mapping[this.mapping[e]]=this.handles[e]);"function"==typeof this.opts.id_generator?this._newid=this.opts.id_generator:this._newid=u.util.uuid.newid},enable_shortcut:function(){this.opts.enable=!0},disable_shortcut:function(){this.opts.enable=!1},handler:function(e){if(9==e.which&&e.preventDefault(),!this.jm.view.is_editing()){var t=e||event;if(!this.opts.enable)return!0;var n=t.keyCode+(t.metaKey<<13)+(t.ctrlKey<<12)+(t.altKey<<11)+(t.shiftKey<<10);n in this._mapping&&this._mapping[n].call(this,this.jm,e)}},handle_addchild:function(e,t){var n=e.get_selected_node();if(n){var i=this._newid();e.add_node(n,i,"New Node")&&(e.select_node(i),e.begin_edit(i))}},handle_addbrother:function(e,t){var n=e.get_selected_node();if(n&&!n.isroot){var i=this._newid();e.insert_node_after(n,i,"New Node")&&(e.select_node(i),e.begin_edit(i))}},handle_editnode:function(e,t){var n=e.get_selected_node();n&&e.begin_edit(n)},handle_delnode:function(e,t){var n=e.get_selected_node();n&&!n.isroot&&(e.select_node(n.parent),e.remove_node(n))},handle_toggle:function(e,t){var n=t||event,i=e.get_selected_node();i&&(e.toggle_node(i.id),n.stopPropagation(),n.preventDefault())},handle_up:function(e,t){var n=t||event,i=e.get_selected_node();if(i){var r=e.find_node_before(i);if(!r){var o=e.find_node_before(i.parent);o&&o.children.length>0&&(r=o.children[o.children.length-1])}r&&e.select_node(r),n.stopPropagation(),n.preventDefault()}},handle_down:function(e,t){var n=t||event,i=e.get_selected_node();if(i){var r=e.find_node_after(i);if(!r){var o=e.find_node_after(i.parent);o&&o.children.length>0&&(r=o.children[0])}r&&e.select_node(r),n.stopPropagation(),n.preventDefault()}},handle_left:function(e,t){this._handle_direction(e,t,u.direction.left)},handle_right:function(e,t){this._handle_direction(e,t,u.direction.right)},_handle_direction:function(e,t,n){var i=t||event,r=e.get_selected_node(),o=null;if(r){if(r.isroot){for(var a=r.children,s=[],l=0;l<a.length;l++)a[l].direction===n&&s.push(l);o=a[s[Math.floor((s.length-1)/2)]]}else if(r.direction===n){var u=(s=r.children).length;u>0&&(o=s[Math.floor((u-1)/2)])}else o=r.parent;o&&e.select_node(o),i.stopPropagation(),i.preventDefault()}}},u.plugin=function(e,t){this.name=e,this.init=t},u.plugins=[],u.register_plugin=function(e){e instanceof u.plugin&&u.plugins.push(e)},u.init_plugins=function(e){t.setTimeout(function(){u._init_plugins(e)},0)},u._init_plugins=function(e){for(var t=u.plugins.length,n=null,i=0;i<t;i++)"function"==typeof(n=u.plugins[i].init)&&n(e)},u.show=function(e,t){var n=new u(e);return n.show(t),n},e.exports=u}else i.log("jsMind has been already exist.")}("undefined"!=typeof window?window:t)}).call(t,n("DuR2"))},X8DO:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},XLwt:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={};n.d(i,"$override",function(){return P}),n.d(i,"guid",function(){return O}),n.d(i,"logError",function(){return L}),n.d(i,"clone",function(){return N}),n.d(i,"merge",function(){return R}),n.d(i,"mergeAll",function(){return U}),n.d(i,"extend",function(){return Q}),n.d(i,"defaults",function(){return H}),n.d(i,"createCanvas",function(){return j}),n.d(i,"indexOf",function(){return V}),n.d(i,"inherits",function(){return z}),n.d(i,"mixin",function(){return $}),n.d(i,"isArrayLike",function(){return G}),n.d(i,"each",function(){return W}),n.d(i,"map",function(){return K}),n.d(i,"reduce",function(){return Y}),n.d(i,"filter",function(){return q}),n.d(i,"find",function(){return X}),n.d(i,"keys",function(){return J}),n.d(i,"bind",function(){return Z}),n.d(i,"curry",function(){return ee}),n.d(i,"isArray",function(){return te}),n.d(i,"isFunction",function(){return ne}),n.d(i,"isString",function(){return ie}),n.d(i,"isStringSafe",function(){return re}),n.d(i,"isNumber",function(){return oe}),n.d(i,"isObject",function(){return ae}),n.d(i,"isBuiltInObject",function(){return se}),n.d(i,"isTypedArray",function(){return le}),n.d(i,"isDom",function(){return ue}),n.d(i,"isGradientObject",function(){return ce}),n.d(i,"isImagePatternObject",function(){return he}),n.d(i,"isRegExp",function(){return de}),n.d(i,"eqNaN",function(){return fe}),n.d(i,"retrieve",function(){return pe}),n.d(i,"retrieve2",function(){return Ae}),n.d(i,"retrieve3",function(){return ge}),n.d(i,"slice",function(){return ve}),n.d(i,"normalizeCssArray",function(){return me}),n.d(i,"assert",function(){return ye}),n.d(i,"trim",function(){return _e}),n.d(i,"setAsPrimitive",function(){return we}),n.d(i,"isPrimitive",function(){return xe}),n.d(i,"HashMap",function(){return Ce}),n.d(i,"createHashMap",function(){return Se}),n.d(i,"concatArray",function(){return ke}),n.d(i,"createObject",function(){return Be}),n.d(i,"hasOwn",function(){return Te}),n.d(i,"noop",function(){return Ee});var r={};n.d(r,"create",function(){return De}),n.d(r,"copy",function(){return Pe}),n.d(r,"clone",function(){return Fe}),n.d(r,"set",function(){return Oe}),n.d(r,"add",function(){return Le}),n.d(r,"scaleAndAdd",function(){return Ne}),n.d(r,"sub",function(){return Re}),n.d(r,"len",function(){return Ue}),n.d(r,"length",function(){return Qe}),n.d(r,"lenSquare",function(){return He}),n.d(r,"lengthSquare",function(){return je}),n.d(r,"mul",function(){return Ve}),n.d(r,"div",function(){return ze}),n.d(r,"dot",function(){return $e}),n.d(r,"scale",function(){return Ge}),n.d(r,"normalize",function(){return We}),n.d(r,"distance",function(){return Ke}),n.d(r,"dist",function(){return Ye}),n.d(r,"distanceSquare",function(){return qe}),n.d(r,"distSquare",function(){return Xe}),n.d(r,"negate",function(){return Je}),n.d(r,"lerp",function(){return Ze}),n.d(r,"applyTransform",function(){return et}),n.d(r,"min",function(){return tt}),n.d(r,"max",function(){return nt});var o={};n.d(o,"parse",function(){return An}),n.d(o,"lift",function(){return vn}),n.d(o,"toHex",function(){return mn}),n.d(o,"fastLerp",function(){return yn}),n.d(o,"fastMapToColor",function(){return _n}),n.d(o,"lerp",function(){return bn}),n.d(o,"mapToColor",function(){return wn}),n.d(o,"modifyHSL",function(){return xn}),n.d(o,"modifyAlpha",function(){return Cn}),n.d(o,"stringify",function(){return Sn}),n.d(o,"lum",function(){return kn}),n.d(o,"random",function(){return Bn});var a={};n.d(a,"create",function(){return ci}),n.d(a,"identity",function(){return hi}),n.d(a,"copy",function(){return di}),n.d(a,"mul",function(){return fi}),n.d(a,"translate",function(){return pi}),n.d(a,"rotate",function(){return Ai}),n.d(a,"scale",function(){return gi}),n.d(a,"invert",function(){return vi}),n.d(a,"clone",function(){return mi});var s={};n.d(s,"init",function(){return fr}),n.d(s,"dispose",function(){return pr}),n.d(s,"disposeAll",function(){return Ar}),n.d(s,"getInstance",function(){return gr}),n.d(s,"registerPainter",function(){return vr}),n.d(s,"version",function(){return mr});var l={};n.d(l,"updateProps",function(){return Bc}),n.d(l,"initProps",function(){return Tc}),n.d(l,"removeElement",function(){return Ic}),n.d(l,"removeElementWithFadeOut",function(){return Dc}),n.d(l,"isElementRemoved",function(){return Ec}),n.d(l,"extendShape",function(){return Nc}),n.d(l,"extendPath",function(){return Uc}),n.d(l,"registerShape",function(){return Qc}),n.d(l,"getShapeClass",function(){return Hc}),n.d(l,"makePath",function(){return jc}),n.d(l,"makeImage",function(){return Vc}),n.d(l,"mergePath",function(){return $c}),n.d(l,"resizePath",function(){return Gc}),n.d(l,"subPixelOptimizeLine",function(){return Wc}),n.d(l,"subPixelOptimizeRect",function(){return Kc}),n.d(l,"subPixelOptimize",function(){return Yc}),n.d(l,"getTransform",function(){return qc}),n.d(l,"applyTransform",function(){return Xc}),n.d(l,"transformDirection",function(){return Jc}),n.d(l,"groupTransition",function(){return eh}),n.d(l,"clipPointsByRect",function(){return th}),n.d(l,"clipRectByRect",function(){return nh}),n.d(l,"createIcon",function(){return ih}),n.d(l,"linePolygonIntersect",function(){return rh}),n.d(l,"lineLineIntersect",function(){return oh}),n.d(l,"setTooltipConfig",function(){return sh}),n.d(l,"Group",function(){return lr}),n.d(l,"Image",function(){return Fs}),n.d(l,"Text",function(){return el}),n.d(l,"Circle",function(){return Cu}),n.d(l,"Ellipse",function(){return Bu}),n.d(l,"Sector",function(){return Vu}),n.d(l,"Ring",function(){return Gu}),n.d(l,"Polygon",function(){return Xu}),n.d(l,"Polyline",function(){return ec}),n.d(l,"Rect",function(){return js}),n.d(l,"Line",function(){return rc}),n.d(l,"BezierCurve",function(){return uc}),n.d(l,"Arc",function(){return dc}),n.d(l,"IncrementalDisplayable",function(){return xc}),n.d(l,"CompoundPath",function(){return fc}),n.d(l,"LinearGradient",function(){return Ac}),n.d(l,"RadialGradient",function(){return gc}),n.d(l,"BoundingRect",function(){return Qi}),n.d(l,"OrientedBoundingRect",function(){return bc}),n.d(l,"Point",function(){return Mi}),n.d(l,"Path",function(){return Bs});var u={};n.d(u,"createList",function(){return Db}),n.d(u,"getLayoutRect",function(){return jd}),n.d(u,"createDimensions",function(){return f_}),n.d(u,"dataStack",function(){return Pb}),n.d(u,"createSymbol",function(){return Yg}),n.d(u,"createScale",function(){return Fb}),n.d(u,"mixinAxisModelCommonMethods",function(){return Ob}),n.d(u,"getECData",function(){return tl}),n.d(u,"enableHoverEmphasis",function(){return Wl}),n.d(u,"createTextStyle",function(){return Lb});var c={};n.d(c,"linearMap",function(){return br}),n.d(c,"round",function(){return xr}),n.d(c,"asc",function(){return Cr}),n.d(c,"getPrecision",function(){return Sr}),n.d(c,"getPrecisionSafe",function(){return kr}),n.d(c,"getPixelPrecision",function(){return Br}),n.d(c,"getPercentWithPrecision",function(){return Tr}),n.d(c,"MAX_SAFE_INTEGER",function(){return Ir}),n.d(c,"remRadian",function(){return Mr}),n.d(c,"isRadianAroundZero",function(){return Dr}),n.d(c,"parseDate",function(){return Fr}),n.d(c,"quantity",function(){return Or}),n.d(c,"quantityExponent",function(){return Lr}),n.d(c,"nice",function(){return Nr}),n.d(c,"quantile",function(){return Rr}),n.d(c,"reformIntervals",function(){return Ur}),n.d(c,"isNumeric",function(){return Hr}),n.d(c,"numericToNumber",function(){return Qr});var h={};n.d(h,"parse",function(){return Fr}),n.d(h,"format",function(){return rd});var d={};n.d(d,"extendShape",function(){return Nc}),n.d(d,"extendPath",function(){return Uc}),n.d(d,"makePath",function(){return jc}),n.d(d,"makeImage",function(){return Vc}),n.d(d,"mergePath",function(){return $c}),n.d(d,"resizePath",function(){return Gc}),n.d(d,"createIcon",function(){return ih}),n.d(d,"updateProps",function(){return Bc}),n.d(d,"initProps",function(){return Tc}),n.d(d,"getTransform",function(){return qc}),n.d(d,"clipPointsByRect",function(){return th}),n.d(d,"clipRectByRect",function(){return nh}),n.d(d,"registerShape",function(){return Qc}),n.d(d,"getShapeClass",function(){return Hc}),n.d(d,"Group",function(){return lr}),n.d(d,"Image",function(){return Fs}),n.d(d,"Text",function(){return el}),n.d(d,"Circle",function(){return Cu}),n.d(d,"Ellipse",function(){return Bu}),n.d(d,"Sector",function(){return Vu}),n.d(d,"Ring",function(){return Gu}),n.d(d,"Polygon",function(){return Xu}),n.d(d,"Polyline",function(){return ec}),n.d(d,"Rect",function(){return js}),n.d(d,"Line",function(){return rc}),n.d(d,"BezierCurve",function(){return uc}),n.d(d,"Arc",function(){return dc}),n.d(d,"IncrementalDisplayable",function(){return xc}),n.d(d,"CompoundPath",function(){return fc}),n.d(d,"LinearGradient",function(){return Ac}),n.d(d,"RadialGradient",function(){return gc}),n.d(d,"BoundingRect",function(){return Qi});var f={};n.d(f,"addCommas",function(){return wd}),n.d(f,"toCamelCase",function(){return xd}),n.d(f,"normalizeCssArray",function(){return Cd}),n.d(f,"encodeHTML",function(){return Bd}),n.d(f,"formatTpl",function(){return Md}),n.d(f,"getTooltipMarker",function(){return Dd}),n.d(f,"formatTime",function(){return Pd}),n.d(f,"capitalFirst",function(){return Fd}),n.d(f,"truncateText",function(){return Lo}),n.d(f,"getTextRect",function(){return bd});var p={};n.d(p,"map",function(){return K}),n.d(p,"each",function(){return W}),n.d(p,"indexOf",function(){return V}),n.d(p,"inherits",function(){return z}),n.d(p,"reduce",function(){return Y}),n.d(p,"filter",function(){return q}),n.d(p,"bind",function(){return Z}),n.d(p,"curry",function(){return ee}),n.d(p,"isArray",function(){return te}),n.d(p,"isString",function(){return ie}),n.d(p,"isObject",function(){return ae}),n.d(p,"isFunction",function(){return ne}),n.d(p,"extend",function(){return Q}),n.d(p,"defaults",function(){return H}),n.d(p,"clone",function(){return N}),n.d(p,"merge",function(){return R});
  38. /*! *****************************************************************************
  39. Copyright (c) Microsoft Corporation.
  40. Permission to use, copy, modify, and/or distribute this software for any
  41. purpose with or without fee is hereby granted.
  42. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  43. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  44. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  45. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  46. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  47. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  48. PERFORMANCE OF THIS SOFTWARE.
  49. ***************************************************************************** */
  50. var A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var v=function(){return(v=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.create;Object.create;var m=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),y=new(function(){return function(){this.browser=new m,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(y.wxa=!0,y.canvasSupported=!0,y.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(y.worker=!0,y.canvasSupported=!0):"undefined"==typeof navigator?(y.node=!0,y.canvasSupported=!0,y.svgSupported=!0):function(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);t.canvasSupported=!!document.createElement("canvas").getContext,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 s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,y);var _=y,b={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},w={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},x=Object.prototype.toString,C=Array.prototype,S=C.forEach,k=C.filter,B=C.slice,T=C.map,E=function(){}.constructor,I=E?E.prototype:null,M="__proto__",D={};function P(e,t){D[e]=t}var F=2311;function O(){return F++}function L(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function N(e){if(null==e||"object"!=typeof e)return e;var t=e,n=x.call(e);if("[object Array]"===n){if(!xe(e)){t=[];for(var i=0,r=e.length;i<r;i++)t[i]=N(e[i])}}else if(w[n]){if(!xe(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(i=0,r=e.length;i<r;i++)t[i]=N(e[i])}}}else if(!b[n]&&!xe(e)&&!ue(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==M&&(t[a]=N(e[a]));return t}function R(e,t,n){if(!ae(t)||!ae(e))return n?N(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==M){var r=e[i],o=t[i];!ae(o)||!ae(r)||te(o)||te(r)||ue(o)||ue(r)||se(o)||se(r)||xe(o)||xe(r)?!n&&i in e||(e[i]=N(t[i])):R(r,o,n)}return e}function U(e,t){for(var n=e[0],i=1,r=e.length;i<r;i++)n=R(n,e[i],t);return n}function Q(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==M&&(e[n]=t[n]);return e}function H(e,t,n){for(var i=J(t),r=0;r<i.length;r++){var o=i[r];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}var j=function(){return D.createCanvas()};function V(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1}function z(e,t){var n=e.prototype;function i(){}for(var r in i.prototype=t.prototype,e.prototype=new i,n)n.hasOwnProperty(r)&&(e.prototype[r]=n[r]);e.prototype.constructor=e,e.superClass=t}function $(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else H(e,t,n)}function G(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function W(e,t,n){if(e&&t)if(e.forEach&&e.forEach===S)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 K(e,t,n){if(!e)return[];if(!t)return ve(e);if(e.map&&e.map===T)return e.map(t,n);for(var i=[],r=0,o=e.length;r<o;r++)i.push(t.call(n,e[r],r,e));return i}function Y(e,t,n,i){if(e&&t){for(var r=0,o=e.length;r<o;r++)n=t.call(i,n,e[r],r,e);return n}}function q(e,t,n){if(!e)return[];if(!t)return ve(e);if(e.filter&&e.filter===k)return e.filter(t,n);for(var i=[],r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}function X(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 J(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}D.createCanvas=function(){return document.createElement("canvas")};var Z=I&&ne(I.bind)?I.call.bind(I.bind):function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return e.apply(t,n.concat(B.call(arguments)))}};function ee(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(B.call(arguments)))}}function te(e){return Array.isArray?Array.isArray(e):"[object Array]"===x.call(e)}function ne(e){return"function"==typeof e}function ie(e){return"string"==typeof e}function re(e){return"[object String]"===x.call(e)}function oe(e){return"number"==typeof e}function ae(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function se(e){return!!b[x.call(e)]}function le(e){return!!w[x.call(e)]}function ue(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function ce(e){return null!=e.colorStops}function he(e){return null!=e.image}function de(e){return"[object RegExp]"===x.call(e)}function fe(e){return e!=e}function pe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e.length;n<i;n++)if(null!=e[n])return e[n]}function Ae(e,t){return null!=e?e:t}function ge(e,t,n){return null!=e?e:null!=t?t:n}function ve(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return B.apply(e,t)}function me(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 ye(e,t){if(!e)throw new Error(t)}function _e(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var be="__ec_primitive__";function we(e){e[be]=!0}function xe(e){return e[be]}var Ce=function(){function e(t){this.data={};var n=te(t);this.data={};var i=this;function r(e,t){n?i.set(e,t):i.set(t,e)}t instanceof e?t.each(r):t&&W(t,r)}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 J(this.data)},e.prototype.removeKey=function(e){delete this.data[e]},e}();function Se(e){return new Ce(e)}function ke(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];var r=e.length;for(i=0;i<t.length;i++)n[i+r]=t[i];return n}function Be(e,t){var n;if(Object.create)n=Object.create(e);else{var i=function(){};i.prototype=e,n=new i}return t&&Q(n,t),n}function Te(e,t){return e.hasOwnProperty(t)}function Ee(){}
  51. /*! *****************************************************************************
  52. Copyright (c) Microsoft Corporation.
  53. Permission to use, copy, modify, and/or distribute this software for any
  54. purpose with or without fee is hereby granted.
  55. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  56. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  57. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  58. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  59. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  60. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  61. PERFORMANCE OF THIS SOFTWARE.
  62. ***************************************************************************** */var Ie=function(e,t){return(Ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Me(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;function De(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function Pe(e,t){return e[0]=t[0],e[1]=t[1],e}function Fe(e){return[e[0],e[1]]}function Oe(e,t,n){return e[0]=t,e[1]=n,e}function Le(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Ne(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function Re(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Ue(e){return Math.sqrt(He(e))}var Qe=Ue;function He(e){return e[0]*e[0]+e[1]*e[1]}var je=He;function Ve(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function ze(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function $e(e,t){return e[0]*t[0]+e[1]*t[1]}function Ge(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function We(e,t){var n=Ue(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Ke(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ye=Ke;function qe(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Xe=qe;function Je(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Ze(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function et(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function tt(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function nt(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var it=function(){return function(e,t){this.target=e,this.topTarget=t&&t.topTarget}}(),rt=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&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new it(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(r,o,e),this.handler.dispatchToElement(new it(t,e),"drag",e.event);var a=this.handler.findHover(n,i,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new it(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new it(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new it(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new it(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),ot=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof t&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),r[e]||(r[e]=[]);for(var a=0;a<r[e].length;a++)if(r[e][a].h===n)return this;var s={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[e].length-1,u=r[e][l];return u&&u.callAtLast?r[e].splice(l,0,s):r[e].push(s),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 i=[],r=0,o=n[e].length;r<o;r++)n[e][r].h!==t&&i.push(n[e][r]);n[e]=i}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 i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var o=t.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return r&&r.afterTrigger&&r.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 i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var o=t.length,a=t[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(e,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),at=Math.log(2);function st(e,t,n,i,r,o){var a=i+"-"+r,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~r)/at);return e[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,d=0,f=0;d<s;d++){var p=1<<d;p&r||(h+=(f%2?-1:1)*e[n][d]*st(e,t-1,c,u,r|p,o),f++)}return o[a]=h,h}function lt(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]]],i={},r=st(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*st(n,7,0===a?1:0,1<<a,1<<s,i)/r*t[a];return function(e,t,n){var i=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/i,e[1]=(t*o[3]+n*o[4]+o[5])/i}}}var ut="___zrEVENTSAVED",ct=[];function ht(e,t,n,i,r){if(t.getBoundingClientRect&&_.domSupported&&!dt(t)){var o=t[ut]||(t[ut]={}),a=function(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),h=2*u,d=c.left,f=c.top;a.push(d,f),l=l&&o&&d===o[h]&&f===o[h+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&r?r:(t.srcCoords=a,t[i]=n?lt(s,a):lt(a,s))}(function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,o),o,r);if(a)return a(e,n,i),!0}return!1}function dt(e){return"CANVAS"===e.nodeName.toUpperCase()}var ft="undefined"!=typeof window&&!!window.addEventListener,pt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,At=[];function gt(e,t,n,i){return n=n||{},i||!_.canvasSupported?vt(e,t,n):_.browser.firefox&&_.browser.version<"39"&&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):vt(e,t,n),n}function vt(e,t,n){if(_.domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(dt(e)){var o=e.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(ht(At,e,i,r))return n.zrX=At[0],void(n.zrY=At[1])}n.zrX=n.zrY=0}function mt(e){return e||window.event}function yt(e,t,n){if(null!=(t=mt(t)).zrX)return t;var i=t.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];r&&gt(e,r,t,n)}else{gt(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(null==n||null==i)return t;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&pt.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function _t(e,t,n,i){ft?e.addEventListener(t,n,i):e.attachEvent("on"+t,n)}var bt=ft?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function wt(e){return 2===e.which||3===e.which}var xt=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 i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},o=0,a=i.length;o<a;o++){var s=i[o],l=gt(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},e.prototype._recognize=function(e){for(var t in St)if(St.hasOwnProperty(t)){var n=St[t](this._track,e);if(n)return n}},e}();function Ct(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var St={pinch:function(e,t){var n=e.length;if(n){var i,r=(e[n-1]||{}).points,o=(e[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=Ct(r)/Ct(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},kt="silent";function Bt(){bt(this.event)}var Tt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Me(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ot),Et=function(){return function(e,t){this.x=e,this.y=t}}(),It=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Mt=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o._hovered=new Et(0,0),o.storage=t,o.painter=n,o.painterRoot=r,i=i||new Tt,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new rt(o),o}return Me(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(W(It,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,i=Pt(this,t,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new Et(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"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 Et(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 i=(e=e||{}).target;if(!i||!i.silent){for(var r="on"+t,o=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:Bt}}(t,e,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(t,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[r]&&e[r].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,n){for(var i=this.storage.getDisplayList(),r=new Et(e,t),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=Dt(i[o],e,t))&&(!r.topTarget&&(r.topTarget=i[o]),a!==kt)){r.target=i[o];break}}return r},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new xt);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var r=i.type;e.gestureEvent=r;var o=new Et;o.target=i.target,this.dispatchToElement(o,r,i.event)}},t}(ot);function Dt(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var i=e,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||kt}return!1}function Pt(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}W(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Mt.prototype[e]=function(t){var n,i,r=t.zrX,o=t.zrY,a=Pt(this,r,o);if("mouseup"===e&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||Ye(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});var Ft=Mt,Ot=32,Lt=7;function Nt(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){for(;r<n&&i(e[r],e[r-1])<0;)r++;!function(e,t,n){n--;for(;t<n;){var i=e[t];e[t++]=e[n],e[n--]=i}}(e,t,r)}else for(;r<n&&i(e[r],e[r-1])>=0;)r++;return r-t}function Rt(e,t,n,i,r){for(i===t&&i++;i<n;i++){for(var o,a=e[i],s=t,l=i;s<l;)r(a,e[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=a}}function Ut(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])>0){for(s=i-r;l<s&&o(e,t[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(e,t[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function Qt(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){for(s=r+1;l<s&&o(e,t[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(e,t[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Ht(e,t){var n,i,r,o=Lt,a=0;n=e.length;var s=[];function l(n){var l=i[n],u=r[n],c=i[n+1],h=r[n+1];r[n]=u+h,n===a-3&&(i[n+1]=i[n+2],r[n+1]=r[n+2]),a--;var d=Qt(e[c],e,l,u,0,t);l+=d,0!==(u-=d)&&0!==(h=Ut(e[l+u-1],e,c,h,h-1,t))&&(u<=h?function(n,i,r,a){var l=0;for(l=0;l<i;l++)s[l]=e[n+l];var u=0,c=r,h=n;if(e[h++]=e[c++],0==--a){for(l=0;l<i;l++)e[h+l]=s[u+l];return}if(1===i){for(l=0;l<a;l++)e[h+l]=e[c+l];return void(e[h+a]=s[u])}var d,f,p,A=o;for(;;){d=0,f=0,p=!1;do{if(t(e[c],s[u])<0){if(e[h++]=e[c++],f++,d=0,0==--a){p=!0;break}}else if(e[h++]=s[u++],d++,f=0,1==--i){p=!0;break}}while((d|f)<A);if(p)break;do{if(0!==(d=Qt(e[c],s,u,i,0,t))){for(l=0;l<d;l++)e[h+l]=s[u+l];if(h+=d,u+=d,(i-=d)<=1){p=!0;break}}if(e[h++]=e[c++],0==--a){p=!0;break}if(0!==(f=Ut(s[u],e,c,a,0,t))){for(l=0;l<f;l++)e[h+l]=e[c+l];if(h+=f,c+=f,0===(a-=f)){p=!0;break}}if(e[h++]=s[u++],1==--i){p=!0;break}A--}while(d>=Lt||f>=Lt);if(p)break;A<0&&(A=0),A+=2}if((o=A)<1&&(o=1),1===i){for(l=0;l<a;l++)e[h+l]=e[c+l];e[h+a]=s[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)e[h+l]=s[u+l]}}(l,u,c,h):function(n,i,r,a){var l=0;for(l=0;l<a;l++)s[l]=e[r+l];var u=n+i-1,c=a-1,h=r+a-1,d=0,f=0;if(e[h--]=e[u--],0==--i){for(d=h-(a-1),l=0;l<a;l++)e[d+l]=s[l];return}if(1===a){for(f=(h-=i)+1,d=(u-=i)+1,l=i-1;l>=0;l--)e[f+l]=e[d+l];return void(e[h]=s[c])}var p=o;for(;;){var A=0,g=0,v=!1;do{if(t(s[c],e[u])<0){if(e[h--]=e[u--],A++,g=0,0==--i){v=!0;break}}else if(e[h--]=s[c--],g++,A=0,1==--a){v=!0;break}}while((A|g)<p);if(v)break;do{if(0!==(A=i-Qt(s[c],e,n,i,i-1,t))){for(i-=A,f=(h-=A)+1,d=(u-=A)+1,l=A-1;l>=0;l--)e[f+l]=e[d+l];if(0===i){v=!0;break}}if(e[h--]=s[c--],1==--a){v=!0;break}if(0!==(g=a-Ut(e[u],s,0,a,a-1,t))){for(a-=g,f=(h-=g)+1,d=(c-=g)+1,l=0;l<g;l++)e[f+l]=s[d+l];if(a<=1){v=!0;break}}if(e[h--]=e[u--],0==--i){v=!0;break}p--}while(A>=Lt||g>=Lt);if(v)break;p<0&&(p=0),p+=2}(o=p)<1&&(o=1);if(1===a){for(f=(h-=i)+1,d=(u-=i)+1,l=i-1;l>=0;l--)e[f+l]=e[d+l];e[h]=s[c]}else{if(0===a)throw new Error;for(d=h-(a-1),l=0;l<a;l++)e[d+l]=s[l]}}(l,u,c,h))}return n<120?5:n<1542?10:n<119151?19:40,i=[],r=[],{mergeRuns:function(){for(;a>1;){var e=a-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;l(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&r[e-1]<r[e+1]&&e--,l(e)}},pushRun:function(e,t){i[a]=e,r[a]=t,a+=1}}}function jt(e,t,n,i){n||(n=0),i||(i=e.length);var r=i-n;if(!(r<2)){var o=0;if(r<Ot)Rt(e,n,i,n+(o=Nt(e,n,i,t)),t);else{var a=Ht(e,t),s=function(e){for(var t=0;e>=Ot;)t|=1&e,e>>=1;return e+t}(r);do{if((o=Nt(e,n,i,t))<s){var l=r;l>s&&(l=s),Rt(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var Vt=1,zt=4,$t=!1;function Gt(){$t||($t=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Wt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Kt=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Wt}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].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,_.canvasSupported&&jt(n,Wt)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t=t?t.slice():[];for(var r=i,o=e;r;)r.parent=o,r.updateTransform(),t.push(r),o=r,r=r.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=Vt),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Gt(),u.z=0),isNaN(u.z2)&&(Gt(),u.z2=0),isNaN(u.zlevel)&&(Gt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,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 t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var i=V(this._roots,e);i>=0&&this._roots.splice(i,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}(),Yt="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},qt={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 t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-qt.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*qt.bounceIn(2*e):.5*qt.bounceOut(2*e-1)+.5}},Xt=qt,Jt=function(){function e(e){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart}return e.prototype.step=function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),!this._paused){var n=(e-this._startTime-this._pausedTime)/this._life;n<0&&(n=0),n=Math.min(n,1);var i=this.easing,r="string"==typeof i?Xt[i]:i,o="function"==typeof r?r(n):n;if(this.onframe&&this.onframe(o),1===n){if(!this.loop)return!0;this._restart(e),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=t},e.prototype._restart=function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e}(),Zt=function(){return function(e){this.value=e}}(),en=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Zt(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}(),tn=function(){function e(e){this._list=new en,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,r=null;if(null==i[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new Zt(t),a.key=e,n.insertEntry(a),i[e]=a}return r},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}(),nn={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 rn(e){return(e=Math.round(e))<0?0:e>255?255:e}function on(e){return e<0?0:e>1?1:e}function an(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?rn(parseFloat(t)/100*255):rn(parseInt(t,10))}function sn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?on(parseFloat(t)/100):on(parseFloat(t))}function ln(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 un(e,t,n){return e+(t-e)*n}function cn(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function hn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var dn=new tn(20),fn=null;function pn(e,t){fn&&hn(fn,t),fn=dn.put(e,fn||t.slice())}function An(e,t){if(e){t=t||[];var n=dn.get(e);if(n)return hn(t,n);var i=(e+="").replace(/ /g,"").toLowerCase();if(i in nn)return hn(t,nn[i]),pn(e,t),t;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(cn(t,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),pn(e,t),t):void cn(t,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(cn(t,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),pn(e,t),t):void cn(t,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?cn(t,+u[0],+u[1],+u[2],1):cn(t,0,0,0,1);c=sn(u.pop());case"rgb":return 3!==u.length?void cn(t,0,0,0,1):(cn(t,an(u[0]),an(u[1]),an(u[2]),c),pn(e,t),t);case"hsla":return 4!==u.length?void cn(t,0,0,0,1):(u[3]=sn(u[3]),gn(u,t),pn(e,t),t);case"hsl":return 3!==u.length?void cn(t,0,0,0,1):(gn(u,t),pn(e,t),t);default:return}}cn(t,0,0,0,1)}}function gn(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=sn(e[1]),r=sn(e[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return cn(t=t||[],rn(255*ln(a,o,n+1/3)),rn(255*ln(a,o,n)),rn(255*ln(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function vn(e,t){var n=An(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 Sn(n,4===n.length?"rgba":"rgb")}}function mn(e){var t=An(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function yn(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=t[r],s=t[o],l=i-r;return n[0]=rn(un(a[0],s[0],l)),n[1]=rn(un(a[1],s[1],l)),n[2]=rn(un(a[2],s[2],l)),n[3]=on(un(a[3],s[3],l)),n}}var _n=yn;function bn(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=An(t[r]),s=An(t[o]),l=i-r,u=Sn([rn(un(a[0],s[0],l)),rn(un(a[1],s[1],l)),rn(un(a[2],s[2],l)),on(un(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var wn=bn;function xn(e,t,n,i){var r,o=An(e);if(e)return o=function(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?t=d-h:r===s?t=1/3+c-d:o===s&&(t=2/3+h-c),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,u];return null!=e[3]&&f.push(e[3]),f}}(o),null!=t&&(o[0]=(r=t,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(o[1]=sn(n)),null!=i&&(o[2]=sn(i)),Sn(gn(o),"rgba")}function Cn(e,t){var n=An(e);if(n&&null!=t)return n[3]=on(t),Sn(n,"rgba")}function Sn(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 kn(e,t){var n=An(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function Bn(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}var Tn=Array.prototype.slice;function En(e,t,n){return(t-e)*n+e}function In(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=En(t[o],n[o],i)}function Mn(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=t[o]+n[o]*i;return e}function Dn(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*i}return e}function Pn(e,t,n){var i=e,r=t;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:Tn.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Fn(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}function On(e,t,n,i,r,o,a){var s=.5*(n-e),l=.5*(i-t);return(2*(t-n)+s+l)*a+(-3*(t-n)-2*s-l)*o+s*r+t}function Ln(e,t,n,i,r,o,a,s){for(var l=t.length,u=0;u<l;u++)e[u]=On(t[u],n[u],i[u],r[u],o,a,s)}function Nn(e){if(G(e)){var t=e.length;if(G(e[0])){for(var n=[],i=0;i<t;i++)n.push(Tn.call(e[i]));return n}return Tn.call(e)}return e}function Rn(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}var Un,Qn,Hn=[0,0,0,0],jn=function(){function e(e){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=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._isAllValueEqual&&this.keyframes.length>=2&&this.interpolable&&this.maxTime>0},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t){e>=this.maxTime?this.maxTime=e:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(G(t)){var r=function(e){return G(e&&e[0])?2:1}(t);if(i>0&&this.arrDim!==r)return void(this.interpolable=!1);if(1===r&&"number"!=typeof t[0]||2===r&&"number"!=typeof t[0][0])return void(this.interpolable=!1);if(i>0){var o=n[i-1];this._isAllValueEqual&&(1===r&&Fn(t,o.value)||(this._isAllValueEqual=!1))}this.arrDim=r}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof t){var a=An(t);a?(t=a,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof t||isNaN(t))return void(this.interpolable=!1);if(this._isAllValueEqual&&i>0){o=n[i-1];this.isValueColor&&!Fn(o.value,t)?this._isAllValueEqual=!1:o.value!==t&&(this._isAllValueEqual=!1)}}var s={time:e,value:t,percent:0};return this.keyframes.push(s),s},e.prototype.prepare=function(e){var t=this.keyframes;this._needsSort&&t.sort(function(e,t){return e.time-t.time});for(var n=this.arrDim,i=t.length,r=t[i-1],o=0;o<i;o++)t[o].percent=t[o].time/this.maxTime,n>0&&o!==i-1&&Pn(t[o].value,r.value,n);if(e&&this.needsAnimate()&&e.needsAnimate()&&n===e.arrDim&&this.isValueColor===e.isValueColor&&!e._finished){this._additiveTrack=e;var a=t[0].value;for(o=0;o<i;o++)0===n?this.isValueColor?t[o].additiveValue=Mn([],t[o].value,a,-1):t[o].additiveValue=t[o].value-a:1===n?t[o].additiveValue=Mn([],t[o].value,a,-1):2===n&&(t[o].additiveValue=Dn([],t[o].value,a,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i=null!=this._additiveTrack,r=i?"additiveValue":"value",o=this.keyframes,a=this.keyframes.length,s=this.propName,l=this.arrDim,u=this.isValueColor;if(t<0)n=0;else if(t<this._lastFramePercent){for(n=Math.min(this._lastFrame+1,a-1);n>=0&&!(o[n].percent<=t);n--);n=Math.min(n,a-2)}else{for(n=this._lastFrame;n<a&&!(o[n].percent>t);n++);n=Math.min(n-1,a-2)}var c=o[n+1],h=o[n];if(h&&c){this._lastFrame=n,this._lastFramePercent=t;var d=c.percent-h.percent;if(0!==d){var f=(t-h.percent)/d,p=i?this._additiveValue:u?Hn:e[s];if((l>0||u)&&!p&&(p=this._additiveValue=[]),this.useSpline){var A=o[n][r],g=o[0===n?n:n-1][r],v=o[n>a-2?a-1:n+1][r],m=o[n>a-3?a-1:n+2][r];if(l>0)1===l?Ln(p,g,A,v,m,f,f*f,f*f*f):function(e,t,n,i,r,o,a,s){for(var l=t.length,u=t[0].length,c=0;c<l;c++){e[c]||(e[1]=[]);for(var h=0;h<u;h++)e[c][h]=On(t[c][h],n[c][h],i[c][h],r[c][h],o,a,s)}}(p,g,A,v,m,f,f*f,f*f*f);else if(u)Ln(p,g,A,v,m,f,f*f,f*f*f),i||(e[s]=Rn(p));else{var y=void 0;y=this.interpolable?On(g,A,v,m,f,f*f,f*f*f):v,i?this._additiveValue=y:e[s]=y}}else if(l>0)1===l?In(p,h[r],c[r],f):function(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=En(t[a][s],n[a][s],i)}}(p,h[r],c[r],f);else if(u)In(p,h[r],c[r],f),i||(e[s]=Rn(p));else{y=void 0;y=this.interpolable?En(h[r],c[r],f):function(e,t,n){return n>.5?t:e}(h[r],c[r],f),i?this._additiveValue=y:e[s]=y}i&&this._addToTarget(e)}}}},e.prototype._addToTarget=function(e){var t=this.arrDim,n=this.propName,i=this._additiveValue;0===t?this.isValueColor?(An(e[n],Hn),Mn(Hn,Hn,i,1),e[n]=Rn(Hn)):e[n]=e[n]+i:1===t?Mn(e[n],e[n],i,1):2===t&&Dn(e[n],e[n],i,1)},e}(),Vn=function(){function e(e,t,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n?L("Can' use additive animation on looped animation."):this._additiveAnimators=n}return e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t){return this.whenWithKeys(e,t,J(t))},e.prototype.whenWithKeys=function(e,t,n){for(var i=this._tracks,r=0;r<n.length;r++){var o=n[r],a=i[o];if(!a){a=i[o]=new jn(o);var s=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes[l.keyframes.length-1];s=u&&u.value,l.isValueColor&&s&&(s=Rn(s))}else s=this._target[o];if(null==s)continue;0!==e&&a.addKeyframe(0,Nn(s)),this._trackKeys.push(o)}a.addKeyframe(e,Nn(t[o]))}return this._maxTime=Math.max(this._maxTime,e),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._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].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 n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(e);r&&(t=r)}return t},e.prototype.start=function(e,t){if(!(this._started>0)){this._started=1;for(var n=this,i=[],r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes;if(a.prepare(s),a.needsAnimate())i.push(a);else if(!a.interpolable){var u=l[l.length-1];u&&(n._target[a.propName]=u.value)}}if(i.length||t){var c=new Jt({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(e){n._started=2;var t=n._additiveAnimators;if(t){for(var r=!1,o=0;o<t.length;o++)if(t[o]._clip){r=!0;break}r||(n._additiveAnimators=null)}for(o=0;o<i.length;o++)i[o].step(n._target,e);var a=n._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](n._target,e)},ondestroy:function(){n._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&"spline"!==e&&(c.easing=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(e){return this._delay=e,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.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<e.length;r++){var o=n[e[r]];o&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveFinalToTarget=function(e,t){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],r=this._tracks[i];if(r&&!r.isFinished()){var o=r.keyframes,a=o[o.length-1];if(a){var s=Nn(a.value);r.isValueColor&&(s=Rn(s)),e[i]=s}}}}},e.prototype.__changeFinalValue=function(e,t){t=t||J(e);for(var n=0;n<t.length;n++){var i=t[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,e[i]),r.prepare(r.getAdditiveTrack())}}}},e}(),zn=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.onframe=t.onframe||function(){},n}return Me(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._clipsHead?(this._clipsTail.next=e,e.prev=this._clipsTail,e.next=null,this._clipsTail=e):this._clipsHead=this._clipsTail=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._clipsHead=n,n?n.prev=t:this._clipsTail=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 t=(new Date).getTime()-this._pausedTime,n=t-this._time,i=this._clipsHead;i;){var r=i.next;i.step(t,n)?(i.ondestroy&&i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=t,e||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,Yt(function t(){e._running&&(Yt(t),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._clipsHead;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._clipsHead=this._clipsTail=null},t.prototype.isFinished=function(){return null==this._clipsHead},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new Vn(e,t.loop);return this.addAnimator(n),n},t}(ot),$n=_.domSupported,Gn=(Qn={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Un=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:K(Un,function(e){var t=e.replace("mouse","pointer");return Qn.hasOwnProperty(t)?t:e})}),Wn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Kn=!1;function Yn(e){var t=e.pointerType;return"pen"===t||"touch"===t}function qn(e){e&&(e.zrByTouch=!0)}function Xn(e,t){for(var n=t,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return i}var Jn=function(){return function(e,t){this.stopPropagation=Ee,this.stopImmediatePropagation=Ee,this.preventDefault=Ee,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}}(),Zn={mousedown:function(e){e=yt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=yt(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=yt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){Xn(this,(e=yt(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Kn=!0,e=yt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Kn||(e=yt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){qn(e=yt(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Zn.mousemove.call(this,e),Zn.mousedown.call(this,e)},touchmove:function(e){qn(e=yt(this.dom,e)),this.handler.processGesture(e,"change"),Zn.mousemove.call(this,e)},touchend:function(e){qn(e=yt(this.dom,e)),this.handler.processGesture(e,"end"),Zn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&Zn.click.call(this,e)},pointerdown:function(e){Zn.mousedown.call(this,e)},pointermove:function(e){Yn(e)||Zn.mousemove.call(this,e)},pointerup:function(e){Zn.mouseup.call(this,e)},pointerout:function(e){Yn(e)||Zn.mouseout.call(this,e)}};W(["click","dblclick","contextmenu"],function(e){Zn[e]=function(t){t=yt(this.dom,t),this.trigger(e,t)}});var ei={pointermove:function(e){Yn(e)||ei.mousemove.call(this,e)},pointerup:function(e){ei.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 ti(e,t){var n=t.domHandlers;_.pointerEventsSupported?W(Gn.pointer,function(i){ii(t,i,function(t){n[i].call(e,t)})}):(_.touchEventsSupported&&W(Gn.touch,function(i){ii(t,i,function(r){n[i].call(e,r),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)})}),W(Gn.mouse,function(i){ii(t,i,function(r){r=mt(r),t.touching||n[i].call(e,r)})}))}function ni(e,t){function n(n){ii(t,n,function(i){i=mt(i),Xn(e,i.target)||(i=function(e,t){return yt(e.dom,new Jn(e,t),!0)}(e,i),t.domHandlers[n].call(e,i))},{capture:!0})}_.pointerEventsSupported?W(Wn.pointer,n):_.touchEventsSupported||W(Wn.mouse,n)}function ii(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,_t(e.domTarget,t,n,i)}function ri(e){var t,n,i,r,o=e.mounted;for(var a in o)o.hasOwnProperty(a)&&(t=e.domTarget,n=a,i=o[a],r=e.listenerOpts[a],ft?t.removeEventListener(n,i,r):t.detachEvent("on"+n,i));e.mounted={}}var oi=function(){return function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}}(),ai=function(e){function t(t,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new oi(t,Zn),$n&&(i._globalHandlerScope=new oi(document,ei)),ti(i,i._localHandlerScope),i}return Me(t,e),t.prototype.dispose=function(){ri(this._localHandlerScope),$n&&ri(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,$n&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?ni(this,t):ri(t)}},t}(ot),si=1;"undefined"!=typeof window&&(si=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var li=si,ui=.4;function ci(){return[1,0,0,1,0,0]}function hi(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function di(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 fi(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function pi(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Ai(e,t,n){var i=t[0],r=t[2],o=t[4],a=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=i*c+a*u,e[1]=-i*u+a*c,e[2]=r*c+s*u,e[3]=-r*u+c*s,e[4]=c*o+u*l,e[5]=c*l-u*o,e}function gi(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e}function vi(e,t){var n=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*i;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-a*r)*l,e[5]=(o*r-n*s)*l,e):null}function mi(e){var t=[1,0,0,1,0,0];return di(t,e),t}var yi=hi,_i=5e-5;function bi(e){return e>_i||e<-_i}var wi,xi,Ci=[],Si=[],ki=[1,0,0,1,0,0],Bi=Math.abs,Ti=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 bi(this.rotation)||bi(this.x)||bi(this.y)||bi(this.scaleX-1)||bi(this.scaleY-1)},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):yi(n),e&&(t?fi(n,e,n):di(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&yi(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(Ci);var n=Ci[0]<0?-1:1,i=Ci[1]<0?-1:1,r=((Ci[0]-n)*t+n)/Ci[0]||0,o=((Ci[1]-i)*t+i)/Ci[1]||0;e[0]*=r,e[1]*=r,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],vi(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],i=Math.atan2(e[1],e[0]),r=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-i,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&&(fi(Si,e.invTransform,t),t=Si);var n=this.originX,i=this.originY;(n||i)&&(ki[4]=n,ki[5]=i,fi(Si,t,ki),Si[4]-=n,Si[5]-=i,t=Si),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],i=this.invTransform;return i&&et(n,n,i),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&et(n,n,i),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Bi(e[0]-1)>1e-10&&Bi(e[3]-1)>1e-10?Math.sqrt(Bi(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){for(var t=0;t<Ei.length;t++){var n=Ei[t];this[n]=e[n]}},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,r=e.scaleX,o=e.scaleY,a=e.rotation||0,s=e.x,l=e.y,u=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;return n||i?(t[4]=-n*r-u*i*o,t[5]=-i*o-c*n*r):t[4]=t[5]=0,t[0]=r,t[3]=o,t[1]=c*r,t[2]=u*o,a&&Ai(t,t,a),t[4]+=n+s,t[5]+=i+l,t},e.initDefaultProps=((t=e.prototype).x=0,t.y=0,t.scaleX=1,t.scaleY=1,t.originX=0,t.originY=0,t.skewX=0,t.skewY=0,t.rotation=0,void(t.globalScaleRatio=1)),e}(),Ei=["x","y","originX","originY","rotation","scaleX","scaleY","skewX","skewY"],Ii=Ti,Mi=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(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.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,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},e.lerp=function(e,t,n,i){var r=1-i;e.x=r*t.x+i*n.x,e.y=r*t.y+i*n.y},e}(),Di=Math.min,Pi=Math.max,Fi=new Mi,Oi=new Mi,Li=new Mi,Ni=new Mi,Ri=new Mi,Ui=new Mi,Qi=function(){function e(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.union=function(e){var t=Di(e.x,this.x),n=Di(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Pi(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Pi(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(e){var t=this,n=e.width/t.width,i=e.height/t.height,r=[1,0,0,1,0,0];return pi(r,r,[-t.x,-t.y]),gi(r,r,[n,i]),pi(r,r,[e.x,e.y]),r},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,c=t.y,h=t.y+t.height,d=!(o<l||u<r||s<c||h<a);if(n){var f=1/0,p=0,A=Math.abs(o-l),g=Math.abs(u-r),v=Math.abs(s-c),m=Math.abs(h-a),y=Math.min(A,g),_=Math.min(v,m);o<l||u<r?y>p&&(p=y,A<g?Mi.set(Ui,-A,0):Mi.set(Ui,g,0)):y<f&&(f=y,A<g?Mi.set(Ri,A,0):Mi.set(Ri,-g,0)),s<c||h<a?_>p&&(p=_,v<m?Mi.set(Ui,0,-v):Mi.set(Ui,0,m)):y<f&&(f=y,v<m?Mi.set(Ri,0,v):Mi.set(Ri,0,-m))}return n&&Mi.copy(n,d?Ri:Ui),d},e.prototype.contain=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.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(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return t.x=n.x*r+a,t.y=n.y*o+s,t.width=n.width*r,t.height=n.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))}Fi.x=Li.x=n.x,Fi.y=Ni.y=n.y,Oi.x=Ni.x=n.x+n.width,Oi.y=Li.y=n.y+n.height,Fi.transform(i),Ni.transform(i),Oi.transform(i),Li.transform(i),t.x=Di(Fi.x,Oi.x,Li.x,Ni.x),t.y=Di(Fi.y,Oi.y,Li.y,Ni.y);var l=Pi(Fi.x,Oi.x,Li.x,Ni.x),u=Pi(Fi.y,Oi.y,Li.y,Ni.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),Hi={},ji="12px sans-serif";var Vi={measureText:function(e,t){return wi||(wi=j().getContext("2d")),xi!==t&&(xi=wi.font=t||ji),wi.measureText(e)}};function zi(e,t){var n=Hi[t=t||ji];n||(n=Hi[t]=new tn(500));var i=n.get(e);return null==i&&(i=Vi.measureText(e,t).width,n.put(e,i)),i}function $i(e,t,n,i){var r=zi(e,t),o=Yi(t),a=Wi(0,r,n),s=Ki(0,o,i);return new Qi(a,s,r,o)}function Gi(e,t,n,i){var r=((e||"")+"").split("\n");if(1===r.length)return $i(r[0],t,n,i);for(var o=new Qi(0,0,0,0),a=0;a<r.length;a++){var s=$i(r[a],t,n,i);0===a?o.copy(s):o.union(s)}return o}function Wi(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function Ki(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function Yi(e){return zi("国",e)}function qi(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Xi(e,t,n){var i=t.position||"inside",r=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=qi(i[0],n.width),u+=qi(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=h,e}var Ji=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],Zi={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},er={},tr=new Qi(0,0,0,0),nr=function(){function e(e){this.id=O(),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 i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[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,i=n.local,r=t.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(t),null!=n.position){var u=tr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(er,n,u):Xi(er,n,u),r.x=er.x,r.y=er.y,o=er.align,a=er.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=qi(c[0],u.width),d=qi(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var f=n.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,A=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,v=void 0,m=void 0;p&&this.canBeInsideText()?(g=n.insideFill,v=n.insideStroke,null!=g&&"auto"!==g||(g=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(g),m=!0)):(g=n.outsideFill,v=n.outsideStroke,null!=g&&"auto"!==g||(g=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(g),m=!0)),(g=g||"#000")===A.fill&&v===A.stroke&&m===A.autoStroke&&o===A.align&&a===A.verticalAlign||(s=!0,A.fill=g,A.stroke=v,A.autoStroke=m,A.align=o,A.verticalAlign=a,t.setDefaultTextStyle(A)),t.__dirty|=Vt,s&&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()?"#ccc":"#333"},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&An(t);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Sn(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||{},Q(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(ae(e))for(var n=J(e),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,e[r])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!r||"__zr_normal__"===r){var o=i.targetName,a=o?t[o]:t;i.saveFinalToTarget(a)}}},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,Ji)},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("__zr_normal__",!1,e)},e.prototype.useState=function(e,t,n,i){var r="__zr_normal__"===e;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(V(o,e)>=0)||!t&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt),s}L("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],r=this.currentStates,o=e.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(e[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&f&&f.duration>0,f);var p=this._textContent,A=this._textGuide;p&&p.useStates(e,t,h),A&&A.useStates(e,t,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=V(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 i=this.currentStates.slice(),r=V(i,e),o=V(i,t)>=0;r>=0?o?i.splice(r,1):i[r]=t:n&&!o&&i.push(t),this.useStates(i)},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];Q(n,r),r.textConfig&&Q(t=t||{},r.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,i,r,o){var a=!(t&&i);t&&t.textConfig?(this.textConfig=Q({},i?this.textConfig:n.textConfig),Q(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Ji.length;u++){var c=Ji[u],h=r&&Zi[c];t&&null!=t[c]?h?(l=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(u=0;u<this.animators.length;u++){var d=this.animators[u],f=d.targetName;d.__changeFinalValue(f?(t||n)[f]:t||n)}l&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");if(e===this)throw new Error("Recursive component attachment.");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;if(t!==e){if(t&&t!==e&&this.removeTextContent(),e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new Ii,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Q(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|=Vt;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 n=0;n<t.length;n++)e.animation.addAnimator(t[n]);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 n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t){var n=e?this[e]:this;if(n){var i=new Vn(n,t);return this.addAnimator(i,e),i}L('Property "'+e+'" is not existed in element '+this.id)},e.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(t)}).done(function(){var t=i.animators,n=V(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,i=n.length,r=[],o=0;o<i;o++){var a=n[o];e&&e!==a.scope?r.push(a):a.stop(t)}return this.animators=r,this},e.prototype.animateTo=function(e,t,n){ir(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){ir(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,i){for(var r=ir(this,t,n,i),o=0;o<r.length;o++)r[o].__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=!1,t.silent=!1,t.isGroup=!1,t.draggable=!1,t.dragging=!1,t.ignoreClip=!1,t.__inHover=!1,t.__dirty=Vt;var n={};function i(e,t,i){n[e+t+i]||(console.warn("DEPRECATED: '"+e+"' has been deprecated. use '"+t+"', '"+i+"' instead"),n[e+t+i]=!0)}function r(e,n,r,o){function a(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(){(i(e,r,o),this[n])||a(this,this[n]=[]);return this[n]},set:function(t){i(e,r,o),this[r]=t[0],this[o]=t[1],this[n]=t,a(this,t)}})}Object.defineProperty&&(!_.browser.ie||_.browser.version>8)&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();function ir(e,t,n,i,r){var o=[];!function e(t,n,i,r,o,a,s,l){var u=[];var c=[];var h=J(r);var d=o.duration;var f=o.delay;var p=o.additive;var A=o.setToFinal;var g=!ae(a);for(var v=0;v<h.length;v++){var m=h[v];if(null!=i[m]&&null!=r[m]&&(g||a[m]))if(ae(r[m])&&!G(r[m])){if(n){l||(i[m]=r[m],t.updateDuringAnimation(n));continue}e(t,m,i[m],r[m],o,a&&a[m],s,l)}else u.push(m),c.push(m);else l||(i[m]=r[m],t.updateDuringAnimation(n),c.push(m))}var y=u.length;if(y>0||o.force&&!s.length){for(var _=t.animators,b=[],w=0;w<_.length;w++)_[w].targetName===n&&b.push(_[w]);if(!p&&b.length)for(var w=0;w<b.length;w++){var x=b[w].stopTracks(c);if(x){var C=V(_,b[w]);_.splice(C,1)}}var S=void 0,k=void 0,B=void 0;if(l){k={},A&&(S={});for(var w=0;w<y;w++){var m=u[w];k[m]=i[m],A?S[m]=r[m]:i[m]=r[m]}}else if(A){B={};for(var w=0;w<y;w++){var m=u[w];B[m]=Nn(i[m]),or(i,r,m)}}var T=new Vn(i,!1,p?b:null);T.targetName=n,o.scope&&(T.scope=o.scope),A&&S&&T.whenWithKeys(0,S,u),B&&T.whenWithKeys(0,B,u),T.whenWithKeys(null==d?500:d,l?k:r,u).delay(f||0),t.addAnimator(T,n),s.push(T)}}(e,"",e,t,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(e,t){n.during(t)});for(var d=0;d<o.length;d++){var f=o[d];c&&f.done(c),h&&f.aborted(h),f.start(n.easing,n.force)}return o}function rr(e,t,n){for(var i=0;i<n;i++)e[i]=t[i]}function or(e,t,n){if(G(t[n]))if(G(e[n])||(e[n]=[]),le(t[n])){var i=t[n].length;e[n].length!==i&&(e[n]=new t[n].constructor(i),rr(e[n],t[n],i))}else{var r=t[n],o=e[n],a=r.length;if(G(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?rr(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else rr(o,r,a);o.length=r.length}else e[n]=t[n]}$(nr,ot),$(nr,Ii);var ar=nr,sr=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Me(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,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=V(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),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,i=V(n,e);return i<0?this:(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var i=e[n];t&&i.removeSelfFromZr(t),i.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 n=0;n<this._children.length;n++){var i=this._children[n],r=e.call(t,i);i.isGroup&&!r&&i.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new Qi(0,0,0,0),n=e||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(Qi.applyTransform(t,s,l),(r=r||t.clone()).union(t)):(r=r||s.clone()).union(s)}}return r||t},t}(ar);sr.prototype.type="group";var lr=sr,ur=!_.canvasSupported,cr={},hr={};
  63. /*!
  64. * ZRender, a high performance 2d drawing library.
  65. *
  66. * Copyright (c) 2013, Baidu Inc.
  67. * All rights reserved.
  68. *
  69. * LICENSE
  70. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  71. */var dr=function(){function e(e,t,n){var i=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 r=new Kt,o=n.renderer||"canvas";if(ur)throw new Error("IE8 support has been dropped since 5.0");if(cr[o]||(o=J(cr)[0]),!cr[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new cr[o](t,r,n,e);this.storage=r,this.painter=a;var s=_.node||_.worker?null:new ai(a.getViewportRoot(),a.root);this.handler=new Ft(r,a,s,a.root),this.animation=new zn({stage:{update:function(){return i._flush(!0)}}}),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 kn(e,1)<ui;if(e.colorStops){for(var t=e.colorStops,n=0,i=t.length,r=0;r<i;r++)n+=kn(t[r].color,1);return(n/=i)<ui}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=(new Date).getTime();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=(new Date).getTime();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-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.addHover=function(e){},e.prototype.removeHover=function(e){},e.prototype.clearHover=function(){},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.pathToImage=function(e,t){if(this.painter.pathToImage)return this.painter.pathToImage(e,t)},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(),t=0;t<e.length;t++)e[t]instanceof lr&&e[t].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 hr[e]},e}();function fr(e,t){var n=new dr(O(),e,t);return hr[n.id]=n,n}function pr(e){e.dispose()}function Ar(){for(var e in hr)hr.hasOwnProperty(e)&&hr[e].dispose();hr={}}function gr(e){return hr[e]}function vr(e,t){cr[e]=t}var mr="5.2.1",yr=1e-4,_r=20;function br(e,t,n,i){var r=t[0],o=t[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(e<=r)return a;if(e>=o)return s}else{if(e>=r)return a;if(e<=o)return s}else{if(e===r)return a;if(e===o)return s}return(e-r)/l*u+a}function wr(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"string"==typeof e?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function xr(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),_r),e=(+e).toFixed(t),n?e:+e}function Cr(e){return e.sort(function(e,t){return e-t}),e}function Sr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return kr(e)}function kr(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function Br(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Tr(e,t,n){if(!e[t])return 0;var i=Y(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(0===i)return 0;for(var r=Math.pow(10,n),o=K(e,function(e){return(isNaN(e)?0:e)/i*r*100}),a=100*r,s=K(o,function(e){return Math.floor(e)}),l=Y(s,function(e,t){return e+t},0),u=K(o,function(e,t){return e-s[t]});l<a;){for(var c=Number.NEGATIVE_INFINITY,h=null,d=0,f=u.length;d<f;++d)u[d]>c&&(c=u[d],h=d);++s[h],u[h]=0,++l}return s[t]/r}function Er(e,t){var n=Math.max(Sr(e),Sr(t)),i=e+t;return n>_r?i:xr(i,n)}var Ir=9007199254740991;function Mr(e){var t=2*Math.PI;return(e%t+t)%t}function Dr(e){return e>-yr&&e<yr}var Pr=/^(?:(\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 Fr(e){if(e instanceof Date)return e;if("string"==typeof e){var t=Pr.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 Or(e){return Math.pow(10,Lr(e))}function Lr(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 Nr(e,t){var n=Lr(e),i=Math.pow(10,n),r=e/i;return e=(t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+e.toFixed(n<0?-n:0):e}function Rr(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function Ur(e){e.sort(function(e,t){return function e(t,n,i){return t.interval[i]<n.interval[i]||t.interval[i]===n.interval[i]&&(t.close[i]-n.close[i]==(i?-1:1)||!i&&e(t,n,1))}(e,t,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,a=0;a<2;a++)r[a]<=t&&(r[a]=t,o[a]=a?1:1-n),t=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?e.splice(i,1):i++}return e}function Qr(e){var t=parseFloat(e);return t==e&&(0!==t||"string"!=typeof e||e.indexOf("x")<=0)?t:NaN}function Hr(e){return!isNaN(Qr(e))}function jr(){return Math.round(9*Math.random())}function Vr(e,t){return null==e?t:null==t?e:e*t/function e(t,n){return 0===n?t:e(n,t%n)}(e,t)}"undefined"!=typeof console&&console.warn&&console.log;function zr(e){0}function $r(e){throw new Error(e)}var Gr="series\0",Wr="\0_ec_\0";function Kr(e){return e instanceof Array?e:null==e?[]:[e]}function Yr(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 qr=["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 Xr(e){return!ae(e)||te(e)||e instanceof Date?e:e.value}function Jr(e){return ae(e)&&!(e instanceof Array)}function Zr(e,t,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=Se();W(t,function(e,n){ae(e)||(t[n]=null)});var s,l,u=function(e,t,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<e.length;r++){var o=e[r];o&&null!=o.id&&t.set(o.id,r),i.push({existing:"replaceMerge"===n||ro(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(e,a,n);return(i||r)&&function(e,t,n,i){W(i,function(r,o){if(r&&null!=r.id){var a=to(r.id),s=n.get(a);if(null!=s){var l=e[s];ye(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=t[s],i[o]=null}}})}(u,e,a,t),i&&function(e,t){W(t,function(n,i){if(n&&null!=n.name)for(var r=0;r<e.length;r++){var o=e[r].existing;if(!e[r].newOption&&o&&(null==o.id||null==n.id)&&!ro(n)&&!ro(o)&&eo("name",o,n))return e[r].newOption=n,void(t[i]=null)}})}(u,t),i||r?function(e,t,n){W(t,function(t){if(t){for(var i,r=0;(i=e[r])&&(i.newOption||ro(i.existing)||i.existing&&null!=t.id&&!eo("id",t,i.existing));)r++;i?(i.newOption=t,i.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),r++}})}(u,t,r):o&&function(e,t){W(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(u,t),s=u,l=Se(),W(s,function(e){var t=e.existing;t&&l.set(t.id,e)}),W(s,function(e){var t=e.newOption;ye(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})}),W(s,function(e,t){var n=e.existing,i=e.newOption,r=e.keyInfo;if(ae(i)){if(r.name=null!=i.name?to(i.name):n?n.name:Gr+t,n)r.id=to(n.id);else if(null!=i.id)r.id=to(i.id);else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(l.get(r.id))}l.set(r.id,e)}}),u}function eo(e,t,n){var i=no(t[e],null),r=no(n[e],null);return null!=i&&null!=r&&i===r}function to(e){return no(e,"")}function no(e,t){if(null==e)return t;var n=typeof e;return"string"===n?e:"number"===n||re(e)?e+"":t}function io(e){var t=e.name;return!(!t||!t.indexOf(Gr))}function ro(e){return e&&null!=e.id&&0===to(e.id).indexOf(Wr)}function oo(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?te(t.dataIndex)?K(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?te(t.name)?K(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function ao(){var e="__ec_inner_"+so++;return function(t){return t[e]||(t[e]={})}}var so=jr();function lo(e,t,n){var i=uo(t,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(t,i){var r=fo(e,i,t,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]}),a}function uo(e,t){var n;if(ie(e)){var i={};i[e+"Index"]=0,n=i}else n=e;var r=Se(),o={},a=!1;return W(n,function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&V(t.includeMainTypes,s)<0))a=a||!!s,(r.get(s)||r.set(s,{}))[l]=e}else o[n]=e}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var co={useDefault:!0,enableAll:!1,enableNone:!1},ho={useDefault:!1,enableAll:!0,enableNone:!0};function fo(e,t,n,i){i=i||co;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===r||!1===r?(ye(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(ye(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=e.queryComponents({mainType:t,index:r,id:o,name:a}),s)}function po(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Ao(e,t){var n=Se(),i=[];return W(e,function(e){var r=t(e);(n.get(r)||(i.push(r),n.set(r,[]))).push(e)}),{keys:i,buckets:n}}function go(e,t,n,i,r){var o=null==t||"auto"===t;if(null==i)return i;if("number"==typeof i)return xr(p=En(n||0,i,r),o?Math.max(Sr(n||0),Sr(i)):t);if("string"==typeof i)return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=e.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(r<1&&s?s:l)[c];else{var d=s&&s[c]?s[c]:0,f=l[c],p=En(d,f,r);a[c]=xr(p,o?Math.max(Sr(d),Sr(f)):t)}}return a}var vo=".",mo="___EC__COMPONENT__CONTAINER___",yo="___EC__EXTENDED_CLASS___";function _o(e){var t={main:"",sub:""};if(e){var n=e.split(vo);t.main=n[0]||"",t.sub=n[1]||""}return t}function bo(e,t){e.$constructor=e,e.extend=function(e){var t=this;function n(){for(var i,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(e.$constructor)e.$constructor.apply(this,arguments);else{if("function"==typeof(i=t)&&/^class\s/.test(Function.prototype.toString.call(i)))return Be(n.prototype,new(t.bind.apply(t,function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||t)}([void 0],r))));t.apply(this,arguments)}}return n[yo]=!0,Q(n.prototype,e),n.extend=this.extend,n.superCall=Co,n.superApply=So,z(n,this),n.superClass=t,n}}function wo(e,t){e.extend=t.extend}var xo=Math.round(10*Math.random());function Co(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function So(e,t,n){return this.superClass.prototype[t].apply(e,n)}function ko(e){var t={};e.registerClass=function(e){var n,i=e.type||e.prototype.type;if(i){ye(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),e.prototype.type=i;var r=_o(i);if(r.sub){if(r.sub!==mo){((function(e){var n=t[e.main];n&&n[mo]||((n=t[e.main]={})[mo]=!0);return n})(r))[r.sub]=e}}else t[r.main]=e}return e},e.getClass=function(e,n,i){var r=t[e];if(r&&r[mo]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){var n=_o(e),i=[],r=t[n.main];return r&&r[mo]?W(r,function(e,t){t!==mo&&i.push(e)}):i.push(r),i},e.hasClass=function(e){var n=_o(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return W(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=_o(e),i=t[n.main];return i&&i[mo]}}function Bo(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,i,r){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(i&&V(i,s)>=0||r&&V(r,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var To=Bo([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Eo=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return To(this,e,t)},e}(),Io=new tn(50);function Mo(e){if("string"==typeof e){var t=Io.get(e);return t&&t.image}return e}function Do(e,t,n,i,r){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=Io.get(e),a={hostEl:n,cb:i,cbPayload:r};return o?!Fo(t=o.image)&&o.pending.push(a):((t=new Image).onload=t.onerror=Po,Io.put(e,t.__cachedImgObj={image:t,pending:[a]}),t.src=t.__zrImageSrc=e),t}return e}return t}function Po(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Fo(e){return e&&e.width&&e.height}var Oo=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Lo(e,t,n,i,r){if(!t)return"";var o=(e+"").split("\n");r=No(t,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=Ro(o[a],r);return o.join("\n")}function No(e,t,n,i){var r=Q({},i=i||{});r.font=t,n=Ae(n,"..."),r.maxIterations=Ae(i.maxIterations,2);var o=r.minChar=Ae(i.minChar,0);r.cnCharWidth=zi("国",t);var a=r.ascCharWidth=zi("a",t);r.placeholder=Ae(i.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var u=zi(n,t);return u>s&&(n="",u=0),s=e-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=e,r}function Ro(e,t){var n=t.containerWidth,i=t.font,r=t.contentWidth;if(!n)return"";var o=zi(e,i);if(o<=n)return e;for(var a=0;;a++){if(o<=r||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?Uo(e,r,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*r/o):0;o=zi(e=e.substr(0,s),i)}return""===e&&(e=t.placeholder),e}function Uo(e,t,n,i){for(var r=0,o=0,a=e.length;o<a&&r<t;o++){var s=e.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}var Qo=function(){return function(){}}(),Ho=function(){return function(e){this.tokens=[],e&&(this.tokens=e)}}(),jo=function(){return function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}}();function Vo(e,t,n,i,r){var o,a,s=""===t,l=r&&n.rich[r]||{},u=e.lines,c=l.font||n.font,h=!1;if(i){var d=l.padding,f=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var p=qi(l.width,i.width)+f;u.length>0&&p+i.accumWidth>i.width&&(o=t.split("\n"),h=!0),i.accumWidth=p}else{var A=Go(t,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=A.accumWidth+f,a=A.linesWidths,o=A.lines}}else o=t.split("\n");for(var g=0;g<o.length;g++){var v=o[g],m=new Qo;if(m.styleName=r,m.text=v,m.isLineHolder=!v&&!s,"number"==typeof l.width?m.width=l.width:m.width=a?a[g]:zi(v,c),g||h)u.push(new Ho([m]));else{var y=(u[u.length-1]||(u[0]=new Ho)).tokens,_=y.length;1===_&&y[0].isLineHolder?y[0]=m:(v||!_||s)&&y.push(m)}}}var zo=Y(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function $o(e){return!function(e){var t=e.charCodeAt(0);return t>=33&&t<=255}(e)||!!zo[e]}function Go(e,t,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<e.length;h++){var d=e.charAt(h);if("\n"!==d){var f=zi(d,t),p=!i&&!$o(d);(o.length?c+f>n:r+c+f>n)?c?(s||l)&&(p?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=d,s="",c=u+=f):(l&&(s+=l,c+=u,l="",u=0),o.push(s),a.push(c),s=d,c=f)):p?(o.push(l),a.push(u),l=d,u=f):(o.push(d),a.push(f)):(c+=f,p?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var Wo="__zr_style_"+Math.round(10*Math.random()),Ko={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Yo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ko[Wo]=!0;var qo=["z","z2","invisible"],Xo=["invisible"],Jo=function(e){function t(t){return e.call(this,t)||this}var n;return Me(t,e),t.prototype._init=function(t){for(var n=J(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,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){Zo.copy(e.getBoundingRect()),e.transform&&Zo.applyTransform(e.transform);return ea.width=t,ea.height=n,!Zo.intersect(ea)}(this,e,t)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.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 e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Qi(0,0,0,0)),t?Qi.applyTransform(e,n,t):e.copy(n),(r||o||a)&&(e.width+=2*r+Math.abs(o),e.height+=2*r+Math.abs(a),e.x=Math.min(e.x,e.x+o-r),e.y=Math.min(e.y,e.y+a-r));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Qi(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:Q(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 Be(Ko,e)},t.prototype.useStyle=function(e){e[Wo]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Wo]},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,qo)},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=J(u),h=0;h<c.length;h++){(f=c[h])in s&&(s[f]=s[f],this.style[f]=u[f])}var d=J(s);for(h=0;h<d.length;h++){var f=d[h];this.style[f]=this.style[f]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var p=this.__inHover?Xo:qo;for(h=0;h<p.length;h++){f=p[h];n&&null!=n[f]?this[f]=n[f]:l&&null!=i[f]&&(this[f]=i[f])}},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var o=t[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,t){return Q(e,t),e},t.prototype.getAnimationStyleProps=function(){return Yo},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=2|Vt)),t}(ar),Zo=new Qi(0,0,0,0),ea=new Qi(0,0,0,0);var ta=Jo,na=Math.pow,ia=Math.sqrt,ra=1e-8,oa=1e-4,aa=ia(3),sa=1/3,la=De(),ua=De(),ca=De();function ha(e){return e>-ra&&e<ra}function da(e){return e>ra||e<-ra}function fa(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function pa(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}function Aa(e,t,n,i,r,o){var a=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,f=0;if(ha(c)&&ha(h)){if(ha(s))o[0]=0;else(C=-l/s)>=0&&C<=1&&(o[f++]=C)}else{var p=h*h-4*c*d;if(ha(p)){var A=h/c,g=-A/2;(C=-s/a+A)>=0&&C<=1&&(o[f++]=C),g>=0&&g<=1&&(o[f++]=g)}else if(p>0){var v=ia(p),m=c*s+1.5*a*(-h+v),y=c*s+1.5*a*(-h-v);(C=(-s-((m=m<0?-na(-m,sa):na(m,sa))+(y=y<0?-na(-y,sa):na(y,sa))))/(3*a))>=0&&C<=1&&(o[f++]=C)}else{var _=(2*c*s-3*a*h)/(2*ia(c*c*c)),b=Math.acos(_)/3,w=ia(c),x=Math.cos(b),C=(-s-2*w*x)/(3*a),S=(g=(-s+w*(x+aa*Math.sin(b)))/(3*a),(-s+w*(x-aa*Math.sin(b)))/(3*a));C>=0&&C<=1&&(o[f++]=C),g>=0&&g<=1&&(o[f++]=g),S>=0&&S<=1&&(o[f++]=S)}}return f}function ga(e,t,n,i,r){var o=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(ha(a)){if(da(o))(c=-s/o)>=0&&c<=1&&(r[l++]=c)}else{var u=o*o-4*a*s;if(ha(u))r[0]=-o/(2*a);else if(u>0){var c,h=ia(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function va(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=e,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function ma(e,t,n,i,r,o,a,s,l,u,c){var h,d,f,p,A,g=.005,v=1/0;la[0]=l,la[1]=u;for(var m=0;m<1;m+=.05)ua[0]=fa(e,n,r,a,m),ua[1]=fa(t,i,o,s,m),(p=Xe(la,ua))<v&&(h=m,v=p);v=1/0;for(var y=0;y<32&&!(g<oa);y++)d=h-g,f=h+g,ua[0]=fa(e,n,r,a,d),ua[1]=fa(t,i,o,s,d),p=Xe(ua,la),d>=0&&p<v?(h=d,v=p):(ca[0]=fa(e,n,r,a,f),ca[1]=fa(t,i,o,s,f),A=Xe(ca,la),f<=1&&A<v?(h=f,v=A):g*=.5);return c&&(c[0]=fa(e,n,r,a,h),c[1]=fa(t,i,o,s,h)),ia(v)}function ya(e,t,n,i,r,o,a,s,l){for(var u=e,c=t,h=0,d=1/l,f=1;f<=l;f++){var p=f*d,A=fa(e,n,r,a,p),g=fa(t,i,o,s,p),v=A-u,m=g-c;h+=Math.sqrt(v*v+m*m),u=A,c=g}return h}function _a(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}function ba(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function wa(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function xa(e,t,n,i,r){var o=(t-e)*i+e,a=(n-t)*i+t,s=(a-o)*i+o;r[0]=e,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Ca(e,t,n,i,r,o,a,s,l){var u,c=.005,h=1/0;la[0]=a,la[1]=s;for(var d=0;d<1;d+=.05){ua[0]=_a(e,n,r,d),ua[1]=_a(t,i,o,d),(g=Xe(la,ua))<h&&(u=d,h=g)}h=1/0;for(var f=0;f<32&&!(c<oa);f++){var p=u-c,A=u+c;ua[0]=_a(e,n,r,p),ua[1]=_a(t,i,o,p);var g=Xe(ua,la);if(p>=0&&g<h)u=p,h=g;else{ca[0]=_a(e,n,r,A),ca[1]=_a(t,i,o,A);var v=Xe(ca,la);A<=1&&v<h?(u=A,h=v):c*=.5}}return l&&(l[0]=_a(e,n,r,u),l[1]=_a(t,i,o,u)),ia(h)}function Sa(e,t,n,i,r,o,a){for(var s=e,l=t,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,f=_a(e,n,r,d),p=_a(t,i,o,d),A=f-s,g=p-l;u+=Math.sqrt(A*A+g*g),s=f,l=p}return u}var ka=Math.min,Ba=Math.max,Ta=Math.sin,Ea=Math.cos,Ia=2*Math.PI,Ma=De(),Da=De(),Pa=De();function Fa(e,t,n){if(0!==e.length){for(var i=e[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<e.length;l++)i=e[l],r=ka(r,i[0]),o=Ba(o,i[0]),a=ka(a,i[1]),s=Ba(s,i[1]);t[0]=r,t[1]=a,n[0]=o,n[1]=s}}function Oa(e,t,n,i,r,o){r[0]=ka(e,n),r[1]=ka(t,i),o[0]=Ba(e,n),o[1]=Ba(t,i)}var La=[],Na=[];function Ra(e,t,n,i,r,o,a,s,l,u){var c=ga,h=fa,d=c(e,n,r,a,La);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<d;f++){var p=h(e,n,r,a,La[f]);l[0]=ka(p,l[0]),u[0]=Ba(p,u[0])}d=c(t,i,o,s,Na);for(f=0;f<d;f++){var A=h(t,i,o,s,Na[f]);l[1]=ka(A,l[1]),u[1]=Ba(A,u[1])}l[0]=ka(e,l[0]),u[0]=Ba(e,u[0]),l[0]=ka(a,l[0]),u[0]=Ba(a,u[0]),l[1]=ka(t,l[1]),u[1]=Ba(t,u[1]),l[1]=ka(s,l[1]),u[1]=Ba(s,u[1])}function Ua(e,t,n,i,r,o,a,s){var l=wa,u=_a,c=Ba(ka(l(e,n,r),1),0),h=Ba(ka(l(t,i,o),1),0),d=u(e,n,r,c),f=u(t,i,o,h);a[0]=ka(e,r,d),a[1]=ka(t,o,f),s[0]=Ba(e,r,d),s[1]=Ba(t,o,f)}function Qa(e,t,n,i,r,o,a,s,l){var u=tt,c=nt,h=Math.abs(r-o);if(h%Ia<1e-4&&h>1e-4)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);if(Ma[0]=Ea(r)*n+e,Ma[1]=Ta(r)*i+t,Da[0]=Ea(o)*n+e,Da[1]=Ta(o)*i+t,u(s,Ma,Da),c(l,Ma,Da),(r%=Ia)<0&&(r+=Ia),(o%=Ia)<0&&(o+=Ia),r>o&&!a?o+=Ia:r<o&&a&&(r+=Ia),a){var d=o;o=r,r=d}for(var f=0;f<o;f+=Math.PI/2)f>r&&(Pa[0]=Ea(f)*n+e,Pa[1]=Ta(f)*i+t,u(s,Pa,s),c(l,Pa,l))}var Ha={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ja=[],Va=[],za=[],$a=[],Ga=[],Wa=[],Ka=Math.min,Ya=Math.max,qa=Math.cos,Xa=Math.sin,Ja=Math.sqrt,Za=Math.abs,es=Math.PI,ts=2*es,ns="undefined"!=typeof Float32Array,is=[];function rs(e){return Math.round(e/es*1e8)/1e8%2*es}function os(e,t){var n=rs(e[0]);n<0&&(n+=ts);var i=n-e[0],r=e[1];r+=i,!t&&r-n>=ts?r=n+ts:t&&n-r>=ts?r=n-ts:!t&&n>r?r=n+(ts-rs(n-r)):t&&n<r&&(r=n-(ts-rs(r-n))),e[0]=n,e[1]=r}var as=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=Za(n/li/e)||0,this._uy=Za(n/li/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._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ha.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=Za(e-this._xi),i=Za(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Ha.L,e,t),this._ctx&&r&&(this._needsDash?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){return this._drawPendingPt(),this.addData(Ha.C,e,t,n,i,r,o),this._ctx&&(this._needsDash?this._dashedBezierTo(e,t,n,i,r,o):this._ctx.bezierCurveTo(e,t,n,i,r,o)),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(Ha.Q,e,t,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(e,t,n,i):this._ctx.quadraticCurveTo(e,t,n,i)),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,r,o){this._drawPendingPt(),is[0]=i,is[1]=r,os(is,o),i=is[0];var a=(r=is[1])-i;return this.addData(Ha.A,e,t,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,o),this._xi=qa(r)*n+e,this._yi=Xa(r)*n+t,this},e.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(Ha.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ha.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash&&this._dashedLineTo(t,n),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.setLineDash=function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,n=0;n<e.length;n++)t+=e[n];this._dashSum=t,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},e.prototype.setLineDashOffset=function(e){return this._dashOffset=e,this},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!ns||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,r=0;r<t;r++)n+=e[r].len();ns&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<t;r++)for(var o=e[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},e.prototype.addData=function(e,t,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},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=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype._dashedLineTo=function(e,t){var n,i,r=this._dashSum,o=this._lineDash,a=this._ctx,s=this._dashOffset,l=this._xi,u=this._yi,c=e-l,h=t-u,d=Ja(c*c+h*h),f=l,p=u,A=o.length;for(c/=d,h/=d,s<0&&(s=r+s),f-=(s%=r)*c,p-=s*h;c>0&&f<=e||c<0&&f>=e||0===c&&(h>0&&p<=t||h<0&&p>=t);)f+=c*(n=o[i=this._dashIdx]),p+=h*n,this._dashIdx=(i+1)%A,c>0&&f<l||c<0&&f>l||h>0&&p<u||h<0&&p>u||a[i%2?"moveTo":"lineTo"](c>=0?Ka(f,e):Ya(f,e),h>=0?Ka(p,t):Ya(p,t));c=f-e,h=p-t,this._dashOffset=-Ja(c*c+h*h)},e.prototype._dashedBezierTo=function(e,t,n,i,r,o){var a,s,l,u,c,h=this._ctx,d=this._dashSum,f=this._dashOffset,p=this._lineDash,A=this._xi,g=this._yi,v=0,m=this._dashIdx,y=p.length,_=0;for(f<0&&(f=d+f),f%=d,a=0;a<1;a+=.1)s=fa(A,e,n,r,a+.1)-fa(A,e,n,r,a),l=fa(g,t,i,o,a+.1)-fa(g,t,i,o,a),v+=Ja(s*s+l*l);for(;m<y&&!((_+=p[m])>f);m++);for(a=(_-f)/v;a<=1;)u=fa(A,e,n,r,a),c=fa(g,t,i,o,a),m%2?h.moveTo(u,c):h.lineTo(u,c),a+=p[m]/v,m=(m+1)%y;m%2!=0&&h.lineTo(r,o),s=r-u,l=o-c,this._dashOffset=-Ja(s*s+l*l)},e.prototype._dashedQuadraticTo=function(e,t,n,i){var r=n,o=i;n=(n+2*e)/3,i=(i+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,i,r,o)},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,ns&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){za[0]=za[1]=Ga[0]=Ga[1]=Number.MAX_VALUE,$a[0]=$a[1]=Wa[0]=Wa[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,i=0,r=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(r=n=t[e],o=i=t[e+1]),a){case Ha.M:n=r=t[e++],i=o=t[e++],Ga[0]=r,Ga[1]=o,Wa[0]=r,Wa[1]=o;break;case Ha.L:Oa(n,i,t[e],t[e+1],Ga,Wa),n=t[e++],i=t[e++];break;case Ha.C:Ra(n,i,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],Ga,Wa),n=t[e++],i=t[e++];break;case Ha.Q:Ua(n,i,t[e++],t[e++],t[e],t[e+1],Ga,Wa),n=t[e++],i=t[e++];break;case Ha.A:var l=t[e++],u=t[e++],c=t[e++],h=t[e++],d=t[e++],f=t[e++]+d;e+=1;var p=!t[e++];s&&(r=qa(d)*c+l,o=Xa(d)*h+u),Qa(l,u,c,h,d,f,p,Ga,Wa),n=qa(f)*c+l,i=Xa(f)*h+u;break;case Ha.R:Oa(r=n=t[e++],o=i=t[e++],r+t[e++],o+t[e++],Ga,Wa);break;case Ha.Z:n=r,i=o}tt(za,za,Ga),nt($a,$a,Wa)}return 0===e&&(za[0]=za[1]=$a[0]=$a[1]=0),new Qi(za[0],za[1],$a[0]-za[0],$a[1]-za[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<t;){var d=e[h++],f=1===h;f&&(a=r=e[h],s=o=e[h+1]);var p=-1;switch(d){case Ha.M:r=a=e[h++],o=s=e[h++];break;case Ha.L:var A=e[h++],g=(y=e[h++])-o;(Za(E=A-r)>n||Za(g)>i||h===t-1)&&(p=Math.sqrt(E*E+g*g),r=A,o=y);break;case Ha.C:var v=e[h++],m=e[h++],y=(A=e[h++],e[h++]),_=e[h++],b=e[h++];p=ya(r,o,v,m,A,y,_,b,10),r=_,o=b;break;case Ha.Q:p=Sa(r,o,v=e[h++],m=e[h++],A=e[h++],y=e[h++],10),r=A,o=y;break;case Ha.A:var w=e[h++],x=e[h++],C=e[h++],S=e[h++],k=e[h++],B=e[h++],T=B+k;h+=1;e[h++];f&&(a=qa(k)*C+w,s=Xa(k)*S+x),p=Ya(C,S)*Ka(ts,Math.abs(B)),r=qa(T)*C+w,o=Xa(T)*S+x;break;case Ha.R:a=r=e[h++],s=o=e[h++],p=2*e[h++]+2*e[h++];break;case Ha.Z:var E=a-r;g=s-o;p=Math.sqrt(E*E+g*g),r=a,o=s}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,i,r,o,a,s,l,u,c,h,d=this.data,f=this._ux,p=this._uy,A=this._len,g=t<1,v=0,m=0,y=0;if(!g||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var _=0;_<A;){var b=d[_++],w=1===_;switch(w&&(n=r=d[_],i=o=d[_+1]),b!==Ha.L&&y>0&&(e.lineTo(c,h),y=0),b){case Ha.M:n=r=d[_++],i=o=d[_++],e.moveTo(r,o);break;case Ha.L:a=d[_++],s=d[_++];var x=Za(a-r),C=Za(s-o);if(x>f||C>p){if(g){if(v+(K=l[m++])>u){var S=(u-v)/K;e.lineTo(r*(1-S)+a*S,o*(1-S)+s*S);break e}v+=K}e.lineTo(a,s),r=a,o=s,y=0}else{var k=x*x+C*C;k>y&&(c=a,h=s,y=k)}break;case Ha.C:var B=d[_++],T=d[_++],E=d[_++],I=d[_++],M=d[_++],D=d[_++];if(g){if(v+(K=l[m++])>u){va(r,B,E,M,S=(u-v)/K,ja),va(o,T,I,D,S,Va),e.bezierCurveTo(ja[1],Va[1],ja[2],Va[2],ja[3],Va[3]);break e}v+=K}e.bezierCurveTo(B,T,E,I,M,D),r=M,o=D;break;case Ha.Q:B=d[_++],T=d[_++],E=d[_++],I=d[_++];if(g){if(v+(K=l[m++])>u){xa(r,B,E,S=(u-v)/K,ja),xa(o,T,I,S,Va),e.quadraticCurveTo(ja[1],Va[1],ja[2],Va[2]);break e}v+=K}e.quadraticCurveTo(B,T,E,I),r=E,o=I;break;case Ha.A:var P=d[_++],F=d[_++],O=d[_++],L=d[_++],N=d[_++],R=d[_++],U=d[_++],Q=!d[_++],H=O>L?O:L,j=Za(O-L)>.001,V=N+R,z=!1;if(g)v+(K=l[m++])>u&&(V=N+R*(u-v)/K,z=!0),v+=K;if(j&&e.ellipse?e.ellipse(P,F,O,L,U,N,V,Q):e.arc(P,F,H,N,V,Q),z)break e;w&&(n=qa(N)*O+P,i=Xa(N)*L+F),r=qa(V)*O+P,o=Xa(V)*L+F;break;case Ha.R:n=r=d[_],i=o=d[_+1],a=d[_++],s=d[_++];var $=d[_++],G=d[_++];if(g){if(v+(K=l[m++])>u){var W=u-v;e.moveTo(a,s),e.lineTo(a+Ka(W,$),s),(W-=$)>0&&e.lineTo(a+$,s+Ka(W,G)),(W-=G)>0&&e.lineTo(a+Ya($-W,0),s+G),(W-=$)>0&&e.lineTo(a,s+Ya(G-W,0));break e}v+=K}e.rect(a,s,$,G);break;case Ha.Z:if(g){var K;if(v+(K=l[m++])>u){S=(u-v)/K;e.lineTo(r*(1-S)+n*S,o*(1-S)+i*S);break e}v+=K}e.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Ha,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._needsDash=!1,t._dashOffset=0,t._dashIdx=0,t._dashSum=0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}();function ss(e,t,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>t+s&&a>i+s||a<t-s&&a<i-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;var u=(l=(t-i)/(e-n))*o-a+(e*i-n*t)/(e-n);return u*u/(l*l+1)<=s/2*s/2}function ls(e,t,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;return!(c>t+h&&c>i+h&&c>o+h&&c>s+h||c<t-h&&c<i-h&&c<o-h&&c<s-h||u>e+h&&u>n+h&&u>r+h&&u>a+h||u<e-h&&u<n-h&&u<r-h&&u<a-h)&&ma(e,t,n,i,r,o,a,s,u,c,null)<=h/2}function us(e,t,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;return!(l>t+u&&l>i+u&&l>o+u||l<t-u&&l<i-u&&l<o-u||s>e+u&&s>n+u&&s>r+u||s<e-u&&s<n-u&&s<r-u)&&Ca(e,t,n,i,r,o,s,l,null)<=u/2}var cs=2*Math.PI;function hs(e){return(e%=cs)<0&&(e+=cs),e}var ds=2*Math.PI;function fs(e,t,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%ds<1e-4)return!0;if(o){var h=i;i=hs(r),r=hs(h)}else i=hs(i),r=hs(r);i>r&&(r+=ds);var d=Math.atan2(l,s);return d<0&&(d+=ds),d>=i&&d<=r||d+ds>=i&&d+ds<=r}function ps(e,t,n,i,r,o){if(o>t&&o>i||o<t&&o<i)return 0;if(i===t)return 0;var a=(o-t)/(i-t),s=i<t?1:-1;1!==a&&0!==a||(s=i<t?.5:-.5);var l=a*(n-e)+e;return l===r?1/0:l>r?s:0}var As=as.CMD,gs=2*Math.PI,vs=1e-4;var ms=[-1,-1,-1],ys=[-1,-1];function _s(e,t,n,i,r,o,a,s,l,u){if(u>t&&u>i&&u>o&&u>s||u<t&&u<i&&u<o&&u<s)return 0;var c,h=Aa(t,i,o,s,u,ms);if(0===h)return 0;for(var d=0,f=-1,p=void 0,A=void 0,g=0;g<h;g++){var v=ms[g],m=0===v||1===v?.5:1;fa(e,n,r,a,v)<l||(f<0&&(f=ga(t,i,o,s,ys),ys[1]<ys[0]&&f>1&&(void 0,c=ys[0],ys[0]=ys[1],ys[1]=c),p=fa(t,i,o,s,ys[0]),f>1&&(A=fa(t,i,o,s,ys[1]))),2===f?v<ys[0]?d+=p<t?m:-m:v<ys[1]?d+=A<p?m:-m:d+=s<A?m:-m:v<ys[0]?d+=p<t?m:-m:d+=s<p?m:-m)}return d}function bs(e,t,n,i,r,o,a,s){if(s>t&&s>i&&s>o||s<t&&s<i&&s<o)return 0;var l=function(e,t,n,i,r){var o=e-2*t+n,a=2*(t-e),s=e-i,l=0;if(ha(o))da(a)&&(c=-s/a)>=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if(ha(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=ia(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}(t,i,o,s,ms);if(0===l)return 0;var u=wa(t,i,o);if(u>=0&&u<=1){for(var c=0,h=_a(t,i,o,u),d=0;d<l;d++){var f=0===ms[d]||1===ms[d]?.5:1;_a(e,n,r,ms[d])<a||(ms[d]<u?c+=h<t?f:-f:c+=o<h?f:-f)}return c}f=0===ms[0]||1===ms[0]?.5:1;return _a(e,n,r,ms[0])<a?0:o<t?f:-f}function ws(e,t,n,i,r,o,a,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ms[0]=-l,ms[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=gs-1e-4){i=0,r=gs;var c=o?1:-1;return a>=ms[0]+e&&a<=ms[1]+e?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=gs,r+=gs);for(var d=0,f=0;f<2;f++){var p=ms[f];if(p+e>a){var A=Math.atan2(s,p);c=o?1:-1;A<0&&(A=gs+A),(A>=i&&A<=r||A+gs>=i&&A+gs<=r)&&(A>Math.PI/2&&A<1.5*Math.PI&&(c=-c),d+=c)}}return d}function xs(e,t,n,i,r){for(var o,a,s,l,u=e.data,c=e.len(),h=0,d=0,f=0,p=0,A=0,g=0;g<c;){var v=u[g++],m=1===g;switch(v===As.M&&g>1&&(n||(h+=ps(d,f,p,A,i,r))),m&&(p=d=u[g],A=f=u[g+1]),v){case As.M:d=p=u[g++],f=A=u[g++];break;case As.L:if(n){if(ss(d,f,u[g],u[g+1],t,i,r))return!0}else h+=ps(d,f,u[g],u[g+1],i,r)||0;d=u[g++],f=u[g++];break;case As.C:if(n){if(ls(d,f,u[g++],u[g++],u[g++],u[g++],u[g],u[g+1],t,i,r))return!0}else h+=_s(d,f,u[g++],u[g++],u[g++],u[g++],u[g],u[g+1],i,r)||0;d=u[g++],f=u[g++];break;case As.Q:if(n){if(us(d,f,u[g++],u[g++],u[g],u[g+1],t,i,r))return!0}else h+=bs(d,f,u[g++],u[g++],u[g],u[g+1],i,r)||0;d=u[g++],f=u[g++];break;case As.A:var y=u[g++],_=u[g++],b=u[g++],w=u[g++],x=u[g++],C=u[g++];g+=1;var S=!!(1-u[g++]);o=Math.cos(x)*b+y,a=Math.sin(x)*w+_,m?(p=o,A=a):h+=ps(d,f,o,a,i,r);var k=(i-y)*w/b+y;if(n){if(fs(y,_,w,x,x+C,S,t,k,r))return!0}else h+=ws(y,_,w,x,x+C,S,k,r);d=Math.cos(x+C)*b+y,f=Math.sin(x+C)*w+_;break;case As.R:if(p=d=u[g++],A=f=u[g++],o=p+u[g++],a=A+u[g++],n){if(ss(p,A,o,A,t,i,r)||ss(o,A,o,a,t,i,r)||ss(o,a,p,a,t,i,r)||ss(p,a,p,A,t,i,r))return!0}else h+=ps(o,A,o,a,i,r),h+=ps(p,a,p,A,i,r);break;case As.Z:if(n){if(ss(d,f,p,A,t,i,r))return!0}else h+=ps(d,f,p,A,i,r);d=p,f=A}}return n||(s=f,l=A,Math.abs(s-l)<vs)||(h+=ps(d,f,p,A,i,r)||0),0!==h}var Cs=H({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ko),Ss={style:H({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Yo.style)},ks=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],Bs=function(e){function t(t){return e.call(this,t)||this}var n;return Me(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.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 a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<ks.length;++s)r[ks[s]]=this[ks[s]];r.__dirty|=Vt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=J(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=t[o];"style"===o?this.style?Q(this.style,a):this.useStyle(a):"shape"===o?Q(this.shape,a):e.prototype.attrKV.call(this,o,a)}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(ie(e)){var t=kn(e,0);return t>.5?"#333":t>.2?"#eee":"#ccc"}if(e)return"#ccc"}return"#333"},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(ie(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===kn(e,0)<ui)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~zt},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 as(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&zt)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),e=r.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,i){return xs(e,t,!0,n,i)}(o,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return xs(e,0,!1,t,n)}(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=zt,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:Q(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&zt)},t.prototype.createStyle=function(e){return Be(Cs,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Q({},this.shape))},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:Q(s=Q({},i.shape),n.shape):Q(s=Q({},r?this.shape:i.shape),n.shape):l&&(s=i.shape),s)if(o){this.shape=Q({},this.shape);for(var u={},c=J(s),h=0;h<c.length;h++){var d=c[h];"object"==typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var o=t[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return Ss},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var i=t.call(this,n)||this;return e.init&&e.init.call(i,n),i}return Me(n,t),n.prototype.getDefaultStyle=function(){return N(e.style)},n.prototype.getDefaultShape=function(){return N(e.shape)},n}(t);for(var i in e)"function"==typeof e[i]&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=2|Vt|zt)),t}(ta),Ts=H({strokeFirst:!0,font:ji,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Cs),Es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Me(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Be(Ts,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Gi(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(ta);Es.prototype.type="tspan";var Is=Es,Ms=H({x:0,y:0},Ko),Ds={style:H({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Yo.style)};var Ps=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Me(t,e),t.prototype.createStyle=function(e){return Be(Ms,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i,r=(i=t.image)&&"string"!=typeof i&&i.width&&i.height?t.image:this.__image;if(!r)return 0;var o="width"===e?"height":"width",a=t[o];return null==a?r[e]:r[e]/r[o]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Ds},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Qi(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ta);Ps.prototype.type="image";var Fs=Ps;var Os=Math.round;function Ls(e,t,n){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;e.x1=i,e.x2=r,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(Os(2*i)===Os(2*r)&&(e.x1=e.x2=Rs(i,s,!0)),Os(2*o)===Os(2*a)&&(e.y1=e.y2=Rs(o,s,!0)),e):e}}function Ns(e,t,n){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;e.x=i,e.y=r,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=Rs(i,s,!0),e.y=Rs(r,s,!0),e.width=Math.max(Rs(i+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(Rs(r+a,s,!1)-e.y,0===a?0:1),e):e}}function Rs(e,t,n){if(!t)return e;var i=Os(2*e);return(i+Os(t))%2==0?i/2:(i+(n?1:-1))/2}var Us=function(){return function(){this.x=0,this.y=0,this.width=0,this.height=0}}(),Qs={},Hs=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new Us},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=Ns(Qs,t,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,i=t.y,r=t.width,o=t.height;t.r?function(e,t){var n,i,r,o,a,s=t.x,l=t.y,u=t.width,c=t.height,h=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-i,l),0!==i&&e.arc(s+u-i,l+i,i,-Math.PI/2,0),e.lineTo(s+u,l+c-r),0!==r&&e.arc(s+u-r,l+c-r,r,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,i,r,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Bs);Hs.prototype.type="rect";var js=Hs,Vs={fill:"#000"},zs={style:H({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},Yo.style)},$s=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Vs,n.attr(t),n}return Me(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.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 e;this._childCursor=0,Ks(e=this.style),W(e.rich,Ks),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 n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Qi(0,0,0,0),t=this._children,n=[],i=null,r=0;r<t.length;r++){var o=t[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),(i=i||e.clone()).union(e)):(i=i||a.clone()).union(a)}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Vs},t.prototype.setTextContent=function(e){throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,i=e.rich||n&&{};return Q(e,t),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,t){for(var n=J(t),i=0;i<n.length;i++){var r=n[i];e[r]=e[r]||{},Q(e[r],t[r])}},t.prototype.getAnimationStyleProps=function(){return zs},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 e=this.style,t=e.font||ji,n=e.padding,i=function(e,t){null!=e&&(e+="");var n,i=t.overflow,r=t.padding,o=t.font,a="truncate"===i,s=Yi(o),l=Ae(t.lineHeight,s),u="truncate"===t.lineOverflow,c=t.width,h=(n=null!=c&&"break"===i||"breakAll"===i?e?Go(e,t.font,c,"breakAll"===i,0).lines:[]:e?e.split("\n"):[]).length*l,d=Ae(t.height,h);if(h>d&&u){var f=Math.floor(d/l);n=n.slice(0,f)}var p=d,A=c;if(r&&(p+=r[0]+r[2],null!=A&&(A+=r[1]+r[3])),e&&a&&null!=A)for(var g=No(c,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;v<n.length;v++)n[v]=Ro(n[v],g);if(null==c){var m=0;for(v=0;v<n.length;v++)m=Math.max(zi(n[v],o),m);c=m}return{lines:n,height:d,outerHeight:p,lineHeight:l,calculatedLineHeight:s,contentHeight:h,width:c}}(Js(e),e),r=Zs(e),o=!!e.backgroundColor,a=i.outerHeight,s=i.lines,l=i.lineHeight,u=this._defaultStyle,c=e.x||0,h=e.y||0,d=e.align||u.align||"left",f=e.verticalAlign||u.verticalAlign||"top",p=c,A=Ki(h,i.contentHeight,f);if(r||n){var g=i.width;n&&(g+=n[1]+n[3]);var v=Wi(c,g,d),m=Ki(h,a,f);r&&this._renderBackground(e,e,v,m,g,a)}A+=l/2,n&&(p=Xs(c,d,n),"top"===f?A+=n[0]:"bottom"===f&&(A-=n[2]));for(var y=0,_=!1,b=(qs("fill"in e?e.fill:(_=!0,u.fill))),w=(Ys("stroke"in e?e.stroke:o||u.autoStroke&&!_?null:(y=2,u.stroke))),x=e.textShadowBlur>0,C=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),S=i.calculatedLineHeight,k=0;k<s.length;k++){var B=this._getOrCreateChild(Is),T=B.createStyle();B.useStyle(T),T.text=s[k],T.x=p,T.y=A,d&&(T.textAlign=d),T.textBaseline="middle",T.opacity=e.opacity,T.strokeFirst=!0,x&&(T.shadowBlur=e.textShadowBlur||0,T.shadowColor=e.textShadowColor||"transparent",T.shadowOffsetX=e.textShadowOffsetX||0,T.shadowOffsetY=e.textShadowOffsetY||0),w&&(T.stroke=w,T.lineWidth=e.lineWidth||y,T.lineDash=e.lineDash,T.lineDashOffset=e.lineDashOffset||0),b&&(T.fill=b),T.font=t,A+=l,C&&B.setBoundingRect(new Qi(Wi(T.x,e.width,T.textAlign),Ki(T.y,S,T.textBaseline),e.width,S))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new jo;if(null!=e&&(e+=""),!e)return n;for(var i,r=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=Oo.lastIndex=0;null!=(i=Oo.exec(e));){var u=i.index;u>l&&Vo(n,e.substring(l,u),t,s),Vo(n,i[2],t,s,i[1]),l=Oo.lastIndex}l<e.length&&Vo(n,e.substring(l,e.length),t,s);var c=[],h=0,d=0,f=t.padding,p="truncate"===a,A="truncate"===t.lineOverflow;function g(e,t,n){e.width=t,e.lineHeight=n,h+=n,d=Math.max(d,t)}e:for(var v=0;v<n.lines.length;v++){for(var m=n.lines[v],y=0,_=0,b=0;b<m.tokens.length;b++){var w=(D=m.tokens[b]).styleName&&t.rich[D.styleName]||{},x=D.textPadding=w.padding,C=x?x[1]+x[3]:0,S=D.font=w.font||t.font;D.contentHeight=Yi(S);var k=Ae(w.height,D.contentHeight);if(D.innerHeight=k,x&&(k+=x[0]+x[2]),D.height=k,D.lineHeight=ge(w.lineHeight,t.lineHeight,k),D.align=w&&w.align||t.align,D.verticalAlign=w&&w.verticalAlign||"middle",A&&null!=o&&h+D.lineHeight>o){b>0?(m.tokens=m.tokens.slice(0,b),g(m,_,y),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break e}var B=w.width,T=null==B||"auto"===B;if("string"==typeof B&&"%"===B.charAt(B.length-1))D.percentWidth=B,c.push(D),D.contentWidth=zi(D.text,S);else{if(T){var E=w.backgroundColor,I=E&&E.image;I&&Fo(I=Mo(I))&&(D.width=Math.max(D.width,I.width*k/I.height))}var M=p&&null!=r?r-_:null;null!=M&&M<D.width?!T||M<C?(D.text="",D.width=D.contentWidth=0):(D.text=Lo(D.text,M-C,S,t.ellipsis,{minChar:t.truncateMinChar}),D.width=D.contentWidth=zi(D.text,S)):D.contentWidth=zi(D.text,S)}D.width+=C,_+=D.width,w&&(y=Math.max(y,D.lineHeight))}g(m,_,y)}for(n.outerWidth=n.width=Ae(r,d),n.outerHeight=n.height=Ae(o,h),n.contentHeight=h,n.contentWidth=d,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]),v=0;v<c.length;v++){var D,P=(D=c[v]).percentWidth;D.width=parseInt(P,10)/100*n.width}return n}(Js(e),e),n=t.width,i=t.outerWidth,r=t.outerHeight,o=e.padding,a=e.x||0,s=e.y||0,l=this._defaultStyle,u=e.align||l.align,c=e.verticalAlign||l.verticalAlign,h=Wi(a,i,u),d=Ki(s,r,c),f=h,p=d;o&&(f+=o[3],p+=o[0]);var A=f+n;Zs(e)&&this._renderBackground(e,e,h,d,i,r);for(var g=!!e.backgroundColor,v=0;v<t.lines.length;v++){for(var m=t.lines[v],y=m.tokens,_=y.length,b=m.lineHeight,w=m.width,x=0,C=f,S=A,k=_-1,B=void 0;x<_&&(!(B=y[x]).align||"left"===B.align);)this._placeToken(B,e,b,p,C,"left",g),w-=B.width,C+=B.width,x++;for(;k>=0&&"right"===(B=y[k]).align;)this._placeToken(B,e,b,p,S,"right",g),w-=B.width,S-=B.width,k--;for(C+=(n-(C-f)-(A-S)-w)/2;x<=k;)B=y[x],this._placeToken(B,e,b,p,C+B.width/2,"center",g),C+=B.width,x++;p+=b}},t.prototype._placeToken=function(e,t,n,i,r,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=i+n/2;"top"===l?u=i+e.height/2:"bottom"===l&&(u=i+n-e.height/2),!e.isLineHolder&&Zs(s)&&this._renderBackground(s,t,"right"===o?r-e.width:"center"===o?r-e.width/2:r,u-e.height/2,e.width,e.height);var c=!!s.backgroundColor,h=e.textPadding;h&&(r=Xs(r,o,h),u-=e.height/2-h[0]-e.innerHeight/2);var d=this._getOrCreateChild(Is),f=d.createStyle();d.useStyle(f);var p=this._defaultStyle,A=!1,g=0,v=qs("fill"in s?s.fill:"fill"in t?t.fill:(A=!0,p.fill)),m=Ys("stroke"in s?s.stroke:"stroke"in t?t.stroke:c||a||p.autoStroke&&!A?null:(g=2,p.stroke)),y=s.textShadowBlur>0||t.textShadowBlur>0;f.text=e.text,f.x=r,f.y=u,y&&(f.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,f.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=e.font||ji,f.opacity=ge(s.opacity,t.opacity,1),m&&(f.lineWidth=ge(s.lineWidth,t.lineWidth,g),f.lineDash=Ae(s.lineDash,t.lineDash),f.lineDashOffset=t.lineDashOffset||0,f.stroke=m),v&&(f.fill=v);var _=e.contentWidth,b=e.contentHeight;d.setBoundingRect(new Qi(Wi(f.x,_,f.textAlign),Ki(f.y,b,f.textBaseline),_,b))},t.prototype._renderBackground=function(e,t,n,i,r,o){var a,s,l,u=e.backgroundColor,c=e.borderWidth,h=e.borderColor,d=u&&u.image,f=u&&!d,p=e.borderRadius,A=this;if(f||e.lineHeight||c&&h){(a=this._getOrCreateChild(js)).useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=p,a.dirtyShape()}if(f)(l=a.style).fill=u||null,l.fillOpacity=Ae(e.fillOpacity,1);else if(d){(s=this._getOrCreateChild(Fs)).onload=function(){A.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=i,v.width=r,v.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=Ae(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var m=(a||s).style;m.shadowBlur=e.shadowBlur||0,m.shadowColor=e.shadowColor||"transparent",m.shadowOffsetX=e.shadowOffsetX||0,m.shadowOffsetY=e.shadowOffsetY||0,m.opacity=ge(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";if(e.fontSize||e.fontFamily||e.fontWeight){var n="";n="string"!=typeof e.fontSize||-1===e.fontSize.indexOf("px")&&-1===e.fontSize.indexOf("rem")&&-1===e.fontSize.indexOf("em")?isNaN(+e.fontSize)?"12px":e.fontSize+"px":e.fontSize,t=[e.fontStyle,e.fontWeight,n,e.fontFamily||"sans-serif"].join(" ")}return t&&_e(t)||e.textFont||e.font},t}(ta),Gs={left:!0,right:1,center:1},Ws={top:1,bottom:1,middle:1};function Ks(e){if(e){e.font=$s.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||Gs[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||Ws[n]?n:"top",e.padding&&(e.padding=me(e.padding))}}function Ys(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function qs(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function Xs(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function Js(e){var t=e.text;return null!=t&&(t+=""),t}function Zs(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var el=$s,tl=ao(),nl=function(e,t,n,i){if(i){var r=tl(i);r.dataIndex=n,r.dataType=t,r.seriesIndex=e,"group"===i.type&&i.traverse(function(i){var r=tl(i);r.seriesIndex=e,r.dataIndex=n,r.dataType=t})}},il=1,rl={},ol=ao(),al=0,sl=1,ll=2,ul=["emphasis","blur","select"],cl=["normal","emphasis","blur","select"],hl=10,dl=9,fl="highlight",pl="downplay",Al="select",gl="unselect",vl="toggleSelect";function ml(e){return null!=e&&"none"!==e}var yl=new tn(100);function _l(e){if("string"!=typeof e)return e;var t=yl.get(e);return t||(t=vn(e,-.1),yl.put(e,t)),t}function bl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function wl(e){bl(e,"emphasis",ll)}function xl(e){e.hoverState===ll&&bl(e,"normal",al)}function Cl(e){bl(e,"blur",sl)}function Sl(e){e.hoverState===sl&&bl(e,"normal",al)}function kl(e){e.selected=!0}function Bl(e){e.selected=!1}function Tl(e,t,n){t(e,n)}function El(e,t,n){Tl(e,t,n),e.isGroup&&e.traverse(function(e){Tl(e,t,n)})}function Il(e,t){switch(t){case"emphasis":e.hoverState=ll;break;case"normal":e.hoverState=al;break;case"blur":e.hoverState=sl;break;case"select":e.selected=!0}}function Ml(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,i){var r=n&&V(n,"select")>=0,o=!1;if(e instanceof Bs){var a=ol(e),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(ml(s)||ml(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=Q({},i),(u=Q({},u)).fill=s):!ml(u.fill)&&ml(s)?(o=!0,i=Q({},i),(u=Q({},u)).fill=_l(s)):!ml(u.stroke)&&ml(l)&&(o||(i=Q({},i),u=Q({},u)),u.stroke=_l(l)),i.style=u}}if(i&&null==i.z2){o||(i=Q({},i));var c=e.z2EmphasisLift;i.z2=e.z2+(null!=c?c:hl)}return i}(this,0,t,n);if("blur"===e)return function(e,t,n){var i=V(e.currentStates,t)>=0,r=e.style.opacity,o=i?null:function(e,t,n,i){for(var r=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveFinalToTarget(o,t)}return o}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=Q({},n),a=Q({opacity:i?r:.1*o.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=Q({},n);var i=e.z2SelectLift;n.z2=e.z2+(null!=i?i:dl)}return n}(this,0,n)}return n}function Dl(e){e.stateProxy=Ml;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Ml),n&&(n.stateProxy=Ml)}function Pl(e,t){!Hl(e,t)&&!e.__highByOuter&&El(e,wl)}function Fl(e,t){!Hl(e,t)&&!e.__highByOuter&&El(e,xl)}function Ol(e,t){e.__highByOuter|=1<<(t||0),El(e,wl)}function Ll(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&El(e,xl)}function Nl(e){El(e,Cl)}function Rl(e){El(e,Sl)}function Ul(e){El(e,kl)}function Ql(e){El(e,Bl)}function Hl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function jl(e){e.getModel().eachComponent(function(t,n){("series"===t?e.getViewOfSeriesModel(n):e.getViewOfComponentModel(n)).group.traverse(function(e){Sl(e)})})}function Vl(e,t,n,i){var r=i.getModel();function o(e,t){for(var n=0;n<t.length;n++){var i=e.getItemGraphicEl(t[n]);i&&Rl(i)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=r.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(e){var r=a===e,u=e.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!r||"coordinateSystem"===n&&!(u&&s?u===s:r)||"series"===t&&r)){if(i.getViewOfSeriesModel(e).group.traverse(function(e){Cl(e)}),G(t))o(e.getData(),t);else if(ae(t))for(var c=J(t),h=0;h<c.length;h++)o(e.getData(c[h]),t[c[h]]);l.push(e)}}),r.eachComponent(function(e,t){if("series"!==e){var n=i.getViewOfComponentModel(t);n&&n.blurSeries&&n.blurSeries(l,r)}})}}function zl(e,t,n){if(null!=e&&null!=t){var i=n.getModel().getComponent(e,t);if(i){var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(e){Cl(e)})}}}function $l(e,t,n,i){var r={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return r;var o=i.getModel().getComponent(e,t);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===tl(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Gl(e){W(e.getAllData(),function(t){var n=t.data,i=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,i)?Ul(t):Ql(t)})})}function Wl(e,t,n){Jl(e,!0),El(e,Dl),Kl(e,t,n)}function Kl(e,t,n){var i=tl(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var Yl=["emphasis","blur","select"],ql={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Xl(e,t,n,i){n=n||"itemStyle";for(var r=0;r<Yl.length;r++){var o=Yl[r],a=t.getModel([o,n]);e.ensureState(o).style=i?i(a):a[ql[n]]()}}function Jl(e,t){var n=!1===t,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Zl(e){return!(!e||!e.__highDownDispatcher)}function eu(e){var t=e.type;return t===Al||t===gl||t===vl}function tu(e){var t=e.type;return t===fl||t===pl}var nu=as.CMD,iu=[[],[],[]],ru=Math.sqrt,ou=Math.atan2;function au(e,t){if(t){var n,i,r,o,a,s,l=e.data,u=e.len(),c=nu.M,h=nu.C,d=nu.L,f=nu.R,p=nu.A,A=nu.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:case d:i=1;break;case h:i=3;break;case A:i=2;break;case p:var g=t[4],v=t[5],m=ru(t[0]*t[0]+t[1]*t[1]),y=ru(t[2]*t[2]+t[3]*t[3]),_=ou(-t[1]/y,t[0]/m);l[r]*=m,l[r++]+=g,l[r]*=y,l[r++]+=v,l[r++]*=m,l[r++]*=y,l[r++]+=_,l[r++]+=_,o=r+=2;break;case f:s[0]=l[r++],s[1]=l[r++],et(s,s,t),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],et(s,s,t),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=iu[a];b[0]=l[r++],b[1]=l[r++],et(b,b,t),l[o++]=b[0],l[o++]=b[1]}}e.increaseVersion()}}var su=Math.sqrt,lu=Math.sin,uu=Math.cos,cu=Math.PI;function hu(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function du(e,t){return(e[0]*t[0]+e[1]*t[1])/(hu(e)*hu(t))}function fu(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(du(e,t))}function pu(e,t,n,i,r,o,a,s,l,u,c){var h=l*(cu/180),d=uu(h)*(e-n)/2+lu(h)*(t-i)/2,f=-1*lu(h)*(e-n)/2+uu(h)*(t-i)/2,p=d*d/(a*a)+f*f/(s*s);p>1&&(a*=su(p),s*=su(p));var A=(r===o?-1:1)*su((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,g=A*a*f/s,v=A*-s*d/a,m=(e+n)/2+uu(h)*g-lu(h)*v,y=(t+i)/2+lu(h)*g+uu(h)*v,_=fu([1,0],[(d-g)/a,(f-v)/s]),b=[(d-g)/a,(f-v)/s],w=[(-1*d-g)/a,(-1*f-v)/s],x=fu(b,w);if(du(b,w)<=-1&&(x=cu),du(b,w)>=1&&(x=0),x<0){var C=Math.round(x/cu*1e6)/1e6;x=2*cu+C%2*cu}c.addData(u,m,y,a,s,_,x,h,o)}var Au=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,gu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var vu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Me(t,e),t.prototype.applyTransform=function(e){},t}(Bs);function mu(e){return null!=e.setData}function yu(e,t){var n=function(e){var t=new as;if(!e)return t;var n,i=0,r=0,o=i,a=r,s=as.CMD,l=e.match(Au);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,f=c.match(gu)||[],p=f.length,A=0;A<p;A++)f[A]=parseFloat(f[A]);for(var g=0;g<p;){var v=void 0,m=void 0,y=void 0,_=void 0,b=void 0,w=void 0,x=void 0,C=i,S=r,k=void 0,B=void 0;switch(h){case"l":i+=f[g++],r+=f[g++],d=s.L,t.addData(d,i,r);break;case"L":i=f[g++],r=f[g++],d=s.L,t.addData(d,i,r);break;case"m":i+=f[g++],r+=f[g++],d=s.M,t.addData(d,i,r),o=i,a=r,h="l";break;case"M":i=f[g++],r=f[g++],d=s.M,t.addData(d,i,r),o=i,a=r,h="L";break;case"h":i+=f[g++],d=s.L,t.addData(d,i,r);break;case"H":i=f[g++],d=s.L,t.addData(d,i,r);break;case"v":r+=f[g++],d=s.L,t.addData(d,i,r);break;case"V":r=f[g++],d=s.L,t.addData(d,i,r);break;case"C":d=s.C,t.addData(d,f[g++],f[g++],f[g++],f[g++],f[g++],f[g++]),i=f[g-2],r=f[g-1];break;case"c":d=s.C,t.addData(d,f[g++]+i,f[g++]+r,f[g++]+i,f[g++]+r,f[g++]+i,f[g++]+r),i+=f[g-2],r+=f[g-1];break;case"S":v=i,m=r,k=t.len(),B=t.data,n===s.C&&(v+=i-B[k-4],m+=r-B[k-3]),d=s.C,C=f[g++],S=f[g++],i=f[g++],r=f[g++],t.addData(d,v,m,C,S,i,r);break;case"s":v=i,m=r,k=t.len(),B=t.data,n===s.C&&(v+=i-B[k-4],m+=r-B[k-3]),d=s.C,C=i+f[g++],S=r+f[g++],i+=f[g++],r+=f[g++],t.addData(d,v,m,C,S,i,r);break;case"Q":C=f[g++],S=f[g++],i=f[g++],r=f[g++],d=s.Q,t.addData(d,C,S,i,r);break;case"q":C=f[g++]+i,S=f[g++]+r,i+=f[g++],r+=f[g++],d=s.Q,t.addData(d,C,S,i,r);break;case"T":v=i,m=r,k=t.len(),B=t.data,n===s.Q&&(v+=i-B[k-4],m+=r-B[k-3]),i=f[g++],r=f[g++],d=s.Q,t.addData(d,v,m,i,r);break;case"t":v=i,m=r,k=t.len(),B=t.data,n===s.Q&&(v+=i-B[k-4],m+=r-B[k-3]),i+=f[g++],r+=f[g++],d=s.Q,t.addData(d,v,m,i,r);break;case"A":y=f[g++],_=f[g++],b=f[g++],w=f[g++],x=f[g++],pu(C=i,S=r,i=f[g++],r=f[g++],w,x,y,_,b,d=s.A,t);break;case"a":y=f[g++],_=f[g++],b=f[g++],w=f[g++],x=f[g++],pu(C=i,S=r,i+=f[g++],r+=f[g++],w,x,y,_,b,d=s.A,t)}}"z"!==h&&"Z"!==h||(d=s.Z,t.addData(d),i=o,r=a),n=d}return t.toStatic(),t}(e),i=Q({},t);return i.buildPath=function(e){if(mu(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},i.applyTransform=function(e){au(n,e),this.dirtyShape()},i}function _u(e,t){return new vu(yu(e,t))}function bu(e,t){t=t||{};var n=new Bs;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?au(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var wu=function(){return function(){this.cx=0,this.cy=0,this.r=0}}(),xu=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new wu},t.prototype.buildPath=function(e,t,n){n&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(Bs);xu.prototype.type="circle";var Cu=xu,Su=function(){return function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),ku=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new Su},t.prototype.buildPath=function(e,t){var n=.5522848,i=t.cx,r=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(i-o,r),e.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),e.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),e.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),e.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),e.closePath()},t}(Bs);ku.prototype.type="ellipse";var Bu=ku,Tu=Math.PI,Eu=2*Tu,Iu=Math.sin,Mu=Math.cos,Du=Math.acos,Pu=Math.atan2,Fu=Math.abs,Ou=Math.sqrt,Lu=Math.max,Nu=Math.min,Ru=1e-4;function Uu(e,t,n,i,r,o,a){var s=e-n,l=t-i,u=(a?o:-o)/Ou(s*s+l*l),c=u*l,h=-u*s,d=e+c,f=t+h,p=n+c,A=i+h,g=(d+p)/2,v=(f+A)/2,m=p-d,y=A-f,_=m*m+y*y,b=r-o,w=d*A-p*f,x=(y<0?-1:1)*Ou(Lu(0,b*b*_-w*w)),C=(w*y-m*x)/_,S=(-w*m-y*x)/_,k=(w*y+m*x)/_,B=(-w*m+y*x)/_,T=C-g,E=S-v,I=k-g,M=B-v;return T*T+E*E>I*I+M*M&&(C=k,S=B),{cx:C,cy:S,x01:-c,y01:-h,x11:C*(r/b-1),y11:S*(r/b-1)}}function Qu(e,t){var n=Lu(t.r,0),i=Lu(t.r0||0,0),r=n>0;if(r||i>0){if(r||(n=i,i=0),i>n){var o=n;n=i,i=o}var a,s=!!t.clockwise,l=t.startAngle,u=t.endAngle;if(l===u)a=0;else{var c=[l,u];os(c,!s),a=Fu(c[0]-c[1])}var h=t.cx,d=t.cy,f=t.cornerRadius||0,p=t.innerCornerRadius||0;if(n>Ru)if(a>Eu-Ru)e.moveTo(h+n*Mu(l),d+n*Iu(l)),e.arc(h,d,n,l,u,!s),i>Ru&&(e.moveTo(h+i*Mu(u),d+i*Iu(u)),e.arc(h,d,i,u,l,s));else{var A=Fu(n-i)/2,g=Nu(A,f),v=Nu(A,p),m=v,y=g,_=n*Mu(l),b=n*Iu(l),w=i*Mu(u),x=i*Iu(u),C=void 0,S=void 0,k=void 0,B=void 0;if((g>Ru||v>Ru)&&(C=n*Mu(u),S=n*Iu(u),k=i*Mu(l),B=i*Iu(l),a<Tu)){var T=function(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,h=s-o,d=h*l-c*u;if(!(d*d<Ru))return[e+(d=(c*(t-o)-h*(e-r))/d)*l,t+d*u]}(_,b,k,B,C,S,w,x);if(T){var E=_-T[0],I=b-T[1],M=C-T[0],D=S-T[1],P=1/Iu(Du((E*M+I*D)/(Ou(E*E+I*I)*Ou(M*M+D*D)))/2),F=Ou(T[0]*T[0]+T[1]*T[1]);m=Nu(v,(i-F)/(P-1)),y=Nu(g,(n-F)/(P+1))}}if(a>Ru)if(y>Ru){var O=Uu(k,B,_,b,n,y,s),L=Uu(C,S,w,x,n,y,s);e.moveTo(h+O.cx+O.x01,d+O.cy+O.y01),y<g?e.arc(h+O.cx,d+O.cy,y,Pu(O.y01,O.x01),Pu(L.y01,L.x01),!s):(e.arc(h+O.cx,d+O.cy,y,Pu(O.y01,O.x01),Pu(O.y11,O.x11),!s),e.arc(h,d,n,Pu(O.cy+O.y11,O.cx+O.x11),Pu(L.cy+L.y11,L.cx+L.x11),!s),e.arc(h+L.cx,d+L.cy,y,Pu(L.y11,L.x11),Pu(L.y01,L.x01),!s))}else e.moveTo(h+_,d+b),e.arc(h,d,n,l,u,!s);else e.moveTo(h+_,d+b);if(i>Ru&&a>Ru)if(m>Ru){O=Uu(w,x,C,S,i,-m,s),L=Uu(_,b,k,B,i,-m,s);e.lineTo(h+O.cx+O.x01,d+O.cy+O.y01),m<v?e.arc(h+O.cx,d+O.cy,m,Pu(O.y01,O.x01),Pu(L.y01,L.x01),!s):(e.arc(h+O.cx,d+O.cy,m,Pu(O.y01,O.x01),Pu(O.y11,O.x11),!s),e.arc(h,d,i,Pu(O.cy+O.y11,O.cx+O.x11),Pu(L.cy+L.y11,L.cx+L.x11),s),e.arc(h+L.cx,d+L.cy,m,Pu(L.y11,L.x11),Pu(L.y01,L.x01),!s))}else e.lineTo(h+w,d+x),e.arc(h,d,i,u,l,s);else e.lineTo(h+w,d+x)}else e.moveTo(h,d);e.closePath()}}var Hu=function(){return 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,this.innerCornerRadius=0}}(),ju=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new Hu},t.prototype.buildPath=function(e,t){Qu(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Bs);ju.prototype.type="sector";var Vu=ju,zu=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),$u=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new zu},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)},t}(Bs);$u.prototype.type="ring";var Gu=$u;function Wu(e,t,n,i,r,o,a){var s=.5*(n-e),l=.5*(i-t);return(2*(t-n)+s+l)*a+(-3*(t-n)-2*s-l)*o+s*r+t}function Ku(e,t,n){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i&&"spline"!==i){var o=function(e,t,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=e.length;d<f;d++)tt(a,a,e[d]),nt(s,s,e[d]);tt(a,a,i[0]),nt(s,s,i[1])}for(d=0,f=e.length;d<f;d++){var p=e[d];if(n)r=e[d?d-1:f-1],o=e[(d+1)%f];else{if(0===d||d===f-1){l.push(Fe(e[d]));continue}r=e[d-1],o=e[d+1]}Re(u,o,r),Ge(u,u,t);var A=Ke(p,r),g=Ke(p,o),v=A+g;0!==v&&(A/=v,g/=v),Ge(c,u,-A),Ge(h,u,g);var m=Le([],p,c),y=Le([],p,h);i&&(nt(m,m,a),tt(m,m,s),nt(y,y,a),tt(y,y,s)),l.push(m),l.push(y)}return n&&l.push(l.shift()),l}(r,i,n,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{"spline"===i&&(r=function(e,t){for(var n=e.length,i=[],r=0,o=1;o<n;o++)r+=Ke(e[o-1],e[o]);var a=r/2;for(a=a<n?n:a,o=0;o<a;o++){var s=o/(a-1)*(t?n:n-1),l=Math.floor(s),u=s-l,c=void 0,h=e[l%n],d=void 0,f=void 0;t?(c=e[(l-1+n)%n],d=e[(l+1)%n],f=e[(l+2)%n]):(c=e[0===l?l:l-1],d=e[l>n-2?n-1:l+1],f=e[l>n-3?n-1:l+2]);var p=u*u,A=u*p;i.push([Wu(c[0],h[0],d[0],f[0],u,p,A),Wu(c[1],h[1],d[1],f[1],u,p,A)])}return i}(r,n)),e.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;s<h;s++)e.lineTo(r[s][0],r[s][1])}n&&e.closePath()}}var Yu=function(){return function(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),qu=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new Yu},t.prototype.buildPath=function(e,t){Ku(e,t,!0)},t}(Bs);qu.prototype.type="polygon";var Xu=qu,Ju=function(){return function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),Zu=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ju},t.prototype.buildPath=function(e,t){Ku(e,t,!1)},t}(Bs);Zu.prototype.type="polyline";var ec=Zu,tc={},nc=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),ic=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new nc},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=Ls(tc,t,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=t.x1,i=t.y1,r=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),e.lineTo(r,o))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Bs);ic.prototype.type="line";var rc=ic,oc=[],ac=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function sc(e,t,n){var i=e.cpx2,r=e.cpy2;return null===i||null===r?[(n?pa:fa)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?pa:fa)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?ba:_a)(e.x1,e.cpx1,e.x2,t),(n?ba:_a)(e.y1,e.cpy1,e.y2,t)]}var lc=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ac},t.prototype.buildPath=function(e,t){var n=t.x1,i=t.y1,r=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,i),null==l||null==u?(c<1&&(xa(n,a,r,c,oc),a=oc[1],r=oc[2],xa(i,s,o,c,oc),s=oc[1],o=oc[2]),e.quadraticCurveTo(a,s,r,o)):(c<1&&(va(n,a,l,r,c,oc),a=oc[1],l=oc[2],r=oc[3],va(i,s,u,o,c,oc),s=oc[1],u=oc[2],o=oc[3]),e.bezierCurveTo(a,s,l,u,r,o)))},t.prototype.pointAt=function(e){return sc(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=sc(this.shape,e,!0);return We(t,t)},t}(Bs);lc.prototype.type="bezier-curve";var uc=lc,cc=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),hc=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cc},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*r+n,u*r+i),e.arc(n,i,r,o,a,!s)},t}(Bs);hc.prototype.type="arc";var dc=hc,fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return Me(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].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||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Bs.prototype.getBoundingRect.call(this)},t}(Bs),pc=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Ac=function(e){function t(t,n,i,r,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return Me(t,e),t}(pc),gc=function(e){function t(t,n,i,r,o){var a=e.call(this,r)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return Me(t,e),t}(pc),vc=[0,0],mc=[0,0],yc=new Mi,_c=new Mi,bc=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Mi;for(n=0;n<2;n++)this._axes[n]=new Mi;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,r=e.x,o=e.y,a=r+e.width,s=o+e.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),t)for(var l=0;l<4;l++)n[l].transform(t);Mi.sub(i[0],n[1],n[0]),Mi.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return yc.set(1/0,1/0),_c.set(0,0),!this._intersectCheckOneSide(this,e,yc,_c,i,1)&&(n=!1,i)?n:!this._intersectCheckOneSide(e,this,yc,_c,i,-1)&&(n=!1,i)?n:(i||Mi.copy(t,n?yc:_c),n)},e.prototype._intersectCheckOneSide=function(e,t,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,vc),this._getProjMinMaxOnAxis(s,t._corners,mc),vc[1]<mc[0]||vc[0]>mc[1]){if(a=!1,r)return a;var u=Math.abs(mc[0]-vc[1]),c=Math.abs(vc[0]-mc[1]);Math.min(u,c)>i.len()&&(u<c?Mi.scale(i,l,-u*o):Mi.scale(i,l,c*o))}else if(n){u=Math.abs(mc[0]-vc[1]),c=Math.abs(vc[0]-mc[1]);Math.min(u,c)<n.len()&&(u<c?Mi.scale(n,l,u*o):Mi.scale(n,l,-c*o))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],r=this._origin,o=t[0].dot(i)+r[e],a=o,s=o,l=1;l<t.length;l++){var u=t[l].dot(i)+r[e];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},e}(),wc=[],xc=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 Me(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 n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Qi(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(wc)),e.union(i)}this._rect=e}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}(ta),Cc=ao();function Sc(e,t,n,i,r){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return i?(l=Ae(i.duration,200),u=Ae(i.easing,"cubicOut"),c=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),u=t.getShallow(s?"animationEasingUpdate":"animationEasing"),c=t.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),"function"==typeof c&&(c=c(n,r)),"function"==typeof l&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}function kc(e,t,n,i,r,o,a){var s,l=!1;"function"==typeof r?(a=o,o=r,r=null):ae(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="remove"===e;u||t.stopAnimation("remove");var c=Sc(e,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null);if(c&&c.duration>0){var h=c.duration,d=c.delay,f=c.easing,p={duration:h,delay:d||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,p):t.animateTo(n,p)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function Bc(e,t,n,i,r,o){kc("update",e,t,n,i,r,o)}function Tc(e,t,n,i,r,o){kc("init",e,t,n,i,r,o)}function Ec(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("remove"===e.animators[t].scope)return!0}return!1}function Ic(e,t,n,i,r,o){Ec(e)||kc("remove",e,t,n,i,r,o)}function Mc(e,t,n,i){e.removeTextContent(),e.removeTextGuideLine(),Ic(e,{style:{opacity:0}},t,n,i)}function Dc(e,t,n){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Mc(e,t,n,i)}):Mc(e,t,n,i)}function Pc(e){Cc(e).oldStyle=e.style}var Fc=Math.max,Oc=Math.min,Lc={};function Nc(e){return Bs.extend(e)}var Rc=function(e,t){var n=yu(e,t);return function(e){function t(t){var i=e.call(this,t)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return Me(t,e),t}(vu)};function Uc(e,t){return Rc(e,t)}function Qc(e,t){Lc[e]=t}function Hc(e){if(Lc.hasOwnProperty(e))return Lc[e]}function jc(e,t,n,i){var r=_u(e,t);return n&&("center"===i&&(n=zc(n,r.getBoundingRect())),Gc(r,n)),r}function Vc(e,t,n){var i=new Fs({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var r={width:e.width,height:e.height};i.setStyle(zc(t,r))}}});return i}function zc(e,t){var n,i=t.width/t.height,r=e.height*i;return n=r<=e.width?e.height:(r=e.width)/i,{x:e.x+e.width/2-r/2,y:e.y+e.height/2-n/2,width:r,height:n}}var $c=function(e,t){for(var n=[],i=e.length,r=0;r<i;r++){var o=e[r];n.push(o.getUpdatedPathProxy(!0))}var a=new Bs(t);return a.createPathProxy(),a.buildPath=function(e){if(mu(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function Gc(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Wc(e){return Ls(e.shape,e.shape,e.style),e}function Kc(e){return Ns(e.shape,e.shape,e.style),e}var Yc=Rs;function qc(e,t){for(var n=hi([]);e&&e!==t;)fi(n,e.getLocalTransform(),n),e=e.parent;return n}function Xc(e,t,n){return t&&!G(t)&&(t=Ii.getLocalTransform(t)),n&&(t=vi([],t)),et([],e,t)}function Jc(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0];return o=Xc(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Zc(e){return!e.isGroup}function eh(e,t,n){if(e&&t){var i,r=(i={},e.traverse(function(e){Zc(e)&&e.anid&&(i[e.anid]=e)}),i);t.traverse(function(e){if(Zc(e)&&e.anid){var t=r[e.anid];if(t){var i=o(e);e.attr(o(t)),Bc(e,i,n,tl(e).dataIndex)}}})}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=Q({},e.shape)),t}}function th(e,t){return K(e,function(e){var n=e[0];n=Fc(n,t.x),n=Oc(n,t.x+t.width);var i=e[1];return i=Fc(i,t.y),[n,i=Oc(i,t.y+t.height)]})}function nh(e,t){var n=Fc(e.x,t.x),i=Oc(e.x+e.width,t.x+t.width),r=Fc(e.y,t.y),o=Oc(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function ih(e,t,n){var i=Q({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),H(r,n),new Fs(i)):jc(e.replace("path://",""),i,n,"center")}function rh(e,t,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(oh(e,t,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function oh(e,t,n,i,r,o,a,s){var l,u=n-e,c=i-t,h=a-r,d=s-o,f=ah(h,d,u,c);if((l=f)<=1e-6&&l>=-1e-6)return!1;var p=e-r,A=t-o,g=ah(p,A,u,c)/f;if(g<0||g>1)return!1;var v=ah(p,A,h,d)/f;return!(v<0||v>1)}function ah(e,t,n,i){return e*i-n*t}function sh(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=ie(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&W(J(l),function(e){Te(s,e)||(s[e]=l[e],s.$vars.push(e))});var u=tl(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:H({content:i,formatterParams:s},r)}}Qc("circle",Cu),Qc("ellipse",Bu),Qc("sector",Vu),Qc("ring",Gu),Qc("polygon",Xu),Qc("polyline",ec),Qc("rect",js),Qc("line",rc),Qc("bezierCurve",uc),Qc("arc",dc);var lh={};function uh(e,t){for(var n=0;n<ul.length;n++){var i=ul[n],r=t[i],o=e.ensureState(i);o.style=o.style||{},o.style.text=r}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function ch(e,t,n){var i,r=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=ne(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var l={normal:i},u=0;u<ul.length;u++){var c=ul[u],h=t[c];l[c]=Ae(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function hh(e,t,n,i){n=n||lh;for(var r=e instanceof el,o=!1,a=0;a<cl.length;a++){if((d=t[cl[a]])&&d.getShallow("show")){o=!0;break}}var s=r?e:e.getTextContent();if(o){r||(s||(s=new el,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=ch(n,t),u=t.normal,c=!!u.getShallow("show"),h=fh(u,i&&i.normal,n,!1,!r);h.text=l.normal,r||e.setTextConfig(ph(u,n,!1));for(a=0;a<ul.length;a++){var d,f=ul[a];if(d=t[f]){var p=s.ensureState(f),A=!!Ae(d.getShallow("show"),c);if(A!==c&&(p.ignore=!A),p.style=fh(d,i&&i[f],n,!0,!r),p.style.text=l[f],!r)e.ensureState(f).textConfig=ph(d,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(_h(s).setLabelText=function(e){var i=ch(n,t,e);uh(s,i)})}else s&&(s.ignore=!0);e.dirty()}function dh(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i<ul.length;i++){var r=ul[i];n[r]=e.getModel([r,t])}return n}function fh(e,t,n,i,r){var o={};return function(e,t,n,i,r){n=n||lh;var o,a=t.ecModel,s=a&&a.option.textStyle,l=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||lh).rich;if(n){t=t||{};for(var i=J(n),r=0;r<i.length;r++){var o=i[r];t[o]=1}}e=e.parentModel}return t}(t);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);mh(o[u]={},c,s,n,i,r,!1,!0)}o&&(e.rich=o);var h=t.get("overflow");h&&(e.overflow=h);var d=t.get("minMargin");null!=d&&(e.margin=d);mh(e,t,s,n,i,r,!0,!1)}(o,e,n,i,r),t&&Q(o,t),o}function ph(e,t,n){t=t||{};var i,r={},o=e.getShallow("rotate"),a=Ae(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(i=e.getShallow("position")||(n?null:"inside"))&&(i=t.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",r}var Ah=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],gh=["align","lineHeight","width","height","tag","verticalAlign"],vh=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function mh(e,t,n,i,r,o,a,s){n=!r&&n||lh;var l=i&&i.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),h=Ae(t.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var d=Ae(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(e.lineWidth=d);var f=Ae(t.getShallow("textBorderType"),n.textBorderType);null!=f&&(e.lineDash=f);var p=Ae(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=p&&(e.lineDashOffset=p),r||null!=h||s||(h=i&&i.defaultOpacity),null!=h&&(e.opacity=h),r||o||null==e.fill&&i.inheritColor&&(e.fill=i.inheritColor);for(var A=0;A<Ah.length;A++){var g=Ah[A];null!=(m=Ae(t.getShallow(g),n[g]))&&(e[g]=m)}for(A=0;A<gh.length;A++){g=gh[A];null!=(m=t.getShallow(g))&&(e[g]=m)}if(null==e.verticalAlign){var v=t.getShallow("baseline");null!=v&&(e.verticalAlign=v)}if(!a||!i.disableBox){for(A=0;A<vh.length;A++){var m;g=vh[A];null!=(m=t.getShallow(g))&&(e[g]=m)}var y=t.getShallow("borderType");null!=y&&(e.borderDash=y),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||(e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||(e.borderColor=l)}}function yh(e,t){var n=t&&t.getModel("textStyle");return _e([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 _h=ao();function bh(e,t,n,i){if(e){var r=_h(e);r.prevValue=r.value,r.value=n;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}function wh(e,t,n,i,r){var o=_h(e);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=Ae(o.interpolatedValue,o.prevValue),l=o.value;e.percent=0,(null==o.prevValue?Tc:Bc)(e,{percent:1},i,t,null,function(i){var u=go(n,o.precision,s,l,i);o.interpolatedValue=1===i?null:u;var c=ch({labelDataIndex:t,labelFetcher:r,defaultText:a?a(u):u+""},o.statesModels,u);uh(e,c)})}}var xh,Ch,Sh=["textStyle","color"],kh=new el,Bh=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Sh):null)},e.prototype.getFont=function(){return yh({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){return kh.useStyle({text:e,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),kh.update(),kh.getBoundingRect()},e}(),Th=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Eh=Bo(Th),Ih=function(){function e(){}return e.prototype.getLineStyle=function(e){return Eh(this,e)},e}(),Mh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Dh=Bo(Mh),Ph=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Dh(this,e,t)},e}(),Fh=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},e.prototype.mergeOption=function(e,t){R(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,i=null==n?n:n[e];if(null==i&&!t){var r=this.parentModel;r&&(i=r.getShallow(e))}return i},e.prototype.getModel=function(t,n){var i=null!=t,r=i?this.parsePath(t):null;return new e(i?this._doGet(r):this.option,n=n||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)(N(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!_.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}();bo(Fh),xh=Fh,Ch=["__\0is_clz",xo++].join("_"),xh.prototype[Ch]=!0,xh.isInstance=function(e){return!(!e||!e[Ch])},$(Fh,Ih),$(Fh,Ph),$(Fh,Eo),$(Fh,Bh);var Oh=Fh,Lh=Math.round(10*Math.random());function Nh(e){return[e||"",Lh++].join("_")}function Rh(e,t){return R(R({},e,!0),t,!0)}var Uh="ZH",Qh="EN",Hh=Qh,jh={},Vh={},zh=_.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(Uh)>-1?Uh:Hh;function $h(e,t){e=e.toUpperCase(),Vh[e]=new Oh(t),jh[e]=t}function Gh(e){return Vh[e]}$h(Qh,{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:". "}}}}),$h(Uh,{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 Wh=1e3,Kh=60*Wh,Yh=60*Kh,qh=24*Yh,Xh=365*qh,Jh={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}"},Zh={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+Jh.hour,minute:"{yyyy}-{MM}-{dd} "+Jh.minute,second:"{yyyy}-{MM}-{dd} "+Jh.second,millisecond:Jh.none},ed=["year","month","day","hour","minute","second","millisecond"],td=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function nd(e,t){return"0000".substr(0,t-(e+="").length)+e}function id(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 rd(e,t,n,i){var r=Fr(e),o=r[sd(n)](),a=r[ld(n)]()+1,s=Math.floor((a-1)/4)+1,l=r[ud(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[cd(n)](),h=(c-1)%12+1,d=r[hd(n)](),f=r[dd(n)](),p=r[fd(n)](),A=(i instanceof Oh?i:Gh(i||zh)||Vh[Hh]).getModel("time"),g=A.get("month"),v=A.get("monthAbbr"),m=A.get("dayOfWeek"),y=A.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[a-1]).replace(/{MMM}/g,v[a-1]).replace(/{MM}/g,nd(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,nd(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,m[u]).replace(/{ee}/g,y[u]).replace(/{e}/g,u+"").replace(/{HH}/g,nd(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,nd(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,nd(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,nd(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,nd(p,3)).replace(/{S}/g,p+"")}function od(e,t){var n=Fr(e),i=n[ld(t)]()+1,r=n[ud(t)](),o=n[cd(t)](),a=n[hd(t)](),s=n[dd(t)](),l=0===n[fd(t)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===r;return d&&1===i?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function ad(e,t,n){var i="number"==typeof e?Fr(e):e;switch(t=t||od(e,n)){case"year":return i[sd(n)]();case"half-year":return i[ld(n)]()>=6?1:0;case"quarter":return Math.floor((i[ld(n)]()+1)/4);case"month":return i[ld(n)]();case"day":return i[ud(n)]();case"half-day":return i[cd(n)]()/24;case"hour":return i[cd(n)]();case"minute":return i[hd(n)]();case"second":return i[dd(n)]();case"millisecond":return i[fd(n)]()}}function sd(e){return e?"getUTCFullYear":"getFullYear"}function ld(e){return e?"getUTCMonth":"getMonth"}function ud(e){return e?"getUTCDate":"getDate"}function cd(e){return e?"getUTCHours":"getHours"}function hd(e){return e?"getUTCMinutes":"getMinutes"}function dd(e){return e?"getUTCSeconds":"getSeconds"}function fd(e){return e?"getUTCMilliseconds":"getMilliseconds"}function pd(e){return e?"setUTCFullYear":"setFullYear"}function Ad(e){return e?"setUTCMonth":"setMonth"}function gd(e){return e?"setUTCDate":"setDate"}function vd(e){return e?"setUTCHours":"setHours"}function md(e){return e?"setUTCMinutes":"setMinutes"}function yd(e){return e?"setUTCSeconds":"setSeconds"}function _d(e){return e?"setUTCMilliseconds":"setMilliseconds"}function bd(e,t,n,i,r,o,a,s){return new el({style:{text:e,font:t,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}function wd(e){if(!Hr(e))return ie(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function xd(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 Cd=me,Sd=/([&<>"'])/g,kd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Bd(e){return null==e?"":(e+"").replace(Sd,function(e,t){return kd[t]})}function Td(e,t,n){function i(e){return e&&_e(e)?e:"-"}function r(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,a=e instanceof Date;if(o||a){var s=o?Fr(e):e;if(!isNaN(+s))return rd(s,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return re(e)?i(e):oe(e)&&r(e)?e+"":"-";var l=Qr(e);return r(l)?wd(l):re(e)?i(e):"boolean"==typeof e?e+"":"-"}var Ed=["a","b","c","d","e","f","g"],Id=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Md(e,t,n){te(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o<r.length;o++){var a=Ed[o];e=e.replace(Id(a),Id(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=t[s][r[l]];e=e.replace(Id(Ed[l],s),n?Bd(u):u)}return e}function Dd(e,t){var n=ie(e)?{color:e,extraCssText:t}:e||{},i=n.color,r=n.type;t=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Bd(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Bd(i)+";"+(t||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Pd(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var i=Fr(t),r=n?"UTC":"",o=i["get"+r+"FullYear"](),a=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),c=i["get"+r+"Seconds"](),h=i["get"+r+"Milliseconds"]();return e=e.replace("MM",nd(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",nd(s,2)).replace("d",s).replace("hh",nd(l,2)).replace("h",l).replace("mm",nd(u,2)).replace("m",u).replace("ss",nd(c,2)).replace("s",c).replace("SSS",nd(h,3))}function Fd(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function Od(e,t){return t=t||"transparent",ie(e)?e:ae(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Ld(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Nd=W,Rd=["left","right","top","bottom","width","height"],Ud=[["width","left","right"],["height","top","bottom"]];function Qd(e,t,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild(function(l,u){var c,h,d=l.getBoundingRect(),f=t.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===e){var A=d.width+(p?-p.x+d.x:0);(c=o+A)>i||l.newline?(o=0,c=A,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var g=d.height+(p?-p.y+d.y:0);(h=a+g)>r||l.newline?(o+=s+n,a=0,h=g,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=h+n)})}var Hd=Qd;ee(Qd,"vertical"),ee(Qd,"horizontal");function jd(e,t,n){n=Cd(n||0);var i=t.width,r=t.height,o=wr(e.left,i),a=wr(e.top,r),s=wr(e.right,i),l=wr(e.bottom,r),u=wr(e.width,i),c=wr(e.height,r),h=n[2]+n[0],d=n[1]+n[3],f=e.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),e.left||e.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(e.top||e.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var p=new Qi(o+n[3],a+n[0],u,c);return p.margin=n,p}function Vd(e,t,n,i,r){var o=!r||!r.hv||r.hv[0],a=!r||!r.hv||r.hv[1],s=r&&r.boundingMode||"all";if(o||a){var l;if("raw"===s)l="group"===e.type?new Qi(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();(l=l.clone()).applyTransform(u)}var c=jd(H({width:l.width,height:l.height},t),n,i),h=o?c.x-l.x:0,d=a?c.y-l.y:0;"raw"===s?(e.x=h,e.y=d):(e.x+=h,e.y+=d),e.markRedraw()}}function zd(e){var t=e.layoutMode||e.constructor.layoutMode;return ae(t)?t:t?{type:t}:null}function $d(e,t,n){var i=n&&n.ignoreSize;!te(i)&&(i=[i,i]);var r=a(Ud[0],0),o=a(Ud[1],1);function a(n,r){var o={},a=0,u={},c=0;if(Nd(n,function(t){u[t]=e[t]}),Nd(n,function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++}),i[r])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var h=0;h<n.length;h++){var d=n[h];if(!s(o,d)&&s(e,d)){o[d]=e[d];break}}return o}return u}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){Nd(e,function(e){t[e]=n[e]})}u(Ud[0],e,r),u(Ud[1],e,o)}function Gd(e){return Wd({},e)}function Wd(e,t){return t&&e&&Nd(Rd,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var Kd=ao(),Yd=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.uid=Nh("ec_cpt_model"),r}var n;return g(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=zd(this),i=n?Gd(e):{};R(e,t.getTheme().get(this.mainType)),R(e,this.getDefaultOption()),n&&$d(e,i,n)},t.prototype.mergeOption=function(e,t){R(this.option,e,!0);var n=zd(this);n&&$d(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[yo])}(e))return e.defaultOption;var t=Kd(this);if(!t.defaultOption){for(var n=[],i=e;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=R(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return fo(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(Oh);wo(Yd,Oh),ko(Yd),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var i=_o(e);t[i.main]=n},e.determineSubType=function(n,i){var r=i.type;if(!r){var o=_o(n).main;e.hasSubTypes(n)&&t[o]&&(r=t[o](i))}return r}}(Yd),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,i,r,o){if(e.length){var a=function(e){var i={},r=[];return W(e,function(o){var a=n(i,o),s=function(e,t){var n=[];return W(e,function(e){V(t,e)>=0&&n.push(e)}),n}(a.originalDeps=t(o),e);a.entryCount=s.length,0===a.entryCount&&r.push(o),W(s,function(e){V(a.predecessor,e)<0&&a.predecessor.push(e);var t=n(i,e);V(t.successor,e)<0&&t.successor.push(o)})}),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(W(e,function(e){u[e]=!0});l.length;){var c=l.pop(),h=s[c],d=!!u[c];d&&(r.call(o,c,h.originalDeps.slice()),delete u[c]),W(h.successor,d?p:f)}W(u,function(){var e="";throw new Error(e)})}function f(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function p(e){u[e]=!0,f(e)}}}(Yd,function(e){var t=[];W(Yd.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=K(t,function(e){return _o(e).main}),"dataset"!==e&&V(t,"dataset")<=0&&t.unshift("dataset");return t});var qd=Yd,Xd="";"undefined"!=typeof navigator&&(Xd=navigator.platform||"");var Jd="rgba(0, 0, 0, 0.2)",Zd={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Jd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Jd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Jd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Jd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Jd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Jd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Xd.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},ef=Se(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),tf="original",nf="arrayRows",rf="objectRows",of="keyedColumns",af="typedArray",sf="unknown",lf="column",uf="row",cf={Must:1,Might:2,Not:3},hf=ao();function df(e,t,n){var i={},r=pf(t);if(!r||!e)return i;var o,a,s=[],l=[],u=t.ecModel,c=hf(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;W(e=e.slice(),function(t,n){var r=ae(t)?t:e[n]={name:t};"ordinal"===r.type&&null==o&&(o=n,a=p(r)),i[r.name]=[]});var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function f(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function p(e){var t=e.dimsDef;return t?t.length:1}return W(e,function(e,t){var n=e.name,r=p(e);if(null==o){var a=d.valueWayDim;f(i[n],a,r),f(l,a,r),d.valueWayDim+=r}else if(o===t)f(i[n],0,r),f(s,0,r);else{a=d.categoryWayDim;f(i[n],a,r),f(l,a,r),d.categoryWayDim+=r}}),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function ff(e,t,n){var i={};if(!pf(e))return i;var r,o=t.sourceFormat,a=t.dimensionsDefine;o!==rf&&o!==of||W(a,function(e,t){"name"===(ae(e)?e.name:e)&&(r=t)});var s=function(){for(var e={},i={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=gf(t.data,o,t.seriesLayoutBy,a,t.startIndex,l);s.push(c);var h=c===cf.Not;if(h&&null==e.v&&l!==r&&(e.v=l),(null==e.n||e.n===e.v||!h&&s[e.n]===cf.Not)&&(e.n=l),d(e)&&s[e.n]!==cf.Not)return e;h||(c===cf.Might&&null==i.v&&l!==r&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function d(e){return null!=e.v&&null!=e.n}return d(e)?e:d(i)?i:null}();if(s){i.value=[s.v];var l=null!=r?r:s.n;i.itemName=[l],i.seriesName=[l]}return i}function pf(e){if(!e.get("data",!0))return fo(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},co).models[0]}function Af(e,t){return gf(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function gf(e,t,n,i,r,o){var a,s,l;if(le(e))return cf.Not;if(i){var u=i[o];ae(u)?(s=u.name,l=u.type):ie(u)&&(s=u)}if(null!=l)return"ordinal"===l?cf.Must:cf.Not;if(t===nf){var c=e;if(n===uf){for(var h=c[o],d=0;d<(h||[]).length&&d<5;d++)if(null!=(a=y(h[r+d])))return a}else for(d=0;d<c.length&&d<5;d++){var f=c[r+d];if(f&&null!=(a=y(f[o])))return a}}else if(t===rf){var p=e;if(!s)return cf.Not;for(d=0;d<p.length&&d<5;d++){if((v=p[d])&&null!=(a=y(v[s])))return a}}else if(t===of){var A=e;if(!s)return cf.Not;if(!(h=A[s])||le(h))return cf.Not;for(d=0;d<h.length&&d<5;d++)if(null!=(a=y(h[d])))return a}else if(t===tf){var g=e;for(d=0;d<g.length&&d<5;d++){var v,m=Xr(v=g[d]);if(!te(m))return cf.Not;if(null!=(a=y(m[o])))return a}}function y(e){var t=ie(e);return null!=e&&isFinite(e)&&""!==e?t?cf.Might:cf.Not:t&&"-"!==e?cf.Must:void 0}return cf.Not}var vf=Se();var mf,yf,_f,bf=ao(),wf=ao(),xf=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var i=Kr(this.get("color",!0)),r=this.get("colorLayer",!0);return Sf(this,bf,i,r,e,t,n)},e.prototype.clearColorPalette=function(){var e,t;(t=bf)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();function Cf(e,t,n,i){var r=Kr(e.get(["aria","decal","decals"]));return Sf(e,wf,r,null,t,n,i)}function Sf(e,t,n,i,r,o,a){var s=t(o=o||e),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?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]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}var kf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.init=function(e,t,n,i,r,o){i=i||{},this.option=null,this._theme=new Oh(i),this._locale=new Oh(r),this._optionManager=o},t.prototype.setOption=function(e,t,n){var i=Ef(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Ef(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):_f(this,r),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=i.getMediaOption(this);a.length&&W(a,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Se(),s=t&&t.replaceMergeMainTypeMap;hf(this).datasetMap=Se(),W(e,function(e,t){null!=e&&(qd.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?N(e):R(n[t],e,!0))}),s&&s.each(function(e,t){qd.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))}),qd.topologicalTravel(o,qd.getAllClassMainTypes(),function(t){var o=function(e,t,n){var i=vf.get(t);if(!i)return n;var r=i(e);return r?n.concat(r):n}(this,t,Kr(e[t])),a=i.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=Zr(a,o,l);(function(e,t,n){W(e,function(e){var i=e.newOption;ae(i)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,i){return t.type?t.type:n?n.subType:i.determineSubType(e,t)}(t,i,e.existing,n))})})(u,t,qd),n[t]=null,i.set(t,null),r.set(t,0);var c=[],h=[],d=0;W(u,function(e,n){var i=e.existing,r=e.newOption;if(r){var o="series"===t,a=qd.getClass(t,e.keyInfo.subType,!o);if(!a)return;if(i&&i.constructor===a)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=Q({componentIndex:n},e.keyInfo);Q(i=new a(r,this,this,s),s),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),h.push(i),d++):(c.push(void 0),h.push(void 0))},this),n[t]=c,i.set(t,h),r.set(t,d),"series"===t&&mf(this)},this),this._seriesIndices||mf(this)},t.prototype.getOption=function(){var e=N(this.option);return W(e,function(t,n){if(qd.hasClass(n)){for(var i=Kr(t),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!ro(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,e[n]=i}}),delete e["\0_ec_inner"],e},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 i=n[t||0];if(i)return i;if(null==t)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,r=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=i?(n=[],W(Kr(i),function(e){a[e]&&n.push(a[e])})):n=null!=r?Bf("id",r,a):null!=o?Bf("name",o,a):q(a,function(e){return!!e}),Tf(n,e)):[]},t.prototype.findComponents=function(e){var t,n,i,r,o,a=e.query,s=e.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(t=a)||null==t[n]&&null==t[i]&&null==t[r]?null:{mainType:s,index:t[n],id:t[i],name:t[r]}),u=l?this.queryComponents(l):q(this._componentsMap.get(s),function(e){return!!e});return o=Tf(u,e),e.filter?q(o,e.filter):o},t.prototype.eachComponent=function(e,t,n){var i=this._componentsMap;if(ne(e)){var r=t,o=e;i.each(function(e,t){for(var n=0;e&&n<e.length;n++){var i=e[n];i&&o.call(r,t,i,i.componentIndex)}})}else for(var a=ie(e)?i.get(e):ae(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=no(e,null);return q(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 q(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return q(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){yf(this),W(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)},this)},t.prototype.eachRawSeries=function(e,t){W(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){yf(this),W(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return W(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return yf(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){yf(this);var n=[];W(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];e.call(t,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=Se(n)},t.prototype.restoreData=function(e){mf(this);var t=this._componentsMap,n=[];t.each(function(e,t){qd.hasClass(t)&&n.push(t)}),qd.topologicalTravel(n,qd.getAllClassMainTypes(),function(n){W(t.get(n),function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,r=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=r&&e.name!==r}}(t,e)||t.restoreData()})})},t.internalField=(mf=function(e){var t=e._seriesIndices=[];W(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=Se(t)},yf=function(e){},void(_f=function(e,t){e.option={},e.option["\0_ec_inner"]=1,e._componentsMap=Se({series:[]}),e._componentsCount=Se();var n,i,r,o=t.aria;ae(o)&&null==o.enabled&&(o.enabled=!0),n=t,i=e._theme.option,r=n.color&&!n.colorLayer,W(i,function(e,t){"colorLayer"===t&&r||qd.hasClass(t)||("object"==typeof e?n[t]=n[t]?R(n[t],e,!1):N(e):null==n[t]&&(n[t]=e))}),R(t,Zd,!1),e._mergeOption(t,null)})),t}(Oh);function Bf(e,t,n){if(te(t)){var i=Se();return W(t,function(e){null!=e&&(null!=no(e,null)&&i.set(e,!0))}),q(n,function(t){return t&&i.get(t[e])})}var r=no(t,null);return q(n,function(t){return t&&null!=r&&t[e]===r})}function Tf(e,t){return t.hasOwnProperty("subType")?q(e,function(e){return e&&e.subType===t.subType}):e}function Ef(e){var t=Se();return e&&W(Kr(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}$(kf,xf);var If=kf,Mf=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Df=function(){return function(e){W(Mf,function(t){this[t]=Z(e[t],e)},this)}}(),Pf={},Ff=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];W(Pf,function(i,r){var o=i.create(e,t);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){W(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){Pf[e]=t},e.get=function(e){return Pf[e]},e}(),Of=/^(min|max)?(.+)$/;function Lf(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return W(e,function(e,t){var n=t.match(Of);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(i[a],e,o)||(r=!1)}}),r}var Nf=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(W(Kr(e.series),function(e){e&&e.data&&le(e.data)&&we(e.data)}),W(Kr(e.dataset),function(e){e&&e.source&&le(e.source)&&we(e.source)})),e=N(e);var i=this._optionBackup,r=function(e,t,n){var i,r,o=[],a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,h=!!(l||s||a&&a.timeline);a?(r=a).timeline||(r.timeline=s):((h||c)&&(e.options=e.media=null),r=e);c&&te(u)&&W(u,function(e){e&&e.option&&(e.query?o.push(e):i||(i=e))});function d(e){W(t,function(t){t(e,n)})}return d(r),W(l,function(e){return d(e)}),W(o,function(e){return d(e.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(e,t,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],N(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=N(n[i.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)Lf(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=K(s,function(e){return N(-1===e?a.option:o[e].option)})),this._currentMediaIndices=s,l},e}(),Rf=W,Uf=ae,Qf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Hf(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=Qf.length;n<i;n++){var r=Qf[n],o=t.normal,a=t.emphasis;o&&o[r]&&(e[r]=e[r]||{},e[r].normal?R(e[r].normal,o[r]):e[r].normal=o[r],o[r]=null),a&&a[r]&&(e[r]=e[r]||{},e[r].emphasis?R(e[r].emphasis,a[r]):e[r].emphasis=a[r],a[r]=null)}}function jf(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,H(e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r,r.focus&&(e.emphasis.focus=r.focus),r.blurScope&&(e.emphasis.blurScope=r.blurScope))}}function Vf(e){jf(e,"itemStyle"),jf(e,"lineStyle"),jf(e,"areaStyle"),jf(e,"label"),jf(e,"labelLine"),jf(e,"upperLabel"),jf(e,"edgeLabel")}function zf(e,t){var n=Uf(e)&&e[t],i=Uf(n)&&n.textStyle;if(i){0;for(var r=0,o=qr.length;r<o;r++){var a=qr[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function $f(e){e&&(Vf(e),zf(e,"label"),e.emphasis&&zf(e.emphasis,"label"))}function Gf(e){return te(e)?e:e?[e]:[]}function Wf(e){return(te(e)?e[0]:e)||{}}function Kf(e,t){Rf(Gf(e.series),function(e){Uf(e)&&function(e){if(Uf(e)){Hf(e),Vf(e),zf(e,"label"),zf(e,"upperLabel"),zf(e,"edgeLabel"),e.emphasis&&(zf(e.emphasis,"label"),zf(e.emphasis,"upperLabel"),zf(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Hf(t),$f(t));var n=e.markLine;n&&(Hf(n),$f(n));var i=e.markArea;i&&$f(i);var r=e.data;if("graph"===e.type){r=r||e.nodes;var o=e.links||e.edges;if(o&&!le(o))for(var a=0;a<o.length;a++)$f(o[a]);W(e.categories,function(e){Vf(e)})}if(r&&!le(r))for(a=0;a<r.length;a++)$f(r[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)$f(s[a])}if((n=e.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)te(l[a])?($f(l[a][0]),$f(l[a][1])):$f(l[a])}"gauge"===e.type?(zf(e,"axisLabel"),zf(e,"title"),zf(e,"detail")):"treemap"===e.type?(jf(e.breadcrumb,"itemStyle"),W(e.levels,function(e){Vf(e)})):"tree"===e.type&&Vf(e.leaves)}}(e)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Rf(n,function(t){Rf(Gf(e[t]),function(e){e&&(zf(e,"axisLabel"),zf(e.axisPointer,"label"))})}),Rf(Gf(e.parallel),function(e){var t=e&&e.parallelAxisDefault;zf(t,"axisLabel"),zf(t&&t.axisPointer,"label")}),Rf(Gf(e.calendar),function(e){jf(e,"itemStyle"),zf(e,"dayLabel"),zf(e,"monthLabel"),zf(e,"yearLabel")}),Rf(Gf(e.radar),function(e){zf(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)}),Rf(Gf(e.geo),function(e){Uf(e)&&($f(e),Rf(Gf(e.regions),function(e){$f(e)}))}),Rf(Gf(e.timeline),function(e){$f(e),jf(e,"label"),jf(e,"itemStyle"),jf(e,"controlStyle",!0);var t=e.data;te(t)&&W(t,function(e){ae(e)&&(jf(e,"label"),jf(e,"itemStyle"))})}),Rf(Gf(e.toolbox),function(e){jf(e,"iconStyle"),Rf(e.feature,function(e){jf(e,"iconStyle")})}),zf(Wf(e.axisPointer),"label"),zf(Wf(e.tooltip).axisPointer,"label")}function Yf(e){e&&W(qf,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var qf=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Xf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Jf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Zf(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Jf.length;n++){var i=Jf[n][1],r=Jf[n][0];null!=t[i]&&(t[r]=t[i])}}function ep(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function tp(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function np(e,t){Kf(e,t),e.series=Kr(e.series),W(e.series,function(e){if(ae(e)){var t,n=e.type;if("line"===n)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=e.clockWise&&(e.clockwise=e.clockWise),ep(e.label),(o=e.data)&&!le(o))for(var i=0;i<o.length;i++)ep(o[i]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===n){var r=function(e,t){for(var n=t.split(","),i=e,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(e,"pointer.color");null!=r&&function(e,t,n,i){for(var r,o=t.split(","),a=e,s=0;s<o.length-1;s++)null==a[r=o[s]]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}(e,"itemStyle.color",r)}else if("bar"===n){var o;if(Zf(e),Zf(e.backgroundStyle),Zf(e.emphasis),(o=e.data)&&!le(o))for(i=0;i<o.length;i++)"object"==typeof o[i]&&(Zf(o[i]),Zf(o[i]&&o[i].emphasis))}else if("sunburst"===n){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),tp(e),function e(t,n){if(t)for(var i=0;i<t.length;i++)n(t[i]),t[i]&&e(t[i].children,n)}(e.data,tp)}else"graph"===n||"sankey"===n?(t=e)&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency")):"map"===n&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&H(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),Yf(e)}}),e.dataRange&&(e.visualMap=e.dataRange),W(Xf,function(t){var n=e[t];n&&(te(n)||(n=[n]),W(n,function(e){Yf(e)}))})}function ip(e){W(e,function(t,n){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex;a.modify(o,function(o,l,u){var c,h,d=a.get(t.stackedDimension,u);if(isNaN(d))return r;s?h=a.getRawIndex(u):c=a.get(t.stackedByDimension,u);for(var f=NaN,p=n-1;p>=0;p--){var A=e[p];if(s||(h=A.data.rawIndexOf(A.stackedByDimension,c)),h>=0){var g=A.data.getByRawIndex(A.stackResultDimension,h);if(d>=0&&g>0||d<=0&&g<0){d=Er(d,g),f=g;break}}}return i[0]=d,i[1]=f,i})})}var rp,op,ap,sp,lp,up=function(){return function(e){this.data=e.data||(e.sourceFormat===of?{}:[]),this.sourceFormat=e.sourceFormat||sf,this.seriesLayoutBy=e.seriesLayoutBy||lf,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];null==i.type&&Af(this,n)===cf.Must&&(i.type="ordinal")}}}();function cp(e){return e instanceof up}function hp(e,t,n){n=n||fp(e);var i=t.seriesLayoutBy,r=function(e,t,n,i,r){var o,a;if(!e)return{dimensionsDefine:pp(r),startIndex:a,dimensionsDetectedCount:o};if(t===nf){var s=e;"auto"===i||null==i?Ap(function(e){null!=e&&"-"!==e&&(ie(e)?null==a&&(a=1):a=0)},n,s,10):a=oe(i)?i:i?1:0,r||1!==a||(r=[],Ap(function(e,t){r[t]=null!=e?e+"":""},n,s,1/0)),o=r?r.length:n===uf?s.length:s[0]?s[0].length:null}else if(t===rf)r||(r=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t){var i=[];return W(t,function(e,t){i.push(t)}),i}}(e));else if(t===of)r||(r=[],W(e,function(e,t){r.push(t)}));else if(t===tf){var l=Xr(e[0]);o=te(l)&&l.length||1}return{startIndex:a,dimensionsDefine:pp(r),dimensionsDetectedCount:o}}(e,n,i,t.sourceHeader,t.dimensions);return new up({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:N(t)})}function dp(e){return new up({data:e,sourceFormat:le(e)?af:tf})}function fp(e){var t=sf;if(le(e))t=af;else if(te(e)){0===e.length&&(t=nf);for(var n=0,i=e.length;n<i;n++){var r=e[n];if(null!=r){if(te(r)){t=nf;break}if(ae(r)){t=rf;break}}}}else if(ae(e))for(var o in e)if(Te(e,o)&&G(e[o])){t=of;break}return t}function pp(e){if(e){var t=Se();return K(e,function(e,n){var i={name:(e=ae(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=t.get(i.name);return r?i.name+="-"+r.count++:t.set(i.name,{count:1}),i})}}function Ap(e,t,n,i){if(t===uf)for(var r=0;r<n.length&&r<i;r++)e(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)e(o[r],r)}}function gp(e){var t=e.sourceFormat;return t===rf||t===of}var vp=function(){function e(e,t){var n=cp(e)?e:dp(e);this._source=n;var i=this._data=n.data;n.sourceFormat===af&&(this._offset=0,this._dimSize=t,this._data=i),lp(this,i,n)}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;lp=function(e,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=sp[Bp(a,s)];if(Q(e,c),a===af)e.getItem=t,e.count=i,e.fillStorage=n;else{var h=_p(a,s);e.getItem=Z(h,null,r,l,u);var d=xp(a,s);e.count=Z(d,null,r,l,u)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,i=this._dimSize,r=i*e,o=0;o<i;o++)t[o]=n[r+o];return t},n=function(e,t,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,h=n[a],d=0;d<c;d++){var f=r[d*o+a];h[e+d]=f,f<l&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[nf+"_"+lf]={pure:!0,appendData:r},e[nf+"_"+uf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[rf]={pure:!0,appendData:r},e[of]={pure:!0,appendData:function(e){var t=this._data;W(e,function(e,n){for(var i=t[n]||(t[n]=[]),r=0;r<(e||[]).length;r++)i.push(e[r])})}},e[tf]={appendData:r},e[af]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},sp=e}(),e}(),mp=function(e,t,n,i){return e[i]},yp=((rp={})[nf+"_"+lf]=function(e,t,n,i){return e[i+t]},rp[nf+"_"+uf]=function(e,t,n,i,r){i+=t;for(var o=r||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},rp[rf]=mp,rp[of]=function(e,t,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=e[s];o[a]=l?l[i]:null}return o},rp[tf]=mp,rp);function _p(e,t){var n=yp[Bp(e,t)];return n}var bp=function(e,t,n){return e.length},wp=((op={})[nf+"_"+lf]=function(e,t,n){return Math.max(0,e.length-t)},op[nf+"_"+uf]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},op[rf]=bp,op[of]=function(e,t,n){var i=n[0].name;var r=e[i];return r?r.length:0},op[tf]=bp,op);function xp(e,t){var n=wp[Bp(e,t)];return n}var Cp=function(e,t,n){return e[t]},Sp=((ap={})[nf]=Cp,ap[rf]=function(e,t,n){return e[n]},ap[of]=Cp,ap[tf]=function(e,t,n){var i=Xr(e);return i instanceof Array?i[t]:i},ap[af]=Cp,ap);function kp(e){var t=Sp[e];return t}function Bp(e,t){return e===nf?e+"_"+t:e}function Tp(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var r=e.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=r.getDimensionProperty(a);return kp(o)(i,a,s)}var l=i;return o===tf&&(l=Xr(i)),l}}}var Ep=/\{@(.+?)\}/g,Ip=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:t,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,i,r,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);(o&&(s.value=o.interpolatedValue),null!=i&&te(s.value)&&(s.value=s.value[i]),r)||(r=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return"function"==typeof r?(s.status=t,s.dimensionIndex=i,r(s)):"string"==typeof r?Md(r,s).replace(Ep,function(t,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=Tp(a,e,r);if(o&&te(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return Tp(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Mp(e){var t,n;return ae(e)?e.type&&(n=e):t=e,{markupText:t,markupFragment:n}}function Dp(e){return new Pp(e)}var Pp=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,i=e&&e.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||d<f)){var p=this._progress;if(te(p))for(var A=0;A<p.length;A++)this._doProgress(p[A],d,f,l,u);else this._doProgress(p,d,f,l,u)}this._dueIndex=f;var g=null!=this._settedOutputEnd?this._settedOutputEnd:f;0,this._outputDueEnd=g}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(e,t,n,i,r){Fp.reset(t,n,i,r),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Fp.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),te(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},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}(),Fp=function(){var e,t,n,i,r,o={reset:function(l,u,c,h){t=l,e=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%r*n+Math.ceil(t/r),a=t>=e?null:o<i?o:t;return t++,a}}();function Op(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"===n&&"number"!=typeof e&&null!=e&&"-"!==e&&(e=+Fr(e)),null==e||""===e?NaN:+e)}var Lp=Se({number:function(e){return parseFloat(e)},time:function(e){return+Fr(e)},trim:function(e){return"string"==typeof e?_e(e):e}});function Np(e){return Lp.get(e)}var Rp={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}},Up=function(){function e(e,t){if("number"!=typeof t){var n="";0,$r(n)}this._opFn=Rp[e],this._rvalFloat=Qr(t)}return e.prototype.evaluate=function(e){return"number"==typeof e?this._opFn(e,this._rvalFloat):this._opFn(Qr(e),this._rvalFloat)},e}(),Qp=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=typeof e,i=typeof t,r="number"===n?e:Qr(e),o="number"===i?t:Qr(t),a=isNaN(r),s=isNaN(o);if(a&&(r=this._incomparable),s&&(o=this._incomparable),a&&s){var l="string"===n,u="string"===i;l&&(r=u?e:0),u&&(o=l?t:0)}return r<o?this._resultLT:r>o?-this._resultLT:0},e}(),Hp=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Qr(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=Qr(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function jp(e,t){return"eq"===e||"ne"===e?new Hp("eq"===e,t):Te(Rp,e)?new Up(e,t):null}var Vp=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 Op(e,t)},e}();function zp(e){var t=e.sourceFormat;if(!qp(t)){var n="";0,$r(n)}return e.data}function $p(e){var t=e.sourceFormat,n=e.data;if(!qp(t)){var i="";0,$r(i)}if(t===nf){for(var r=[],o=0,a=n.length;o<a;o++)r.push(n[o].slice());return r}if(t===rf){for(r=[],o=0,a=n.length;o<a;o++)r.push(Q({},n[o]));return r}}function Gp(e,t,n){if(null!=n)return"number"==typeof n||!isNaN(n)&&!Te(t,n)?e[n]:Te(t,n)?t[n]:void 0}function Wp(e){return N(e)}var Kp=Se();function Yp(e,t,n,i){var r="";t.length||$r(r),ae(e)||$r(r);var o=e.type,a=Kp.get(o);a||$r(r);var s=K(t,function(e){return function(e,t){var n=new Vp,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==lf&&$r(a);var s=[],l={},u=e.dimensionsDefine;if(u)W(u,function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};if(s.push(i),null!=n){var r="";Te(l,n)&&$r(r),l[n]=i}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var h=_p(r,lf);t.__isBuiltIn&&(n.getRawDataItem=function(e){return h(i,o,s,e)},n.getRawData=Z(zp,null,e)),n.cloneRawData=Z($p,null,e);var d=xp(r,lf);n.count=Z(d,null,i,o,s);var f=kp(r);n.retrieveValue=function(e,t){var n=h(i,o,s,e);return p(n,t)};var p=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=s[t];return n?f(e,t,n.name):void 0}};return n.getDimensionInfo=Z(Gp,null,s,l),n.cloneAllDimensionInfo=Z(Wp,null,s),n}(e,a)}),l=Kr(a.transform({upstream:s[0],upstreamList:s,config:N(e.config)}));return K(l,function(e,n){var i,r="";ae(e)||$r(r),e.data||$r(r),qp(fp(e.data))||$r(r);var o=t[0];if(o&&0===n&&!e.dimensions){var a=o.startIndex;a&&(e.data=o.data.slice(0,a).concat(e.data)),i={seriesLayoutBy:lf,sourceHeader:a,dimensions:o.metaRawOption.dimensions}}else i={seriesLayoutBy:lf,sourceHeader:0,dimensions:e.dimensions};return hp(e.data,i,null)})}function qp(e){return e===nf||e===rf}var Xp,Jp="undefined"==typeof Uint32Array?Array:Uint32Array,Zp="undefined"==typeof Uint16Array?Array:Uint16Array,eA="undefined"==typeof Int32Array?Array:Int32Array,tA="undefined"==typeof Float64Array?Array:Float64Array,nA={float:tA,int:eA,ordinal:Array,number:Array,time:tA};function iA(e){return e>65535?Jp:Zp}function rA(e,t,n,i,r){var o=nA[n||"float"];if(r){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(i)}var oA=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Se()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),r=this.defaultDimValueGetter=Xp[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];gp(i);this._dimensions=K(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,i=this._dimensions,r=n.get(e);if(null!=r){if(i[r].type===t)return r}else r=i.length;return i[r]={type:t},n.set(e,r),this._chunks[r]=new nA[t||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[e]=[1/0,-1/0]);for(var s=r[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1])}i.ordinalMeta=t,i.ordinalOffset=a,i.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(e){var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<r;l++){rA(n,l,(f=i[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var h=c-a,d=0;d<r;d++){var f=i[d],p=Xp.arrayRows.call(this,e[h]||u,f.property,h,d);n[d][c]=p;var A=o[d];p<A[0]&&(A[0]=p),p>A[1]&&(A[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=K(o,function(e){return e.property}),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),rA(r,u,c.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,r,s);else for(var h=[],d=e;d<t;d++){h=i.getItem(d,h);for(var f=0;f<a;f++){var p=r[f],A=this._dimValueGetter(h,l[f],d,f);p[d]=A;var g=s[f];A<g[0]&&(g[0]=A),A>g[1]&&(g[1]=A)}}!i.persistent&&i.clean&&i.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=[],i=[];if(null==t){t=e,e=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=e;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],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 n=0,i=this.count();n<i;n++){var r=this.get(e,n);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(e,t){return e-t}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/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 i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(t[o]<e)i=o+1;else{if(!(t[o]>e))return o;r=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks[e],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-i[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<o||h===o&&c>=0&&a<0)&&(o=h,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r<i;r++)e[r]=t[r]}else e=new n(t.buffer,0,i)}else{e=new(n=iA(this._rawCount))(this.count());for(r=0;r<e.length;r++)e[r]=r}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(iA(n._rawCount))(i),o=[],a=e.length,s=0,l=e[0],u=n._chunks,c=0;c<i;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=t(c);else if(1===a){h=t(u[l][d],c)}else{for(var f=0;f<a;f++)o[f]=u[e[f]][d];o[f]=c,h=t.apply(null,o)}h&&(r[s++]=d)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=J(e),r=i.length;if(!r)return this;var o=t.count(),a=new(iA(t._rawCount))(o),s=0,l=i[0],u=e[l][0],c=e[l][1],h=t._chunks,d=!1;if(!t._indices){var f=0;if(1===r){for(var p=h[i[0]],A=0;A<n;A++){((y=p[A])>=u&&y<=c||isNaN(y))&&(a[s++]=f),f++}d=!0}else if(2===r){p=h[i[0]];var g=h[i[1]],v=e[i[1]][0],m=e[i[1]][1];for(A=0;A<n;A++){var y=p[A],_=g[A];(y>=u&&y<=c||isNaN(y))&&(_>=v&&_<=m||isNaN(_))&&(a[s++]=f),f++}d=!0}}if(!d)if(1===r)for(A=0;A<o;A++){var b=t.getRawIndex(A);((y=h[i[0]][b])>=u&&y<=c||isNaN(y))&&(a[s++]=b)}else for(A=0;A<o;A++){for(var w=!0,x=(b=t.getRawIndex(A),0);x<r;x++){var C=i[x];((y=h[C][b])<e[C][0]||y>e[C][1])&&(w=!1)}w&&(a[s++]=t.getRawIndex(A))}return s<o&&(t._indices=a),t._count=s,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 i=e._chunks,r=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var h=e.getRawIndex(c),d=0;d<o;d++)s[d]=i[t[d]][h];s[o]=c;var f=n&&n.apply(null,s);if(null!=f){"object"!=typeof f&&(r[0]=f,f=r);for(u=0;u<f.length;u++){var p=t[u],A=f[u],g=l[p],v=i[p];v&&(v[h]=A),A<g[0]&&(g[0]=A),A>g[1]&&(g[1]=A)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,o=this.clone([e],!0),a=o._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),h=new(iA(this._rawCount))(Math.ceil(s/u)+2);h[l++]=c;for(var d=1;d<s-1;d+=u){for(var f=Math.min(d+u,s-1),p=Math.min(d+2*u,s),A=(p+f)/2,g=0,v=f;v<p;v++){var m=a[x=this.getRawIndex(v)];isNaN(m)||(g+=m)}g/=p-f;var y=d,_=Math.min(d+u,s),b=d-1,w=a[c];n=-1,r=y;for(v=y;v<_;v++){var x;m=a[x=this.getRawIndex(v)];isNaN(m)||(i=Math.abs((b-A)*(m-w)-(b-v)*(g-w)))>n&&(n=i,r=x)}h[l++]=r,c=r}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,i){for(var r=this.clone([e],!0),o=r._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=r._rawExtent[e]=[1/0,-1/0],h=new(iA(this._rawCount))(Math.ceil(u/s)),d=0,f=0;f<u;f+=s){s>u-f&&(s=u-f,a.length=s);for(var p=0;p<s;p++){var A=this.getRawIndex(f+p);a[p]=l[A]}var g=n(a),v=this.getRawIndex(Math.min(f+i(a,g)||0,u-1));l[v]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),h[d++]=v}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:t(r);break;case 1:t(i[e[0]][a],r);break;case 2:t(i[e[0]][a],i[e[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[e[s]][a];l[s]=r,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[e].slice();if(i=this._extent[e])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=t[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][t]);return n},e.prototype.clone=function(t,n){var i,r,o=new e,a=this._chunks,s=t&&Y(t,function(e,t){return e[t]=!0,e},{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(i=a[l],r=void 0,(r=i.constructor)===Array?i.slice():new r(i)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=N(this._extent),e._rawExtent=N(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,i){return Op(e[i],this._dimensions[i])}Xp={arrayRows:e,objectRows:function(e,t,n,i){return Op(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return Op(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}(),aA=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,i=this._getUpstreamSourceManagers(),r=!!i.length;if(lA(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,t=[u._getVersionSign()]}else s=le(a=o.get("data",!0))?af:tf,t=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=Ae(c.seriesLayoutBy,h.seriesLayoutBy)||null,f=Ae(c.sourceHeader,h.sourceHeader)||null,p=Ae(c.dimensions,h.dimensions);e=d!==h.seriesLayoutBy||!!f!=!!h.sourceHeader||p?[hp(a,{seriesLayoutBy:d,sourceHeader:f,dimensions:p},s)]:[]}else{var A=n;if(r){var g=this._applyTransform(i);e=g.sourceList,t=g.upstreamSignList}else{e=[hp(A.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==e.length&&uA(o)}var a,s=[],l=[];return W(e,function(e){e.prepareSource();var t=e.getSource(r||0),n="";null==r||t||uA(n),s.push(t),l.push(e._getVersionSign())}),i?t=function(e,t,n){var i=Kr(e),r=i.length,o="";r||$r(o);for(var a=0,s=r;a<s;a++)t=Yp(i[a],t),a!==s-1&&(t.length=Math.max(t.length,1));return t}(i,s,n.componentIndex):null!=r&&(t=[(a=s[0],new up({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:N(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},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 i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];lA(this._sourceHost)&&a?o=a._innerGetDataStore(e,t,n):(o=new oA).initData(new vp(t,e.length),e),r[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(lA(e)){var t=pf(e);return t?[t.getSourceManager()]:[]}return K(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?fo(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},co).models:[]}(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,i=this._sourceHost;if(lA(i))e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function sA(e){e.option.transform&&we(e.option.transform)}function lA(e){return"series"===e.mainType}function uA(e){throw new Error(e)}var cA="line-height:1";function hA(e,t){var n=e.color||"#6e7079",i=e.fontSize||12,r=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+Bd(i+"")+"px;color:"+Bd(n)+";font-weight:"+Bd(r+""),valueStyle:"font-size:"+Bd(a+"")+"px;color:"+Bd(o)+";font-weight:"+Bd(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var dA=[0,10,20,30],fA=["","\n","\n\n","\n\n\n"];function pA(e,t){return t.type=e,t}function AA(e){return Te(gA,e.type)&&gA[e.type]}var gA={section:{planLayout:function(e){var t=e.blocks.length,n=t>1||t>0&&!e.noHeader,i=0;W(e.blocks,function(e){AA(e).planLayout(e);var t=e.__gapLevelBetweenSubBlocks;t>=i&&(i=t+(!n||t&&("section"!==e.type||e.noHeader)?0:1))}),e.__gapLevelBetweenSubBlocks=i},build:function(e,t,n,i){var r=t.noHeader,o=mA(t),a=function(e,t,n,i){var r=[],o=t.blocks||[];ye(!o||te(o)),o=o||[];var a=e.orderMode;if(t.sortBlocks&&a){o=o.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(Te(s,a)){var l=new Qp(s[a],null);o.sort(function(e,t){return l.evaluate(e.sortParam,t.sortParam)})}else"seriesDesc"===a&&o.reverse()}var u=mA(t);if(W(o,function(t,n){var o=AA(t).build(e,t,n>0?u.html:0,i);null!=o&&r.push(o)}),!r.length)return;return"richText"===e.renderMode?r.join(u.richText):yA(r.join(""),n)}(e,t,r?n:o.html,i);if(r)return a;var s=Td(t.header,"ordinal",e.useUTC),l=hA(i,e.renderMode).nameStyle;return"richText"===e.renderMode?_A(e,s,l)+o.richText+a:yA('<div style="'+l+";"+cA+';">'+Bd(s)+"</div>"+a,n)}},nameValue:{planLayout:function(e){e.__gapLevelBetweenSubBlocks=0},build:function(e,t,n,i){var r=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=t.value,c=e.useUTC;if(!o||!a){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),d=o?"":Td(l,"ordinal",c),f=t.valueType,p=a?[]:te(u)?K(u,function(e,t){return Td(e,te(f)?f[t]:f,c)}):[Td(u,te(f)?f[0]:f,c)],A=!s||!o,g=!s&&o,v=hA(i,r),m=v.nameStyle,y=v.valueStyle;return"richText"===r?(s?"":h)+(o?"":_A(e,d,m))+(a?"":function(e,t,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(t.join(" "),o)}(e,p,A,g,y)):yA((s?"":h)+(o?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+Bd(e)+"</span>"}(d,!s,m))+(a?"":function(e,t,n,i){return'<span style="'+(t?"float:right;margin-left:"+(n?"10px":"20px"):"")+";"+i+'">'+K(e,function(e){return Bd(e)}).join("&nbsp;&nbsp;")+"</span>"}(p,A,g,y)),n)}}}};function vA(e,t,n,i,r,o){if(e){var a=AA(e);a.planLayout(e);var s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t};return a.build(s,e,0,o)}}function mA(e){var t=e.__gapLevelBetweenSubBlocks;return{html:dA[t],richText:fA[t]}}function yA(e,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+cA+';">'+e+'<div style="clear:both"></div></div>'}function _A(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function bA(e,t){return Od(e.getData().getItemVisual(t,"style")[e.visualDrawType])}function wA(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var xA=function(){function e(){this.richTextStyles={},this._nextStyleNameId=jr()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,r=Dd({color:t,type:e,renderMode:n,markerId:i});return ie(r)?r:(this.richTextStyles[i]=r.style,r.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};te(t)?W(t,function(e){return Q(n,e)}):Q(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}();function CA(e){var t,n,i,r,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=te(h),f=bA(o,a);if(c>1||d&&!c){var p=function(e,t,n,i,r){var o=t.getData(),a=Y(e,function(e,t,n){var i=o.getDimensionInfo(n);return e=e||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(pA("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return i.length?W(i,function(e){c(Tp(o,n,e),e)}):W(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,f);t=p.inlineValues,n=p.inlineValueTypes,i=p.blocks,r=p.inlineValues[0]}else if(c){var A=l.getDimensionInfo(u[0]);r=t=Tp(l,a,u[0]),n=A.type}else r=t=d?h[0]:h;var g=io(o),v=g&&o.name||"",m=l.getName(a),y=s?v:m;return pA("section",{header:v,noHeader:s||!g,sortParam:r,blocks:[pA("nameValue",{markerType:"item",markerColor:f,name:y,noName:!_e(y),value:t,valueType:n})].concat(i||[])})}var SA=ao();function kA(e,t){return e.getName(t)||e.getId(t)}var BA="__universalTransitionEnabled",TA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return g(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Dp({count:IA,reset:MA}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(SA(this).sourceManager=new aA(this)).prepareSource();var i=this.getInitialData(e,n);PA(i,this),this.dataTask.context.data=i,SA(this).dataBeforeProcessed=i,EA(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=zd(this),i=n?Gd(e):{},r=this.subType;qd.hasClass(r)&&(r+="Series"),R(e,t.getTheme().get(this.subType)),R(e,this.getDefaultOption()),Yr(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&$d(e,i,n)},t.prototype.mergeOption=function(e,t){e=R(this.option,e,!0),this.fillDataTextStyle(e.data);var n=zd(this);n&&$d(this.option,e,n);var i=SA(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(e,t);PA(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,SA(this).dataBeforeProcessed=r,EA(this),this._initSelectedMapFromData(r)},t.prototype.fillDataTextStyle=function(e){if(e&&!le(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Yr(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=OA(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return SA(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=OA(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}SA(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Se(e)},t.prototype.getSourceManager=function(){return SA(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return SA(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 CA({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){if(_.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=xf.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},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)for(var i=this.getData(t),r=0;r<e.length;r++){var o=kA(i,e[r]);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(){for(var e=this._selectedDataIndicesMap,t=J(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;return n&&n[kA(this.getData(t),e)]||!1},t.prototype.isUniversalTransitionEnabled=function(){if(this[BA])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,r=this.option.selectedMode,o=t.length;if(r&&o)if("multiple"===r)for(var a=this.option.selectedMap||(this.option.selectedMap={}),s=0;s<o;s++){var l=t[s];a[c=kA(e,l)]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(l)}else if("single"===r||!0===r){var u=t[o-1],c=kA(e,u);this.option.selectedMap=((n={})[c]=!0,n),this._selectedDataIndicesMap=((i={})[c]=e.getRawIndex(u),i)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return qd.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}(qd);function EA(e){var t=e.name;io(e)||(e.name=function(e){var t=e.getRawData(),n=[];return W(t.mapDimensionsAll("seriesName"),function(e){var i=t.getDimensionInfo(e);i.displayName&&n.push(i.displayName)}),n.join(" ")}(e)||t)}function IA(e){return e.model.getRawData().count()}function MA(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),DA}function DA(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function PA(e,t){W(ke(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ee(FA,t))})}function FA(e,t){var n=OA(e);return n&&n.setOutputEnd((t||this).count()),t}function OA(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}$(TA,Ip),$(TA,xf),wo(TA,qd);var LA=TA,NA=function(){function e(){this.group=new lr,this.uid=Nh("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.blurSeries=function(e,t){},e}();bo(NA),ko(NA);var RA=NA;function UA(){var e=ao();return function(t){var n=e(t),i=t.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var QA=ao(),HA=UA(),jA=function(){function e(){this.group=new lr,this.uid=Nh("viewChart"),this.renderTask=Dp({plan:$A,reset:GA}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.highlight=function(e,t,n,i){zA(e.getData(),i,"emphasis")},e.prototype.downplay=function(e,t,n,i){zA(e.getData(),i,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},e.markUpdateMethod=function(e,t){QA(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function VA(e,t,n){e&&("emphasis"===t?Ol:Ll)(e,n)}function zA(e,t,n){var i=oo(e,t),r=t&&null!=t.highlightKey?function(e){var t=rl[e];return null==t&&il<=32&&(t=rl[e]=il++),t}(t.highlightKey):null;null!=i?W(Kr(i),function(t){VA(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(e){VA(e,n,r)})}function $A(e){return HA(e.model)}function GA(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=r&&QA(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,i,r),WA[l]}bo(jA),ko(jA);var WA={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)}}},KA=jA,YA="\0__throttleOriginMethod",qA="\0__throttleRate",XA="\0__throttleType";function JA(e,t,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];i=(new Date).getTime(),o=this,a=e;var f=s||t,p=s||n;s=null,r=i-(p?l:u)-f,clearTimeout(c),p?c=setTimeout(h,f):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(e){s=e},d}function ZA(e,t,n,i){var r=e[t];if(r){var o=r[YA]||r,a=r[XA];if(r[qA]!==n||a!==i){if(null==n||!i)return e[t]=o;(r=e[t]=JA(o,n,"debounce"===i))[YA]=o,r[XA]=i,r[qA]=n}return r}}var eg=ao(),tg={itemStyle:Bo(Mh,!0),lineStyle:Bo(Th,!0)},ng={lineStyle:"stroke",itemStyle:"fill"};function ig(e,t){var n=e.visualStyleMapper||tg[t];return n||(console.warn("Unkown style type '"+t+"'."),tg.itemStyle)}function rg(e,t){var n=e.visualDrawType||ng[t];return n||(console.warn("Unkown style type '"+t+"'."),"fill")}var og={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),o=ig(e,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=rg(e,i),l=o[s],u=ne(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||"function"==typeof o.fill?h:o.fill,o.stroke="auto"===o.stroke||"function"==typeof o.stroke?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=Q({},o);r[s]=u(i),t.setItemVisual(n,"style",r)}}}},ag=new Oh,sg={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=ig(e,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){ag.option=n[i];var a=r(ag);Q(e.ensureUniqueItemVisual(t,"style"),a),ag.option.decal&&(e.setItemVisual(t,"decal",ag.option.decal),ag.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},lg={performRawSeries:!0,overallReset:function(e){var t=Se();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),eg(e).scope=r}}),e.eachSeries(function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=eg(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=rg(t,a);r.each(function(e){var t=r.getRawIndex(e);i[t]=e}),n.each(function(e){var a=i[e];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,o,c)}})}})}},ug=Math.PI;var cg=function(){function e(e,t,n,i){this._stageTaskMap=Se(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}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),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData().count(),r=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,o=e.get("large")&&i>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Se();e.eachSeries(function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;W(this._allHandlers,function(i){var r=e.get(i.uid)||e.set(i.uid,{}),o="";ye(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)},this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,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,i){i=i||{};var r=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}W(e,function(e,s){if(!i.visualType||i.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(e){a(i,e)&&(e.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,i.block);d.each(function(e){e.perform(f)}),c.perform(f)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||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,i){var r=this,o=t.seriesTaskMap,a=t.seriesTaskMap=Se(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||Dp({plan:Ag,reset:gg,count:yg}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,o=t.overallTask=t.overallTask||Dp({reset:hg});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Se(),l=e.seriesType,u=e.getTargetSeries,c=!0,h=!1,d="";function f(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(h=!0,Dp({reset:dg,onDirty:pg})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,r._pipe(e,n)}ye(!e.createOnAllSeries,d),l?n.eachRawSeriesByType(l,f):u?u(n,i).each(f):(c=!1,W(n.getSeries(),f)),h&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return ne(e)&&(e={overallReset:e,seriesType:function(e){_g=null;try{e(bg,wg)}catch(e){}return _g}(e)}),e.uid=Nh("stageHandler"),t&&(e.visualType=t),e},e}();function hg(e){e.overallReset(e.ecModel,e.api,e.payload)}function dg(e){return e.overallProgress&&fg}function fg(){this.agent.dirty(),this.getDownstream().dirty()}function pg(){this.agent&&this.agent.dirty()}function Ag(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function gg(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?K(t,function(e,t){return mg(t)}):vg}var vg=mg(0);function mg(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function yg(e){return e.data.count()}var _g,bg={},wg={};function xg(e,t){for(var n in t.prototype)e[n]=Ee}xg(bg,If),xg(wg,Df),bg.eachSeriesByType=bg.eachRawSeriesByType=function(e){_g=e},bg.eachComponent=function(e){"series"===e.mainType&&e.subType&&(_g=e.subType)};var Cg=cg,Sg=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],kg={color:Sg,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Sg]},Bg=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Tg={darkMode:!0,color:Bg,backgroundColor:"#100C2A",axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:"#B9B8CE"}},textStyle:{color:"#B9B8CE"},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:"#B9B8CE"}},dataZoom:{borderColor:"#71708A",textStyle:{color:"#B9B8CE"},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:"#B9B8CE"}},timeline:{lineStyle:{color:"#B9B8CE"},label:{color:"#B9B8CE"},controlStyle:{color:"#B9B8CE",borderColor:"#B9B8CE"}},calendar:{itemStyle:{color:"#100C2A"},dayLabel:{color:"#B9B8CE"},monthLabel:{color:"#B9B8CE"},yearLabel:{color:"#B9B8CE"}},timeAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},logAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},valueAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},categoryAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},line:{symbol:"circle"},graph:{color:Bg},gauge:{title:{color:"#B9B8CE"},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:"#B9B8CE"},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Tg.categoryAxis.splitLine.show=!1;var Eg=Tg,Ig=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},i={};if(ie(e)){var r=_o(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};W(e,function(e,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(t.mainType=h,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(r)&&(n[r]=e,s=!0),s||(i[r]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,r));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Mg={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){var i=e.get("symbol"),r=e.get("symbolSize"),o=e.get("symbolKeepAspect"),a=e.get("symbolRotate"),s=e.get("symbolOffset"),l=ne(i),u=ne(r),c=ne(a),h=ne(s),d=l||u||c||h,f=!l&&i?i:e.defaultSymbol,p=u?null:r,A=c?null:a,g=h?null:s;if(n.setVisual({legendIcon:e.legendIcon||f,symbol:f,symbolSize:p,symbolKeepAspect:o,symbolRotate:A,symbolOffset:g}),!t.isSeriesFiltered(e))return{dataEach:d?function(t,n){var o=e.getRawValue(n),d=e.getDataParams(n);l&&t.setItemVisual(n,"symbol",i(o,d)),u&&t.setItemVisual(n,"symbolSize",r(o,d)),c&&t.setItemVisual(n,"symbolRotate",a(o,d)),h&&t.setItemVisual(n,"symbolOffset",s(o,d))}:null}}}};function Dg(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function Pg(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function Fg(e,t,n,i){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,i);break;default:0}}function Og(e,t){W([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(t,i,r){t=Q({},t),r.dispatchAction(Q(t,{type:n[1],seriesIndex:function(t,n){var i=[];return t.eachComponent({mainType:"series",subType:e,query:n},function(e){i.push(e.seriesIndex)}),i}(i,t)}))})})}function Lg(e,t,n,i,r){var o=e+t;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(e){for(var t=e.seriesIndex,i=r.selected,a=0;a<i.length;a++)if(i[a].seriesIndex===t){var s=e.getData(),l=oo(s,r.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:te(l)?s.getName(l[0]):s.getName(l),selected:Q({},e.option.selectedMap)})}})}function Ng(e,t,n){for(var i;e&&(!t(e)||(i=e,!n));)e=e.__hostTarget||e.parent;return i}var Rg=Math.round(9*Math.random()),Ug="function"==typeof Object.defineProperty,Qg=function(){function e(){this._id="__ec_inner_"+Rg++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Ug?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}(),Hg=Bs.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i+o),e.lineTo(n-r,i+o),e.closePath()}}),jg=Bs.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i),e.lineTo(n,i+o),e.lineTo(n-r,i),e.closePath()}}),Vg=Bs.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-h*f,l+s+d*f,n,i-p,n,i),e.bezierCurveTo(n,i-p,n-c+h*f,l+s+d*f,n-c,l+s),e.closePath()}}),zg=Bs.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;e.moveTo(r,o),e.lineTo(r+a,o+n),e.lineTo(r,o+n/4*3),e.lineTo(r-a,o+n),e.lineTo(r,o),e.closePath()}}),$g={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var o=Math.min(n,i);r.x=e,r.y=t,r.width=o,r.height=o},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},Gg={};W({line:rc,rect:js,roundRect:js,square:js,circle:Cu,diamond:jg,pin:Vg,arrow:zg,triangle:Hg},function(e,t){Gg[t]=new e});var Wg=Bs.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=Xi(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=Gg[i];r||(r=Gg[i="rect"]),$g[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function Kg(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 Yg(e,t,n,i,r,o,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?Vc(e.slice(8),new Qi(t,n,i,r),a?"center":"cover"):0===e.indexOf("path://")?jc(e.slice(7),{},new Qi(t,n,i,r),a?"center":"cover"):new Wg({shape:{symbolType:e,x:t,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=Kg,o&&s.setColor(o),s}function qg(e){return te(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Xg(e,t){if(null!=e)return te(e)||(e=[e,e]),[wr(e[0],t[0])||0,wr(Ae(e[1],e[0]),t[1])||0]}function Jg(e,t,n){for(var i="radial"===t.type?function(e,t,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*i+n.x,s=s*r+n.y,l*=o),e.createRadialGradient(a,s,0,a,s,l)}(e,t,n):function(e,t,n){var i=null==t.x?0:t.x,r=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a,e.createLinearGradient(i,o,r,a)}(e,t,n),r=t.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function Zg(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function ev(e,t){return e&&"solid"!==e&&t>0?(t=t||1,"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:oe(e)?[e]:te(e)?e:null):null}var tv=new as(!0);function nv(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function iv(e){return"string"==typeof e&&"none"!==e}function rv(e){var t=e.fill;return null!=t&&"none"!==t}function ov(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function av(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function sv(e,t,n){var i=Do(t.image,t.__image,n);if(Fo(i)){var r=e.createPattern(i,t.repeat||"repeat");if("function"==typeof DOMMatrix&&r.setTransform){var o=new DOMMatrix;o.rotateSelf(0,0,(t.rotation||0)/Math.PI*180),o.scaleSelf(t.scaleX||1,t.scaleY||1),o.translateSelf(t.x||0,t.y||0),r.setTransform(o)}return r}}var lv=["shadowBlur","shadowOffsetX","shadowOffsetY"],uv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function cv(e,t,n,i,r){var o=!1;if(!i&&t===(n=n||{}))return!1;if(i||t.opacity!==n.opacity){o||(vv(e,r),o=!0);var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Ko.opacity:a}(i||t.blend!==n.blend)&&(o||(vv(e,r),o=!0),e.globalCompositeOperation=t.blend||Ko.blend);for(var s=0;s<lv.length;s++){var l=lv[s];(i||t[l]!==n[l])&&(o||(vv(e,r),o=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==n.shadowColor)&&(o||(vv(e,r),o=!0),e.shadowColor=t.shadowColor||Ko.shadowColor),o}function hv(e,t,n,i,r){var o=mv(t,r.inHover),a=i?null:n&&mv(n,r.inHover)||{};if(o===a)return!1;var s=cv(e,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(vv(e,r),s=!0),iv(o.fill)&&(e.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(vv(e,r),s=!0),iv(o.stroke)&&(e.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(vv(e,r),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(vv(e,r),s=!0),e.lineWidth=l)}for(var u=0;u<uv.length;u++){var c=uv[u],h=c[0];(i||o[h]!==a[h])&&(s||(vv(e,r),s=!0),e[h]=o[h]||c[1])}return s}function dv(e,t){var n=t.transform,i=e.dpr||1;n?e.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):e.setTransform(i,0,0,i,0,0)}var fv=1,pv=2,Av=3,gv=4;function vv(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function mv(e,t){return t&&e.__hoverStyle||e.style}function yv(e,t){_v(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function _v(e,t,n,i){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~Vt,void(t.__isRendered=!1);var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!Zg(o,a)||(a&&a.length&&(vv(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(vv(e,n),e.save(),function(e,t,n){for(var i=!1,r=0;r<e.length;r++){var o=e[r];i=i||o.isZeroArea(),dv(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=i}(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,h,d=t instanceof Bs&&t.autoBatch&&function(e){var t=rv(e),n=nv(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(c=r,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(vv(e,n),dv(e,t)):d||vv(e,n);var f=mv(t,n.inHover);t instanceof Bs?(n.lastDrawType!==fv&&(l=!0,n.lastDrawType=fv),hv(e,t,u,l,n),d&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,i){var r=nv(n),o=rv(n),a=n.strokePercent,s=a<1,l=!t.path;t.silent&&!s||!l||t.createPathProxy();var u=t.path||tv;if(!i){var c=n.fill,h=n.stroke,d=o&&!!c.colorStops,f=r&&!!h.colorStops,p=o&&!!c.image,A=r&&!!h.image,g=void 0,v=void 0,m=void 0,y=void 0,_=void 0;(d||f)&&(_=t.getBoundingRect()),d&&(g=t.__dirty?Jg(e,c,_):t.__canvasFillGradient,t.__canvasFillGradient=g),f&&(v=t.__dirty?Jg(e,h,_):t.__canvasStrokeGradient,t.__canvasStrokeGradient=v),p&&(m=t.__dirty||!t.__canvasFillPattern?sv(e,c,t):t.__canvasFillPattern,t.__canvasFillPattern=m),A&&(y=t.__dirty||!t.__canvasStrokePattern?sv(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=m),d?e.fillStyle=g:p&&(m?e.fillStyle=m:o=!1),f?e.strokeStyle=v:A&&(y?e.strokeStyle=y:r=!1)}var b=n.lineDash&&n.lineWidth>0&&ev(n.lineDash,n.lineWidth),w=n.lineDashOffset,x=!!e.setLineDash,C=t.getGlobalScale();if(u.setScale(C[0],C[1],t.segmentIgnoreThreshold),b){var S=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;S&&1!==S&&(b=K(b,function(e){return e/S}),w/=S)}var k=!0;(l||t.__dirty&zt||b&&!x&&r)&&(u.setDPR(e.dpr),s?u.setContext(null):(u.setContext(e),k=!1),u.reset(),b&&!x&&(u.setLineDash(b),u.setLineDashOffset(w)),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),k&&u.rebuildPath(e,s?a:1),b&&x&&(e.setLineDash(b),e.lineDashOffset=w),i||(n.strokeFirst?(r&&av(e,n),o&&ov(e,n)):(o&&ov(e,n),r&&av(e,n))),b&&x&&e.setLineDash([])}(e,t,f,d),d&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof Is?(n.lastDrawType!==Av&&(l=!0,n.lastDrawType=Av),hv(e,t,u,l,n),function(e,t,n){var i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||ji,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var r=void 0;if(e.setLineDash){var o=n.lineDash&&n.lineWidth>0&&ev(n.lineDash,n.lineWidth),a=n.lineDashOffset;if(o){var s=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(o=K(o,function(e){return e/s}),a/=s),e.setLineDash(o),e.lineDashOffset=a,r=!0}}n.strokeFirst?(nv(n)&&e.strokeText(i,n.x,n.y),rv(n)&&e.fillText(i,n.x,n.y)):(rv(n)&&e.fillText(i,n.x,n.y),nv(n)&&e.strokeText(i,n.x,n.y)),r&&e.setLineDash([])}}(e,t,f)):t instanceof Fs?(n.lastDrawType!==pv&&(l=!0,n.lastDrawType=pv),function(e,t,n,i,r){cv(e,mv(t,r.inHover),n&&mv(n,r.inHover),i,r)}(e,t,u,l,n),function(e,t,n){var i=t.__image=Do(n.image,t.__image,t,t.onload);if(i&&Fo(i)){var r=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),d=s-(c=n.sy);e.drawImage(i,u,c,h,d,r,o,a,s)}else e.drawImage(i,r,o,a,s)}}(e,t,f)):t instanceof xc&&(n.lastDrawType!==gv&&(l=!0,n.lastDrawType=gv),function(e,t,n){var i=t.getDisplayables(),r=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=i.length;o<a;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),_v(e,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=r.length;u<c;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),_v(e,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),d&&i&&vv(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var bv,wv=new Qg,xv=new tn(100),Cv=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Sv(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),i=t.getZr(),r="svg"===i.painter.type;e.dirty&&wv.delete(e);var o=wv.get(e);if(o)return o;var a=H(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"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,o=[n],s=!0,l=0;l<Cv.length;++l){var u=a[Cv[l]],c=typeof u;if(null!=u&&!te(u)&&"string"!==c&&"number"!==c&&"boolean"!==c){s=!1;break}o.push(u)}if(s){t=o.join(",")+(r?"-svg":"");var h=xv.get(t);h&&(r?e.svgElement=h:e.image=h)}var d,f=function e(t){if(!t||0===t.length)return[[0,0]];if("number"==typeof t){var n=Math.ceil(t);return[[n,n]]}var i=!0;for(var r=0;r<t.length;++r)if("number"!=typeof t[r]){i=!1;break}if(i)return e([t]);var o=[];for(var r=0;r<t.length;++r)if("number"==typeof t[r]){var n=Math.ceil(t[r]);o.push([n,n])}else{var n=K(t[r],function(e){return Math.ceil(e)});n.length%2==1?o.push(n.concat(n)):o.push(n)}return o}(a.dashArrayX),p=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if("number"==typeof e){var t=Math.ceil(e);return[t,t]}var n=K(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(a.dashArrayY),A=function e(t){if(!t||0===t.length)return[["rect"]];if("string"==typeof t)return[[t]];var n=!0;for(var i=0;i<t.length;++i)if("string"!=typeof t[i]){n=!1;break}if(n)return e([t]);var r=[];for(var i=0;i<t.length;++i)"string"==typeof t[i]?r.push([t[i]]):r.push(t[i]);return r}(a.symbol),g=(b=f,K(b,function(e){return kv(e)})),v=kv(p),m=!r&&j(),y=r&&i.painter.createSVGElement("g"),_=function(){for(var e=1,t=0,n=g.length;t<n;++t)e=Vr(e,g[t]);for(var i=1,t=0,n=A.length;t<n;++t)i=Vr(i,A[t].length);e*=i;var r=v*g.length*A.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();var b;m&&(m.width=_.width*n,m.height=_.height*n,d=m.getContext("2d"));(function(){d&&(d.clearRect(0,0,m.width,m.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,m.width,m.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(!(e<=0))for(var o=-v,s=0,l=0,u=0;o<_.height;){if(s%2==0){for(var c=l/2%A.length,h=0,g=0,b=0;h<2*_.width;){for(var w=0,t=0;t<f[u].length;++t)w+=f[u][t];if(w<=0)break;if(g%2==0){var x=.5*(1-a.symbolSize),C=h+f[u][g]*x,S=o+p[s]*x,k=f[u][g]*a.symbolSize,B=p[s]*a.symbolSize,T=b/2%A[c].length;E(C,S,k,B,A[c][T])}h+=f[u][g],++b,++g===f[u].length&&(g=0)}++u===f.length&&(u=0)}o+=p[s],++l,++s===p.length&&(s=0)}function E(e,t,o,s,l){var u=r?1:n,c=Yg(l,e*u,t*u,o*u,s*u,a.color,a.symbolKeepAspect);r?y.appendChild(i.painter.paintOne(c)):yv(d,c)}})(),s&&xv.put(t,m||y);e.image=m,e.svgElement=y,e.svgWidth=_.width,e.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,wv.set(e,s),e.dirty=!1,s}function kv(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}function Bv(e){ie(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var Tv={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"},Ev=J(Tv),Iv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Mv=J(Iv),Dv=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=Bv(e);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var i=new lr;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),Rv(n,i,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i[0].style[i[1]]=e[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=jv(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=Wv(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var d=i;(i=new lr).add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return t.ignoreRootClip||null==a||null==s||i.setClipPath(new js({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},e.prototype._parseNode=function(e,t,n,i,r,o){var a,s=e.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!r){var u=bv[s];if(u&&Te(bv,s)){a=u.call(this,e,t);var c=e.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});t.add(a)}}var d=Pv[s];if(d&&Te(Pv,s)){var f=d.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=f)}}if(a&&a.isGroup)for(var A=e.firstChild;A;)1===A.nodeType?this._parseNode(A,a,n,l,r,o):3===A.nodeType&&o&&this._parseText(A,a),A=A.nextSibling},e.prototype._parseText=function(e,t){var n=new Is({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Lv(t,n),Rv(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",e.style.textBaseline=r}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}(n,t);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=void(bv={g:function(e,t){var n=new lr;return Lv(t,n),Rv(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new js;return Lv(t,n),Rv(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},circle:function(e,t){var n=new Cu;return Lv(t,n),Rv(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new rc;return Lv(t,n),Rv(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},ellipse:function(e,t){var n=new Bu;return Lv(t,n),Rv(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=Nv(i));var r=new Xu({shape:{points:n||[]},silent:!0});return Lv(t,r),Rv(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=Nv(i));var r=new ec({shape:{points:n||[]},silent:!0});return Lv(t,r),Rv(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var n=new Fs;return Lv(t,n),Rv(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new lr;return Lv(t,a),Rv(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new lr;return Lv(t,a),Rv(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(e,t){var n=_u(e.getAttribute("d")||"");return Lv(t,n),Rv(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),e}(),Pv={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),r=parseInt(e.getAttribute("y2")||"0",10),o=new Ac(t,n,i,r);return Fv(e,o),Ov(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),r=new gc(t,n,i);return Fv(e,r),Ov(e,r),r}};function Fv(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function Ov(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};Gv(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function Lv(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),H(t.__inheritedStyle,e.__inheritedStyle))}function Nv(e){for(var t=jv(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 Rv(e,t,n,i,r){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){var i=[],r=null;(n=n.replace(/,/g," ")).replace(Vv,function(e,t,n){return i.push(t,n),""});for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=jv(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":pi(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":gi(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ai(r,r,-parseFloat(l[0])*zv);break;case"skewX":var u=Math.tan(parseFloat(l[0])*zv);fi(r,[1,0,u,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*zv);fi(r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}t.setLocalTransform(r)}}(e,t),Gv(e,a,s),i||function(e,t,n){for(var i=0;i<Ev.length;i++){var r=Ev[i],o=e.getAttribute(r);null!=o&&(t[Tv[r]]=o)}for(var i=0;i<Mv.length;i++){var r=Mv[i],o=e.getAttribute(r);null!=o&&(n[Iv[r]]=o)}}(e,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=Qv(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=Qv(o,"stroke",a.stroke,n)),W(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(e){null!=a[e]&&(o.style[e]=parseFloat(a[e]))}),W(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(e){null!=a[e]&&(o.style[e]=a[e])}),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=K(jv(a.lineDash),function(e){return parseFloat(e)})),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var Uv=/^url\(\s*#(.*?)\)/;function Qv(e,t,n,i){var r=n&&n.match(Uv);if(!r)return"none"===n&&(n=null),n;var o=_e(r[1]);i.push([e,t,o])}var Hv=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function jv(e){return e.match(Hv)||[]}var Vv=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,zv=Math.PI/180;var $v=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Gv(e,t,n){var i,r=e.getAttribute("style");if(r)for($v.lastIndex=0;null!=(i=$v.exec(r));){var o=i[1],a=Te(Tv,o)?Tv[o]:null;a&&(t[a]=i[2]);var s=Te(Iv,o)?Iv[o]:null;s&&(n[s]=i[2])}}function Wv(e,t){var n=t.width/e.width,i=t.height/e.height,r=Math.min(n,i);return{scale:r,x:-(e.x+e.width/2)*r+(t.x+t.width/2),y:-(e.y+e.height/2)*r+(t.y+t.height/2)}}var Kv=1e-8;function Yv(e,t){return Math.abs(e-t)<Kv}function qv(e,t,n){var i=0,r=e[0];if(!r)return!1;for(var o=1;o<e.length;o++){var a=e[o];i+=ps(r[0],r[1],a[0],a[1],t,n),r=a}var s=e[0];return Yv(r[0],s[0])&&Yv(r[1],s[1])||(i+=ps(r[0],r[1],s[0],s[1],t,n)),0!==i}var Xv=[],Jv=function(){function e(e){this.name=e}return e.prototype.getCenter=function(){},e}(),Zv=function(e){function t(t,n,i){var r=e.call(this,t)||this;if(r.type="geoJSON",r.geometries=n,i)i=[i[0],i[1]];else{var o=r.getBoundingRect();i=[o.x+o.width/2,o.y+o.height/2]}return r._center=i,r}return g(t,e),t.prototype.getBoundingRect=function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,n=[t,t],i=[-t,-t],r=[],o=[],a=this.geometries,s=0;s<a.length;s++){if("polygon"===a[s].type)Fa(a[s].exterior,r,o),tt(n,n,r),nt(i,i,o)}return 0===s&&(n[0]=n[1]=i[0]=i[1]=0),this._rect=new Qi(n[0],n[1],i[0]-n[0],i[1]-n[1])},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i<r;i++)if("polygon"===n[i].type){var o=n[i].exterior,a=n[i].interiors;if(qv(o,e[0],e[1])){for(var s=0;s<(a?a.length:0);s++)if(qv(a[s],e[0],e[1]))continue e;return!0}}return!1},t.prototype.transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new Qi(e,t,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var c=l[u].exterior,h=l[u].interiors,d=0;d<c.length;d++)et(c[d],c[d],s);for(var f=0;f<(h?h.length:0);f++)for(d=0;d<h[f].length;d++)et(h[f][d],h[f][d],s)}(r=this._rect).copy(a),this._center=[r.x+r.width/2,r.y+r.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.prototype.getCenter=function(){return this._center},t.prototype.setCenter=function(e){this._center=e},t}(Jv),em=function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return g(t,e),t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this._calculateCenter()),e},t.prototype._calculateCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=hi(Xv),r=e;r&&!r.isGeoSVGGraphicRoot;)fi(i,r.getLocalTransform(),i),r=r.parent;return vi(i,i),et(n,n,i),n},t}(Jv),tm=Se(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),nm=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=Se(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Bv(t)}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=Se();return W(e,function(e){if(null==e.namedFrom){var i=new em(e.name,e.el);t.push(i),n.set(e.name,i)}}),{regions:t,regionsMap:n}}(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n,i,r;try{ye(null!=(n=(t=e&&(i=e,r={ignoreViewBox:!0,ignoreRootClip:!0},(new Dv).parse(i,r))||{}).root))}catch(e){throw new Error("Invalid svg format\n"+e.message)}var o=new lr;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=t.width,s=t.height,l=t.viewBoxRect,u=this._boundingRect;if(!u){var c=void 0,h=void 0,d=void 0,f=void 0;if(null!=a?(c=0,d=a):l&&(c=l.x,d=l.width),null!=s?(h=0,f=s):l&&(h=l.y,f=l.height),null==c||null==h){var p=n.getBoundingRect();null==c&&(c=p.x,d=p.width),null==h&&(h=p.y,f=p.height)}u=this._boundingRect=new Qi(c,h,d,f)}if(l){var A=Wv(l,u);n.scaleX=n.scaleY=A.scale,n.x=A.x,n.y=A.y}o.setClipPath(new js({shape:u.plain()}));var g=[];return W(t.named,function(e){var t;null!=tm.get(e.svgNodeTagLower)&&(g.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1}))}),{root:o,boundingRect:u,named:g}},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 im(e,t,n){for(var i=[],r=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function rm(e,t){return K(q((e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);for(var i=t.features,r=0;r<i.length;r++){var o=i[r].geometry;if("Polygon"===o.type)for(var a=o.coordinates,s=0;s<a.length;s++)a[s]=im(a[s],o.encodeOffsets[s],n);else if("MultiPolygon"===o.type)for(a=o.coordinates,s=0;s<a.length;s++)for(var l=a[s],u=0;u<l.length;u++)l[u]=im(l[u],o.encodeOffsets[s][u],n)}return t.UTF8Encoding=!1,t}(e)).features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,r=[];if("Polygon"===i.type){var o=i.coordinates;r.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}"MultiPolygon"===i.type&&W(o=i.coordinates,function(e){e[0]&&r.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})});var a=new Zv(n[t||"name"],r,n.cp);return a.properties=n,a})}for(var om=[126,25],am="南海诸岛",sm=[[[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]]],lm=0;lm<sm.length;lm++)for(var um=0;um<sm[lm].length;um++)sm[lm][um][0]/=10.5,sm[lm][um][1]/=-14,sm[lm][um][0]+=om[0],sm[lm][um][1]+=om[1];var cm={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var hm={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};var dm=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var fm=function(){function e(e,t,n){var i;this.type="geoJSON",this._parsedMap=Se(),this._mapName=e,this._specialAreas=n,this._geoJSON=ie(i=t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:function(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();(t=t||i.clone()).union(i)}return t}(i)})}var r=Se(),o=[];return W(n.regions,function(t){var n=t.name;e&&e.hasOwnProperty(n)&&(t=t.cloneShallow(n=e[n])),o.push(t),r.set(n,t)}),{regions:o,boundingRect:n.boundingRect||new Qi(0,0,0,0),regionsMap:r}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?rm(i,e):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return function(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===am)return;t.push(new Zv(am,K(sm,function(e){return{type:"polygon",exterior:e}}),om))}}(n,t),W(t,function(e){var t=e.name;!function(e,t){if("china"===e){var n=cm[t.name];if(n){var i=t.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,t.setCenter(i)}}}(n,e),function(e,t){if("world"===e){var n=hm[t.name];if(n){var i=[n[0],n[1]];t.setCenter(i)}}}(n,e),function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:dm[0]})}(n,e);var i=this._specialAreas&&this._specialAreas[t];i&&e.transformTo(i.left,i.top,i.width,i.height)},this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();var pm=Se(),Am={registerMap:function(e,t,n){if(t.svg){var i=new nm(e,t.svg);pm.set(e,i)}else{var r=t.geoJson||t.geoJSON;r&&!t.features?n=t.specialAreas:r=t;i=new fm(e,r,n);pm.set(e,i)}},getGeoResource:function(e){return pm.get(e)},getMapForUser:function(e){var t=pm.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var i=pm.get(e);if(i)return i.load(t,n)}},gm=new ot,vm="undefined"!=typeof window,mm={zrender:"5.2.1"},ym=2e3,_m=1e3,bm=3e3,wm={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:_m,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:bm,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},xm=/^[a-zA-Z0-9_]+$/,Cm="__connectUpdateStatus";function Sm(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return Bm(this,e,t);Jm(this.id)}}function km(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Bm(this,e,t)}}function Bm(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ot.prototype[t].apply(e,n)}var Tm,Em,Im,Mm,Dm,Pm,Fm,Om,Lm,Nm,Rm,Um,Qm,Hm,jm,Vm,zm,$m,Gm,Wm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t}(ot),Km=Wm.prototype;Km.on=km("on"),Km.off=km("off");var Ym=function(e){function t(t,n,i){var r=e.call(this,new Ig)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},"string"==typeof n&&(n=ry[n]),r._dom=t;var o="canvas",a=!1,s=r._zr=fr(t,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,useDirtyRect:null==i.useDirtyRect?a:i.useDirtyRect});r._throttledZrFlush=JA(Z(s.flush,s),17),(n=N(n))&&np(n,!0),r._theme=n,r._locale=function(e){if(ie(e)){var t=jh[e.toUpperCase()]||{};return e===Uh||e===Qh?N(t):R(N(t),N(jh[Hh]),!1)}return R(N(e),N(jh[Hh]),!1)}(i.locale||zh),r._coordSysMgr=new Ff;var l=r._api=Vm(r);function u(e,t){return e.__prio-t.__prio}return jt(iy,u),jt(ty,u),r._scheduler=new Cg(r,l,ty,iy),r._messageCenter=new Wm,r._initEvents(),r.resize=Z(r.resize,r),s.animation.on("frame",r._onframe,r),Nm(s,r),Rm(s,r),we(r),r}return g(t,e),t.prototype._onframe=function(){if(!this._disposed){Gm(this);var e=this._scheduler;if(this.__pendingUpdate){var t=this.__pendingUpdate.silent;this.__flagInMainProcess=!0,Tm(this),Mm.update.call(this,null,this.__pendingUpdate.updateParams),this._zr.flush(),this.__flagInMainProcess=!1,this.__pendingUpdate=null,Om.call(this,t),Lm.call(this,t)}else if(e.unfinished){var n=1,i=this._model,r=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Pm(this,i),e.performVisualTasks(i),jm(this,this._model,r,"remain",{}),n-=+new Date-o}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.setOption=function(e,t,n){if(this._disposed)Jm(this.id);else{var i,r,o;if(ae(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,o=t.transition,t=t.notMerge),this.__flagInMainProcess=!0,!this._model||t){var a=new Nf(this._api),s=this._theme,l=this._model=new If;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:r},ny);var u={seriesTransition:o,optionChanged:!0};n?(this.__pendingUpdate={silent:i,updateParams:u},this.__flagInMainProcess=!1,this.getZr().wakeUp()):(Tm(this),Mm.update.call(this,null,u),this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,Om.call(this,i),Lm.call(this,i))}},t.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||vm&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){if(_.canvasSupported)return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.getSvgDataURL=function(){if(_.svgSupported){var e=this._zr;return W(e.storage.getDisplayList(),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,i=[],r=this;W(t,function(e){n.eachComponent({mainType:e},function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return W(i,function(e){e.group.ignore=!1}),o}Jm(this.id)},t.prototype.getConnectedDataURL=function(e){if(this._disposed)Jm(this.id);else if(_.canvasSupported){var t="svg"===e.type,n=this.group,i=Math.min,r=Math.max;if(sy[n]){var o=1/0,a=1/0,s=-1/0,l=-1/0,u=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();W(ay,function(c,h){if(c.group===n){var d=t?c.getZr().painter.getSvgDom().innerHTML:c.getRenderedCanvas(N(e)),f=c.getDom().getBoundingClientRect();o=i(f.left,o),a=i(f.top,a),s=r(f.right,s),l=r(f.bottom,l),u.push({dom:d,left:f.left,top:f.top})}});var h=(s*=c)-(o*=c),d=(l*=c)-(a*=c),f=j(),p=fr(f,{renderer:t?"svg":"canvas"});if(p.resize({width:h,height:d}),t){var A="";return W(u,function(e){var t=e.left-o,n=e.top-a;A+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),p.painter.getSvgRoot().innerHTML=A,e.connectedBackgroundColor&&p.painter.setBackgroundColor(e.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}return e.connectedBackgroundColor&&p.add(new js({shape:{x:0,y:0,width:h,height:d},style:{fill:e.connectedBackgroundColor}})),W(u,function(e){var t=new Fs({style:{x:e.left*c-o,y:e.top*c-a,image:e.dom}});p.add(t)}),p.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,t){return Dm(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return Dm(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return W(lo(this._model,e),function(e,i){i.indexOf("Models")>=0&&W(e,function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0},this)},this),!!n;Jm(this.id)},t.prototype.getVisual=function(e,t){var n=lo(this._model,e,{defaultMainType:"series"}),i=n.seriesModel;var r=i.getData(),o=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=o?Dg(r,o,t):Pg(r,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,i=this;W(Xm,function(e){var t=function(t){var n,r=i.getModel(),o=t.target,a="globalout"===e;if(a?n={}:o&&Ng(o,function(e){var t=tl(e);if(t&&null!=t.dataIndex){var i=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return n=i&&i.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return n=Q({},t.eventData),!0},!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&i["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,n.event=t,n.type=e,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},i.trigger(e,n)}};t.zrEventfulCallAtLast=!0,i._zr.on(e,t,i)}),W(ey,function(e,t){i._messageCenter.on(t,function(e){this.trigger(t,e)},i)}),W(["selectchanged"],function(e){i._messageCenter.on(e,function(t){this.trigger(e,t)},i)}),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",function(e){var i=n.getModel();e.isFromClick?(Lg("map","selectchanged",t,i,e),Lg("pie","selectchanged",t,i,e)):"select"===e.fromAction?(Lg("map","selected",t,i,e),Lg("pie","selected",t,i,e)):"unselect"===e.fromAction&&(Lg("map","unselected",t,i,e),Lg("pie","unselected",t,i,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Jm(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Jm(this.id);else{this._disposed=!0,po(this.getDom(),cy,"");var e=this._api,t=this._model;W(this._componentsViews,function(n){n.dispose(t,e)}),W(this._chartsViews,function(n){n.dispose(t,e)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete ay[this.id]}},t.prototype.resize=function(e){if(this._disposed)Jm(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this.__pendingUpdate&&(null==i&&(i=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0,n&&Tm(this),Mm.update.call(this,{type:"resize",animation:Q({duration:0},e&&e.animation)}),this.__flagInMainProcess=!1,Om.call(this,i),Lm.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Jm(this.id);else if(ae(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),oy[e]){var n=oy[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?Jm(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Q({},e);return t.type=ey[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Jm(this.id);else if(ae(t)||(t={silent:!!t}),Zm[e.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(e);else{var n=t.silent;Fm.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&_.browser.weChat&&this._throttledZrFlush(),Om.call(this,n),Lm.call(this,n)}},t.prototype.updateLabelLayout=function(){gm.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Jm(this.id);else{var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);0,n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(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"),e.hoverState===ll&&e.states.emphasis?t.push("emphasis"):e.hoverState===sl&&e.states.blur&&t.push("blur"),e.useStates(t)}function t(e,t){e.preventAutoZ||function e(t,n,i,r){var o=t.getTextContent();var a=t.getTextGuideLine();var s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u<l.length;u++)r=Math.max(e(l[u],n,i,r),r);else t.z=n,t.zlevel=i,r=Math.max(t.z2,r);o&&(o.z=n,o.zlevel=i,isFinite(r)&&(o.z2=r+2));if(a){var c=t.textGuideLineConfig;a.z=n,a.zlevel=i,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}(t.group,e.get("z")||0,e.get("zlevel")||0,-1/0)}function n(e,t){t.group.traverse(function(e){if(!Ec(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 i(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.group.traverse(function(t){if(t.states&&t.states.emphasis){if(Ec(t))return;if(t instanceof Bs&&function(e){var t=ol(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}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}})}Tm=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Em(e,!0),Em(e,!1),t.plan()},Em=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var h=_o(e.type),d=t?RA.getClass(h.main,h.sub):KA.getClass(h.sub);0,(c=new d).init(n,s),o[u]=c,r.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&i.prepareView(c,e,n,s)}t?n.eachComponent(function(e,t){"series"!==e&&u(t)}):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Im=function(e,t,n,i,r){var o=e._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,u=n.excludeSeriesId;null!=u&&(l=Se(),W(Kr(u),function(e){var t=no(e,null);null!=t&&l.set(t,!0)})),tu(n)&&jl(e._api),o&&o.eachComponent(s,function(t){if(!(l&&null!==l.get(t.id)))if(tu(n))if(t instanceof LA)n.type!==fl||n.notBlur||function(e,t,n){var i=e.seriesIndex,r=e.getData(t.dataType),o=oo(r,t);o=(te(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=tl(a);Vl(i,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);null!=c&&Vl(i,c,h,n)}}(t,n,e._api);else{var i=$l(t.mainType,t.componentIndex,n.name,e._api),r=i.focusSelf,o=i.dispatchers;n.type===fl&&r&&!n.notBlur&&zl(t.mainType,t.componentIndex,e._api),o&&W(o,function(e){n.type===fl?Ol(e):Ll(e)})}else eu(n)&&t instanceof LA&&(!function(e,t,n){if(eu(t)){var i=t.dataType,r=oo(e.getData(i),t);te(r)||(r=[r]),e[t.type===vl?"toggleSelect":t.type===Al?"select":"unselect"](r,i)}}(t,n,e._api),Gl(t),$m(e))},e),o&&o.eachComponent(s,function(t){l&&null!==l.get(t.id)||c(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])},e)}else W([].concat(e._componentsViews).concat(e._chartsViews),c);function c(i){i&&i.__alive&&i[t]&&i[t](i.__model,o,e._api,n)}},Mm={prepareAndUpdate:function(e){Tm(this),Mm.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(e,t){var n=this._model,i=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler;if(n){n.setUpdatePayload(e),a.restoreData(n,e),a.performSeriesTasks(n),o.create(n,i),a.performDataProcessorTasks(n,e),Pm(this,n),o.update(n,i),Um(n),a.performVisualTasks(n,e),Qm(this,n,i,e,t);var s=n.get("backgroundColor")||"transparent",l=n.get("darkMode");if(_.canvasSupported)r.setBackgroundColor(s),null!=l&&"auto"!==l&&r.setDarkMode(l);else{var u=An(s);s=Sn(u,"rgb"),0===u[3]&&(s="transparent")}gm.trigger("afterupdate",n,i)}},updateTransform:function(e){var t=this,n=this._model,i=this._api;if(n){n.setUpdatePayload(e);var r=[];n.eachComponent(function(o,a){if("series"!==o){var s=t.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,i,e);l&&l.update&&r.push(s)}else r.push(s)}});var o=Se();n.eachSeries(function(r){var a=t._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,n,i,e);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),Um(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:o}),jm(this,n,i,e,{},o),gm.trigger("afterupdate",n,i)}},updateView:function(e){var t=this._model;t&&(t.setUpdatePayload(e),KA.markUpdateMethod(e,"updateView"),Um(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),Qm(this,t,this._api,e,{}),gm.trigger("afterupdate",t,this._api))},updateVisual:function(e){var t=this,n=this._model;n&&(n.setUpdatePayload(e),n.eachSeries(function(e){e.getData().clearAllVisual()}),KA.markUpdateMethod(e,"updateVisual"),Um(n),this._scheduler.performVisualTasks(n,e,{visualType:"visual",setDirty:!0}),n.eachComponent(function(i,r){if("series"!==i){var o=t.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,n,t._api,e)}}),n.eachSeries(function(i){t._chartsMap[i.__viewId].updateVisual(i,n,t._api,e)}),gm.trigger("afterupdate",n,this._api))},updateLayout:function(e){Mm.update.call(this,e)}},Dm=function(e,t,n,i){if(e._disposed)Jm(e.id);else{for(var r,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=lo(o,n),l=0;l<a.length;l++){var u=a[l];if(u[t]&&null!=(r=u[t](o,s,i)))return r}0}},Pm=function(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries(function(e){i.updateStreamModes(e,n[e.__viewId])})},Fm=function(e,t){var n=this,i=this.getModel(),r=e.type,o=e.escapeConnect,a=Zm[r],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&_o(l[0]);this.__flagInMainProcess=!0;var h=[e],d=!1;e.batch&&(d=!0,h=K(e.batch,function(t){return(t=H(Q({},t),e)).batch=null,t}));var f,p=[],A=eu(e),g=tu(e);if(W(h,function(t){if((f=(f=a.action(t,n._model,n._api))||Q({},t)).type=s.event||f.type,p.push(f),g){var i=uo(e),r=i.queryOptionMap,o=i.mainTypeSpecified?r.keys()[0]:"series";Im(n,u,t,o),$m(n)}else A?(Im(n,u,t,"series"),$m(n)):c&&Im(n,u,t,c.main,c.sub)}),"none"===u||g||A||c||(this.__pendingUpdate?(Tm(this),Mm.update.call(this,e),this.__pendingUpdate=null):Mm[u].call(this,e)),f=d?{type:s.event||r,escapeConnect:o,batch:p}:p[0],this.__flagInMainProcess=!1,!t){var v=this._messageCenter;if(v.trigger(f.type,f),A){var m={type:"selectchanged",escapeConnect:o,selected:function(e){var t=[];return e.eachSeries(function(e){W(e.getAllData(),function(n){n.data;var i=n.type,r=e.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:e.seriesIndex};null!=i&&(o.dataType=i),t.push(o)}})}),t}(i),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};v.trigger(m.type,m)}}},Om=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Fm.call(this,n,e)}},Lm=function(e){!e&&this.trigger("updated")},Nm=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")})},Rm=function(e,t){e.on("mouseover",function(e){var n=Ng(e.target,Zl);n&&(!function(e,t,n){var i=tl(e),r=$l(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&zl(i.componentMainType,i.componentIndex,n),W(o,function(e){return Pl(e,t)})):(Vl(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&zl(i.componentMainType,i.componentIndex,n),Pl(e,t))}(n,e,t._api),$m(t))}).on("mouseout",function(e){var n=Ng(e.target,Zl);n&&(!function(e,t,n){jl(n);var i=tl(e),r=$l(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?W(r,function(e){return Fl(e,t)}):Fl(e,t)}(n,e,t._api),$m(t))}).on("click",function(e){var n=Ng(e.target,function(e){return null!=tl(e).dataIndex},!0);if(n){var i=n.selected?"unselect":"select",r=tl(n);t._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},Um=function(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})},Qm=function(e,t,n,i,r){Hm(e,t,n,i,r),W(e._chartsViews,function(e){e.__alive=!1}),jm(e,t,n,i,r),W(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},Hm=function(e,r,o,a,s,l){W(l||e._componentsViews,function(e){var s=e.__model;n(s,e),e.render(s,r,o,a),t(s,e),i(s,e)})},jm=function(e,r,o,a,s,l){var u=e._scheduler;s=Q(s||{},{updatedSeries:r.getSeries()}),gm.trigger("series:beforeupdate",r,o,s);var c=!1;r.eachSeries(function(t){var i=e._chartsMap[t.__viewId];i.__alive=!0;var r=i.renderTask;u.updatePayload(r,a),n(t,i),l&&l.get(t.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),i.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;0;t.group.traverse(function(e){e.isGroup||(e.style.blend=n),e.eachPendingDisplayable&&e.eachPendingDisplayable(function(e){e.style.blend=n})})}(t,i),Gl(t)}),u.unfinished=c||u.unfinished,gm.trigger("series:layoutlabels",r,o,s),gm.trigger("series:transition",r,o,s),r.eachSeries(function(n){var r=e._chartsMap[n.__viewId];t(n,r),i(n,r)}),function(e,t){var n=0;e._zr.storage.traverse(function(e){e.isGroup||n++}),n>t.get("hoverLayerThreshold")&&!_.node&&!_.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}(e,r),gm.trigger("series:afterupdate",r,o,s)},$m=function(e){e.__needsUpdateStatus=!0,e.getZr().wakeUp()},Gm=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse(function(t){Ec(t)||e(t)}),t.__needsUpdateStatus=!1)},Vm=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return g(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){Ol(t,n),$m(e)},n.prototype.leaveEmphasis=function(t,n){Ll(t,n),$m(e)},n.prototype.enterBlur=function(t){Nl(t),$m(e)},n.prototype.leaveBlur=function(t){Rl(t),$m(e)},n.prototype.enterSelect=function(t){Ul(t),$m(e)},n.prototype.leaveSelect=function(t){Ql(t),$m(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}(Df))(e)},zm=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][Cm]=t}}W(ey,function(n,i){e._messageCenter.on(i,function(n){if(sy[e.group]&&0!==e[Cm]){if(n&&n.escapeConnect)return;var i=e.makeActionFromEvent(n),r=[];W(ay,function(t){t!==e&&t.group===e.group&&r.push(t)}),t(r,0),W(r,function(e){1!==e[Cm]&&e.dispatchAction(i)}),t(r,2)}})})}}(),t}(ot),qm=Ym.prototype;qm.on=Sm("on"),qm.off=Sm("off"),qm.one=function(e,t,n){var i=this;zr(),this.on.call(this,e,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];t&&t.apply&&t.apply(this,r),i.off(e,n)},n)};var Xm=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Jm(e){0}var Zm={},ey={},ty=[],ny=[],iy=[],ry={},oy={},ay={},sy={},ly=+new Date-0,uy=+new Date-0,cy="_echarts_instance_";function hy(e,t,n){var i=gy(e);if(i)return i;var r=new Ym(e,t,n);return r.id="ec_"+ly++,ay[r.id]=r,po(e,cy,r.id),zm(r),gm.trigger("afterinit",r),r}function dy(e){if(te(e)){var t=e;e=null,W(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+uy++,W(t,function(t){t.group=e})}return sy[e]=!0,e}function fy(e){sy[e]=!1}var py=fy;function Ay(e){"string"==typeof e?e=ay[e]:e instanceof Ym||(e=gy(e)),e instanceof Ym&&!e.isDisposed()&&e.dispose()}function gy(e){return ay[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,cy)]}function vy(e){return ay[e]}function my(e,t){ry[e]=t}function yy(e){V(ny,e)<0&&ny.push(e)}function _y(e,t){Iy(ty,e,t,ym)}function by(e){xy("afterinit",e)}function wy(e){xy("afterupdate",e)}function xy(e,t){gm.on(e,t)}function Cy(e,t,n){"function"==typeof t&&(n=t,t="");var i=ae(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,ey[t]||(ye(xm.test(i)&&xm.test(t)),Zm[i]||(Zm[i]={action:n,actionInfo:e}),ey[t]=i)}function Sy(e,t){Ff.register(e,t)}function ky(e){var t=Ff.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function By(e,t){Iy(iy,e,t,_m,"layout")}function Ty(e,t){Iy(iy,e,t,bm,"visual")}var Ey=[];function Iy(e,t,n,i,r){if((ne(t)||ae(t))&&(n=t,t=i),!(V(Ey,n)>=0)){Ey.push(n);var o=Cg.wrapStageHandler(n,r);o.__prio=t,o.__raw=n,e.push(o)}}function My(e,t){oy[e]=t}function Dy(e){P("createCanvas",e)}function Py(e,t,n){Am.registerMap(e,t,n)}function Fy(e){return Am.getMapForUser(e)}var Oy=function(e){var t=(e=N(e)).type,n="";t||$r(n);var i=t.split(":");2!==i.length&&$r(n);var r=!1;"echarts"===i[0]&&(t=i[1],r=!0),e.__isBuiltIn=r,Kp.set(t,e)};Ty(2e3,og),Ty(4500,sg),Ty(4500,lg),Ty(2e3,Mg),Ty(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){var n=e.getItemModel(t),i=n.getShallow("symbol",!0),r=n.getShallow("symbolSize",!0),o=n.getShallow("symbolRotate",!0),a=n.getShallow("symbolOffset",!0),s=n.getShallow("symbolKeepAspect",!0);null!=i&&e.setItemVisual(t,"symbol",i),null!=r&&e.setItemVisual(t,"symbolSize",r),null!=o&&e.setItemVisual(t,"symbolRotate",o),null!=a&&e.setItemVisual(t,"symbolOffset",a),null!=s&&e.setItemVisual(t,"symbolKeepAspect",s)}:null}}}),Ty(7e3,function(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(e){var n=i.getItemVisual(e,"decal");n&&(i.ensureUniqueItemVisual(e,"style").decal=Sv(n,t))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=Sv(r,t))}})}),yy(np),_y(900,function(e){var t=Se();e.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),r=e.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(ip)}),My("default",function(e,t){H(t=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 lr,i=new js({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,o=new el({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new js({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((r=new dc({shape:{startAngle:-ug/2,endAngle:-ug/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*ug/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*ug/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}),Cy({type:fl,event:fl,update:fl},Ee),Cy({type:pl,event:pl,update:pl},Ee),Cy({type:Al,event:Al,update:Al},Ee),Cy({type:gl,event:gl,update:gl},Ee),Cy({type:vl,event:vl,update:vl},Ee),my("light",kg),my("dark",Eg);var Ly={},Ny=[],Ry={registerPreprocessor:yy,registerProcessor:_y,registerPostInit:by,registerPostUpdate:wy,registerUpdateLifecycle:xy,registerAction:Cy,registerCoordinateSystem:Sy,registerLayout:By,registerVisual:Ty,registerTransform:Oy,registerLoading:My,registerMap:Py,PRIORITY:wm,ComponentModel:qd,ComponentView:RA,SeriesModel:LA,ChartView:KA,registerComponentModel:function(e){qd.registerClass(e)},registerComponentView:function(e){RA.registerClass(e)},registerSeriesModel:function(e){LA.registerClass(e)},registerChartView:function(e){KA.registerClass(e)},registerSubTypeDefaulter:function(e,t){qd.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){vr(e,t)}};function Uy(e){te(e)?W(e,function(e){Uy(e)}):V(Ny,e)>=0||(Ny.push(e),ne(e)&&(e={install:e}),e.install(Ry))}function Qy(e){return null==e?0:e.length||1}function Hy(e){return e}var jy=function(){function e(e,t,n,i,r,o){this._old=e,this._new=t,this._oldKeyGetter=n||Hy,this._newKeyGetter=i||Hy,this.context=r,this._diffModeMultiple="multiple"===o}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={},i=new Array(e.length),r=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,r,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=i[o],s=n[a],l=Qy(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},r=[],o=[];this._initIndexMap(e,n,r,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=Qy(l),h=Qy(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=t[i],o=Qy(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);t[i]=null}},e.prototype._initIndexMap=function(e,t,n,i){for(var r=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[i](e[o],o);if(r||(n[o]=a),t){var s=t[a],l=Qy(s);0===l?(t[a]=o,r&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}(),Vy=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 zy(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function $y(e){return"category"===e?"ordinal":"time"===e?"time":"float"}var Gy=function(){return function(e){this.otherDims={},null!=e&&Q(this,e)}}(),Wy=ao(),Ky={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Yy=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=Jy(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return Ae(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=gp(this.source),n=!Zy(e),i="",r=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=t?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=Ky[l]||"f",u&&(i+=u.uid),i+="$"}var d=this.source;return{dimensions:r,hash:[d.seriesLayoutBy,d.startIndex,i].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===t)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function qy(e){return e instanceof Yy}function Xy(e){for(var t=Se(),n=0;n<(e||[]).length;n++){var i=e[n],r=ae(i)?i.name:i;null!=r&&null==t.get(r)&&t.set(r,n)}return t}function Jy(e){var t=Wy(e);return t.dimNameMap||(t.dimNameMap=Xy(e.dimensionsDefine))}function Zy(e){return e>30}var e_,t_,n_,i_,r_,o_,a_,s_=ae,l_=K,u_="undefined"==typeof Int32Array?Array:Int32Array,c_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],h_=["_approximateExtent"],d_=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 i=!1;qy(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=ie(c)?new Gy({name:c}):c instanceof Gy?c:new Gy(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var f=h.otherDims=h.otherDims||{};o.push(d),r[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.itemId&&(this._idDimIdx=u),i&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var p=this._dimIdxToName=Se();W(o,function(e){p.set(r[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 i=this._schema.getSourceDimension(t);return i?i.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("number"==typeof e||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},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 i=n.encode[e];return i?i[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var i,r=this;if(e instanceof oA&&(i=e),!i){var o=this.dimensions,a=cp(e)||G(e)?new vp(e,o.length):e;i=new oA;var s=l_(o,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(a,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(e,t){var n={},i=n.encode={},r=Se(),o=[],a=[],s={};W(e.dimensions,function(t){var n,l=e.getDimensionInfo(t),u=l.coordDim;if(u){var c=l.coordDimIndex;zy(i,u)[c]=t,l.isExtraCoord||(r.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=t),zy(s,u)[c]=e.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(t)}ef.each(function(e,t){var n=zy(i,t),r=l.otherDims[t];null!=r&&!1!==r&&(n[r]=l.name)})});var l=[],u={};r.each(function(e,t){var n=i[t];u[t]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=K(l,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new Vy(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=t[s],o&&a_(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==af&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===tf&&!n.pure)for(var o=[],a=e;a<t;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&Jr(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=no(l,null));var u=s.id;null==r[a]&&null!=u&&(r[a]=no(u,null))}}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)a_(this,a);e_(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){s_(e)?Q(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=n_(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},e.prototype.getId=function(e){return t_(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.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,i=this._store;return te(e)?i.getValues(l_(e,function(e){return n._getStoreDimIndex(e)}),t):i.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;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];var i=n[t];return null==i||isNaN(i)?-1:i},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){"function"==typeof e&&(n=t,t=e,e=[]);var i=n||this,r=l_(i_(e),this._getStoreDimIndex,this);this._store.each(r,i?Z(t,i):t)},e.prototype.filterSelf=function(e,t,n){"function"==typeof e&&(n=t,t=e,e=[]);var i=n||this,r=l_(i_(e),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?Z(t,i):t),this},e.prototype.selectRange=function(e){var t=this,n={},i=[];return W(J(e),function(r){var o=t._getStoreDimIndex(r);n[o]=e[r],i.push(o)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){"function"==typeof e&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(t&&t.apply(this,arguments))},n),i},e.prototype.map=function(e,t,n,i){var r=n||i||this,o=l_(i_(e),this._getStoreDimIndex,this),a=o_(this);return a._store=this._store.map(o,r?Z(t,r):t),a},e.prototype.modify=function(e,t,n,i){var r=n||i||this;var o=l_(i_(e),this._getStoreDimIndex,this);this._store.modify(o,r?Z(t,r):t)},e.prototype.downSample=function(e,t,n,i){var r=o_(this);return r._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),r},e.prototype.lttbDownSample=function(e,t){var n=o_(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 Oh(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new jy(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return t_(e,t)},function(e){return t_(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||{},s_(e)?Q(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return null==i?this.getVisual(t):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(te(r=this.getVisual(t))?r=r.slice():s_(r)&&(r=Q({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,s_(t)?Q(i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){if(s_(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else 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?Q(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;nl(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){W(this._graphicEls,function(n,i){n&&e&&e.call(t,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:l_(this.dimensions,this._getDimInfo,this),this.hostModel)),r_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(ve(arguments)))})},e.internalField=(e_=function(e){var t=e._invertedIndicesMap;W(t,function(n,i){var r=e._dimInfos[i],o=r.ordinalMeta,a=e._store;if(o){n=t[i]=new u_(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},n_=function(e,t,n){return no(e._getCategory(t,n),null)},t_=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=n_(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},i_=function(e){return te(e)||(e=null!=e?[e]:[]),e},o_=function(t){var n=new e(t._schema?t._schema:l_(t.dimensions,t._getDimInfo,t),t.hostModel);return r_(n,t),n},r_=function(e,t){W(c_.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,W(h_,function(n){e[n]=N(t[n])}),e._calculationInfo=Q({},t._calculationInfo)},void(a_=function(e,t){var n=e._nameList,i=e._idList,r=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=i[t];if(null==a&&null!=r&&(n[t]=a=n_(e,r,t)),null==s&&null!=o&&(i[t]=s=n_(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[t]=s}})),e}();function f_(e,t){return p_(e,t).dimensions}function p_(e,t){cp(e)||(e=dp(e));var n=(t=t||{}).coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],r=Se(),o=[],a=function(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return W(t,function(e){var t;ae(e)&&(t=e.dimsDef)&&(r=Math.max(r,t.length))}),r}(e,n,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Zy(a),l=i===e.dimensionsDefine,u=l?Jy(e):Xy(i),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var h=Se(c),d=new eA(a),f=0;f<d.length;f++)d[f]=-1;function p(e){var t=d[e];if(t<0){var n=i[e],r=ae(n)?n:{name:n},a=new Gy,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return d[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(f=0;f<a;f++)p(f);h.each(function(e,t){var n=Kr(e).slice();if(1===n.length&&!ie(n[0])&&n[0]<0)h.set(t,!1);else{var i=h.set(t,[]);W(n,function(e,n){var r=ie(e)?u.get(e):e;null!=r&&r<a&&(i[n]=r,g(p(r),t,n))})}});var A=0;function g(e,t,n){null!=ef.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,r.set(t,!0))}W(n,function(e){var t,n,i,r;if(ie(e))t=e,r={};else{t=(r=e).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=Q({},r)).ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(t);if(!1!==s){if(!(s=Kr(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;A<a&&null!=p(A).coordDim;)A++;A<a&&s.push(A++)}W(s,function(e,o){var a=p(e);if(l&&null!=r.type&&(a.type=r.type),g(H(a,r),t,o),null==a.name&&n){var s=n[o];!ae(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&H(a.otherDims,i)})}});var v=t.generateCoord,m=t.generateCoordCount,y=null!=m;m=v?m||1:0;var _=v||"value";function b(e){null==e.name&&(e.name=e.coordDim)}if(s)W(o,function(e){b(e)}),o.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var w=0;w<a;w++){var x=p(w);null==x.coordDim&&(x.coordDim=A_(_,r,y),x.coordDimIndex=0,(!v||m<=0)&&(x.isExtraCoord=!0),m--),b(x),null!=x.type||Af(e,w)!==cf.Must&&(!x.isExtraCoord||null==x.otherDims.itemName&&null==x.otherDims.seriesName)||(x.type="ordinal")}return function(e){for(var t=Se(),n=0;n<e.length;n++){var i=e[n],r=i.name,o=t.get(r)||0;o>0&&(i.name=r+(o-1)),o++,t.set(r,o)}}(o),new Yy({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function A_(e,t,n){var i=t.data;if(n||i.hasOwnProperty(e)){for(var r=0;i.hasOwnProperty(e+r);)r++;e+=r}return t.set(e,!0),e}var g_=function(){return function(e){this.coordSysDims=[],this.axisMap=Se(),this.categoryAxisMap=Se(),this.coordSysName=e}}();var v_={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",co).models[0],o=e.getReferringComponents("yAxis",co).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),m_(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),m_(o)&&(i.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",co).models[0];t.coordSysDims=["single"],n.set("single",r),m_(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",co).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),m_(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),m_(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,o=r.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();W(o.parallelAxisIndex,function(e,o){var s=r.getComponent("parallelAxis",e),l=a[o];n.set(l,s),m_(s)&&(i.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))})}};function m_(e){return"category"===e.get("type")}function y_(e,t,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!qy(e.schema)}(t)?(r=t.schema,i=r.dimensions,o=t.store):i=t;var l,u,c,h,d=!(!e||!e.get("stack"));if(W(i,function(e,t){ie(e)&&(i[t]=e={name:e}),d&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))}),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,p=u.type,A=0;W(i,function(e){e.coordDim===f&&A++});var g={name:c,coordDim:f,coordDimIndex:A,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:h,coordDim:h,coordDimIndex:A+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(g.storeDimIndex=o.ensureCalculationDimension(h,p),v.storeDimIndex=o.ensureCalculationDimension(c,p)),r.appendCalculationDimension(g),r.appendCalculationDimension(v)):(i.push(g),i.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function __(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function b_(e,t){return __(e,t)?e.getCalculationInfo("stackResultDimension"):t}var w_=function(e,t,n){n=n||{};var i,r=t.getSourceManager(),o=!1;e?(o=!0,i=dp(e)):o=(i=r.getSource()).sourceFormat===tf;var a=function(e){var t=e.get("coordinateSystem"),n=new g_(t),i=v_[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,i=e.get("coordinateSystem"),r=Ff.get(i);return t&&t.coordSysDims&&(n=K(t.coordSysDims,function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=$y(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(t,a),l=n.useEncodeDefaulter,u=ne(l)?l:l?ee(df,s,t):null,c=p_(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(e,t,n){var i,r;return n&&W(e,function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(r=!0)}),r||null==i||(e[i].otherDims.itemName=0),i}(c.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(c),f=y_(t,{schema:c,store:d}),p=new d_(c,t);p.setCalculationInfo(f);var A=null!=h&&function(e){if(e.sourceFormat===tf){var t=function(e){for(var t=0;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return null!=t&&!te(Xr(t))}}(i)?function(e,t,n,i){return i===h?n:this.defaultDimValueGetter(e,t,n,i)}:null;return p.hasItemOption=!1,p.initData(o?i:d,null,A),p},x_=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(e,t){this.unionExtent(e.getApproximateExtent(t))},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}();ko(x_);var C_=x_,S_=0;function k_(e){return ae(e)&&null!=e.value?e.value:e+""}var B_=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++S_}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&K(i,k_);return new e({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if("string"!=typeof e&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return null==(t=i.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Se(this.categories))},e}(),T_=xr;function E_(e,t,n,i){var r={},o=e[1]-e[0],a=r.interval=Nr(o/t,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=I_(a);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),M_(e,0,t),M_(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(r.niceTickExtent=[T_(Math.ceil(e[0]/a)*a,s),T_(Math.floor(e[1]/a)*a,s)],e),r}function I_(e){return Sr(e)+2}function M_(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function D_(e,t){return e>=t[0]&&e<=t[1]}function P_(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function F_(e,t){return e*(t[1]-t[0])+t[0]}var O_=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new B_({})),te(i)&&(i=new B_({categories:K(i,function(e){return ae(e)?e.value:e})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return g(t,e),t.prototype.parse=function(e){return"string"==typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return D_(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return P_(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(F_(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=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);r<a;++r){var s=t[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}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(e,t){this.unionExtent(e.getApproximateExtent(t))},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.niceTicks=function(){},t.prototype.niceExtent=function(){},t.type="ordinal",t}(C_);C_.registerClass(O_);var L_=O_,N_=xr,R_=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 g(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return D_(e,this._extent)},t.prototype.normalize=function(e){return P_(e,this._extent)},t.prototype.scale=function(e){return F_(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=I_(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;n[0]<i[0]&&(e?o.push({value:N_(i[0]-t,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=N_(a+t,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(e?o.push({value:N_(s+t,r)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<t.length;r++){for(var o=t[r],a=t[r-1],s=0,l=[],u=(o.value-a.value)/e;s<e-1;){var c=N_(a.value+(s+1)*u);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=Sr(e.value)||0:"auto"===n&&(n=this._intervalPrecision),wd(N_(e.value,n,!0))},t.prototype.niceTicks=function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=E_(i,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.niceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax?t[0]-=n/2:(t[1]+=n/2,t[0]-=n/2)}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=N_(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=N_(Math.ceil(t[1]/r)*r))},t.type="interval",t}(C_);C_.registerClass(R_);var U_=R_,Q_="__ec_stack_",H_="undefined"!=typeof Float32Array?Float32Array:Array;function j_(e){return e.get("stack")||Q_+e.seriesIndex}function V_(e){return e.dim+e.index}function z_(e,t){var n=[];return t.eachSeriesByType(e,function(e){q_(e)&&!X_(e)&&n.push(e)}),n}function $_(e){var t=function(e){var t={};W(e,function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=e.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);t[r]?t[r].push(u):t[r]=[u]}});var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(r){r.sort(function(e,t){return e-t});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(e),n=[];return W(e,function(e){var i,r=e.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=t[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),c=Math.abs(u[1]-u[0]);i=s?l/c*s:l}else{var h=e.getData();i=Math.abs(o[1]-o[0])/h.count()}var d=wr(e.get("barWidth"),i),f=wr(e.get("barMaxWidth"),i),p=wr(e.get("barMinWidth")||1,i),A=e.get("barGap"),g=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:A,barCategoryGap:g,axisKey:V_(r),stackId:j_(e)})}),G_(n)}function G_(e){var t={};W(e,function(e,n){var i=e.axisKey,r=e.bandWidth,o=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[i]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var h=e.barGap;null!=h&&(o.gap=h);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)});var n={};return W(t,function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=e.categoryGap;if(null==o){var a=J(i).length;o=Math.max(35-4*a,15)+"%"}var s=wr(o,r),l=wr(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),W(i,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,u-=i+l*i,c--}else{var i=h;t&&t<i&&(i=Math.min(t,u)),n&&n>i&&(i=n),i!==h&&(e.width=i,u-=i+l*i,c--)}}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;W(i,function(e,t){e.width||(e.width=h),d=e,f+=e.width*(1+l)}),d&&(f-=d.width*l);var p=-f/2;W(i,function(e,i){n[t][i]=n[t][i]||{bandWidth:r,offset:p,width:e.width},p+=e.width*(1+l)})}),n}function W_(e,t,n){if(e&&t){var i=e[V_(t)];return null!=i&&null!=n?i[j_(n)]:i}}function K_(e,t){var n=z_(e,t),i=$_(n),r={};W(n,function(e){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),a=j_(e),s=i[V_(o)][a],l=s.offset,u=s.width,c=n.getOtherAxis(o),h=e.get("barMinHeight")||0;r[a]=r[a]||[],t.setLayout({bandWidth:s.bandWidth,offset:l,size:u});for(var d=t.mapDimension(c.dim),f=t.mapDimension(o.dim),p=__(t,d),A=c.isHorizontal(),g=J_(o,c,p),v=t.getStore(),m=t.getDimensionIndex(d),y=t.getDimensionIndex(f),_=0,b=v.count();_<b;_++){var w=v.get(m,_),x=v.get(y,_),C=w>=0?"p":"n",S=g;p&&(r[a][x]||(r[a][x]={p:g,n:g}),S=r[a][x][C]);var k,B=void 0,T=void 0,E=void 0,I=void 0;if(A)B=S,T=(k=n.dataToPoint([w,x]))[1]+l,E=k[0]-g,I=u,Math.abs(E)<h&&(E=(E<0?-1:1)*h),isNaN(E)||p&&(r[a][x][C]+=E);else B=(k=n.dataToPoint([x,w]))[0]+l,T=S,E=u,I=k[1]-g,Math.abs(I)<h&&(I=(I<=0?-1:1)*h),isNaN(I)||p&&(r[a][x][C]+=I);t.setItemLayout(_,{x:B,y:T,width:E,height:I})}})}var Y_={seriesType:"bar",plan:UA(),reset:function(e){if(q_(e)&&X_(e)){var t=e.getData(),n=e.coordinateSystem,i=n.master.getRect(),r=n.getBaseAxis(),o=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(o.dim)),s=t.getDimensionIndex(t.mapDimension(r.dim)),l=o.isHorizontal(),u=l?0:1,c=W_($_([e]),r,e).width;return c>.5||(c=.5),{progress:function(e,t){for(var h,d=e.count,f=new H_(2*d),p=new H_(2*d),A=new H_(d),g=[],v=[],m=0,y=0,_=t.getStore();null!=(h=e.next());)v[u]=_.get(a,h),v[1-u]=_.get(s,h),g=n.dataToPoint(v,null),p[m]=l?i.x+i.width:g[0],f[m++]=g[0],p[m]=l?g[1]:i.y+i.height,f[m++]=g[1],A[y++]=h;t.setLayout({largePoints:f,largeDataIndices:A,largeBackgroundPoints:p,barWidth:c,valueAxisStart:J_(r,o,!1),backgroundStart:l?i.x:i.y,valueAxisHorizontal:l})}}}}};function q_(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function X_(e){return e.pipelineContext&&e.pipelineContext.large}function J_(e,t,n){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}var Z_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return g(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return rd(e.value,Zh[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(id(this._minLevelUnit))]||Zh.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var i=this.getSetting("useUTC");return function(e,t,n,i,r){var o=null;if("string"==typeof n)o=n;else if("function"==typeof n)o=n(e.value,t,{level:e.level});else{var a=Q({},Jh);if(e.level>0)for(var s=0;s<ed.length;++s)a[ed[s]]="{primary|"+a[ed[s]]+"}";var l=n?!1===n.inherit?n:H(n,a):a,u=od(e.value,r);if(l[u])o=l[u];else if(l.inherit){for(s=td.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(te(o)){var c=null==e.level?0:e.level>=0?e.level:o.length+e.level;o=o[c=Math.min(c,o.length-1)]}}return rd(new Date(e.value),o,r,i)}(e,t,n,this.getSetting("locale"),i)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=[];if(!t)return i;i.push({value:n[0],level:0});var r=this.getSetting("useUTC"),o=function(e,t,n,i){var r=td,o=0;function a(e,t,n,r,o,a,s){for(var l=new Date(t),u=t,c=l[r]();u<n&&u<=i[1];)s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function s(e,r,o){var s=[],l=!r.length;if(!function(e,t,n,i){var r=Fr(t),o=Fr(n),a=function(e){return ad(r,e,i)===ad(o,e,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return d()&&a("millisecond")}}(id(e),i[0],i[1],n)){l&&(r=[{value:function(e,t,n){var i=new Date(e);switch(id(t)){case"year":case"month":i[Ad(n)](0);case"day":i[gd(n)](1);case"hour":i[vd(n)](0);case"minute":i[md(n)](0);case"second":i[yd(n)](0),i[_d(n)](0)}return i.getTime()}(new Date(i[0]),e,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,h=r[u+1].value;if(c!==h){var d=void 0,f=void 0,p=void 0,A=!1;switch(e){case"year":d=Math.max(1,Math.round(t/qh/365)),f=sd(n),p=pd(n);break;case"half-year":case"quarter":case"month":d=nb(t),f=ld(n),p=Ad(n);break;case"week":case"half-week":case"day":d=tb(t,31),f=ud(n),p=gd(n),A=!0;break;case"half-day":case"quarter-day":case"hour":d=ib(t),f=cd(n),p=vd(n);break;case"minute":d=rb(t,!0),f=hd(n),p=md(n);break;case"second":d=rb(t,!1),f=dd(n),p=yd(n);break;case"millisecond":d=ob(t),f=fd(n),p=_d(n)}a(d,c,h,f,p,A,s),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(var u=0;u<s.length;u++)o.push(s[u]);return s}}for(var l=[],u=[],c=0,h=0,d=0;d<r.length&&o++<1e4;++d){var f=id(r[d]);if((y=r[d])===id(y)){s(r[d],l[l.length-1]||[],u);var p=r[d+1]?id(r[d+1]):null;if(f!==p){if(u.length){h=c,u.sort(function(e,t){return e.value-t.value});for(var A=[],g=0;g<u.length;++g){var v=u[g].value;0!==g&&u[g-1].value===v||(A.push(u[g]),v>=i[0]&&v<=i[1]&&c++)}var m=(i[1]-i[0])/t;if(c>1.5*m&&h>m/1.5)break;if(l.push(A),c>m||e===r[d])break}u=[]}}}var y;0;for(var _=q(K(l,function(e){return q(e,function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd})}),function(e){return e.length>0}),b=[],w=_.length-1,d=0;d<_.length;++d)for(var x=_[d],C=0;C<x.length;++C)b.push({value:x[C].value,level:w-d});b.sort(function(e,t){return e.value-t.value});for(var S=[],d=0;d<b.length;++d)0!==d&&b[d].value===b[d-1].value||S.push(b[d]);return S}(this._minLevelUnit,this._approxInterval,r,n);return(i=i.concat(o)).push({value:n[1],level:0}),i},t.prototype.niceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=qh,t[1]+=qh),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]-qh}this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.niceTicks=function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=eb.length,a=Math.min(function(e,t,n,i){for(;n<i;){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n}(eb,this._approxInterval,0,o),o-1);this._interval=eb[a][1],this._minLevelUnit=eb[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return"number"==typeof e?e:+Fr(e)},t.prototype.contain=function(e){return D_(this.parse(e),this._extent)},t.prototype.normalize=function(e){return P_(this.parse(e),this._extent)},t.prototype.scale=function(e){return F_(e,this._extent)},t.type="time",t}(U_),eb=[["second",Wh],["minute",Kh],["hour",Yh],["quarter-day",6*Yh],["half-day",12*Yh],["day",1.2*qh],["half-week",3.5*qh],["week",7*qh],["month",31*qh],["quarter",95*qh],["half-year",Xh/2],["year",Xh]];function tb(e,t){return(e/=qh)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function nb(e){return(e/=30*qh)>6?6:e>3?3:e>2?2:1}function ib(e){return(e/=Yh)>12?12:e>6?6:e>3.5?4:e>2?2:1}function rb(e,t){return(e/=t?Kh:Wh)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function ob(e){return Nr(e,!0)}C_.registerClass(Z_);var ab=Z_,sb=C_.prototype,lb=U_.prototype,ub=xr,cb=Math.floor,hb=Math.ceil,db=Math.pow,fb=Math.log,pb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new U_,t._interval=0,t}return g(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,i=t.getExtent();return K(lb.getTicks.call(this,e),function(e){var t=e.value,r=xr(db(this.base,t));return r=t===n[0]&&this._fixMin?gb(r,i[0]):r,{value:r=t===n[1]&&this._fixMax?gb(r,i[1]):r}},this)},t.prototype.setExtent=function(e,t){var n=this.base;e=fb(e)/fb(n),t=fb(t)/fb(n),lb.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=sb.getExtent.call(this);t[0]=db(e,t[0]),t[1]=db(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=gb(t[0],n[0])),this._fixMax&&(t[1]=gb(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=fb(e[0])/fb(t),e[1]=fb(e[1])/fb(t),sb.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.niceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i=Or(n);for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[xr(hb(t[0]/i)*i),xr(cb(t[1]/i)*i)];this._interval=i,this._niceExtent=r}},t.prototype.niceExtent=function(e){lb.niceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return D_(e=fb(e)/fb(this.base),this._extent)},t.prototype.normalize=function(e){return P_(e=fb(e)/fb(this.base),this._extent)},t.prototype.scale=function(e){return e=F_(e,this._extent),db(this.base,e)},t.type="log",t}(C_),Ab=pb.prototype;function gb(e,t){return ub(e,Sr(t))}Ab.getMinorTicks=lb.getMinorTicks,Ab.getLabel=lb.getLabel,C_.registerClass(pb);var vb=pb,mb=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 i=this._isOrdinal="ordinal"===e.type;this._needCrossZero=t.getNeedCrossZero&&t.getNeedCrossZero();var r=this._modelMinRaw=t.get("min",!0);ne(r)?this._modelMinNum=wb(e,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=wb(e,r));var o=this._modelMaxRaw=t.get("max",!0);if(ne(o)?this._modelMaxNum=wb(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=wb(e,o)),i)this._axisDataLen=t.getCategories().length;else{var a=t.get("boundaryGap"),s=te(a)?a:[a||0,a||0];"boolean"==typeof s[0]||"boolean"==typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[qi(s[0],1),qi(s[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?i?0:NaN:t-r[0]*o),null==s&&(s=e?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=fe(a)||fe(s)||e&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[_b[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=yb[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),yb={min:"_determinedMin",max:"_determinedMax"},_b={min:"_dataMin",max:"_dataMax"};function bb(e,t,n){var i=e.rawExtentInfo;return i||(i=new mb(e,t,n),e.rawExtentInfo=i,i)}function wb(e,t){return null==t?null:fe(t)?NaN:e.parse(t)}function xb(e,t){var n=e.type,i=bb(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&"time"===n){var s=z_("bar",a),l=!1;if(W(s,function(e){l=l||e.getBaseAxis()===t.axis}),l){var u=$_(s),c=function(e,t,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=W_(i,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;W(a,function(e){s=Math.min(e.offset,s)});var l=-1/0;W(a,function(e){l=Math.max(e.offset+e.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,h=c/(1-(s+l)/o)-c;return{min:e-=h*(s/u),max:t+=h*(l/u)}}(r,o,t,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function Cb(e,t){var n=t,i=xb(e,n),r=i.extent,o=n.get("splitNumber");e instanceof vb&&(e.base=n.get("logBase"));var a=e.type;e.setExtent(r[0],r[1]),e.niceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:"interval"===a||"time"===a?n.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?n.get("maxInterval"):null});var s=n.get("interval");null!=s&&e.setInterval&&e.setInterval(s)}function Sb(e,t){if(t=t||e.get("type"))switch(t){case"category":return new L_({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new ab({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(C_.getClass(t)||U_)}}function kb(e){var t,n,i=e.getLabelModel().get("formatter"),r="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=i,function(t,i){return e.scale.getFormattedLabel(t,i,n)}):"string"==typeof i?function(t){return function(n){var i=e.scale.getLabel(n);return t.replace("{value}",null!=i?i:"")}}(i):"function"==typeof i?(t=i,function(n,i){return null!=r&&(i=n.value-r),t(Bb(e,n),i,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function Bb(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function Tb(e){var t=e.get("interval");return null==t?"auto":t}function Eb(e){return"category"===e.type&&0===Tb(e.getLabelModel())}function Ib(e,t){var n={};return W(e.mapDimensionsAll(t),function(t){n[b_(e,t)]=!0}),J(n)}var Mb=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}();function Db(e){return w_(null,e)}var Pb={isDimensionStacked:__,enableDataStack:y_,getStackedDimension:b_};function Fb(e,t){var n=t;t instanceof Oh||(n=new Oh(t));var i=Sb(n);return i.setExtent(e[0],e[1]),Cb(i,n),i}function Ob(e){$(e,Mb)}function Lb(e,t){return fh(e,null,null,"normal"!==(t=t||{}).state)}var Nb=ao();function Rb(e){return"category"===e.type?function(e){var t=e.getLabelModel(),n=Qb(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=kb(e);return{labels:K(t,function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}})}}(e)}function Ub(e,t){return"category"===e.type?function(e,t){var n,i,r=Hb(e,"ticks"),o=Tb(t),a=jb(r,o);if(a)return a;t.get("show")&&!e.scale.isBlank()||(n=[]);if(ne(o))n=$b(e,o,!0);else if("auto"===o){var s=Qb(e,e.getLabelModel());i=s.labelCategoryInterval,n=K(s.labels,function(e){return e.tickValue})}else n=zb(e,i=o,!0);return Vb(r,o,{ticks:n,tickCategoryInterval:i})}(e,t):{ticks:K(e.scale.getTicks(),function(e){return e.value})}}function Qb(e,t){var n,i=Hb(e,"labels"),r=Tb(t),o=jb(i,r);return o||Vb(i,r,{labels:ne(r)?$b(e,r):zb(e,n="auto"===r?function(e){var t=Nb(e).autoInterval;return null!=t?t:Nb(e).autoInterval=e.calculateCategoryInterval()}(e):r),labelCategoryInterval:n})}function Hb(e,t){return Nb(e)[t]||(Nb(e)[t]=[])}function jb(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function Vb(e,t,n){return e.push({key:t,value:n}),n}function zb(e,t,n){var i=kb(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Eb(e),d=a.get("showMinLabel")||h,f=a.get("showMaxLabel")||h;d&&u!==o[0]&&A(o[0]);for(var p=u;p<=o[1];p+=l)A(p);function A(e){var t={value:e};s.push(n?e:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:e})}return f&&p-l!==o[1]&&A(o[1]),s}function $b(e,t,n){var i=e.scale,r=kb(e),o=[];return W(i.getTicks(),function(e){var a=i.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:r(e),rawLabel:a,tickValue:s})}),o}var Gb=[0,1];function Wb(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var Kb=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]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Br(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(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&Wb(n=n.slice(),i.count()),br(e,Gb,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&Wb(n=n.slice(),i.count());var r=br(e,n,Gb,t);return this.scale.scale(r)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=K(Ub(this,t).ticks,function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this);return function(e,t,n,i){var r=t.length;if(!e.onBand||n||!r)return;var o,a,s=e.getExtent();if(1===r)t[0].coord=s[0],o=t[1]={coord:s[0]};else{var l=t[r-1].tickValue-t[0].tickValue,u=(t[r-1].coord-t[0].coord)/l;W(t,function(e){e.coord-=u/2});var c=e.scale.getExtent();a=1+c[1]-t[r-1].tickValue,o={coord:t[r-1].coord+u*a},t.push(o)}var h=s[0]>s[1];d(t[0].coord,s[0])&&(i?t[0].coord=s[0]:t.shift());i&&d(s[0],t[0].coord)&&t.unshift({coord:s[0]});d(s[1],o.coord)&&(i?o.coord=s[1]:t.pop());i&&d(o.coord,s[1])&&t.push({coord:s[1]});function d(e,t){return e=xr(e),t=xr(t),h?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),K(this.scale.getMinorTicks(e),function(e){return K(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(){return Rb(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 i=Math.abs(e[1]-e[0]);return Math.abs(i)/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=kb(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=e.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),d=0,f=0;l<=o[1];l+=s){var p,A,g=Gi(n({value:l}),t.font,"center","top");p=1.3*g.width,A=1.3*g.height,d=Math.max(d,p,7),f=Math.max(f,A,7)}var v=d/c,m=f/h;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var y=Math.max(0,Math.floor(Math.min(v,m))),_=Nb(e.model),b=e.getExtent(),w=_.lastAutoInterval,x=_.lastTickCount;return null!=w&&null!=x&&Math.abs(w-y)<=1&&Math.abs(x-a)<=1&&w>y&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?y=w:(_.lastTickCount=a,_.lastAutoInterval=y,_.axisExtent0=b[0],_.axisExtent1=b[1]),y}(this)},e}();function Yb(e){var t=qd.extend(e);return qd.registerClass(t),t}function qb(e){var t=RA.extend(e);return RA.registerClass(t),t}function Xb(e){var t=LA.extend(e);return LA.registerClass(t),t}function Jb(e){var t=KA.extend(e);return KA.registerClass(t),t}var Zb=2*Math.PI,ew=as.CMD,tw=["top","right","bottom","left"];function nw(e,t,n,i,r){var o=n.width,a=n.height;switch(e){case"top":i.set(n.x+o/2,n.y-t),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+t),r.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+t,n.y+a/2),r.set(1,0)}}function iw(e,t,n,i,r,o,a,s,l){a-=e,s-=t;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+e,h=(s/=u)*n+t;if(Math.abs(i-r)%Zb<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=i;i=hs(r),r=hs(d)}else i=hs(i),r=hs(r);i>r&&(r+=Zb);var f=Math.atan2(s,a);if(f<0&&(f+=Zb),f>=i&&f<=r||f+Zb>=i&&f+Zb<=r)return l[0]=c,l[1]=h,u-n;var p=n*Math.cos(i)+e,A=n*Math.sin(i)+t,g=n*Math.cos(r)+e,v=n*Math.sin(r)+t,m=(p-a)*(p-a)+(A-s)*(A-s),y=(g-a)*(g-a)+(v-s)*(v-s);return m<y?(l[0]=p,l[1]=A,Math.sqrt(m)):(l[0]=g,l[1]=v,Math.sqrt(y))}function rw(e,t,n,i,r,o,a,s){var l=r-e,u=o-t,c=n-e,h=i-t,d=Math.sqrt(c*c+h*h),f=(l*(c/=d)+u*(h/=d))/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var p=a[0]=e+f*c,A=a[1]=t+f*h;return Math.sqrt((p-r)*(p-r)+(A-o)*(A-o))}function ow(e,t,n,i,r,o,a){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,u=a[0]=Math.min(Math.max(r,e),s),c=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var aw=[];function sw(e,t,n){var i=ow(t.x,t.y,t.width,t.height,e.x,e.y,aw);return n.set(aw[0],aw[1]),i}function lw(e,t,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=t.data,h=e.x,d=e.y,f=0;f<c.length;){var p=c[f++];1===f&&(s=o=c[f],l=a=c[f+1]);var A=u;switch(p){case ew.M:o=s=c[f++],a=l=c[f++];break;case ew.L:A=rw(o,a,c[f],c[f+1],h,d,aw,!0),o=c[f++],a=c[f++];break;case ew.C:A=ma(o,a,c[f++],c[f++],c[f++],c[f++],c[f],c[f+1],h,d,aw),o=c[f++],a=c[f++];break;case ew.Q:A=Ca(o,a,c[f++],c[f++],c[f],c[f+1],h,d,aw),o=c[f++],a=c[f++];break;case ew.A:var g=c[f++],v=c[f++],m=c[f++],y=c[f++],_=c[f++],b=c[f++];f+=1;var w=!!(1-c[f++]);i=Math.cos(_)*m+g,r=Math.sin(_)*y+v,f<=1&&(s=i,l=r),A=iw(g,v,y,_,_+b,w,(h-g)*y/m+g,d,aw),o=Math.cos(_+b)*m+g,a=Math.sin(_+b)*y+v;break;case ew.R:A=ow(s=o=c[f++],l=a=c[f++],c[f++],c[f++],h,d,aw);break;case ew.Z:A=rw(o,a,s,l,h,d,aw,!0),o=s,a=l}A<u&&(u=A,n.set(aw[0],aw[1]))}return u}var uw=new Mi,cw=new Mi,hw=new Mi,dw=new Mi,fw=new Mi;function pw(e,t){if(e){var n=e.getTextGuideLine(),i=e.getTextContent();if(i&&n){var r=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||tw,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=e.getComputedTransform(),h=c&&vi([],c),d=t.get("length2")||0;u&&hw.copy(u);for(var f=0;f<a.length;f++){nw(a[f],0,s,uw,dw),Mi.scaleAndAdd(cw,uw,dw,d),cw.transform(h);var p=e.getBoundingRect(),A=u?u.distance(cw):e instanceof Bs?lw(cw,e.path,hw):sw(cw,p,hw);A<l&&(l=A,cw.transform(c),hw.transform(c),hw.toArray(o[0]),cw.toArray(o[1]),uw.toArray(o[2]))}vw(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var Aw=[],gw=new Mi;function vw(e,t){if(t<=180&&t>0){t=t/180*Math.PI,uw.fromArray(e[0]),cw.fromArray(e[1]),hw.fromArray(e[2]),Mi.sub(dw,uw,cw),Mi.sub(fw,hw,cw);var n=dw.len(),i=fw.len();if(!(n<.001||i<.001)){dw.scale(1/n),fw.scale(1/i);var r=dw.dot(fw);if(Math.cos(t)<r){var o=rw(cw.x,cw.y,hw.x,hw.y,uw.x,uw.y,Aw,!1);gw.fromArray(Aw),gw.scaleAndAdd(fw,o/Math.tan(Math.PI-t));var a=hw.x!==cw.x?(gw.x-cw.x)/(hw.x-cw.x):(gw.y-cw.y)/(hw.y-cw.y);if(isNaN(a))return;a<0?Mi.copy(gw,cw):a>1&&Mi.copy(gw,hw),gw.toArray(e[1])}}}}function mw(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,uw.fromArray(e[0]),cw.fromArray(e[1]),hw.fromArray(e[2]),Mi.sub(dw,cw,uw),Mi.sub(fw,hw,cw);var i=dw.len(),r=fw.len();if(!(i<.001||r<.001))if(dw.scale(1/i),fw.scale(1/r),dw.dot(t)<Math.cos(n)){var o=rw(cw.x,cw.y,hw.x,hw.y,uw.x,uw.y,Aw,!1);gw.fromArray(Aw);var a=Math.PI/2,s=a+Math.acos(fw.dot(t))-n;if(s>=a)Mi.copy(gw,hw);else{gw.scaleAndAdd(fw,o/Math.tan(Math.PI/2-s));var l=hw.x!==cw.x?(gw.x-cw.x)/(hw.x-cw.x):(gw.y-cw.y)/(hw.y-cw.y);if(isNaN(l))return;l<0?Mi.copy(gw,cw):l>1&&Mi.copy(gw,hw)}gw.toArray(e[1])}}}function yw(e,t,n,i){var r="normal"===n,o=r?e:e.ensureState(n);o.ignore=t;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):o.style=s}function _w(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Ye(i[0],i[1]),o=Ye(i[1],i[2]);if(!r||!o)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Ze([],i[1],i[0],a/r),l=Ze([],i[1],i[2],a/o),u=Ze([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)e.lineTo(i[c][0],i[c][1])}function bw(e,t,n){var i=e.getTextGuideLine(),r=e.getTextContent();if(r){for(var o=t.normal,a=o.get("show"),s=r.ignore,l=0;l<cl.length;l++){var u=cl[l],c=t[u],h="normal"===u;if(c){var d=c.get("show");if((h?s:Ae(r.states[u]&&r.states[u].ignore,s))||!Ae(d,a)){var f=h?i:i&&i.states.normal;f&&(f.ignore=!0);continue}i||(i=new ec,e.setTextGuideLine(i),h||!s&&a||yw(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),yw(i,!1,u,c)}}if(i){H(i.style,n),i.style.fill=null;var p=o.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=p||!1,i.buildPath=_w}}else i&&e.removeTextGuideLine()}function ww(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<ul.length;i++){var r=ul[i];n[r]=e.getModel([r,t])}return n}function xw(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new bc(a,o):null;t.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return t}function Cw(e,t,n,i,r,o){var a=e.length;if(!(a<2)){e.sort(function(e,n){return e.rect[t]-n.rect[t]});for(var s,l=0,u=!1,c=[],h=0,d=0;d<a;d++){var f=e[d],p=f.rect;(s=p[t]-l)<0&&(p[t]-=s,f.label[t]-=s,u=!0);var A=Math.max(-s,0);c.push(A),h+=A,l=p[t]+p[n]}h>0&&o&&w(-h/a,0,a);var g,v,m=e[0],y=e[a-1];return _(),g<0&&x(-g,.8),v<0&&x(v,.8),_(),b(g,v,1),b(v,g,-1),_(),g<0&&C(-g),v<0&&C(v),u}function _(){g=m.rect[t]-i,v=r-y.rect[t]-y.rect[n]}function b(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){w(i*n,0,a);var r=i+e;r<0&&x(-r*n,1)}else x(-e*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=e[o];a.rect[t]+=n,a.label[t]+=n}}function x(i,r){for(var o=[],s=0,l=1;l<a;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++){w(o[l]*h,0,l+1)}else for(l=a-1;l>0;l--){w(-(o[l-1]*h),l,a)}}}function C(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i<a-1;i++)if(t>0?w(n,0,i+1):w(-n,a-i-1,a),(e-=n)<=0)return}}function Sw(e,t,n,i){return Cw(e,"y","height",t,n,i)}function kw(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new Qi(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var r=0;r<e.length;r++){var o=e[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,d=!1,f=0;f<t.length;f++){var p=t[f];if(n.intersect(p.rect)){if(a&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new bc(p.localRect,p.transform)),h||(h=new bc(s,l)),h.intersect(p.obb)){d=!0;break}}}d?(i(u),c&&i(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function Bw(e,t){var n=e.label,i=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:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}(i&&i.shape.points)}}var Tw=["align","verticalAlign","width","height","fontSize"],Ew=new Ii,Iw=ao(),Mw=ao();function Dw(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null!=t[r]&&(e[r]=t[r])}}var Pw=["x","y","rotation"],Fw=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,r){var o=i.style,a=i.__hostTarget.textConfig||{},s=i.getComputedTransform(),l=i.getBoundingRect().plain();Qi.applyTransform(l,l,s),s?Ew.setLocalTransform(s):(Ew.x=Ew.y=Ew.rotation=Ew.originX=Ew.originY=0,Ew.scaleX=Ew.scaleY=1);var u,c=i.__hostTarget;if(c){u=c.getBoundingRect().plain();var h=c.getComputedTransform();Qi.applyTransform(u,u,h)}var d=u&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOption:r,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:Ew.x,y:Ew.y,scaleX:Ew.scaleX,scaleY:Ew.scaleY,rotation:Ew.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:a.position,attachedRot:a.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(ne(i)||J(i).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var r=e.getTextContent(),o=tl(e);r&&!r.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,r,i)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function i(e,t){return function(){pw(e,t)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=(u="function"==typeof o.layoutOption?o.layoutOption(Bw(o,s)):o.layoutOption)||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(a.x=wr(u.x,t),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=wr(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),h=!1)}Iw(a).needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var f=0;f<Tw.length;f++){var p=Tw[f];a.setStyle(p,null!=u[p]?u[p]:l.style[p])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var A=o.seriesModel;if(null!=o.dataIndex)A=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",i(s,A.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},e.prototype.layout=function(e){var t,n=e.getWidth(),i=e.getHeight(),r=xw(this._labelList),o=q(r,function(e){return"shiftX"===e.layoutOption.moveOverlap}),a=q(r,function(e){return"shiftY"===e.layoutOption.moveOverlap});Cw(o,"x","width",0,n,t),Sw(a,0,i),kw(q(r,function(e){return e.layoutOption.hideOverlap}))},e.prototype.processLabelsOverall=function(){var e=this;W(this._chartViewList,function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!i,a=t.getTextContent();!o&&a&&(o=Iw(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),r&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=tl(e),r=i.dataIndex;if(n&&null!=r){var o=t.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),u=o.getVisual("drawType");s.stroke=l[u];var c=a.getModel("labelLine");bw(e,ww(a),s),pw(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Ec(e))){var r=(f=Iw(n)).oldLayout,o=tl(e),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(r){n.attr(r);var u=e.prevStates;u&&(V(u,"select")>=0&&n.attr(f.oldLayoutSelect),V(u,"emphasis")>=0&&n.attr(f.oldLayoutEmphasis)),Bc(n,s,t,a)}else if(n.attr(s),!_h(n).valueAnimation){var c=Ae(n.style.opacity,1);n.style.opacity=0,Tc(n,{style:{opacity:c}},t,a)}if(f.oldLayout=s,n.states.select){var h=f.oldLayoutSelect={};Dw(h,s,Pw),Dw(h,n.states.select,Pw)}if(n.states.emphasis){var d=f.oldLayoutEmphasis={};Dw(d,s,Pw),Dw(d,n.states.emphasis,Pw)}wh(n,a,l,t,t)}if(i&&!i.ignore&&!i.invisible){r=(f=Mw(i)).oldLayout;var f,p={points:i.shape.points};r?(i.attr({shape:r}),Bc(i,{shape:p},t)):(i.setShape(p),i.style.strokePercent=0,Tc(i,{style:{strokePercent:1}},t)),f.oldLayout=p}},e}(),Ow=ao();function Lw(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var i=Ow(t).labelManager;i||(i=Ow(t).labelManager=new Fw),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var i=Ow(t).labelManager;n.updatedSeries.forEach(function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()})}function Nw(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Rw(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var n=An(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}function Uw(e,t,n,i,r){for(var o=t.length,a=n.length,s=e.newPos,l=s-i,u=0;s+1<o&&l+1<a&&r(t[s+1],n[l+1]);)s++,l++,u++;return u&&e.components.push({count:u,added:!1,removed:!1,indices:[]}),e.newPos=s,l}function Qw(e,t,n){var i=e[e.length-1];i&&i.added===t&&i.removed===n?e[e.length-1]={count:i.count+1,added:t,removed:n,indices:[]}:e.push({count:1,added:t,removed:n,indices:[]})}function Hw(e){for(var t=0,n=e.length,i=0,r=0;t<n;t++){var o=e[t];if(o.removed){for(s=r;s<r+o.count;s++)o.indices.push(s);r+=o.count}else{for(var a=[],s=i;s<i+o.count;s++)a.push(s);o.indices=a,i+=o.count,o.added||(r+=o.count)}}return e}function jw(e,t,n){return function(e,t,n){n||(n=function(e,t){return e===t}),e=e.slice();var i=(t=t.slice()).length,r=e.length,o=1,a=i+r,s=[{newPos:-1,components:[]}],l=Uw(s[0],t,e,0,n);if(s[0].newPos+1>=i&&l+1>=r){for(var u=[],c=0;c<t.length;c++)u.push(c);return[{indices:u,count:t.length,added:!1,removed:!1}]}function h(){for(var a=-1*o;a<=o;a+=2){var l,u=s[a-1],c=s[a+1],h=(c?c.newPos:0)-a;u&&(s[a-1]=void 0);var d=u&&u.newPos+1<i,f=c&&0<=h&&h<r;if(d||f){if(!d||f&&u.newPos<c.newPos?Qw((l={newPos:(p=c).newPos,components:p.components.slice(0)}).components,!1,!0):((l=u).newPos++,Qw(l.components,!0,!1)),h=Uw(l,t,e,a,n),l.newPos+1>=i&&h+1>=r)return Hw(l.components);s[a]=l}else s[a]=void 0}var p;o++}for(;o<=a;){var d=h();if(d)return d}}(e,t,n)}Uy(Lw);var Vw="none",zw=Math.round,$w=Math.sin,Gw=Math.cos,Ww=Math.PI,Kw=2*Math.PI,Yw=180/Ww,qw=1e-4;function Xw(e){return zw(1e3*e)/1e3}function Jw(e){return zw(1e4*e)/1e4}function Zw(e){return e<qw&&e>-qw}function ex(e,t){t&&tx(e,"transform","matrix("+Xw(t[0])+","+Xw(t[1])+","+Xw(t[2])+","+Xw(t[3])+","+Jw(t[4])+","+Jw(t[5])+")")}function tx(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function nx(e,t,n){var i=null==t.opacity?1:t.opacity;if(n instanceof Fs)tx(e,"opacity",i+"");else{if(function(e){var t=e.fill;return null!=t&&t!==Vw}(t)){var r=Rw(t.fill);tx(e,"fill",r.color),tx(e,"fill-opacity",(null!=t.fillOpacity?t.fillOpacity*r.opacity*i:r.opacity*i)+"")}else tx(e,"fill",Vw);if(function(e){var t=e.stroke;return null!=t&&t!==Vw}(t)){var o=Rw(t.stroke);tx(e,"stroke",o.color);var a=t.lineWidth,s=t.strokeNoScale?n.getLineScale():1;tx(e,"stroke-width",(s?a/s:0)+""),tx(e,"paint-order",t.strokeFirst?"stroke":"fill"),tx(e,"stroke-opacity",(null!=t.strokeOpacity?t.strokeOpacity*o.opacity*i:o.opacity*i)+"");var l=t.lineDash&&a>0&&ev(t.lineDash,a);if(l){var u=t.lineDashOffset;s&&1!==s&&(l=K(l,function(e){return e/s}),u&&(u=zw(u/=s))),tx(e,"stroke-dasharray",l.join(",")),tx(e,"stroke-dashoffset",(u||0)+"")}else tx(e,"stroke-dasharray",Vw);t.lineCap&&tx(e,"stroke-linecap",t.lineCap),t.lineJoin&&tx(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&tx(e,"stroke-miterlimit",t.miterLimit+"")}else tx(e,"stroke",Vw)}}var ix=function(){function e(){}return e.prototype.reset=function(){this._d=[],this._str=""},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,i,r,o){this._add("C",e,t,n,i,r,o)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,r,o){this.ellipse(e,t,n,n,0,i,r,o)},e.prototype.ellipse=function(e,t,n,i,r,o,a,s){var l=0===this._d.length,u=a-o,c=!s,h=Math.abs(u),d=Zw(h-Kw)||(c?u>=Kw:-u>=Kw),f=u>0?u%Kw:u%Kw+Kw,p=!1;p=!!d||!Zw(h)&&f>=Ww==!!c;var A=Jw(e+n*Gw(o)),g=Jw(t+i*$w(o));d&&(u=c?Kw-1e-4:1e-4-Kw,p=!0,l&&this._d.push("M",A,g));var v=Jw(e+n*Gw(o+u)),m=Jw(t+i*$w(o+u));if(isNaN(A)||isNaN(g)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(Yw)||isNaN(v)||isNaN(m))return"";this._d.push("A",Jw(n),Jw(i),zw(r*Yw),+p,+c,v,m)},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("L",e+n,t),this._add("L",e+n,t+i),this._add("L",e,t+i),this._add("L",e,t),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,r,o,a,s,l){this._d.push(e);for(var u=1;u<arguments.length;u++){var c=arguments[u];if(isNaN(c))return void(this._invalid=!0);this._d.push(Jw(c))}},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(" "),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),rx={brush:function(e){var t=e.style,n=e.__svgEl;n||(n=Nw("path"),e.__svgEl=n),e.path||e.createPathProxy();var i=e.path;e.shapeChanged()&&(i.beginPath(),e.buildPath(i,e.shape),e.pathUpdated());var r=i.getVersion(),o=e,a=o.__svgPathBuilder;(o.__svgPathVersion!==r||!a||e.style.strokePercent<1)&&(a||(a=o.__svgPathBuilder=new ix),a.reset(),i.rebuildPath(a,e.style.strokePercent),a.generateStr(),o.__svgPathVersion=r),tx(n,"d",a.getStr()),nx(n,t,e),ex(n,e.transform)}},ox={brush:function(e){var t=e.style,n=t.image;if(n instanceof HTMLImageElement?n=n.src:n instanceof HTMLCanvasElement&&(n=n.toDataURL()),n){var i=t.x||0,r=t.y||0,o=t.width,a=t.height,s=e.__svgEl;s||(s=Nw("image"),e.__svgEl=s),n!==e.__imageSrc&&(!function(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}(s,"href",n),e.__imageSrc=n),tx(s,"width",o+""),tx(s,"height",a+""),tx(s,"x",i+""),tx(s,"y",r+""),nx(s,t,e),ex(s,e.transform)}}},ax={left:"start",right:"end",center:"middle",middle:"middle"};var sx={brush:function(e){var t=e.style,n=t.text;if(null!=n&&(n+=""),n&&!isNaN(t.x)&&!isNaN(t.y)){var i=e.__svgEl;i||(function(e,t,n){e.setAttributeNS("http://www.w3.org/XML/1998/namespace",t,n)}(i=Nw("text"),"xml:space","preserve"),e.__svgEl=i);var r=t.font||ji;i.style.font=r,i.textContent=n,nx(i,t,e),ex(i,e.transform);var o=t.x||0,a=function(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}(t.y||0,Yi(r),t.textBaseline),s=ax[t.textAlign]||t.textAlign;tx(i,"dominant-baseline","central"),tx(i,"text-anchor",s),tx(i,"x",o+""),tx(i,"y",a+"")}}},lx=function(){function e(e,t,n,i,r){this.nextId=0,this._domName="_dom",this.createElement=Nw,this._zrId=e,this._svgRoot=t,this._tagNames="string"==typeof n?[n]:n,this._markLabel=i,r&&(this._domName=r)}return e.prototype.getDefs=function(e){var t=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");if(0===n.length){if(e){var i=t.insertBefore(this.createElement("defs"),t.firstChild);return i.contains||(i.contains=function(e){var t=i.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),i}return null}return n[0]},e.prototype.doUpdate=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"==typeof t&&t(e);else{var i=this.add(e);i&&(e[this._domName]=i)}}},e.prototype.add=function(e){return null},e.prototype.addDom=function(e){var t=this.getDefs(!0);e.parentNode!==t&&t.appendChild(e)},e.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},e.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return W(this._tagNames,function(n){for(var i=e.getElementsByTagName(n),r=0;r<i.length;r++)t.push(i[r])}),t},e.prototype.markAllUnused=function(){var e=this;W(this.getDoms(),function(t){t[e._markLabel]="0"})},e.prototype.markDomUsed=function(e){e&&(e[this._markLabel]="1")},e.prototype.markDomUnused=function(e){e&&(e[this._markLabel]="0")},e.prototype.isDomUnused=function(e){return e&&"1"!==e[this._markLabel]},e.prototype.removeUnused=function(){var e=this,t=this.getDefs(!1);t&&W(this.getDoms(),function(n){e.isDomUnused(n)&&t.removeChild(n)})},e.prototype.getSvgProxy=function(e){return e instanceof Bs?rx:e instanceof Fs?ox:e instanceof Is?sx:rx},e.prototype.getSvgElement=function(e){return e.__svgEl},e}();function ux(e){return"linear"===e.type}function cx(e){return"radial"===e.type}function hx(e){return e&&("linear"===e.type||"radial"===e.type)}var dx=function(e){function t(t,n){return e.call(this,t,n,["linearGradient","radialGradient"],"__gradient_in_use__")||this}return Me(t,e),t.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;W(["fill","stroke"],function(i){var r=t.style[i];if(hx(r)){var o=r,a=n.getDefs(!0),s=void 0;o.__dom?(s=o.__dom,a.contains(o.__dom)||n.addDom(s)):s=n.add(o),n.markUsed(t);var l=s.getAttribute("id");e.setAttribute(i,"url(#"+l+")")}})}},t.prototype.add=function(e){var t;if(ux(e))t=this.createElement("linearGradient");else{if(!cx(e))return L("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},t.prototype.update=function(e){if(hx(e)){var t=this;this.doUpdate(e,function(){var n=e.__dom;if(n){var i=n.tagName,r=e.type;"linear"===r&&"linearGradient"===i||"radial"===r&&"radialGradient"===i?t.updateDom(e,e.__dom):(t.removeDom(e),t.add(e))}})}},t.prototype.updateDom=function(e,t){if(ux(e))t.setAttribute("x1",e.x+""),t.setAttribute("y1",e.y+""),t.setAttribute("x2",e.x2+""),t.setAttribute("y2",e.y2+"");else{if(!cx(e))return void L("Illegal gradient type.");t.setAttribute("cx",e.x+""),t.setAttribute("cy",e.y+""),t.setAttribute("r",e.r+"")}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var n=e.colorStops,i=0,r=n.length;i<r;++i){var o=this.createElement("stop");o.setAttribute("offset",100*n[i].offset+"%");var a=n[i].color;if(a.indexOf("rgba")>-1){var s=An(a)[3],l=mn(a);o.setAttribute("stop-color","#"+l),o.setAttribute("stop-opacity",s+"")}else o.setAttribute("stop-color",n[i].color);t.appendChild(o)}e.__dom=t},t.prototype.markUsed=function(t){if(t.style){var n=t.style.fill;n&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom),(n=t.style.stroke)&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom)}},t}(lx);function fx(e){return e&&(!!e.image||!!e.svgElement)}var px=new Qg,Ax=function(e){function t(t,n){return e.call(this,t,n,["pattern"],"__pattern_in_use__")||this}return Me(t,e),t.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;W(["fill","stroke"],function(i){var r=t.style[i];if(fx(r)){var o=n.getDefs(!0),a=px.get(r);a?o.contains(a)||n.addDom(a):a=n.add(r),n.markUsed(t);var s=a.getAttribute("id");e.setAttribute(i,"url(#"+s+")")}})}},t.prototype.add=function(e){if(fx(e)){var t=this.createElement("pattern");return e.id=null==e.id?this.nextId++:e.id,t.setAttribute("id","zr"+this._zrId+"-pattern-"+e.id),t.setAttribute("x","0"),t.setAttribute("y","0"),t.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(e,t),this.addDom(t),t}},t.prototype.update=function(e){if(fx(e)){var t=this;this.doUpdate(e,function(){var n=px.get(e);t.updateDom(e,n)})}},t.prototype.updateDom=function(e,t){var n=e.svgElement;if(n instanceof SVGElement)n.parentNode!==t&&(t.innerHTML="",t.appendChild(n),t.setAttribute("width",e.svgWidth+""),t.setAttribute("height",e.svgHeight+""));else{var i=void 0,r=t.getElementsByTagName("image");if(r.length){if(!e.image)return void t.removeChild(r[0]);i=r[0]}else e.image&&(i=this.createElement("image"));if(i){var o=void 0,a=e.image;if("string"==typeof a?o=a:a instanceof HTMLImageElement?o=a.src:a instanceof HTMLCanvasElement&&(o=a.toDataURL()),o){i.setAttribute("href",o),i.setAttribute("x","0"),i.setAttribute("y","0");var s=Do(o,i,{dirty:function(){}},function(e){t.setAttribute("width",e.width+""),t.setAttribute("height",e.height+"")});s&&s.width&&s.height&&(t.setAttribute("width",s.width+""),t.setAttribute("height",s.height+"")),t.appendChild(i)}}}var l="translate("+(e.x||0)+", "+(e.y||0)+") rotate("+(e.rotation||0)/Math.PI*180+") scale("+(e.scaleX||1)+", "+(e.scaleY||1)+")";t.setAttribute("patternTransform",l),px.set(e,t)},t.prototype.markUsed=function(t){t.style&&(fx(t.style.fill)&&e.prototype.markDomUsed.call(this,px.get(t.style.fill)),fx(t.style.stroke)&&e.prototype.markDomUsed.call(this,px.get(t.style.stroke)))},t}(lx);function gx(e){var t=e.__clipPaths;return t&&t.length>0}var vx=function(e){function t(t,n){var i=e.call(this,t,n,"clipPath","__clippath_in_use__")||this;return i._refGroups={},i._keyDuplicateCount={},i}return Me(t,e),t.prototype.markAllUnused=function(){e.prototype.markAllUnused.call(this);var t=this._refGroups;for(var n in t)t.hasOwnProperty(n)&&this.markDomUnused(t[n]);this._keyDuplicateCount={}},t.prototype._getClipPathGroup=function(e,t){if(gx(e)){var n=e.__clipPaths,i=this._keyDuplicateCount,r=function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var i=e[n];t.push(i.id)}return t.join(",")}(n);return Zg(n,t&&t.__clipPaths)&&(i[r]=i[r]||0,i[r]&&(r+="-"+i[r]),i[r]++),this._refGroups[r]||(this._refGroups[r]=this.createElement("g"))}},t.prototype.update=function(e,t){var n=this._getClipPathGroup(e,t);return n&&(this.markDomUsed(n),this.updateDom(n,e.__clipPaths)),n},t.prototype.updateDom=function(e,t){if(t&&t.length>0){var n=this.getDefs(!0),i=t[0],r=void 0,o=void 0;i._dom?(o=i._dom.getAttribute("id"),r=i._dom,n.contains(r)||n.appendChild(r)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(r=this.createElement("clipPath")).setAttribute("id",o),n.appendChild(r),i._dom=r),this.getSvgProxy(i).brush(i);var a=this.getSvgElement(i);r.innerHTML="",r.appendChild(a),e.setAttribute("clip-path","url(#"+o+")"),t.length>1&&this.updateDom(r,t.slice(1))}else e&&e.setAttribute("clip-path","none")},t.prototype.markUsed=function(t){var n=this;t.__clipPaths&&W(t.__clipPaths,function(t){t._dom&&e.prototype.markDomUsed.call(n,t._dom)})},t.prototype.removeUnused=function(){e.prototype.removeUnused.call(this);var t={},n=this._refGroups;for(var i in n)if(n.hasOwnProperty(i)){var r=n[i];this.isDomUnused(r)?r.parentNode&&r.parentNode.removeChild(r):t[i]=r}this._refGroups=t},t}(lx),mx=function(e){function t(t,n){var i=e.call(this,t,n,["filter"],"__filter_in_use__","_shadowDom")||this;return i._shadowDomMap={},i._shadowDomPool=[],i}return Me(t,e),t.prototype._getFromPool=function(){var e=this._shadowDomPool.pop();if(!e){(e=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var t=this.createElement("feDropShadow");e.appendChild(t),this.addDom(e)}return e},t.prototype.update=function(e,t){if(function(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}(t.style)){var n=function(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(t),i=t._shadowDom=this._shadowDomMap[n];i||(i=this._getFromPool(),this._shadowDomMap[n]=i),this.updateDom(e,t,i)}else this.remove(e,t)},t.prototype.remove=function(e,t){null!=t._shadowDom&&(t._shadowDom=null,e.removeAttribute("filter"))},t.prototype.updateDom=function(e,t,n){var i=n.children[0],r=t.style,o=t.getGlobalScale(),a=o[0],s=o[1];if(a&&s){var l=r.shadowOffsetX||0,u=r.shadowOffsetY||0,c=r.shadowBlur,h=Rw(r.shadowColor);i.setAttribute("dx",l/a+""),i.setAttribute("dy",u/s+""),i.setAttribute("flood-color",h.color),i.setAttribute("flood-opacity",h.opacity+"");var d=c/2/a+" "+c/2/s;i.setAttribute("stdDeviation",d),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),t._shadowDom=n;var f=n.getAttribute("id");e.setAttribute("filter","url(#"+f+")")}},t.prototype.removeUnused=function(){if(this.getDefs(!1)){var e=this._shadowDomPool,t=this._shadowDomMap;for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);this._shadowDomMap={}}},t}(lx);function yx(e){return parseInt(e,10)}function _x(e){return e instanceof Bs?rx:e instanceof Fs?ox:e instanceof Is?sx:rx}function bx(e,t){return t&&e&&t.parentNode!==e}function xx(e,t,n){if(bx(e,t)&&n){var i=n.nextSibling;i?e.insertBefore(t,i):e.appendChild(t)}}function Cx(e,t){if(bx(e,t)){var n=e.firstChild;n?e.insertBefore(t,n):e.appendChild(t)}}function Sx(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function kx(e){return e.__svgEl}function Bx(e){return function(){L('In SVG mode painter not support method "'+e+'"')}}var Tx=function(){function e(e,t,n,i){this.type="svg",this.refreshHover=Bx("refreshHover"),this.pathToImage=Bx("pathToImage"),this.configLayer=Bx("configLayer"),this.root=e,this.storage=t,this._opts=n=Q({},n||{});var r=Nw("svg");r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("baseProfile","full"),r.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=Nw("g");r.appendChild(o);var a=Nw("g");r.appendChild(a),this._gradientManager=new dx(i,a),this._patternManager=new Ax(i,a),this._clipPathManager=new vx(i,a),this._shadowManager=new mx(i,a);var s=document.createElement("div");s.style.cssText="overflow:hidden;position:relative",this._svgDom=r,this._svgRoot=a,this._backgroundRoot=o,this._viewport=s,e.appendChild(s),s.appendChild(r),this.resize(n.width,n.height),this._visibleList=[]}return e.prototype.getType=function(){return"svg"},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.getSvgRoot=function(){return this._svgRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},e.prototype.setBackgroundColor=function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=Nw("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0);var n=Rw(e),i=n.color,r=n.opacity;t.setAttribute("fill",i),t.setAttribute("fill-opacity",r),this._backgroundRoot.appendChild(t),this._backgroundNode=t},e.prototype.createSVGElement=function(e){return Nw(e)},e.prototype.paintOne=function(e){var t=_x(e);return t&&t.brush(e),kx(e)},e.prototype._paintList=function(e){var t=this._gradientManager,n=this._patternManager,i=this._clipPathManager,r=this._shadowManager;t.markAllUnused(),n.markAllUnused(),i.markAllUnused(),r.markAllUnused();for(var o=this._svgRoot,a=this._visibleList,s=e.length,l=[],u=0;u<s;u++){var c=_x(_=e[u]),h=kx(_);_.invisible||(!_.__dirty&&h||(c&&c.brush(_),(h=kx(_))&&_.style&&(t.update(_.style.fill),t.update(_.style.stroke),n.update(_.style.fill),n.update(_.style.stroke),r.update(h,_)),_.__dirty=0),h&&l.push(_))}var d,f,p,A,g,v=jw(a,l);for(u=0;u<v.length;u++){if((y=v[u]).removed)for(var m=0;m<y.count;m++){h=kx(_=a[y.indices[m]]);gx(_)?(p=h)&&p.parentNode&&p.parentNode.removeChild(p):Sx(o,h)}}for(u=0;u<v.length;u++){var y;if(!(y=v[u]).removed)for(m=0;m<y.count;m++){var _=l[y.indices[m]],b=i.update(_,A);b!==g&&(d=f,b&&(d?xx(o,b,d):Cx(o,b),f=b,d=null),g=b);h=kx(_);d?xx(g||o,h,d):Cx(g||o,h),d=h||d,g||(f=d),t.markUsed(_),t.addWithoutUpdate(h,_),n.markUsed(_),n.addWithoutUpdate(h,_),i.markUsed(_),A=_}}t.removeUnused(),n.removeUnused(),i.removeUnused(),r.removeUnused(),this._visibleList=l},e.prototype.resize=function(e,t){var n=this._viewport;n.style.display="none";var i=this._opts;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var r=n.style;r.width=e+"px",r.height=t+"px";var o=this._svgDom;o.setAttribute("width",e+""),o.setAttribute("height",t+"")}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype._getSize=function(e){var t=this._opts,n=["width","height"][e],i=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||yx(s[n])||yx(a.style[n]))-(yx(s[r])||0)-(yx(s[o])||0)|0},e.prototype.dispose=function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},e.prototype.clear=function(){var e=this._viewport;e&&e.parentNode&&e.parentNode.removeChild(e)},e.prototype.toDataURL=function(){this.refresh();var e=this._svgDom,t=e.outerHTML||(e.parentNode&&e.parentNode).innerHTML;return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t.replace(/></g,">\n\r<"))},e}();function Ex(){return!1}function Ix(e,t,n){var i=j(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=o*n,i}var Mx=function(e){function t(t,n,i){var r,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||li,"string"==typeof t?r=Ix(t,n,i):ae(t)&&(t=(r=t).id),o.id=t,o.dom=r;var a=r.style;return a&&(r.onselectstart=Ex,a.webkitUserSelect="none",a.userSelect="none",a.webkitTapHighlightColor="rgba(0,0,0,0)",a["-webkit-touch-callout"]="none",a.padding="0",a.margin="0",a.borderWidth="0"),o.domBack=null,o.ctxBack=null,o.painter=n,o.config=null,o.dpr=i,o}return Me(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=Ix("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,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Qi(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){(t=new Qi(0,0,0,0)).copy(e),o.push(t)}else{for(var t,n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(e)){var h=new Qi(0,0,0,0);h.copy(c),h.union(e),o[u]=h,n=!0;break}if(s){l.copy(e),l.union(c);var d=e.width*e.height,f=c.width*c.height,p=l.width*l.height-d-f;p<i&&(i=p,r=u)}}if(s&&(o[r].union(e),n=!0),!n)(t=new Qi(0,0,0,0)).copy(e),o.push(t);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(f=e[c]){var h=f.shouldBePainted(n,i,!0,!0);(p=f.__isRendered&&(f.__dirty&Vt||!h)?f.getPrevPaintRect():null)&&u(p);var d=h&&(f.__dirty&Vt||!f.__isRendered)?f.getPaintRect():null;d&&u(d)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var f,p;h=(f=t[c]).shouldBePainted(n,i,!0,!0);if(f&&(!h||!f.__zr)&&f.__isRendered)(p=f.getPrevPaintRect())&&u(p)}do{r=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var A=c+1;A<o.length;)o[c].intersect(o[A])?(r=!0,o[c].union(o[A]),o.splice(A,1)):A++;c++}}while(r);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var h=this.domBack;function d(e,n,i,o){if(r.clearRect(e,n,i,o),t&&"transparent"!==t){var a=void 0;ce(t)?(a=t.__canvasGradient||Jg(r,t,{x:0,y:0,width:i,height:o}),t.__canvasGradient=a):he(t)&&(a=sv(r,t,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),r.save(),r.fillStyle=a||t,r.fillRect(e,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,e,n,i,o),r.restore())}!n||s?d(0,0,o,a):n.length&&W(n,function(e){d(e.x*u,e.y*u,e.width*u,e.height*u)})},t}(ot),Dx=314159;function Px(e){return parseInt(e,10)}var Fx=function(){function e(e,t,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=Q({},n||{}),this.dpr=n.devicePixelRatio||li,this._singleCanvas=r,this.root=e;var o=e.style;o&&(o.webkitTapHighlightColor="transparent",o.webkitUserSelect="none",o.userSelect="none",o["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(r){var l=e,u=l.width,c=l.height;null!=n.width&&(u=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var h=new Mx(l,this,this.dpr);h.__builtin__=!0,h.initContext(),s[Dx]=h,h.zlevel=Dx,a.push(Dx),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var d=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(d)}}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,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}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 i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),_v(i,a,r,o===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(1e5)},e.prototype.paintOne=function(e,t){yv(e,t)},e.prototype._paintList=function(e,t,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;Yt(function(){s._paintList(e,t,n,i)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(Dx).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=r[a],h=l.ctx,f=o&&l.createRepaintRects(e,t,d._width,d._height),p=n?l.__startIndex:l.__drawIndex,A=!n&&l.incremental&&Date.now,g=A&&Date.now(),v=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,f);else if(p===l.__startIndex){var m=e[p];m.incremental&&m.notClear&&!n||l.clear(!1,v,f)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var y=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=p;s<l.__endIndex;s++){var r=e[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,o,t,n,s===l.__endIndex-1),A)if(Date.now()-g>15)break}n.prevElClipPaths&&h.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var _=d.dpr,b=0;b<f.length;++b){var w=f[b];h.save(),h.beginPath(),h.rect(w.x*_,w.y*_,w.width*_,w.height*_),h.clip(),y(w),h.restore()}else h.save(),y(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},d=this,f=0;f<r.length;f++)h(f);return _.wxa&&W(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:u,needsRefreshHover:c}},e.prototype._doPaintEl=function(e,t,n,i,r,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!i||s&&s.intersect(i))&&(_v(a,e,r,o),e.setPrevPaintRect(s))}else _v(a,e,r,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Dx);var n=this._layers[e];return n||((n=new Mx("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?R(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&R(n,this._layerConfig[e-.01],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(n[e])L("ZLevel "+e+" has been used already");else if(function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(r>0&&e>i[0]){for(s=0;s<r-1&&!(i[s]<e&&i[s+1]>e);s++);a=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}else L("Layer of zlevel "+e+" is not valid")},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((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var i,r,o=null,a=0;for(r=0;r<e.length;r++){var s,l=(s=e[r]).zlevel,u=void 0;i!==l&&(i=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?.01:0),this._needsManuallyCompositing),u.__builtin__||L("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,t(r),o=u),s.__dirty&Vt&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}t(r),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,W(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?R(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+.01)R(this._layers[r],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(V(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||t!==this._height){for(var r in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].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(Dx).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[Dx].dom;var t=new Mx("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 i=t.dom.width,r=t.dom.height;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,i,r):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];_v(n,u,o,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype._getSize=function(e){var t=this._opts,n=["width","height"][e],i=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||Px(s[n])||Px(a.style[n]))-(Px(s[r])||0)-(Px(s[o])||0)|0},e.prototype.pathToImage=function(e,t){t=t||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=e.getBoundingRect(),o=e.style,a=o.shadowBlur*t,s=o.shadowOffsetX*t,l=o.shadowOffsetY*t,u=e.hasStroke()?o.lineWidth:0,c=Math.max(u/2,-s+a),h=Math.max(u/2,s+a),d=Math.max(u/2,-l+a),f=Math.max(u/2,l+a),p=r.width+c+h,A=r.height+d+f;n.width=p*t,n.height=A*t,i.scale(t,t),i.clearRect(0,0,p,A),i.dpr=t;var g={x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY,rotation:e.rotation,originX:e.originX,originY:e.originY};e.x=c-r.x,e.y=d-r.y,e.rotation=0,e.scaleX=1,e.scaleY=1,e.updateTransform(),e&&_v(i,e,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var v=new Fs({style:{x:0,y:0,image:n}});return Q(e,g),v},e}();var Ox=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return g(t,e),t.prototype.getInitialData=function(e){return w_(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new lr,n=Yg("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*e.itemHeight,s=Yg(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?r:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={zlevel:0,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,lineStyle:{width:"bolder"}},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}(LA);function Lx(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Tp(e,t,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Tp(e,t,n[a]));return o.join(" ")}}function Nx(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!te(t))return t+"";for(var i=[],r=0;r<n.length;r++){var o=e.getDimensionIndex(n[r]);o>=0&&i.push(t[o])}return i.join(" ")}function Rx(e,t){this.parent.drift(e,t)}var Ux=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return g(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var o=Yg(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Rx,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(){Ol(this.childAt(0))},t.prototype.downplay=function(){Ll(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){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},t.prototype.updateData=function(e,n,i,r){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{(d=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):Bc(d,h,a,n),Pc(d)}if(this._updateCommon(e,n,s,i,r),l){var d=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Tc(d,h,a,n)}}u&&this.childAt(0).stopAnimation("remove"),this._seriesModel=a},t.prototype._updateCommon=function(e,t,n,i,r){var o,a,s,l,u,c,h,d,f=this.childAt(0),p=e.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,h=i.hoverScale,d=i.cursorStyle),!i||e.hasItemOption){var A=i&&i.itemModel?i.itemModel:e.getItemModel(t),g=A.getModel("emphasis");o=g.getModel("itemStyle").getItemStyle(),s=A.getModel(["select","itemStyle"]).getItemStyle(),a=A.getModel(["blur","itemStyle"]).getItemStyle(),l=g.get("focus"),u=g.get("blurScope"),c=dh(A),h=g.getShallow("scale"),d=A.getShallow("cursor")}var v=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(v||0)*Math.PI/180||0);var m=Xg(e.getItemVisual(t,"symbolOffset"),n);m&&(f.x=m[0],f.y=m[1]),d&&f.attr("cursor",d);var y=e.getItemVisual(t,"style"),_=y.fill;if(f instanceof Fs){var b=f.style;f.useStyle(Q({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},y))}else f.__isEmptyBrush?f.useStyle(Q({},y)):f.useStyle(y),f.style.decal=null,f.setColor(_,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var w=e.getItemVisual(t,"liftZ"),x=this._z2;null!=w?null==x&&(this._z2=f.z2,f.z2+=w):null!=x&&(f.z2=x,this._z2=null);var C=r&&r.useNameLabel;hh(f,c,{labelFetcher:p,labelDataIndex:t,defaultText:function(t){return C?e.getName(t):Lx(e,t)},inheritColor:_,defaultOpacity:y.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var S=f.ensureState("emphasis");if(S.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a,h){var k=Math.max(1.1,3/this._sizeY);S.scaleX=this._sizeX*k,S.scaleY=this._sizeY*k}this.setSymbolScale(1),Wl(this,l,u)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t){var n=this.childAt(0),i=this._seriesModel,r=tl(this).dataIndex,o=t&&t.animation;if(this.silent=n.silent=!0,t&&t.fadeLabel){var a=n.getTextContent();a&&Ic(a,{style:{opacity:0}},i,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Ic(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:r,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return qg(e.getItemVisual(t,"symbolSize"))},t}(lr);function Qx(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function Hx(e){return null==e||ae(e)||(e={isIgnore:e}),e||{}}function jx(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),hoverScale:n.get("scale"),labelStatesModels:dh(t),cursorStyle:t.get("cursor")}}var Vx=function(){function e(e){this.group=new lr,this._SymbolCtor=e||Ux}return e.prototype.updateData=function(e,t){t=Hx(t);var n=this.group,i=e.hostModel,r=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=jx(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add(function(i){var r=u(i);if(Qx(e,r,i,t)){var a=new o(e,i,s,l);a.setPosition(r),e.setItemGraphicEl(i,a),n.add(a)}}).update(function(c,h){var d=r.getItemGraphicEl(h),f=u(c);if(Qx(e,f,c,t)){var p=e.getItemVisual(c,"symbol")||"circle",A=d&&d.getSymbolType&&d.getSymbolType();if(!d||A&&A!==p)n.remove(d),(d=new o(e,c,s,l)).setPosition(f);else{d.updateData(e,c,s,l);var g={x:f[0],y:f[1]};a?d.attr(g):Bc(d,g,i)}n.add(d),e.setItemGraphicEl(c,d)}else n.remove(d)}).remove(function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)})}).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.isPersistent=function(){return!0},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=jx(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}n=Hx(n);for(var r=e.start;r<e.end;r++){var o=t.getItemLayout(r);if(Qx(t,o,r,n)){var a=new this._SymbolCtor(t,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(r,a)}}},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)})}):t.removeAll()},e}();function zx(e,t,n){var i=e.getBaseAxis(),r=e.getOtherAxis(i),o=function(e,t){var n=0,i=e.scale.getExtent();"start"===t?n=i[0]:"end"===t?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,h=K(e.dimensions,function(e){return t.mapDimension(e)}),d=!1,f=t.getCalculationInfo("stackResultDimension");return __(t,h[0])&&(d=!0,h[0]=f),__(t,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function $x(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}var Gx="undefined"!=typeof Float32Array,Wx=Gx?Float32Array:Array;function Kx(e){return te(e)?Gx?new Float32Array(e):e:new Wx(e)}var Yx=Math.min,qx=Math.max;function Xx(e,t){return isNaN(e)||isNaN(t)}function Jx(e,t,n,i,r,o,a,s,l){for(var u,c,h,d,f,p,A=n,g=0;g<i;g++){var v=t[2*A],m=t[2*A+1];if(A>=r||A<0)break;if(Xx(v,m)){if(l){A+=o;continue}break}if(A===n)e[o>0?"moveTo":"lineTo"](v,m),h=v,d=m;else{var y=v-u,_=m-c;if(y*y+_*_<.5){A+=o;continue}if(a>0){for(var b=A+o,w=t[2*b],x=t[2*b+1];w===v&&x===m&&g<i;)g++,A+=o,w=t[2*(b+=o)],x=t[2*b+1],y=(v=t[2*A])-u,_=(m=t[2*A+1])-c;var C=g+1;if(l)for(;Xx(w,x)&&C<i;)C++,w=t[2*(b+=o)],x=t[2*b+1];var S=.5,k=0,B=0,T=void 0,E=void 0;if(C>=i||Xx(w,x))f=v,p=m;else{k=w-u,B=x-c;var I=v-u,M=w-v,D=m-c,P=x-m,F=void 0,O=void 0;"x"===s?(F=Math.abs(I),O=Math.abs(M),f=v-F*a,p=m,T=v+F*a,E=m):"y"===s?(F=Math.abs(D),O=Math.abs(P),f=v,p=m-F*a,T=v,E=m+F*a):(F=Math.sqrt(I*I+D*D),f=v-k*a*(1-(S=(O=Math.sqrt(M*M+P*P))/(O+F))),p=m-B*a*(1-S),E=m+B*a*S,T=Yx(T=v+k*a*S,qx(w,v)),E=Yx(E,qx(x,m)),T=qx(T,Yx(w,v)),p=m-(B=(E=qx(E,Yx(x,m)))-m)*F/O,f=Yx(f=v-(k=T-v)*F/O,qx(u,v)),p=Yx(p,qx(c,m)),f=qx(f,Yx(u,v)),p=qx(p,Yx(c,m)),T=v+(k=v-f)*O/F,E=m+(B=m-p)*O/F)}e.bezierCurveTo(h,d,f,p,v,m),h=T,d=E}else e.lineTo(v,m)}u=v,c=m,A+=o}return g}var Zx=function(){return function(){this.smooth=0,this.smoothConstraint=!0}}(),eC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return g(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Zx},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0&&Xx(n[2*r-2],n[2*r-1]);r--);for(;i<r&&Xx(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=Jx(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,i,r=this.path.data,o=as.CMD,a="x"===t,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,d=void 0,f=void 0,p=void 0,A=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],c=r[l++],(A=a?(e-n)/(u-n):(e-i)/(c-i))<=1&&A>=0){var g=a?(c-i)*A+i:(u-n)*A+n;return a?[e,g]:[g,e]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],d=r[l++],f=r[l++],p=r[l++];var v=a?Aa(n,u,h,f,e,s):Aa(i,c,d,p,e,s);if(v>0)for(var m=0;m<v;m++){var y=s[m];if(y<=1&&y>=0){g=a?fa(i,c,d,p,y):fa(n,u,h,f,y);return a?[e,g]:[g,e]}}n=f,i=p}}},t}(Bs),tC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t}(Zx),nC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return g(t,e),t.prototype.getDefaultShape=function(){return new tC},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0&&Xx(n[2*o-2],n[2*o-1]);o--);for(;r<o&&Xx(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=Jx(e,n,r,o,o,1,t.smooth,a,t.connectNulls);Jx(e,i,r+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),r+=s+1,e.closePath()}},t}(Bs);function iC(e,t,n,i,r){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new js({shape:{x:a,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),f=d.isHorizontal(),p=d.inverse;f?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0),Tc(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,"function"==typeof r?function(e){r(e,h)}:null)}return h}function rC(e,t,n){var i=e.getArea(),r=xr(i.r0,1),o=xr(i.r,1),a=new Vu({shape:{cx:xr(e.cx,1),cy:xr(e.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,Tc(a,{shape:{endAngle:i.endAngle,r:o}},n));return a}function oC(e,t,n,i,r){return e?"polar"===e.type?rC(e,t,n):"cartesian2d"===e.type?iC(e,t,n,i,r):null:null}function aC(e,t){return e.type===t}function sC(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function lC(e){for(var t=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[t,n],[i,r]]}function uC(e,t){var n=lC(e),i=n[0],r=n[1],o=lC(t),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function cC(e){return"number"==typeof e?e:e?.5:0}function hC(e,t,n){for(var i=t.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],a=0,s=[],l=[],u=[];a<e.length-2;a+=2)switch(u[0]=e[a+2],u[1]=e[a+3],l[0]=e[a],l[1]=e[a+1],o.push(l[0],l[1]),n){case"end":s[r]=u[r],s[1-r]=l[1-r],o.push(s[0],s[1]);break;case"middle":var c=(l[r]+u[r])/2,h=[];s[r]=h[r]=c,s[1-r]=l[1-r],h[1-r]=u[1-r],o.push(s[0],s[1]),o.push(h[0],h[1]);break;default:s[r]=l[r],s[1-r]=u[1-r],o.push(s[0],s[1])}return o.push(e[a++],e[a++]),o}function dC(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=t.getAxis(r),u=K(o.stops,function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}}),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=function(e,t){var n,i,r=[],o=e.length;function a(e,t,n){var i=e.coord;return{coord:n,color:bn((n-i)/(t.coord-i),[e.color,t.color])}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){i?r.push(a(i,l,t)):n&&r.push(a(n,l,0),a(n,l,t));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),f=d.length;if(!f&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=d[0].coord-10,A=d[f-1].coord+10,g=A-p;if(g<.001)return"transparent";W(d,function(e){e.offset=(e.coord-p)/g}),d.push({offset:f?d[f-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:h[0]||"transparent"});var v=new Ac(0,0,0,0,d,!0);return v[r]=p,v[r+"2"]=A,v}}}function fC(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*Ux.getSymbolSize(t,a)[e.isHorizontal()?1:0]>i)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return W(o.getViewLabels(),function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function pC(e,t){return[e[2*t],e[2*t+1]]}function AC(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<ul.length;t++)if(e.get([ul[t],"endLabel","show"]))return!0;return!1}function gC(e,t,n,i){if(aC(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=AC(i)?function(n,i){e._endLabelOnDuring(n,i,a,s,o,r,t)}:null,u=t.getBaseAxis().isHorizontal(),c=iC(t,n,i,function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return rC(t,n,i)}var vC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.init=function(){var e=new lr,t=new Vx;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===r.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,A=this._lineGroup,g=e.get("animation"),v=!l.isEmpty(),m=l.get("origin"),y=zx(r,a,m),_=v&&function(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),r=Kx(2*i),o=0;o<i;o++){var a=$x(n,e,t,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,y),b=e.get("showSymbol"),w=b&&!c&&fC(e,a,r),x=this._data;x&&x.eachItemGraphicEl(function(e,t){e.__temp&&(o.remove(e),x.setItemGraphicEl(t,null))}),b||d.remove(),o.add(A);var C,S=!c&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(null!=(C=r.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var k=dC(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(f&&h.type===r.type&&S===this._step){v&&!p?p=this._newPolygon(u,_):p&&!v&&(A.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,r,Od(k));var B=A.getClipPath();if(B)Tc(B,{shape:gC(this,r,!1,e).shape},e);else A.setClipPath(gC(this,r,!0,e));b&&d.updateData(a,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),sC(this._stackedOnPoints,_)&&sC(this._points,u)||(g?this._doUpdateAnimation(a,_,r,n,S,m):(S&&(u=hC(u,r,S),_&&(_=hC(_,r,S))),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:_})))}else b&&d.updateData(a,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),g&&this._initSymbolLabelAnimation(a,r,C),S&&(u=hC(u,r,S),_&&(_=hC(_,r,S))),f=this._newPolyline(u),v&&(p=this._newPolygon(u,_)),c||this._initOrUpdateEndLabel(e,r,Od(k)),A.setClipPath(gC(this,r,!0,e));var T=e.get(["emphasis","focus"]),E=e.get(["emphasis","blurScope"]);(f.useStyle(H(s.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Xl(f,e,"lineStyle"),f.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(f.getState("emphasis").style.lineWidth=+f.style.lineWidth+1);tl(f).seriesIndex=e.seriesIndex,Wl(f,T,E);var I=cC(e.get("smooth")),M=e.get("smoothMonotone"),D=e.get("connectNulls");if(f.setShape({smooth:I,smoothMonotone:M,connectNulls:D}),p){var P=a.getCalculationInfo("stackedOnSeries"),F=0;p.useStyle(H(l.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),P&&(F=cC(P.get("smooth"))),p.setShape({smooth:I,stackedOnSmooth:F,smoothMonotone:M,connectNulls:D}),Xl(p,e,"areaStyle"),tl(p).seriesIndex=e.seriesIndex,Wl(p,T,E)}var O=function(e){i._changePolyState(e)};a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=O)}),this._polyline.onHoverStateChange=O,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=S,this._valueOrigin=m,e.get("triggerLineEvent")&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){tl(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=oo(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel"),h=e.get("z");(s=new Ux(r,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else KA.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=oo(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else KA.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;Il(this._polyline,e),t&&Il(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new eC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new nC({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var s=e.hostModel,l=s.get("animationDuration");"function"==typeof l&&(l=l(null));var u=s.get("animationDelay")||0,c="function"==typeof u?u(null):u;e.eachItemGraphicEl(function(e,o){var s=e;if(s){var h=[e.x,e.y],d=void 0,f=void 0,p=void 0;if(n)if(r){var A=n,g=t.pointToCoord(h);i?(d=A.startAngle,f=A.endAngle,p=-g[1]/180*Math.PI):(d=A.r0,f=A.r,p=g[0])}else{var v=n;i?(d=v.x,f=v.x+v.width,p=e.x):(d=v.y+v.height,f=v.y,p=e.y)}var m=f===d?0:(p-d)/(f-d);a&&(m=1-m);var y="function"==typeof u?u(o):l*m+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:y}),_.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(AC(e)){var r=e.getData(),o=this._polyline,a=this._endLabel;a||((a=this._endLabel=new el({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var s=function(e){for(var t,n,i=e.length/2;i>0&&(t=e[2*i-2],n=e[2*i-1],isNaN(t)||isNaN(n));i--);return i-1}(r.getLayout("points"));s>=0&&(hh(o,dh(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:s,defaultText:function(e,t,n){return null!=n?Nx(r,n):Lx(r,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),f=o.get("distance")||0,p=a.getBaseAxis(),A=p.isHorizontal(),g=p.inverse,v=t.shape,m=g?A?v.x:v.y+v.height:A?v.x+v.width:v.y,y=(A?f:0)*(g?-1:1),_=(A?0:-f)*(g?-1:1),b=A?"x":"y",w=function(e,t,n){for(var i,r,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=e[2*u+a],!isNaN(r)&&!isNaN(e[2*u+1-a]))if(0!==u){if(i<=t&&r>=t||i>=t&&r<=t){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(t-i)/(r-i)}}(u,m,b),x=w.range,C=x[1]-x[0],S=void 0;if(C>=1){if(C>1&&!h){var k=pC(u,x[0]);s.attr({x:k[0]+y,y:k[1]+_}),r&&(S=c.getRawValue(x[0]))}else{(k=l.getPointOn(m,b))&&s.attr({x:k[0]+y,y:k[1]+_});var B=c.getRawValue(x[0]),T=c.getRawValue(x[1]);r&&(S=go(n,d,B,T,w.t))}i.lastFrameIndex=x[0]}else{var E=1===e||i.lastFrameIndex>0?x[0]:0;k=pC(u,E);r&&(S=c.getRawValue(E)),s.attr({x:k[0]+y,y:k[1]+_})}r&&_h(s).setLabelText(S)}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o){var a=this._polyline,s=this._polygon,l=e.hostModel,u=function(e,t,n,i,r,o,a,s){for(var l=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),u=[],c=[],h=[],d=[],f=[],p=[],A=[],g=zx(r,t,a),v=e.getLayout("points")||[],m=t.getLayout("points")||[],y=0;y<l.length;y++){var _=l[y],b=!0,w=void 0,x=void 0;switch(_.cmd){case"=":w=2*_.idx,x=2*_.idx1;var C=v[w],S=v[w+1],k=m[x],B=m[x+1];(isNaN(C)||isNaN(S))&&(C=k,S=B),u.push(C,S),c.push(k,B),h.push(n[w],n[w+1]),d.push(i[x],i[x+1]),A.push(t.getRawIndex(_.idx1));break;case"+":var T=_.idx,E=g.dataDimsForPoint,I=r.dataToPoint([t.get(E[0],T),t.get(E[1],T)]);x=2*T,u.push(I[0],I[1]),c.push(m[x],m[x+1]);var M=$x(g,r,t,T);h.push(M[0],M[1]),d.push(i[x],i[x+1]),A.push(t.getRawIndex(T));break;case"-":b=!1}b&&(f.push(_),p.push(p.length))}p.sort(function(e,t){return A[e]-A[t]});var D=u.length,P=Kx(D),F=Kx(D),O=Kx(D),L=Kx(D),N=[];for(y=0;y<p.length;y++){var R=p[y],U=2*y,Q=2*R;P[U]=u[Q],P[U+1]=u[Q+1],F[U]=c[Q],F[U+1]=c[Q+1],O[U]=h[Q],O[U+1]=h[Q+1],L[U]=d[Q],L[U+1]=d[Q+1],N[y]=f[R]}return{current:P,next:F,stackedOnCurrent:O,stackedOnNext:L,status:N}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),c=u.current,h=u.stackedOnCurrent,d=u.next,f=u.stackedOnNext;if(r&&(c=hC(u.current,n,r),h=hC(u.stackedOnCurrent,n,r),d=hC(u.next,n,r),f=hC(u.stackedOnNext,n,r)),uC(c,d)>3e3||s&&uC(h,f)>3e3)return a.stopAnimation(),a.setShape({points:d}),void(s&&(s.stopAnimation(),s.setShape({points:d,stackedOnPoints:f})));a.shape.__points=u.current,a.shape.points=c;var p={shape:{points:d}};u.current!==c&&(p.shape.__points=u.next),a.stopAnimation(),Bc(a,p,l),s&&(s.setShape({points:c,stackedOnPoints:h}),s.stopAnimation(),Bc(s,{shape:{stackedOnPoints:f}},l),a.shape.points!==s.shape.points&&(s.shape.points=a.shape.points));for(var A=[],g=u.status,v=0;v<g.length;v++){if("="===g[v].cmd){var m=e.getItemGraphicEl(g[v].idx1);m&&A.push({el:m,ptIdx:v})}}a.animators&&a.animators.length&&a.animators[0].during(function(){s&&s.dirtyShape();for(var e=a.shape.__points,t=0;t<A.length;t++){var n=A[t].el,i=2*A[t].ptIdx;n.x=e[i],n.y=e[i+1],n.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,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(KA);function mC(e,t){return{seriesType:e,plan:UA(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,r=e.pipelineContext,o=t||r.large;if(i){var a=K(i.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");__(n,a[0])&&(a[0]=l),__(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,r=o&&Kx(n*s),a=[],l=[],d=e.start,f=0;d<e.end;d++){var p=void 0;if(1===s){var A=u.get(c,d);p=i.dataToPoint(A,null,l)}else a[0]=u.get(c,d),a[1]=u.get(h,d),p=i.dataToPoint(a,null,l);o?(r[f++]=p[0],r[f++]=p[1]):t.setItemLayout(d,p.slice())}o&&t.setLayout("points",r)}}}}}}var yC={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,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},_C=function(e){return Math.round(e.length/2)};function bC(e){return{seriesType:e,reset:function(e,t,n){var i=e.getData(),r=e.get("sampling"),o=e.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(d>1){"lttb"===r&&e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var f=void 0;"string"==typeof r?f=yC[r]:"function"==typeof r&&(f=r),f&&e.setData(i.downSample(i.mapDimension(l.dim),1/d,f,_C))}}}}}var wC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.getInitialData=function(e,t){return w_(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t&&t.clampData){var n=t.dataToPoint(t.clampData(e)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size");return n[t.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(LA);LA.registerClass(wC);var xC=wC,CC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.getInitialData=function(){return w_(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,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Rh(xC.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}(xC),SC=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),kC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return g(t,e),t.prototype.getDefaultShape=function(){return new SC},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-r),s=r+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,h=Math.cos(l),d=Math.sin(l),f=Math.cos(u),p=Math.sin(u);(c?u-l<2*Math.PI:l-u<2*Math.PI)&&(e.moveTo(h*r+n,d*r+i),e.arc(h*s+n,d*s+i,a,-Math.PI+l,l,!c)),e.arc(n,i,o,l,u,!c),e.moveTo(f*o+n,p*o+i),e.arc(f*s+n,p*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&(e.arc(n,i,r,u,l,c),e.moveTo(h*r+n,p*r+i)),e.closePath()},t}(Bs);function BC(e,t,n){return t*Math.sin(e)*(n?-1:1)}function TC(e,t,n){return t*Math.cos(e)*(n?1:-1)}var EC=[0,0],IC=Math.max,MC=Math.min;var DC=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return g(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._incrementalRenderLarge(e,t)},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,i){var r,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,h=function(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();0;if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}(e,l);h&&this._enableRealtimeSort(h,a,n);var d=e.get("clip",!0)||h,f=function(e,t){var n=e.getArea&&e.getArea();if(aC(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var p=e.get("roundCap",!0),A=e.get("showBackground",!0),g=e.getModel("backgroundStyle"),v=g.get("borderRadius")||0,m=[],y=this._backgroundEls,_=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(e){var t=QC[l.type](a,e),n=function(e,t,n){return new("polar"===e.type?Vu:js)({shape:WC(t,n,e),silent:!0,z2:0})}(l,r,t);return n.useStyle(g.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),m[e]=n,n}a.diff(s).add(function(t){var n=a.getItemModel(t),i=QC[l.type](a,t,n);if(A&&w(t),a.hasValue(t)&&UC[l.type](i)){var s=!1;d&&(s=PC[l.type](f,i));var g=FC[l.type](e,a,t,i,r,c,u.model,!1,p);h&&(g.forceLabelAnimation=!0),jC(g,a,t,n,i,e,r,"polar"===l.type),_?g.attr({shape:i}):h?OC(h,c,g,i,t,r,!1,!1):Tc(g,{shape:i},e,t),a.setItemGraphicEl(t,g),o.add(g),g.ignore=s}}).update(function(t,n){var i=a.getItemModel(t),x=QC[l.type](a,t,i);if(A){var C=void 0;0===y.length?C=w(n):((C=y[n]).useStyle(g.getItemStyle()),"cartesian2d"===l.type&&C.setShape("r",v),m[t]=C);var S=QC[l.type](a,t);Bc(C,{shape:WC(r,S,l)},c,t)}var k=s.getItemGraphicEl(n);if(a.hasValue(t)&&UC[l.type](x)){var B=!1;if(d&&(B=PC[l.type](f,x))&&o.remove(k),k?Pc(k):k=FC[l.type](e,a,t,x,r,c,u.model,!!k,p),h&&(k.forceLabelAnimation=!0),b){var T=k.getTextContent();if(T){var E=_h(T);null!=E.prevValue&&(E.prevValue=E.value)}}b||jC(k,a,t,i,x,e,r,"polar"===l.type),_?k.attr({shape:x}):h?OC(h,c,k,x,t,r,!0,b):Bc(k,{shape:x},e,t,null),a.setItemGraphicEl(t,k),k.ignore=B,o.add(k)}else o.remove(k)}).remove(function(t){var n=s.getItemGraphicEl(t);n&&Dc(n,e,t)}).execute();var x=this._backgroundGroup||(this._backgroundGroup=new lr);x.removeAll();for(var C=0;C<m.length;++C)x.add(m[C]);o.add(x),this._backgroundEls=m,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),$C(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),$C(t,this.group,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)?oC(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var r=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e);if(n){var i=n.shape;return(r.isHorizontal()?Math.abs(i.height):Math.abs(i.width))||0}return 0};this._onRendered=function(){i._updateSortWithinSameData(t,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var i=[];return e.each(e.mapDimension(t.dim),function(e,t){var r=n(t);r=null==r?NaN:r,i.push({dataIndex:t,mappedValue:r,ordinalNumber:e})}),i.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:K(i,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,r=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.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,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Dc(t,e,tl(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}(KA),PC={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=IC(t.x,e.x),s=MC(t.x+t.width,r),l=IC(t.y,e.y),u=MC(t.y+t.height,o),c=s<a,h=u<l;return t.x=c&&a>r?s:a,t.y=h&&l>o?u:l,t.width=c?0:s-a,t.height=h?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=MC(t.r,e.r),o=IC(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return a}},FC={cartesian2d:function(e,t,n,i,r,o,a,s,l){var u=new js({shape:Q({},i),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[r?"height":"width"]=0);return u},polar:function(e,t,n,i,r,o,a,s,l){var u=!r&&l?kC:Vu,c=new u({shape:i,z2:1});c.name="item";var h,d,f=HC(r);if(c.calculateTextPosition=(h=f,d=({isRoundCap:u===kC}||{}).isRoundCap,function(e,t,n){var i=t.position;if(!i||i instanceof Array)return Xi(e,t,n);var r=h(i),o=null!=t.distance?t.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,f=(u+c)/2,p=a.startAngle,A=a.endAngle,g=(p+A)/2,v=d?Math.abs(u-c)/2:0,m=Math.cos,y=Math.sin,_=s+u*m(p),b=l+u*y(p),w="left",x="top";switch(r){case"startArc":_=s+(c-o)*m(g),b=l+(c-o)*y(g),w="center",x="top";break;case"insideStartArc":_=s+(c+o)*m(g),b=l+(c+o)*y(g),w="center",x="bottom";break;case"startAngle":_=s+f*m(p)+BC(p,o+v,!1),b=l+f*y(p)+TC(p,o+v,!1),w="right",x="middle";break;case"insideStartAngle":_=s+f*m(p)+BC(p,-o+v,!1),b=l+f*y(p)+TC(p,-o+v,!1),w="left",x="middle";break;case"middle":_=s+f*m(g),b=l+f*y(g),w="center",x="middle";break;case"endArc":_=s+(u+o)*m(g),b=l+(u+o)*y(g),w="center",x="bottom";break;case"insideEndArc":_=s+(u-o)*m(g),b=l+(u-o)*y(g),w="center",x="top";break;case"endAngle":_=s+f*m(A)+BC(A,o+v,!0),b=l+f*y(A)+TC(A,o+v,!0),w="left",x="middle";break;case"insideEndAngle":_=s+f*m(A)+BC(A,-o+v,!0),b=l+f*y(A)+TC(A,-o+v,!0),w="right",x="middle";break;default:return Xi(e,t,n)}return(e=e||{}).x=_,e.y=b,e.align=w,e.verticalAlign=x,e}),o){var p=c.shape,A=r?"r":"endAngle",g={};p[A]=r?0:i.startAngle,g[A]=i[A],(s?Bc:Tc)(c,{shape:g},o)}return c}};function OC(e,t,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Bc:Tc)(n,{shape:l},t,r,null);var c=t?e.baseAxis.model:null;(a?Bc:Tc)(n,{shape:u},c,r)}function LC(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var NC=["x","y","width","height"],RC=["cx","cy","r","startAngle","endAngle"],UC={cartesian2d:function(e){return!LC(e,NC)},polar:function(e){return!LC(e,RC)}},QC={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),r=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function HC(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 jC(e,t,n,i,r,o,a,s){var l=t.getItemVisual(n,"style");s||e.setShape("r",i.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=i.getShallow("cursor");u&&e.attr("cursor",u);var c=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",h=dh(i);hh(e,h,{labelFetcher:o,labelDataIndex:n,defaultText:Lx(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=e.getTextContent();if(s&&d){var f=i.get(["label","position"]);e.textConfig.inside="middle"===f||null,function(e,t,n,i){if("number"!=typeof i)if(te(t))e.setTextConfig({rotation:0});else{var r,o=e.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void e.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}else e.setTextConfig({rotation:i})}(e,"outside"===f?c:f,HC(a),i.get(["label","rotate"]))}bh(d,h,o.getRawValue(n),function(e){return Nx(t,e)});var p=i.getModel(["emphasis"]);Wl(e,p.get("focus"),p.get("blurScope")),Xl(e,i),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(r)&&(e.style.fill="none",e.style.stroke="none",W(e.states,function(e){e.style&&(e.style.fill=e.style.stroke="none")}))}var VC=function(){return function(){}}(),zC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return g(t,e),t.prototype.getDefaultShape=function(){return new VC},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o<n.length;o+=2)i[r]=n[o+r],e.moveTo(i[0],i[1]),e.lineTo(n[o],n[o+1])},t}(Bs);function $C(e,t,n){var i=e.getData(),r=[],o=i.getLayout("valueAxisHorizontal")?1:0;r[1-o]=i.getLayout("valueAxisStart");var a=i.getLayout("largeDataIndices"),s=i.getLayout("barWidth"),l=e.getModel("backgroundStyle");if(e.get("showBackground",!0)){var u=i.getLayout("largeBackgroundPoints"),c=[];c[1-o]=i.getLayout("backgroundStart");var h=new zC({shape:{points:u},incremental:!!n,silent:!0,z2:0});h.__startPoint=c,h.__baseDimIdx=o,h.__largeDataIndices=a,h.__barWidth=s,function(e,t,n){var i=t.get("borderColor")||t.get("color"),r=t.getItemStyle();e.useStyle(r),e.style.fill=null,e.style.stroke=i,e.style.lineWidth=n.getLayout("barWidth")}(h,l,i),t.add(h)}var d=new zC({shape:{points:i.getLayout("largePoints")},incremental:!!n});d.__startPoint=r,d.__baseDimIdx=o,d.__largeDataIndices=a,d.__barWidth=s,t.add(d),function(e,t,n){var i=n.getVisual("style");e.useStyle(Q({},i)),e.style.fill=null,e.style.stroke=i.fill,e.style.lineWidth=n.getLayout("barWidth")}(d,0,i),tl(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",GC),d.on("mousemove",GC))}var GC=JA(function(e){var t=function(e,t,n){var i=e.__baseDimIdx,r=1-i,o=e.shape.points,a=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[r];EC[0]=t,EC[1]=n;for(var u=EC[i],c=EC[1-i],h=u-s,d=u+s,f=0,p=o.length/2;f<p;f++){var A=2*f,g=o[A+i],v=o[A+r];if(g>=h&&g<=d&&(l<=v?c>=l&&c<=v:c>=v&&c<=l))return a[f]}return-1}(this,e.offsetX,e.offsetY);tl(this).dataIndex=t>=0?t:null},30,!1);function WC(e,t,n){if(aC(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}var o=t;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}var KC=DC;var YC=2*Math.PI,qC=Math.PI/180;function XC(e,t){return jd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function JC(e,t){var n=XC(e,t),i=e.get("center"),r=e.get("radius");te(r)||(r=[0,r]),te(i)||(i=[i,i]);var o=wr(n.width,t.getWidth()),a=wr(n.height,t.getHeight()),s=Math.min(o,a);return{cx:wr(i[0],o)+n.x,cy:wr(i[1],a)+n.y,r0:wr(r[0],s/2),r:wr(r[1],s/2)}}function ZC(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),i=t.mapDimension("value"),r=XC(e,n),o=JC(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*qC,h=e.get("minAngle")*qC,d=0;t.each(i,function(e){!isNaN(e)&&d++});var f=t.getSum(i),p=Math.PI/(f||d)*2,A=e.get("clockwise"),g=e.get("roseType"),v=e.get("stillShowZeroSum"),m=t.getDataExtent(i);m[0]=0;var y=YC,_=0,b=c,w=A?1:-1;if(t.setLayout({viewRect:r,r:l}),t.each(i,function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:A,cx:a,cy:s,r0:u,r:g?NaN:l});else{(i="area"!==g?0===f&&v?p:e*p:YC/d)<h?(i=h,y-=h):_+=e;var r=b+w*i;t.setItemLayout(n,{angle:i,startAngle:b,endAngle:r,clockwise:A,cx:a,cy:s,r0:u,r:g?br(e,m,[u,l]):l}),b=r}}),y<YC&&d)if(y<=.001){var x=YC/d;t.each(i,function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=x,i.startAngle=c+w*n*x,i.endAngle=c+w*(n+1)*x}})}else p=y/_,b=c,t.each(i,function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),r=i.angle===h?h:e*p;i.startAngle=b,i.endAngle=b+w*r,b+=w*r}})})}function eS(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf(function(e){for(var t=i.getName(e),r=0;r<n.length;r++)if(!n[r].isSelected(t))return!1;return!0})}}}}var tS=Math.PI/180;function nS(e,t,n,i,r,o,a,s,l,u){if(!(e.length<2)){for(var c=e.length,h=0;h<c;h++)if("outer"===e[h].position&&"labelLine"===e[h].labelAlignTo){var d=e[h].label.x-u;e[h].linePoints[1][0]+=d,e[h].label.x=u}Sw(e,l,l+a)&&function(e){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>u.maxY){var h=l.label.x-t-l.len2*r,d=i+l.len,p=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=p,u.maxY=c}u.list.push(l)}f(o),f(a)}(e)}function f(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=c*c,d=Math.sqrt((1-Math.abs(u*u/a))*h);l.label.x=t+(d+l.len2)*r}}}function iS(e){return"center"===e.position}function rS(e){var t,n,i=e.getData(),r=[],o=!1,a=(e.get("minShowLabelAngle")||0)*tS,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function f(e){e.ignore=!0}i.each(function(e){var s=i.getItemGraphicEl(e),h=s.shape,d=s.getTextContent(),p=s.getTextGuideLine(),A=i.getItemModel(e),g=A.getModel("label"),v=g.get("position")||A.get(["emphasis","label","position"]),m=g.get("distanceToLabelLine"),y=g.get("alignTo"),_=wr(g.get("edgeDistance"),u),b=g.get("bleedMargin"),w=A.getModel("labelLine"),x=w.get("length");x=wr(x,u);var C=w.get("length2");if(C=wr(C,u),Math.abs(h.endAngle-h.startAngle)<a)return W(d.states,f),void(d.ignore=!0);if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(d)){var S,k,B,T,E=(h.startAngle+h.endAngle)/2,I=Math.cos(E),M=Math.sin(E);t=h.cx,n=h.cy;var D,P="inside"===v||"inner"===v;if("center"===v)S=h.cx,k=h.cy,T="center";else{var F=(P?(h.r+h.r0)/2*I:h.r*I)+t,O=(P?(h.r+h.r0)/2*M:h.r*M)+n;if(S=F+3*I,k=O+3*M,!P){var L=F+I*(x+l-h.r),N=O+M*(x+l-h.r),R=L+(I<0?-1:1)*C;S="edge"===y?I<0?c+_:c+u-_:R+(I<0?-m:m),k=N,B=[[F,O],[L,N],[R,N]]}T=P?"center":"edge"===y?I>0?"right":"left":I>0?"left":"right"}var U=g.get("rotate");if("number"==typeof U)D=U*(Math.PI/180);else if("center"===v)D=0;else{var Q=I<0?-E+Math.PI:-E;"radial"===U||!0===U?D=Q:"tangential"===U&&"outside"!==v&&"outer"!==v?(D=Q+Math.PI/2)>Math.PI/2&&(D-=Math.PI):D=0}if(o=!!D,d.x=S,d.y=k,d.rotation=D,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:T});var H=d.states.select;H&&(H.x+=d.x,H.y+=d.y)}else{var j=d.getBoundingRect().clone();j.applyTransform(d.getComputedTransform());var V=(d.style.margin||0)+2.1;j.y-=V/2,j.height+=V,r.push({label:d,labelLine:p,position:v,len:x,len2:C,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Mi(I,M),linePoints:B,textAlign:T,labelDistance:m,labelAlignTo:y,edgeDistance:_,bleedMargin:b,rect:j})}s.setTextConfig({inside:P})}}),!o&&e.get("avoidLabelOverlap")&&function(e,t,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<e.length;d++){var f=e[d].label;iS(e[d])||(f.x<t?(c=Math.min(c,f.x),l.push(e[d])):(h=Math.max(h,f.x),u.push(e[d])))}for(nS(u,t,n,i,1,0,o,0,s,h),nS(l,t,n,i,-1,0,o,0,s,c),d=0;d<e.length;d++){var p=e[d];if(f=p.label,!iS(p)){var A=p.linePoints;if(A){var g="edge"===p.labelAlignTo,v=p.rect.width,m=void 0;(m=g?f.x<t?A[2][0]-p.labelDistance-a-p.edgeDistance:a+r-p.edgeDistance-A[2][0]-p.labelDistance:f.x<t?f.x-a-p.bleedMargin:a+r-f.x-p.bleedMargin)<p.rect.width&&(p.label.style.width=m,"edge"===p.labelAlignTo&&(v=m));var y=A[1][0]-A[2][0];g?f.x<t?A[2][0]=a+p.edgeDistance+v+p.labelDistance:A[2][0]=a+r-p.edgeDistance-v-p.labelDistance:(f.x<t?A[2][0]=f.x+p.labelDistance:A[2][0]=f.x-p.labelDistance,A[1][0]=A[2][0]+y),A[1][1]=A[2][1]=f.y}}}}(r,t,n,l,u,d,c,h);for(var p=0;p<r.length;p++){var A=r[p],g=A.label,v=A.labelLine,m=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:A.textAlign}),m&&(W(g.states,f),g.ignore=!0);var y=g.states.select;y&&(y.x+=g.x,y.y+=g.y)}if(v){var _=A.linePoints;m||!_?(W(v.states,f),v.ignore=!0):(vw(_,A.minTurnAngle),mw(_,A.surfaceNormal,A.maxSurfaceAngle),v.setShape({points:_}),g.__hostTarget.textGuideLineConfig={anchor:new Mi(_[0][0],_[0][1])})}}}function oS(e,t,n){var i=e.get("borderRadius");return null==i?n?{innerCornerRadius:0,cornerRadius:0}:null:(te(i)||(i=[i,i]),{innerCornerRadius:qi(i[0],t.r0),cornerRadius:qi(i[1],t.r)})}var aS=function(e){function t(t,n,i){var r=e.call(this)||this;r.z2=2;var o=new el;return r.setTextContent(o),r.updateData(t,n,i,!0),r}return g(t,e),t.prototype.updateData=function(e,t,n,i){var r=e.hostModel,o=e.getItemModel(t),a=o.getModel("emphasis"),s=e.getItemLayout(t),l=Q(oS(o.getModel("itemStyle"),s,!0),s);if(isNaN(l.startAngle))this.setShape(l);else{if(i)this.setShape(l),"scale"===r.getShallow("animationType")?(this.shape.r=s.r0,Tc(this,{shape:{r:s.r}},r,t)):null!=n?(this.setShape({startAngle:n,endAngle:n}),Tc(this,{shape:{startAngle:s.startAngle,endAngle:s.endAngle}},r,t)):(this.shape.endAngle=s.startAngle,Bc(this,{shape:{endAngle:s.endAngle}},r,t));else Pc(this),Bc(this,{shape:l},r,t);this.useStyle(e.getItemVisual(t,"style")),Xl(this,o);var u=(s.startAngle+s.endAngle)/2,c=r.get("selectedOffset"),h=Math.cos(u)*c,d=Math.sin(u)*c,f=o.getShallow("cursor");f&&this.attr("cursor",f),this._updateLabel(r,e,t),this.ensureState("emphasis").shape=v({r:s.r+(a.get("scale")&&a.get("scaleSize")||0)},oS(a.getModel("itemStyle"),s)),Q(this.ensureState("select"),{x:h,y:d,shape:oS(o.getModel(["select","itemStyle"]),s)}),Q(this.ensureState("blur"),{shape:oS(o.getModel(["blur","itemStyle"]),s)});var p=this.getTextGuideLine(),A=this.getTextContent();p&&Q(p.ensureState("select"),{x:h,y:d}),Q(A.ensureState("select"),{x:h,y:d}),Wl(this,a.get("focus"),a.get("blurScope"))}},t.prototype._updateLabel=function(e,t,n){var i=t.getItemModel(n),r=i.getModel("labelLine"),o=t.getItemVisual(n,"style"),a=o&&o.fill,s=o&&o.opacity;hh(this,dh(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:s,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var l=this.getTextContent();this.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=e.get(["label","position"]);if("outside"!==u&&"outer"!==u)this.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new ec,this.setTextGuideLine(c)),bw(this,ww(i),{stroke:a,opacity:ge(r.get(["lineStyle","opacity"]),s,1)})}},t}(Vu),sS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return g(t,e),t.prototype.init=function(){var e=new lr;this._sectorGroup=e},t.prototype.render=function(e,t,n,i){var r,o=e.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&e.get("showEmptyCircle")){var c=new Vu({shape:JC(e,n)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add(function(e){var t=new aS(o,e,r);o.setItemGraphicEl(e,t),s.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(o,e,r),n.off("click"),s.add(n),o.setItemGraphicEl(e,n)}).remove(function(t){Dc(a.getItemGraphicEl(t),e,t)}).execute(),rS(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var i=e[0]-n.cx,r=e[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},t.type="pie",t}(KA);function lS(e,t,n){t=te(t)&&{coordDimensions:t}||Q({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=p_(i,t).dimensions,o=new d_(r,e);return o.initData(i,n),o}var uS=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}(),cS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new uS(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return lS(this,{coordDimensions:["value"],encodeDefaulter:ee(ff,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=[];return n.each(n.mapDimension("value"),function(e){r.push(e)}),i.percent=Tr(r,t,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},t.prototype._defaultLabelLine=function(e){Yr(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={zlevel:0,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}(LA);var hS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return g(t,e),t.prototype.getInitialData=function(e,t){return w_(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,t,n){return n.point(t.getItemLayout(e))},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,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}(LA),dS=function(){return function(){}}(),fS=function(e){function t(t){return e.call(this,t)||this}return g(t,e),t.prototype.getDefaultShape=function(){return new dS},t.prototype.buildPath=function(e,t){var n=t.points,i=t.size,r=this.symbolProxy,o=r.shape,a=e.getContext?e.getContext():e;if(a&&i[0]<4)this._ctx=a;else{this._ctx=null;for(var s=0;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||(this.softClipShape&&!this.softClipShape.contain(l,u)||(o.x=l-i[0]/2,o.y=u-i[1]/2,o.width=i[0],o.height=i[1],r.buildPath(e,o,!0)))}}},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,i=this._ctx;if(i)for(var r=0;r<t.length;){var o=t[r++],a=t[r++];isNaN(o)||isNaN(a)||(this.softClipShape&&!this.softClipShape.contain(o,a)||i.fillRect(o-n[0]/2,a-n[1]/2,n[0],n[1]))}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1},t}(Bs),pS=function(){function e(){this.group=new lr}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e,t){this.group.removeAll();var n=new fS({rectHover:!0,cursor:"default"});n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,!1,t),this.group.add(n),this._incremental=null},e.prototype.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("points");this.group.eachChild(function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t)})}},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new xc({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t,n){var i;this._incremental?(i=new fS,this._incremental.addDisplayable(i,!0)):((i=new fS({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end})).incremental=!0,this.group.add(i)),i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,!!this._incremental,n)},e.prototype._setCommon=function(e,t,n,i){var r=t.hostModel;i=i||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=i.clipShape||null,e.symbolProxy=Yg(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<4;e.useStyle(r.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;if(l&&e.setColor(l),!n){var u=tl(e);u.seriesIndex=r.seriesIndex,e.on("mousemove",function(t){u.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>=0&&(u.dataIndex=n+(e.startIndex||0))})}},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),AS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).incrementalPrepareUpdate(i),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 i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=mC("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},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(e,t){var n=this._symbolDraw,i=t.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new pS:new Vx,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(KA),gS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(qd),vS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",co).models[0]},t.type="cartesian2dAxis",t}(qd);$(vS,Mb);var mS={show:!0,zlevel: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)"]}}},yS=R({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},mS),_S=R({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}}},mS),bS={category:yS,value:_S,time:R({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_S),log:H({scale:!0,logBase:10},_S)},wS={value:1,category:1,time:1,log:1};function xS(e,t,n,i){W(wS,function(r,o){var a=R(R({},bS[o],!0),i,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return g(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=zd(this),i=n?Gd(e):{};R(e,t.getTheme().get(o+"Axis")),R(e,this.getDefaultOption()),e.type=CS(e),n&&$d(e,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=B_.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=a,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",CS)}function CS(e){return e.type||(e.data?"category":"value")}var SS=["x","y"];function kS(e){return"interval"===e.type||"time"===e.type}var BS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=SS,t}return g(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(kS(e)&&kS(t)){var n=e.getExtent(),i=t.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=vi([],d)}}},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(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return et(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return et(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.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]),i=Math.min(t[0],t[1]),r=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-i;return new Qi(n,i,r,o)},t}(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 K(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),q(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=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return g(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}(Kb);function ES(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,p="x"===u?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(a){var A=a.toGlobalCoord(a.dataToCoord(0));p[d.onZero]=Math.max(Math.min(A,p[1]),p[0])}o.position=["y"===u?p[d[l]]:h[0],"x"===u?p[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),pe(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var g=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-g:g,o.z2=1,o}function IS(e){return"cartesian2d"===e.get("coordinateSystem")}function MS(e){var t={xAxisModel:null,yAxisModel:null};return W(t,function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,co).models[0];t[i]=o}),t}function DS(e,t){return e.getCoordSysModel()===t}function PS(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)FS(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&FS(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(e){return e.dim+"_"+e.index}}function FS(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}(e)}var OS=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=SS,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;this._updateScale(e,this.model),W(n.x,function(e){Cb(e.scale,e.model)}),W(n.y,function(e){Cb(e.scale,e.model)});var i={};W(n.x,function(e){PS(n,"y",e,i)}),W(n.y,function(e){PS(n,"x",e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=jd(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){W(a,function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),function(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}(e,t?o.x:o.y)})}s(),r&&(W(a,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 i,r,o=n.getExtent();r=n instanceof L_?n.count():(i=n.getTicks()).length;var a,s,l,u,c,h,d,f,p=e.getLabelModel(),A=kb(e),g=1;r>40&&(g=Math.ceil(r/40));for(var v=0;v<r;v+=g){var m=A(i?i[v]:{value:o[0]+v},v),y=p.getTextRect(m),_=(s=y,l=p.get("rotate")||0,u=l*Math.PI/180,c=s.width,h=s.height,d=c*Math.abs(Math.cos(u))+Math.abs(h*Math.sin(u)),f=c*Math.abs(Math.sin(u))+Math.abs(h*Math.cos(u)),new Qi(s.x,s.y,d,f));a?a.union(_):a=_}return a}}(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}}),s()),W(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]}ae(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 i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,i=e.seriesModel,r=e.xAxisModel||i&&i.getReferringComponents("xAxis",co).models[0],o=e.yAxisModel||i&&i.getReferringComponents("yAxis",co).models[0],a=e.gridModel,s=this._coordsList;if(i)V(s,t=i.coordinateSystem)<0&&(t=null);else if(r&&o)t=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.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 i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,i){if(DS(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new TS(t,Sb(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[t][i]=u,s[t]++}}}this._axesMap=a,W(a.x,function(t,n){W(a.y,function(r,o){var a="x"+n+"y"+o,s=new BS(a);s.master=i,s.model=e,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(t),s.addAxis(r)})})},e.prototype._updateScale=function(e,t){function n(e,t){W(Ib(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}W(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(IS(e)){var i=MS(e),r=i.xAxisModel,o=i.yAxisModel;if(!DS(r,t)||!DS(o,t))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");"list"===s.type&&(n(s,l),n(s,u))}},this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return W(this.getCartesians(),function(i){var r=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(r);V(t,r)<0&&t.push(r),V(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var i=[];return t.eachComponent("grid",function(r,o){var a=new e(r,t,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),t.eachSeries(function(e){if(IS(e)){var t=MS(e),n=t.xAxisModel,i=t.yAxisModel,r=n.getCoordSysModel();0;var o=r.coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}}),i},e.dimensions=SS,e}(),LS=Math.PI,NS=function(){function e(e,t){this.group=new lr,this.opt=t,this.axisModel=e,H(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new lr({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!RS[e]},e.prototype.add=function(e){RS[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var i,r,o=Mr(t-e);return Dr(o)?(r=n>0?"top":"bottom",i="center"):Dr(o-LS)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<LS?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},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}(),RS={axisLine:function(e,t,n,i){var r=t.get(["axisLine","show"]);if("auto"===r&&e.handleAutoShown&&(r=e.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(et(s,s,a),et(l,l,a));var u=Q({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new rc({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var h=t.get(["axisLine","symbol"]);if(null!=h){var d=t.get(["axisLine","symbolSize"]);"string"==typeof h&&(h=[h,h]),"string"!=typeof d&&"number"!=typeof d||(d=[d,d]);var f=Xg(t.get(["axisLine","symbolOffset"])||0,d),p=d[0],A=d[1];W([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(t,i){if("none"!==h[i]&&null!=h[i]){var r=Yg(h[i],-p/2,-A/2,p,A,u.stroke,!0),o=t.r+t.offset;r.attr({rotation:t.rotate,x:s[0]+o*Math.cos(e.rotation),y:s[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(e,t,n,i){var r=function(e,t,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||r.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=jS(r.getTicksCoords(),t.transform,l,H(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(n,i,t,e),o=function(e,t,n,i){var r=n.axis;if(!pe(i.axisLabelShow,n.get(["axisLabel","show"]))||r.scale.isBlank())return;var o=n.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(pe(i.labelRotate,o.get("rotate"))||0)*LS/180,u=NS.innerTextLayout(i.rotation,l,i.labelDirection),c=n.getCategories&&n.getCategories(!0),h=[],d=NS.isLabelSilent(n),f=n.get("triggerEvent");return W(s,function(s,l){var p="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,A=s.formattedLabel,g=s.rawLabel,v=o;if(c&&c[p]){var m=c[p];ae(m)&&m.textStyle&&(v=new Oh(m.textStyle,o,n.ecModel))}var y=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=r.dataToCoord(p),b=new el({x:_,y:i.labelOffset+i.labelDirection*a,rotation:u.rotation,silent:d,z2:10+(s.level||0),style:fh(v,{text:A,align:v.getShallow("align",!0)||u.textAlign,verticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||u.textVerticalAlign,fill:"function"==typeof y?y("category"===r.type?g:"value"===r.type?p+"":p,l):y})});if(b.anid="label_"+p,f){var w=NS.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=g,tl(b).eventData=w}t.add(b),b.updateTransform(),h.push(b),e.add(b),b.decomposeTransform()}),h}(n,i,t,e);((function(e,t,n){if(Eb(e.axis))return;var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(US(o),US(u)):QS(o,a)&&(i?(US(a),US(c)):(US(o),US(u)));!1===r?(US(s),US(h)):QS(l,s)&&(r?(US(l),US(d)):(US(s),US(h)))})(t,o,r),function(e,t,n,i){var r=n.axis,o=n.getModel("minorTick");if(!o.get("show")||r.scale.isBlank())return;var a=r.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=H(s.getLineStyle(),H(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=jS(a[c],t.transform,l,u,"minorticks_"+c),d=0;d<h.length;d++)e.add(h[d])}(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"]))&&kw(xw(K(o,function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})))},axisName:function(e,t,n,i){var r=pe(e.axisName,t.get("name"));if(r){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,h=t.axis.getExtent(),d=h[0]>h[1]?-1:1,f=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,HS(s)?e.labelOffset+l*c:0],p=t.get("nameRotate");null!=p&&(p=p*LS/180),HS(s)?o=NS.innerTextLayout(e.rotation,null!=p?p:e.rotation,l):(o=function(e,t,n,i){var r,o,a=Mr(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;Dr(a-LS/2)?(o=l?"bottom":"top",r="center"):Dr(a-1.5*LS)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*LS&&a>LS/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(e.rotation,s,p||0,h),null!=(a=e.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var A=u.getFont(),g=t.get("nameTruncate",!0)||{},v=g.ellipsis,m=pe(e.nameTruncateMaxWidth,g.maxWidth,a),y=new el({x:f[0],y:f[1],rotation:o.rotation,silent:NS.isLabelSilent(t),style:fh(u,{text:r,font:A,overflow:"truncate",width:m,ellipsis:v,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(sh({el:y,componentModel:t,itemName:r}),y.__fullText=r,y.anid="name",t.get("triggerEvent")){var _=NS.makeAxisEventDataBase(t);_.targetType="axisName",_.name=r,tl(y).eventData=_}i.add(y),y.updateTransform(),n.add(y),y.decomposeTransform()}}};function US(e){e&&(e.ignore=!0)}function QS(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=hi([]);return Ai(r,r,-e.rotation),n.applyTransform(fi([],r,e.getLocalTransform())),i.applyTransform(fi([],r,t.getLocalTransform())),n.intersect(i)}}function HS(e){return"middle"===e||"center"===e}function jS(e,t,n,i,r){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(et(a,a,t),et(s,s,t));var c=new rc({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});c.anid=r+"_"+e[l].tickValue,o.push(c)}return o}var VS=NS;function zS(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var i=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];W(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=KS(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",i);if(W(n.getAxes(),ee(p,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var h="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),f=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&W(f.baseAxes,ee(p,!d||"cross",h)),d&&W(f.otherAxes,ee(p,"cross",!1))}}function p(i,s,u){var h=u.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||WS(h))){null==s&&(s=h.get("triggerTooltip"));var f=(h=i?function(e,t,n,i,r,o){var a=t.getModel("axisPointer"),s={};W(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(e){s[e]=N(a.get(e))}),s.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&H(l,c.textStyle)}}return e.model.getModel("axisPointer",new Oh(s,n,i))}(u,c,r,t,i,s):h).get("snap"),p=KS(u.model),A=s||f||"category"===u.type,g=e.axesInfo[p]={key:p,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:A,snap:f,useHandle:WS(h),seriesModels:[],linkGroup:null};l[p]=g,e.seriesInvolved=e.seriesInvolved||A;var v=function(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var o=e[r]||{};if($S(o[i+"AxisId"],n.id)||$S(o[i+"AxisIndex"],n.componentIndex)||$S(o[i+"AxisName"],n.name))return r}}(o,u);if(null!=v){var m=a[v]||(a[v]={axesInfo:{}});m.axesInfo[p]=g,m.mapper=o[v].mapper,g.linkGroup=m}}}})}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),r=t.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==t.get(["axisPointer","show"],!0)&&W(e.coordSysAxesInfo[KS(n.model)],function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())})})}(n,e),n}function $S(e,t){return"all"===e||te(e)&&V(e,t)>=0||e===t}function GS(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[KS(e)]}function WS(e){return!!e.get(["handle","show"])}function KS(e){return e.type+"||"+e.id}var YS={},qS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(t,n,i,r){this.axisPointerClass&&function(e){var t=GS(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=WS(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},t.prototype.updateAxisPointer=function(e,t,n,i){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,i){var r=t.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(e){var t=GS(e);return t&&t.axisPointerModel}(e);o?(this._axisPointer||(this._axisPointer=new r)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){YS[e]=t},t.getAxisPointerClass=function(e){return e&&YS[e]},t.type="axis",t}(RA),XS=ao();function JS(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=XS(e).splitAreaColors,d=Se(),f=0;if(h)for(var p=0;p<u.length;p++){var A=h.get(u[p].tickValue);if(null!=A){f=(A+(c-1)*p)%c;break}}var g=r.toGlobalCoord(u[0].coord),v=a.getAreaStyle();s=te(s)?s:[s];for(p=1;p<u.length;p++){var m=r.toGlobalCoord(u[p].coord),y=void 0,_=void 0,b=void 0,w=void 0;r.isHorizontal()?(y=g,_=l.y,b=m-y,w=l.height,g=y+b):(y=l.x,_=g,b=l.width,g=_+(w=m-_));var x=u[p-1].tickValue;null!=x&&d.set(x,f),t.add(new js({anid:null!=x?"area_"+x:null,shape:{x:y,y:_,width:b,height:w},style:H({fill:s[f]},v),autoBatch:!0,silent:!0})),f=(f+1)%c}XS(e).splitAreaColors=d}}}function ZS(e){XS(e).splitAreaColors=null}var ek=["axisLine","axisTickLabel","axisName"],tk=["splitArea","splitLine","minorSplitLine"],nk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return g(t,e),t.prototype.render=function(t,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new lr,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=ES(a,t),l=new VS(t,Q({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++){var r=n[i].getOtherAxis(t.axis).type;if("value"===r||"log"===r)return!0}return!1}},s));W(ek,l.add,l),this._axisGroup.add(l.getGroup()),W(tk,function(e){t.get([e,"show"])&&ik[e](this,this._axisGroup,t,a)},this),r&&"changeAxisOrder"===r.type&&r.isInitSort||eh(o,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)}},t.prototype.remove=function(){ZS(this)},t.type="cartesianAxis",t}(qS),ik={splitLine:function(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=te(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=0,h=r.getTicksCoords({tickModel:o}),d=[],f=[],p=a.getLineStyle(),A=0;A<h.length;A++){var g=r.toGlobalCoord(h[A].coord);u?(d[0]=g,d[1]=l.y,f[0]=g,f[1]=l.y+l.height):(d[0]=l.x,d[1]=g,f[0]=l.x+l.width,f[1]=g);var v=c++%s.length,m=h[A].tickValue;t.add(new rc({anid:null!=m?"line_"+h[A].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:H({stroke:s[v]},p),silent:!0}))}}},minorSplitLine:function(e,t,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),d=0;d<l.length;d++)for(var f=0;f<l[d].length;f++){var p=r.toGlobalCoord(l[d][f].coord);s?(u[0]=p,u[1]=a.y,c[0]=p,c[1]=a.y+a.height):(u[0]=a.x,u[1]=p,c[0]=a.x+a.width,c[1]=p),t.add(new rc({anid:"minor_line_"+l[d][f].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0}))}},splitArea:function(e,t,n,i){JS(e,t,n,i)}},rk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="xAxis",t}(nk),ok=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=rk.type,t}return g(t,e),t.type="yAxis",t}(nk),ak=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return g(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new js({shape:e.coordinateSystem.getRect(),style:H({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(RA),sk={offset:0};function lk(e){e.registerComponentView(ak),e.registerComponentModel(gS),e.registerCoordinateSystem("cartesian2d",OS),xS(e,"x",vS,sk),xS(e,"y",vS,sk),e.registerComponentView(rk),e.registerComponentView(ok),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function uk(e){e.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var r=i.getIndicatorAxes();W(r,function(e,o){t.each(t.mapDimension(r[o].dim),function(e,t){n[t]=n[t]||[];var r=i.dataToPoint(e,o);n[t][o]=ck(r)?r:hk(i)})}),t.each(function(e){var r=X(n[e],function(e){return ck(e)})||hk(i);n[e].push(r.slice()),t.setItemLayout(e,n[e])})}})}function ck(e){return!isNaN(e[0])&&!isNaN(e[1])}function hk(e){return[e.cx,e.cy]}function dk(e){var t=e.polar;if(t){te(t)||(t=[t]);var n=[];W(t,function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],te(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}W(e.series,function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var fk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,r=this.group,o=e.getData(),a=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=qg(e.getItemVisual(t,"symbolSize")),r=Yg(n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function u(t,n,i,r,o,a){i.removeAll();for(var u=0;u<n.length-1;u++){var c=s(r,o);c&&(c.__dimIdx=u,t[u]?(c.setPosition(t[u]),l[a?"initProps":"updateProps"](c,{x:n[u][0],y:n[u][1]},e,o)):c.setPosition(n[u]),i.add(c))}}function c(e){return K(e,function(e){return[i.cx,i.cy]})}o.diff(a).add(function(t){var n=o.getItemLayout(t);if(n){var i=new Xu,r=new ec,a={shape:{points:n}};i.shape.points=c(n),r.shape.points=c(n),Tc(i,a,e,t),Tc(r,a,e,t);var s=new lr,l=new lr;s.add(r),s.add(i),s.add(l),u(r.shape.points,n,l,o,t,!0),o.setItemGraphicEl(t,s)}}).update(function(t,n){var i=a.getItemGraphicEl(n),r=i.childAt(0),s=i.childAt(1),l=i.childAt(2),c={shape:{points:o.getItemLayout(t)}};c.shape.points&&(u(r.shape.points,c.shape.points,l,o,t,!1),Pc(s),Pc(r),Bc(r,c,e),Bc(s,c,e),o.setItemGraphicEl(t,i))}).remove(function(e){r.remove(a.getItemGraphicEl(e))}).execute(),o.eachItemGraphicEl(function(e,t){var n=o.getItemModel(t),i=e.childAt(0),a=e.childAt(1),s=e.childAt(2),l=o.getItemVisual(t,"style"),u=l.fill;r.add(e),i.useStyle(H(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Xl(i,n,"lineStyle"),Xl(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,W(["emphasis","select","blur"],function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();a.ensureState(e).ignore=i&&h}),a.useStyle(H(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),f=d.getModel("itemStyle").getItemStyle();s.eachChild(function(e){if(e instanceof Fs){var i=e.style;e.useStyle(Q({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else e.useStyle(l),e.setColor(u),e.style.strokeNoScale=!0;e.ensureState("emphasis").style=N(f);var r=o.getStore().get(o.getDimensionIndex(e.__dimIdx),t);(null==r||isNaN(r))&&(r=""),hh(e,dh(n),{labelFetcher:o.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:r,inheritColor:u,defaultOpacity:l.opacity})}),Wl(e,d.get("focus"),d.get("blurScope"))}),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(KA),pk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return g(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new uS(Z(this.getData,this),Z(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return lS(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(e),a=""===o?this.name:o,s=bA(this,e);return pA("section",{header:a,sortBlocks:!0,blocks:K(r,function(t){var n=i.get(i.mapDimension(t.dim),e);return pA("nameValue",{markerType:"subItem",markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(K(n.dimensions,function(e){return t.mapDimension(e)}),e),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={zlevel:0,z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(LA),Ak=bS.value;function gk(e,t){return H({show:t},e)}var vk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=K(this.get("indicator")||[],function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=a;null!=h.color&&(d=H({color:h.color},a));var f=R(N(h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(s||(f.name=""),"string"==typeof l){var p=f.name;f.name=l.replace("{value}",null!=p?p:"")}else"function"==typeof l&&(f.name=l(f.name,f));var A=new Oh(f,null,this.ecModel);return $(A,Mb.prototype),A.mainType="radar",A.componentIndex=this.componentIndex,A},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:R({lineStyle:{color:"#bbb"}},Ak.axisLine),axisLabel:gk(Ak.axisLabel,!1),axisTick:gk(Ak.axisTick,!1),splitLine:gk(Ak.splitLine,!0),splitArea:gk(Ak.splitArea,!0),indicator:[]},t}(qd),mk=["axisLine","axisTickLabel","axisName"],yk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(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;W(K(t.getIndicatorAxes(),function(e){return new VS(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){W(mk,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 i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),d=te(c)?c:[c],f=te(h)?h:[h],p=[],A=[];if("circle"===i)for(var g=n[0].getTicksCoords(),v=t.cx,m=t.cy,y=0;y<g.length;y++){if(l)p[B(p,d,y)].push(new Cu({shape:{cx:v,cy:m,r:g[y].coord}}));if(u&&y<g.length-1)A[B(A,f,y)].push(new Gu({shape:{cx:v,cy:m,r0:g[y].coord,r:g[y+1].coord}}))}else{var _,b=K(n,function(e,n){var i=e.getTicksCoords();return _=null==_?i.length-1:Math.min(i.length-1,_),K(i,function(e){return t.coordToPoint(e.coord,n)})}),w=[];for(y=0;y<=_;y++){for(var x=[],C=0;C<n.length;C++)x.push(b[C][y]);if(x[0]&&x.push(x[0].slice()),l)p[B(p,d,y)].push(new ec({shape:{points:x}}));if(u&&w)A[B(A,f,y-1)].push(new Xu({shape:{points:x.concat(w)}}));w=x.slice().reverse()}}var S=a.getLineStyle(),k=s.getAreaStyle();W(A,function(e,t){this.group.add($c(e,{style:H({stroke:"none",fill:f[t%f.length]},k),silent:!0}))},this),W(p,function(e,t){this.group.add($c(e,{style:H({fill:"none",stroke:d[t%d.length]},S),silent:!0}))},this)}function B(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(RA),_k=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return g(t,e),t}(Kb),bk=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=K(e.getIndicatorModels(),function(e,t){var n="indicator_"+t,i=new _k(n,new U_);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i},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,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var r,o=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(r=u,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r)/2;this.cx=wr(n[0],i),this.cy=wr(n[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");"string"!=typeof a&&"number"!=typeof a||(a=[0,a]),this.r0=wr(a[0],o),this.r=wr(a[1],o),W(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,i=this._model;W(n,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var o=t.getData();W(n,function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))})}},this);var r=i.get("splitNumber");function o(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),n=e/t;return 2===n?n=5:n*=2,n*t}W(n,function(e,t){var n=xb(e.scale,e.model).extent;Cb(e.scale,e.model);var i=e.model,a=e.scale,s=wb(a,i.get("min",!0)),l=wb(a,i.get("max",!0)),u=a.getInterval();if(null!=s&&null!=l)a.setExtent(+s,+l),a.setInterval((l-s)/r);else if(null!=s){var c=void 0;do{c=s+u*r,a.setExtent(+s,c),a.setInterval(u),u=o(u)}while(c<n[1]&&isFinite(c)&&isFinite(n[1]))}else if(null!=l){var h=void 0;do{h=l-u*r,a.setExtent(h,+l),a.setInterval(u),u=o(u)}while(h>n[0]&&isFinite(h)&&isFinite(n[0]))}else{a.getTicks().length-1>r&&(u=o(u));h=xr((c=Math.ceil(n[1]/u)*u)-u*r);a.setExtent(h,c),a.setInterval(u)}})},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 i=[];return t.eachComponent("radar",function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o}),t.eachSeriesByType("radar",function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])}),i},e.dimensions=[],e}();function wk(e){e.registerCoordinateSystem("radar",bk),e.registerComponentModel(vk),e.registerComponentView(yk),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var xk="\0_ec_interaction_mutex";function Ck(e,t){return!!Sk(e)[t]}function Sk(e){return e[xk]||(e[xk]={})}function kk(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(bt(i.event),Bk(e,t,n,i,r))}function Bk(e,t,n,i,r){r.isAvailableBehavior=Z(Tk,null,n,i),e.trigger(t,r)}function Tk(e,t,n){var i=n[e];return!e||i&&(!ie(i)||t.event[i+"Key"])}Cy({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var Ek=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=Z(n._mousedownHandler,n),r=Z(n._mousemoveHandler,n),o=Z(n._mouseupHandler,n),a=Z(n._mousewheelHandler,n),s=Z(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=H(N(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",r),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return g(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(!(wt(e)||e.target&&e.target.draggable)){var t=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&Tk("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!Ck(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,r=this._y,o=t-i,a=n-r;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&bt(e.event),Bk(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:i,oldY:r,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){wt(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=Tk("zoomOnMouseWheel",e,this._opt),n=Tk("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,r=Math.abs(i),o=e.offsetX,a=e.offsetY;if(0!==i&&(t||n)){if(t){var s=r>3?1.4:r>1?1.2:1.1;kk(this,"zoom","zoomOnMouseWheel",e,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);kk(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){Ck(this._zr,"globalPan")||kk(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(ot);function Ik(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function Mk(e,t,n,i){var r=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var Dk={axisPointer:1,tooltip:1,brush:1};function Pk(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!Dk.hasOwnProperty(i.mainType)&&r&&r.model!==n}var Fk=["rect","circle","line","ellipse","polygon","polyline","path"],Ok=Se(Fk),Lk=Se(Fk.concat(["g"])),Nk=Se(Fk.concat(["g"])),Rk=ao();function Uk(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function Qk(e,t,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=Uk(r),u=Uk(o),c=Uk(s),h=Uk(a),d=e.data;if(d){var f=d.getItemVisual(n,"style"),p=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=Sv(p,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=h,Dl(t)}function Hk(e,t,n,i,r,o,a){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=r);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;hh(t,dh(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},f);var p=t.getTextContent();if(p&&(Rk(p).ignore=p.ignore,t.textConfig&&a)){var A=t.getBoundingRect().clone();t.textConfig.layoutRect=A,t.textConfig.position=[(a[0]-A.x)/A.width*100+"%",(a[1]-A.y)/A.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function jk(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):tl(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function Vk(e,t,n,i,r){e.data||sh({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function zk(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Wl(t,a,o.get("blurScope")),e.isGeo&&function(e,t,n){var i=tl(e);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=n}(t,r,n),a}var $k=function(){function e(e){var t=new lr;this.uid=Nh("ec_map_draw"),this._controller=new Ek(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new lr),t.add(this._svgGroup=new lr)}return e.prototype.draw=function(e,t,n,i,r){var o="geo"===e.mainType,a=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(t){a||t.getHostGeoModel()!==e||(a=t.getData())});var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam;!l.childAt(0)||r?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):Bc(u,d,e);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,p={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(p):"geoSVG"===s.resourceType&&this._buildSVG(p),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Se(),n=Se(),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=function(e){return[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]};i.removeAll(),W(e.geo.regions,function(r){var l=r.name,u=t.get(l),c=n.get(l)||{},h=c.dataIdx,d=c.regionModel;u||(u=t.set(l,new lr),i.add(u),h=a?a.indexOfName(l):null,d=e.isGeo?o.getRegionModel(l):a?a.getItemModel(h):null,n.set(l,{dataIdx:h,regionModel:d}));var f=new fc({segmentIgnoreThreshold:1,shape:{paths:[]}});u.add(f),W(r.geometries,function(e){if("polygon"===e.type){for(var t=[],n=0;n<e.exterior.length;++n)t.push(s(e.exterior[n]));f.shape.paths.push(new Xu({segmentIgnoreThreshold:1,shape:{points:t}}));for(n=0;n<(e.interiors?e.interiors.length:0);++n){for(var i=e.interiors[n],r=[],o=0;o<i.length;++o)r.push(s(i[o]));f.shape.paths.push(new Xu({segmentIgnoreThreshold:1,shape:{points:r}}))}}}),Qk(e,f,h,d),f instanceof ta&&(f.culling=!0);var p=s(r.getCenter());Hk(e,f,l,d,o,h,p)}),t.each(function(t,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;jk(e,t,i,s,o,a),Vk(e,t,i,s,o),zk(e,t,i,s,o)},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 i=this._svgDispatcherMap=Se(),r=!1;W(this._svgGraphicRecord.named,function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);(null!=Ok.get(s)&&l instanceof ta&&Qk(e,l,u,c),l instanceof ta&&(l.culling=!0),l.z2EmphasisLift=0,t.namedFrom)||(null!=Nk.get(s)&&Hk(e,l,n,c,o,u,null),jk(e,l,n,c,o,u),Vk(e,l,n,c,o),null!=Lk.get(s)&&("self"===zk(e,l,n,c,o)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))},this),this._enableBlurEntireSVG(r,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){Dl(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.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 i=this._regionsGroupByName;if(i){var r=i.get(e);return r?[r]:[]}}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=Am.getGeoResource(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=Am.getGeoResource(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 i=e.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}r.off("pan").on("pan",function(e){this._mouseDownFlag=!1,Ik(o,e.dx,e.dy),n.dispatchAction(Q(s(),{dx:e.dx,dy:e.dy}))},this),r.off("zoom").on("zoom",function(e){this._mouseDownFlag=!1,Mk(o,e.scale,e.originX,e.originY),n.dispatchAction(Q(s(),{zoom:e.scale,originX:e.originX,originY:e.originY}))},this),r.setPointerChecker(function(t,r,o){return i.containPoint([r,o])&&!Pk(t,n,e)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=Rk(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,i){var r=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){r._mouseDownFlag=!0}),t.on("click",function(e){r._mouseDownFlag&&(r._mouseDownFlag=!1)}))},e}(),Gk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id)(o=this._mapDraw)&&r.add(o.group);else if(e.needsDrawMap){var o=this._mapDraw||new $k(n);r.add(o.group),o.draw(e,t,n,this,i),this._mapDraw=o}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 i=e.originalData,r=this.group;i.each(i.mapDimension("value"),function(t,n){if(!isNaN(t)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Cu({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:hl+1)});if(!s){var u=e.mainSeries.getData(),c=i.getName(n),h=u.indexOfName(c),d=i.getItemModel(n),f=d.getModel("label"),p=u.getItemGraphicEl(h);hh(l,dh(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(h,n)}}}),l.disableLabelAnimation=!0,f.get("position")||l.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(e){Il(l,e)}}r.add(l)}}})},t.type="map",t}(KA),Wk=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,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return g(t,e),t.prototype.getInitialData=function(e){for(var t=lS(this,{coordDimensions:["value"],encodeDefaulter:ee(ff,this)}),n=Se(),i=[],r=0,o=t.count();r<o;r++){var a=t.getName(r);n.set(a,!0)}return W(Am.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(e){var t=e.name;n.get(t)||i.push(t)}),t.appendValues([],i),t},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 t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),r=this.getRawValue(e),o=i.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return pA("section",{header:s.join(", "),noHeader:!s.length,blocks:[pA("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=Yg(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={zlevel:0,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}(LA);function Kk(e){var t={};e.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)}),W(t,function(e,t){for(var n,i,r,o=(n=K(e,function(e){return e.getData()}),i=e[0].get("mapValueCalculation"),r={},W(n,function(e){e.each(e.mapDimension("value"),function(t,n){var i="ec-"+e.getName(n);r[i]=r[i]||[],isNaN(t)||r[i].push(t)})}),n[0].map(n[0].mapDimension("value"),function(e,t){for(var o,a="ec-"+n[0].getName(t),s=0,l=1/0,u=-1/0,c=r[a].length,h=0;h<c;h++)l=Math.min(l,r[a][h]),u=Math.max(u,r[a][h]),s+=r[a][h];return o="min"===i?l:"max"===i?u:"average"===i?s/c:s,0===c?NaN:o})),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=0===a&&!e[a].getHostGeoModel(),e[a].setData(o.cloneShallow()),e[a].mainSeries=e[0]})}function Yk(e){var t={};e.eachSeriesByType("map",function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var r={};W(n.seriesGroup,function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),function(e,t){var o=i.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(t,{point:l,offset:s})}})});var o=n.getData();o.each(function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!r[t],o.setItemLayout(e,n)}),t[i]=!0}})}var qk=et;function Xk(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var Jk=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Ii,n._rawTransformable=new Ii,n.name=t,n}return g(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new Qi(e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new Qi(e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Qi(e,t,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e){e&&(this._center=e,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(),i=this.getCenter(),r=this.getZoom();i=et([],i,e),n=et([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=r,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),di(this.transform||(this.transform=[]),t.transform||[1,0,0,1,0,0]),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],vi(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new Ii;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 e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?qk(n,e,i):Pe(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?qk([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=Xk(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=Xk(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Ii),Zk={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},eB=["lng","lat"],tB=function(e){function t(t,n,i){var r=e.call(this,t)||this;r.dimensions=eB,r.type="geo",r._nameCoordMap=Se(),r.map=n;var o=Am.load(n,i.nameMap,i.nameProperty),a=Am.getGeoResource(n);r.resourceType=a?a.type:null;var s=Zk[a.type];r._regionsMap=o.regionsMap,r._invertLongitute=s.invertLongitute,r.regions=o.regions,r.aspectScale=Ae(i.aspectScale,s.aspectScale);var l=o.boundingRect;return r.setBoundingRect(l.x,l.y,l.width,l.height),r}return g(t,e),t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new Qi(e,t,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},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(e,t,n){if("string"==typeof e&&(e=this.getGeoCoord(e)),e)return Jk.prototype.dataToPoint.call(this,e,t,n)},t.prototype.convertToPixel=function(e,t,n){var i=nB(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=nB(t);return i===this?i.pointToData(n):null},t}(Jk);function nB(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",co).models[0]||{}).coordinateSystem:null}$(tB,Jk);var iB=tB;function rB(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(r[0])||isNaN(r[1])||this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}var o,a,s,l=this.getBoundingRect(),u=e.get("layoutCenter"),c=e.get("layoutSize"),h=t.getWidth(),d=t.getHeight(),f=l.width/l.height*this.aspectScale,p=!1;if(u&&c&&(o=[wr(u[0],h),wr(u[1],d)],a=wr(c,Math.min(h,d)),isNaN(o[0])||isNaN(o[1])||isNaN(a)||(p=!0)),p)s={},f>1?(s.width=a,s.height=a/f):(s.height=a,s.width=a*f),s.y=o[1]-s.height/2,s.x=o[0]-s.width/2;else{var A=e.getBoxLayoutParams();A.aspect=f,s=jd(A,{width:h,height:d})}this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}var oB=new(function(){function e(){this.dimensions=eB}return e.prototype.create=function(e,t){var n=[];e.eachComponent("geo",function(e,i){var r=e.get("map"),o=new iB(r+i,r,{nameMap:e.get("nameMap"),nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale")});o.zoomLimit=e.get("scaleLimit"),n.push(o),e.coordinateSystem=o,o.model=e,o.resize=rB,o.resize(e,t)}),e.eachSeries(function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}});var i={};return e.eachSeriesByType("map",function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}}),W(i,function(e,i){var r=K(e,function(e){return e.get("nameMap")}),o=new iB(i,i,{nameMap:U(r),nameProperty:e[0].get("nameProperty"),aspectScale:e[0].get("aspectScale")});o.zoomLimit=pe.apply(null,K(e,function(e){return e.get("scaleLimit")})),n.push(o),o.resize=rB,o.resize(e[0],t),W(e,function(e){e.coordinateSystem=o,function(e,t){W(t.get("geoCoord"),function(t,n){e.addGeoCoord(n,t)})}(o,e)})}),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=Se(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);return W(Am.load(t,n,i).regions,function(e){var t=e.name;!o.get(t)&&r.push({name:t})}),r},e}()),aB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(e,t,n){var i=Am.getGeoResource(e.map);if(i&&"geoJSON"===i.type){var r=e.itemStyle=e.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(e,n),Yr(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=oB.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=Y(t.regions||[],function(t,i){var r=i.name;return r&&(t.set(r,new Oh(i,e,e.ecModel)),i.selected&&(n[r]=!0)),t},Se()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Oh(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:e};return"function"==typeof i?(r.status=t,i(r)):"string"==typeof i?i.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 t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.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={zlevel:0,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}(qd);function sB(e,t,n){var i=e.getZoom(),r=e.getCenter(),o=t.zoom,a=e.dataToPoint(r);if(null!=t.dx&&null!=t.dy&&(a[0]-=t.dx,a[1]-=t.dy,e.setCenter(e.pointToData(a))),null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),s)/i}e.scaleX*=o,e.scaleY*=o;var u=(t.originX-e.x)*(o-1),c=(t.originY-e.y)*(o-1);e.x-=u,e.y-=c,e.updateTransform(),e.setCenter(e.pointToData(a)),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var lB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return g(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new $k(n));var r=this._mapDraw;r.draw(e,t,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=e.get("silent"),this.group.add(r.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;Ng(e.target,function(e){return null!=(t=tl(e).eventData)},!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse(function(e){var t=tl(e).eventData;if(t)return i._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}(RA);function uB(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(e,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:e},function(n){n[t](e.name),W(n.coordinateSystem.regions,function(e){i[e.name]=n.isSelected(e.name)||!1});var o=[];W(i,function(e,t){i[t]&&o.push(t)}),r.push({geoIndex:n.componentIndex,name:o})}),{selected:i,allSelected:r,name:e.name}})}e.registerCoordinateSystem("geo",oB),e.registerComponentModel(aB),e.registerComponentView(lB),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){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(t){var i=t.coordinateSystem;if("geo"===i.type){var r=sB(i,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom),"series"===n&&W(t.seriesGroup,function(e){e.setCenter(r.center),e.setZoom(r.zoom)})}})})}function cB(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){!function(e){var t=e.children,n=t.length,i=0,r=0;for(;--n>=0;){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=function(e,t,n,i){if(t){for(var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=pB(s),o=AB(o),s&&o;){r=pB(r),a=AB(a),r.hierNode.ancestor=e;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);d>0&&(vB(gB(s,e,n),e,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!pB(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!AB(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function hB(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function dB(e){return arguments.length?e:mB}function fB(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function pB(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function AB(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function gB(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function vB(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function mB(e,t){return e.parentNode===t.parentNode?1:2}var yB=function(){return function(){this.parentPoint=[],this.childPoints=[]}}(),_B=function(e){function t(t){return e.call(this,t)||this}return g(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new yB},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],a=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=wr(t.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,e.moveTo(r[0],r[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[l]=o[l],e.lineTo(h[0],h[1]),h[l]=a[l],e.lineTo(h[0],h[1]),e.lineTo(a[0],a[1]);for(var d=1;d<i-1;d++){var f=n[d];e.moveTo(f[0],f[1]),h[l]=f[l],e.lineTo(h[0],h[1])}},t}(Bs);function bB(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function wB(e,t,n,i,r){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=e.tree.root,h=a.parentNode===c?a:a.parentNode||a,d=e.getItemGraphicEl(h.dataIndex),f=h.getLayout(),p=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:f,A=a.getLayout();o?((n=new Ux(e,t,null,{symbolInnerColor:u,useNameLabel:!0})).x=p.x,n.y=p.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=A.rawX,n.__radialRawY=A.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Bc(n,{x:A.x,y:A.y},r);var g=n.getSymbolPath();if("radial"===r.get("layout")){var v=c.children[0],m=v.getLayout(),y=v.children.length,_=void 0,b=void 0;if(A.x===m.x&&!0===a.isExpand){var w={x:(v.children[0].getLayout().x+v.children[y-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[y-1].getLayout().y)/2};(_=Math.atan2(w.y-m.y,w.x-m.x))<0&&(_=2*Math.PI+_),(b=w.x<m.x)&&(_-=Math.PI)}else(_=Math.atan2(A.y-m.y,A.x-m.x))<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(b=A.x<m.x)&&(_-=Math.PI):(b=A.x>m.x)||(_-=Math.PI);var x=b?"left":"right",C=s.getModel("label"),S=C.get("rotate"),k=S*(Math.PI/180),B=g.getTextContent();B&&(g.setTextConfig({position:C.get("position")||x,rotation:null==S?-_:k,origin:"center"}),B.setStyle("verticalAlign","middle"))}var T=s.get(["emphasis","focus"]),E="ancestor"===T?a.getAncestorsIndices():"descendant"===T?a.getDescendantIndices():null;E&&(tl(n).focus=E),function(e,t,n,i,r,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),h=e.getOrient(),d=e.get(["lineStyle","curveness"]),f=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),A=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(A||(A=i.__edge=new uc({shape:kB(c,h,d,r,r)})),Bc(A,{shape:kB(c,h,d,o,a)},e));else if("polyline"===u)if("orthogonal"===c){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var g=t.children,v=[],m=0;m<g.length;m++){var y=g[m].getLayout();v.push([y.x,y.y])}A||(A=i.__edge=new _B({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:f}})),Bc(A,{shape:{parentPoint:[a.x,a.y],childPoints:v}},e)}}else 0;A&&(A.useStyle(H({strokeNoScale:!0,fill:null},p)),Xl(A,l,"lineStyle"),Dl(A),s.add(A))}(r,a,c,n,p,f,A,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===sl||Il(n.__edge,t)}})}function xB(e,t,n,i,r){var o=CB(t.tree.root,e),a=o.source,s=o.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var u=t.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(!1===a.isExpand||1===a.children.length?u:void 0),h=i.get("edgeShape"),d=i.get("layout"),f=i.get("orient"),p=i.get(["lineStyle","curveness"]);c&&("curve"===h?Ic(c,{shape:kB(d,f,p,s,s),style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}):"polyline"===h&&"orthogonal"===i.get("layout")&&Ic(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}))}}function CB(e,t){for(var n,i=t.parentNode===e?t:t.parentNode||t;null==(n=i.getLayout());)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function SB(e,t,n,i,r){var o=e.tree.getNodeByDataIndex(t),a=CB(e.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};Ic(n,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,{fadeLabel:!0,animation:s}),o.children.forEach(function(t){xB(t,e,i,r,s)}),xB(o,e,i,r,s)}function kB(e,t,n,i,r){var o,a,s,l,u,c,h,d;if("radial"===e){u=i.rawX,h=i.rawY,c=r.rawX,d=r.rawY;var f=fB(u,h),p=fB(u,h+(d-h)*n),A=fB(c,d+(h-d)*n),g=fB(c,d);return{x1:f.x||0,y1:f.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:A.x||0,cpy2:A.y||0}}return u=i.x,h=i.y,c=r.x,d=r.y,"LR"!==t&&"RL"!==t||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=d),"TB"!==t&&"BT"!==t||(o=u,a=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var BB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new lr,n}return g(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 i=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),this._updateController(e,t,n);var a=this._data;i.diff(a).add(function(t){bB(i,t)&&wB(i,t,null,o,e)}).update(function(t,n){var r=a.getItemGraphicEl(n);bB(i,t)?wB(i,t,r,o,e):r&&SB(a,n,r,o,e)}).remove(function(t){var n=a.getItemGraphicEl(t);n&&SB(a,t,n,o,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl(function(t,i){t.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})})}),this._data=i},t.prototype._updateViewCoordSys=function(e){var t=e.getData(),n=[];t.each(function(e){var i=t.getItemLayout(e);!i||isNaN(i.x)||isNaN(i.y)||n.push([+i.x,+i.y])});var i=[],r=[];Fa(n,i,r);var o=this._min,a=this._max;r[0]-i[0]==0&&(i[0]=o?o[0]:i[0]-1,r[0]=a?a[0]:r[0]+1),r[1]-i[1]==0&&(i[1]=o?o[1]:i[1]-1,r[1]=a?a[1]:r[1]+1);var s=e.coordinateSystem=new Jk;s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1]),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this.group.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY}),this._min=i,this._max=r},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker(function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!Pk(t,n,e)}),r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",function(t){Ik(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){Mk(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1;return((t.getZoom()-1)*n+1)/i},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}(KA),TB=ao();function EB(e,t){if(TB(i=this).mainData===i){var n=Q({},TB(this).datas);n[this.dataType]=t,FB(t,n,e)}else OB(t,this.dataType,TB(this).mainData,e);var i;return t}function IB(e,t){return e.struct&&e.struct.update(),t}function MB(e,t){return W(TB(t).datas,function(n,i){n!==t&&OB(n.cloneShallow(),i,t,e)}),t}function DB(e){var t=TB(this).mainData;return null==e||null==t?t:TB(t).datas[e]}function PB(){var e=TB(this).mainData;return null==e?[{data:e}]:K(J(TB(e).datas),function(t){return{type:t,data:TB(e).datas[t]}})}function FB(e,t,n){TB(e).datas={},W(t,function(t,i){OB(t,i,e,n)})}function OB(e,t,n,i){TB(n).datas[t]=e,TB(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=DB,e.getLinkedDataAll=PB}var LB=function(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,FB(t,n,e),W(n,function(n){W(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,ee(EB,e))})}),t.wrapMethod("cloneShallow",ee(MB,e)),W(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,ee(IB,e))}),ye(n[t.dataType]===t)},NB=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){"function"==typeof e&&(n=t,t=e,e=null),ie(e=e||{})&&(e={order:e});var i,r=e.order||"preorder",o=this[e.attr||"children"];"preorder"===r&&(i=t.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(e,t,n);"postorder"===r&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].getNodeById(e);if(r)return r}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].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 t=this.hostTree.data;return t.getStore().get(t.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(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},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,t=0;t<e.length;++t)if(e[t]===this)return t;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 RB=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 e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var r=new e(n),o=[],a=1;!function e(t,n){var i=t.value;a=Math.max(a,te(i)?i.length:1);o.push(t);var s=new NB(no(t.name,""),r);n?function(e,t){var n=t.children;if(e.parentNode===t)return;n.push(e),e.parentNode=t}(s,n):r.root=s;r._nodes.push(s);var l=t.children;if(l)for(var u=0;u<l.length;u++)e(l[u],s)}(t),r.root.updateDepthAndHeight(0);var s=p_(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new d_(s,n);return l.initData(o),i&&i(l),LB({mainData:l,struct:r,structAttr:"tree"}),r.update(),r},e}();function UB(e,t,n){if(e&&V(t,e.type)>=0){var i=n.getData().tree.root,r=e.targetNode;if("string"==typeof r&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function QB(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function HB(e,t){return V(QB(e),t)>=0}function jB(e,t){for(var n=[];e;){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var VB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return g(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Oh(n,this,this.ecModel),r=RB.createTree(t,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e})});var o=0;r.eachNode("preorder",function(e){e.depth>o&&(o=e.depth)});var a=e.expandAndCollapse&&e.initialTreeDepth>=0?e.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<=a}),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 i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return pA("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=jB(i,this),n},t.type="series.tree",t.layoutMode="box",t.defaultOption={zlevel:0,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}(LA);function zB(e,t){for(var n,i=[e];n=i.pop();)if(t(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function $B(e,t){e.eachSeriesByType("tree",function(e){!function(e,t){var n=function(e,t){return jd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=dB(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(r=n.width,o=n.height,a=dB());var s=e.getData().tree.root,l=s.children[0];if(l){!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,i,r=[t];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(e,t,n){for(var i,r=[e],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;i=o.pop();)t(i,n)}(l,cB,a),s.hierNode.modifier=-l.hierNode.prelim,zB(l,hB);var u=l,c=l,h=l;zB(l,function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>c.getLayout().x&&(c=e),e.depth>h.depth&&(h=e)});var d=u===c?1:a(u,c)/2,f=d-u.getLayout().x,p=0,A=0,g=0,v=0;if("radial"===i)p=r/(c.getLayout().x+d+f),A=o/(h.depth-1||1),zB(l,function(e){g=(e.getLayout().x+f)*p,v=(e.depth-1)*A;var t=fB(g,v);e.setLayout({x:t.x,y:t.y,rawX:g,rawY:v},!0)});else{var m=e.getOrient();"RL"===m||"LR"===m?(A=o/(c.getLayout().x+d+f),p=r/(h.depth-1||1),zB(l,function(e){v=(e.getLayout().x+f)*A,g="LR"===m?(e.depth-1)*p:r-(e.depth-1)*p,e.setLayout({x:g,y:v},!0)})):"TB"!==m&&"BT"!==m||(p=r/(c.getLayout().x+d+f),A=o/(h.depth-1||1),zB(l,function(e){g=(e.getLayout().x+f)*p,v="TB"===m?(e.depth-1)*A:o-(e.depth-1)*A,e.setLayout({x:g,y:v},!0)}))}}}(e,t)})}function GB(e){e.eachSeriesByType("tree",function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel("itemStyle").getItemStyle();Q(t.ensureUniqueItemVisual(e.dataIndex,"style"),n)})})}var WB=function(){},KB=["treemapZoomToNode","treemapRender","treemapMove"];function YB(e){var t={};e.getData().tree.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var r=Cf(e.ecModel,i.name||i.dataIndex+"",t);n.setVisual("decal",r)})}var qB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return g(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;W(t.children,function(t){e(t);var i=t.value;te(i)&&(i=i[0]),n+=i});var i=t.value;te(i)&&(i=i[0]);(null==i||isNaN(i))&&(i=n);i<0&&(i=0);te(t.value)?t.value[0]=i:t.value=i}(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new Oh({itemStyle:r},this,t),a=K((i=e.levels=function(e,t){var n,i,r=Kr(t.get("color")),o=Kr(t.get(["aria","decal","decals"]));if(!r)return;W(e=e||[],function(e){var t=new Oh(e),r=t.get("color"),o=t.get("decal");(t.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(t.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)});var a=e[0]||(e[0]={});n||(a.color=r.slice());!i&&o&&(a.decal=o.slice());return e}(i,t))||[],function(e){return new Oh(e,o,t)},this),s=RB.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=s.getNodeByDataIndex(t),i=n?a[n.depth]:null;return e.parentModel=i||o,e})});return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e);return pA("nameValue",{name:i.getName(e),value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=jB(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},Q(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=Se(),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(){YB(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"}}},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%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(LA),XB=5;function JB(e,t,n,i,r,o){var a=[[r?e:e-XB,t],[e+n,t],[e+n,t+i],[r?e:e-XB,t+i]];return!o&&a.splice(2,0,[e+n+XB,t+i/2]),!r&&a.push([e,t+i/2]),a}function ZB(e,t,n){tl(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&&jB(n,t)}}var eT=function(){function e(e){this.group=new lr,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(e,l,a,s,i),Vd(o,l.pos,l.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=no(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,t.emptyItemWidth);t.totalWidth+=a+8,t.renderList.push({node:i,text:r,width:a})}},e.prototype._renderContent=function(e,t,n,i,r){for(var o,a,s,l,u,c,h,d,f,p=0,A=t.emptyItemWidth,g=e.get(["breadcrumb","height"]),v=(o=t.pos,a=t.box,l=a.width,u=a.height,c=wr(o.left,l),h=wr(o.top,u),d=wr(o.right,l),f=wr(o.bottom,u),(isNaN(c)||isNaN(parseFloat(o.left)))&&(c=0),(isNaN(d)||isNaN(parseFloat(o.right)))&&(d=l),(isNaN(h)||isNaN(parseFloat(o.top)))&&(h=0),(isNaN(f)||isNaN(parseFloat(o.bottom)))&&(f=u),s=Cd(s||0),{width:Math.max(d-c-s[1]-s[3],0),height:Math.max(f-h-s[0]-s[2],0)}),m=t.totalWidth,y=t.renderList,_=y.length-1;_>=0;_--){var b=y[_],w=b.node,x=b.width,C=b.text;m>v.width&&(m-=x-A,x=A,C=null);var S=new Xu({shape:{points:JB(p,0,x,g,_===y.length-1,0===_)},style:H(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new el({style:{text:C,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e4*hl,onclick:ee(r,w)});S.disableLabelAnimation=!0,this.group.add(S),ZB(S,e,w),p+=x+8}},e.prototype.remove=function(){this.group.removeAll()},e}(),tT=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!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 nT=lr,iT=js,rT="label",oT="upperLabel",aT=10*hl,sT=2*hl,lT=3*hl,uT=Bo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),cT=function(e){var t=uT(e);return t.stroke=t.fill=t.lineWidth=null,t},hT=ao();var dT=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 g(t,e),t.prototype.render=function(e,t,n,i){if(!(V(t.findComponents({mainType:"series",subType:"treemap",query:i}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var r=UB(i,["treemapZoomToNode","treemapRootToNode"],e),o=i&&i.type,a=e.layoutInfo,s=!this._oldTree,l=this._storage,u="treemapRootToNode"===o&&r&&l?{rootNodeGroup:l.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,c=this._giveContainerGroup(a),h=e.get("animation"),d=this._doRender(c,e,u);!h||s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?d.renderFinally():this._doAnimation(c,d,e,u),this._resetController(n),this._renderBreadcrumb(e,n,r)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new nT,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i=t.getData().tree,r=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function u(e,i,r,u){return function(e,t,n,i,r,o,a,s,l,u){if(!a)return;var c=a.getLayout(),h=e.getData(),d=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var f=c.width,p=c.height,A=c.borderWidth,g=c.invisible,v=a.getRawIndex(),m=s&&s.getRawIndex(),y=a.viewChildren,_=c.upperHeight,b=y&&y.length,w=d.getModel("itemStyle"),x=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),S=d.getModel(["select","itemStyle"]),k=w.get("borderRadius")||0,B=L("nodeGroup",nT);if(!B)return;if(l.add(B),B.x=c.x||0,B.y=c.y||0,B.markRedraw(),hT(B).nodeWidth=f,hT(B).nodeHeight=p,c.isAboveViewRoot)return B;var T=L("background",iT,u,sT);T&&function(t,n,i){var r=tl(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:f,height:p,r:k}),g)P(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=cT(w);l.fill=s;var u=uT(x);u.fill=x.get("borderColor");var c=uT(C);c.fill=C.get("borderColor");var h=uT(S);if(h.fill=S.get("borderColor"),i){var d=f-2*A;F(n,s,o.opacity,{x:A,y:0,width:d,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,Dl(n)}t.add(n)}(B,T,b&&c.upperLabelHeight);var E=d.get(["emphasis","focus"]),I=d.get(["emphasis","blurScope"]),M="ancestor"===E?a.getAncestorsIndices():"descendant"===E?a.getDescendantIndices():E;if(b)Zl(B)&&Jl(B,!1),T&&(Jl(T,!0),h.setItemGraphicEl(a.dataIndex,T),Kl(T,M,I));else{var D=L("content",iT,u,lT);D&&function(t,n){var i=tl(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(f-2*A,0),o=Math.max(p-2*A,0);if(n.culling=!0,n.setShape({x:A,y:A,width:r,height:o,r:k}),g)P(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=cT(w);u.fill=l,u.decal=s.decal;var c=uT(x),h=uT(C),d=uT(S);F(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,Dl(n)}t.add(n)}(B,D),T.disableMorphing=!0,T&&Zl(T)&&Jl(T,!1),Jl(B,!0),h.setItemGraphicEl(a.dataIndex,B),Kl(B,M,I)}return B;function P(e){!e.invisible&&o.push(e)}function F(t,n,i,r){var o=d.getModel(r?oT:rT),s=no(d.get("name"),null),l=o.getShallow("show");hh(t,dh(d,r?oT:rT),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var h=u.style,f=me(h.padding||0);r&&(t.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-f[1]-f[3],0),n=Math.max((r?r.height:t.shape.height)-f[0]-f[2],0);h.width===e&&h.height===n||u.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",O(h,r,c);var p=u.getState("emphasis");O(p?p.style:null,r,c)}}function O(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function L(e,o,s,l){var u=null!=m&&n[e][m],c=r[e];return u?(n[e][m]=null,function(e,t){var n=e[v]={};t instanceof nT?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Q({},t.shape)}(c,u)):g||((u=new o)instanceof ta&&(u.z2=function(e,t){return e*aT+t}(s,l)),function(e,t){var n=e[v]={},o=a.parentNode,s=t instanceof lr;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}(c,u)),t[e][v]=u}}(t,a,s,n,o,l,e,i,r,u)}!function e(t,n,i,r,o){r?(n=t,W(t,function(e,t){!e.isRemoved()&&s(t,t)})):new jy(n,t,a,a).add(s).update(s).remove(ee(s,null)).execute();function a(e){return e.getId()}function s(a,s){var l=null!=a?t[a]:null,c=null!=s?n[s]:null,h=u(l,c,i,o);h&&e(l&&l.viewChildren||[],c&&c.viewChildren||[],h,r,o+1)}}(i.root?[i.root]:[],r&&r.root?[r.root]:[],e,i===r||!r,0);var c=function(e){var t={nodeGroup:[],background:[],content:[]};return e&&W(e,function(e,n){var i=t[n];W(e,function(e){e&&(i.push(e),hT(e).willDelete=!0)})}),t}(s);return this._oldTree=i,this._storage=a,{lastsForAnimation:o,willDeleteEls:c,renderFinally:function(){W(c,function(e){W(e,function(e){e.parent&&e.parent.remove(e)})}),W(l,function(e){e.invisible=!0,e.dirty()})}}},t.prototype._doAnimation=function(e,t,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(ne(r)?0:r)||0,s=(ne(o)?null:o)||"cubicOut",l=new tT;W(t.willDeleteEls,function(e,t){W(e,function(e,n){if(!e.invisible){var r,o=e.parent,u=hT(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),r="nodeGroup"===t?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}r&&l.add(e,r,a,0,s)}})}),W(this._storage,function(e,n){W(e,function(e,i){var r=t.lastsForAnimation[n][i],o={};r&&(e instanceof lr?null!=r.oldX&&(o.x=e.x,o.y=e.y,e.x=r.oldX,e.y=r.oldY):(r.oldShape&&(o.shape=Q({},e.shape),e.setShape(r.oldShape)),r.fadein?(e.setStyle("opacity",0),o.style={opacity:1}):1!==e.style.opacity&&(o.style={opacity:1})),l.add(e,o,a,0,s))})},this),this._state="animating",l.finished(Z(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",Z(this._onPan,this)),t.on("zoom",Z(this._onZoom,this)));var n=new Qi(0,0,e.getWidth(),e.getHeight());t.setPointerChecker(function(e,t,i){return n.contain(t,i)})},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 i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Qi(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];pi(s,s,[-(t-=a.x),-(n-=a.y)]),gi(s,s,[e.scale,e.scale]),pi(s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.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 i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Ld(a,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=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 eT(this.group))).render(e,t,n.node,function(t){"animating"!==i._state&&(HB(e.getViewRoot(),t)?i._rootToNode({node:t}):i._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(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n},t.type="treemap",t}(KA),fT=W,pT=ae,AT=-1,gT=function(){function e(t){var n=t.mappingMethod,i=t.type,r=this.option=N(t);this.type=i,this.mappingMethod=n,this._normalizeData=kT[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(vT(r),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,W(t,function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)})}(r)):"category"===n?r.categories?function(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(fT(t,function(e,t){n[e]=t}),!te(i)){var r=[];ae(i)?fT(i,function(e,t){var i=n[t];r[null!=i?i:AT]=e}):r[AT]=i,i=ST(e,r)}for(var o=t.length-1;o>=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}(r):vT(r,!0):(ye("linear"!==n||r.dataExtent),vT(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return Z(this._normalizeData,this)},e.listVisualTypes=function(){return J(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){ae(e)?W(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var r,o=te(t)?[]:ae(t)?{}:(r=!0,null);return e.eachVisual(t,function(e,t){var a=n.call(i,e,t);r?o=a:o[t]=a}),o},e.retrieveVisuals=function(t){var n,i={};return t&&fT(e.visualHandlers,function(e,r){t.hasOwnProperty(r)&&(i[r]=t[r],n=!0)}),n?i:null},e.prepareVisualTypes=function(e){if(te(e))e=e.slice();else{if(!pT(e))return[];var t=[];fT(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 i,r=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||"string"==typeof s&&s===e+"")return o;n&&h(s,o)}}for(o=0,a=t.length;o<a;o++){var l=t[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(BT(c[1],e,u[1]))return o}else if(u[1]===1/0){if(BT(c[0],u[0],e))return o}else if(BT(c[0],u[0],e)&&BT(c[1],e,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function h(t,n){var o=Math.abs(t-e);o<r&&(r=o,i=n)}},e.visualHandlers={color:{applyVisual:_T("color"),getColorMapper:function(){var e=this.option;return Z("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),bT.call(this,e)}:function(t,n,i){var r=!!i;return!n&&(t=this._normalizeData(t)),i=yn(t,e.parsedVisual,i),r?i:Sn(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Sn(yn(e,this.option.parsedVisual),"rgba")},category:bT,piecewise:function(e,t){var n=CT.call(this,t);return null==n&&(n=Sn(yn(e,this.option.parsedVisual),"rgba")),n},fixed:wT}},colorHue:mT(function(e,t){return xn(e,t)}),colorSaturation:mT(function(e,t){return xn(e,null,t)}),colorLightness:mT(function(e,t){return xn(e,null,null,t)}),colorAlpha:mT(function(e,t){return Cn(e,t)}),decal:{applyVisual:_T("decal"),_normalizedToVisual:{linear:null,category:bT,piecewise:null,fixed:null}},opacity:{applyVisual:_T("opacity"),_normalizedToVisual:xT([0,1])},liftZ:{applyVisual:_T("liftZ"),_normalizedToVisual:{linear:wT,category:wT,piecewise:wT,fixed:wT}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:yT,category:bT,piecewise:function(e,t){var n=CT.call(this,t);return null==n&&(n=yT.call(this,e)),n},fixed:wT}},symbolSize:{applyVisual:_T("symbolSize"),_normalizedToVisual:xT([0,1])}},e}();function vT(e,t){var n=e.visual,i=[];ae(n)?fT(n,function(e){i.push(e)}):null!=n&&i.push(n);t||1!==i.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(i[1]=i[0]),ST(e,i)}function mT(e){return{applyVisual:function(t,n,i){var r=this.mapValueToVisual(t);i("color",e(n("color"),r))},_normalizedToVisual:xT([0,1])}}function yT(e){var t=this.option.visual;return t[Math.round(br(e,[0,1],[0,t.length-1],!0))]||{}}function _T(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function bT(e){var t=this.option.visual;return t[this.option.loop&&e!==AT?e%t.length:e]}function wT(){return this.option.visual[0]}function xT(e){return{linear:function(t){return br(t,e,this.option.visual,!0)},category:bT,piecewise:function(t,n){var i=CT.call(this,n);return null==i&&(i=br(t,e,this.option.visual,!0)),i},fixed:wT}}function CT(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=n[gT.findPieceIndex(e,n)];if(i&&i.visual)return i.visual[this.type]}}function ST(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=K(t,function(e){return An(e)})),t}var kT={linear:function(e){return br(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=gT.findPieceIndex(e,t,!0);if(null!=n)return br(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?AT:t},fixed:Ee};function BT(e,t,n){return e?t<=n:t<n}var TT=gT,ET="itemStyle",IT=ao(),MT={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||function e(t,n,i,r){var o=t.getModel();var a=t.getLayout();var s=t.hostTree.data;if(!a||a.invisible||!a.isInView)return;var l=o.getModel(ET);var u=function(e,t,n){var i=Q({},t),r=n.designatedVisualItemStyle;return W(["color","colorAlpha","colorSaturation"],function(n){r[n]=t[n];var o=e.get(n);r[n]=null,null!=o&&(i[n]=o)}),i}(l,n,r);var c=s.ensureUniqueItemVisual(t.dataIndex,"style");var h=l.get("borderColor");var d=l.get("borderColorSaturation");var f;null!=d&&(f=DT(u),h=function(e,t){return null!=t?xn(t,null,null,e):null}(d,f));c.stroke=h;var p=t.viewChildren;if(p&&p.length){var A=function(e,t,n,i,r,o){if(!o||!o.length)return;var a=FT(t,"color")||null!=r.color&&"none"!==r.color&&(FT(t,"colorAlpha")||FT(t,"colorSaturation"));if(!a)return;var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new TT(h);return IT(d).drColorMappingBy=c,d}(0,o,a,0,u,p);W(p,function(t,n){if(t.depth>=i.length||t===i[t.depth]){var a=function(e,t,n,i,r,o){var a=Q({},t);if(r){var s=r.type,l="color"===s&&IT(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(o,u,t,n,A,r);e(t,a,i,r)}})}else f=DT(u),c.fill=f}(t,{},e.getViewRoot().getAncestors(),e)}};function DT(e){var t=PT(e,"color");if(t){var n=PT(e,"colorAlpha"),i=PT(e,"colorSaturation");return i&&(t=xn(t,null,null,i)),n&&(t=Cn(t,n)),t}}function PT(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function FT(e,t){var n=e.get(t);return te(n)&&n.length?{name:t,range:n}:null}var OT=Math.max,LT=Math.min,NT=pe,RT=W,UT=["itemStyle","borderWidth"],QT=["itemStyle","gapWidth"],HT=["upperLabel","show"],jT=["upperLabel","height"],VT={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),a=e.option,s=jd(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=wr(NT(s.width,l[0]),r),c=wr(NT(s.height,l[1]),o),h=i&&i.type,d=UB(i,["treemapZoomToNode","treemapRootToNode"],e),f="treemapRender"===h||"treemapMove"===h?i.rootRect:null,p=e.getViewRoot(),A=QB(p);if("treemapMove"!==h){var g="treemapZoomToNode"===h?function(e,t,n,i,r){var o,a=(t||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,u=l*e.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var c=0,h=o.children,d=0,f=h.length;d<f;d++)c+=h[d].getValue();var p=a.getValue();if(0===p)return s;u*=c/p;var A=o.getModel(),g=A.get(UT),v=Math.max(g,GT(A));(u+=4*g*g+(3*g+v)*Math.pow(u,.5))>Ir&&(u=Ir),a=o}u<l&&(u=l);var m=Math.pow(u/l,.5);return[i*m,r*m]}(e,d,p,u,c):f?[f.width,f.height]:[u,c],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var m={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};p.hostTree.clearLayouts();var y={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};p.setLayout(y),function e(t,n,i,r){var o;var a;if(t.isRemoved())return;var s=t.getLayout();o=s.width;a=s.height;var l=t.getModel();var u=l.get(UT);var c=l.get(QT)/2;var h=GT(l);var d=Math.max(u,h);var f=u-c;var p=d-c;t.setLayout({borderWidth:u,upperHeight:d,upperLabelHeight:h},!0);o=OT(o-2*f,0);a=OT(a-f-p,0);var A=o*a;var g=function(e,t,n,i,r,o){var a=e.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return e.viewChildren=[];!function(e,t){t&&e.sort(function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i})}(a=q(a,function(e){return!e.isRemoved()}),s);var u=function(e,t,n){for(var i=0,r=0,o=t.length;r<o;r++)i+=t[r].getValue();var a,s=e.get("visualDimension");t&&t.length?"value"===s&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],RT(t,function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)})):a=[NaN,NaN];return{sum:i,dataExtent:a}}(t,a,s);if(0===u.sum)return e.viewChildren=[];if(u.sum=function(e,t,n,i,r){if(!i)return n;for(var o=e.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*t<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}(t,n,u.sum,s,a),0===u.sum)return e.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var d=a[c].getValue()/u.sum*n;a[c].setLayout({area:d})}l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0);return e.viewChildren=a,e.setLayout({dataExtent:u.dataExtent},!0),a}(t,l,A,n,i,r);if(!g.length)return;var v={x:f,y:p,width:o,height:a};var m=LT(o,a);var y=1/0;var _=[];_.area=0;for(var b=0,w=g.length;b<w;){var x=g[b];_.push(x),_.area+=x.getLayout().area;var C=zT(_,m,n.squareRatio);C<=y?(b++,y=C):(_.area-=_.pop().getLayout().area,$T(_,m,v,c,!1),m=LT(v.width,v.height),_.length=_.area=0,y=1/0)}_.length&&$T(_,m,v,c,!0);if(!i){var S=l.get("childrenVisibleMin");null!=S&&A<S&&(i=!0)}for(var b=0,w=g.length;b<w;b++)e(g[b],n,i,r+1)}(p,m,!1,0),y=p.getLayout(),RT(A,function(e,t){var n=(A[t+1]||p).getValue();e.setLayout(Q({dataExtent:[n,n],borderWidth:0,upperHeight:0},y))})}var _=e.getData().tree.root;_.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}(s,f,d),!0),e.setLayoutInfo(s),function e(t,n,i,r,o){var a=t.getLayout();var s=i[o];var l=s&&s===t;if(s&&!l||o===i.length&&t!==r)return;t.setLayout({isInView:!0,invisible:!l&&!n.intersect(a),isAboveViewRoot:l},!0);var u=new Qi(n.x-a.x,n.y-a.y,n.width,n.height);RT(t.viewChildren||[],function(t){e(t,u,i,r,o+1)})}(_,new Qi(-s.x,-s.y,r,o),A,p,0)}};function zT(e,t,n){for(var i=0,r=1/0,o=0,a=void 0,s=e.length;o<s;o++)(a=e[o].getLayout().area)&&(a<r&&(r=a),a>i&&(i=a));var l=e.area*e.area,u=t*t*n;return l?OT(u*i/l,l/(u*r)):1/0}function $T(e,t,n,i,r){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=e.length;h<d;h++){var f=e[h],p={},A=c?f.getLayout().area/c:0,g=p[l[a]]=OT(c-2*i,0),v=n[s[o]]+n[l[o]]-u,m=h===d-1||v<A?v:A,y=p[l[o]]=OT(m-2*i,0);p[s[a]]=n[s[a]]+LT(i,g/2),p[s[o]]=u+LT(i,y/2),u+=m,f.setLayout(p,!0)}n[s[a]]+=c,n[l[a]]-=c}function GT(e){return e.get(HT)?e.get(jT):0}function WT(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getGraph().data,r=n.mapArray(n.getName);i.filterSelf(function(e){var n=i.getItemModel(e).getShallow("category");if(null!=n){"number"==typeof n&&(n=r[n]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(n))return!1}return!0})})}function KT(e){var t={};e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getData(),r={};n.each(function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(o,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}}),n.count()&&i.each(function(e){var t=i.getItemModel(e).getShallow("category");if(null!=t){"string"==typeof t&&(t=r["ec-"+t]);var o=n.getItemVisual(t,"style");Q(i.ensureUniqueItemVisual(e,"style"),o);for(var a=["symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)i.setItemVisual(e,a[s],n.getItemVisual(t,a[s]))}})})}function YT(e){return e instanceof Array||(e=[e,e]),e}function qT(e){e.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),i=YT(e.get("edgeSymbol")),r=YT(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(e){var i=n.getItemModel(e),r=t.getEdgeByIndex(e),o=YT(i.getShallow("symbol",!0)),a=YT(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(Q(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style");l.stroke=u&&u.fill}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])})})}var XT=function(e){return e.get("autoCurveness")||null},JT=function(e,t){var n=XT(e),i=20,r=[];if("number"==typeof n)i=n;else if(te(n))return void(e.__curvenessList=n);t>i&&(i=t);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=r},ZT=function(e,t,n){var i=[e.id,e.dataIndex].join("."),r=[t.id,t.dataIndex].join(".");return[n.uid,i,r].join("--\x3e")},eE=function(e){var t=e.split("--\x3e");return[t[0],t[2],t[1]].join("--\x3e")},tE=function(e,t){var n=ZT(e.node1,e.node2,t);return t.__edgeMap[n]},nE=function(e,t){return iE(ZT(e.node1,e.node2,t),t)+iE(ZT(e.node2,e.node1,t),t)},iE=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function rE(e,t,n,i){var r=XT(t),o=te(r);if(!r)return null;var a=tE(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=nE(e,t);JT(t,u),e.lineStyle=e.lineStyle||{};var c=ZT(e.node1,e.node2,t),h=t.__curvenessList,d=o?0:u%2?0:1;if(a.isForward)return h[d+s];var f=eE(c),p=iE(f,t),A=h[s+p+d];return i?o?r&&0===r[0]?(p+d)%2?A:-A:((p%2?0:1)+d)%2?A:-A:(p+d)%2?A:-A:h[s+p+d]}function oE(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")])}),aE(n,e)}}function aE(e,t){e.eachEdge(function(e,n){var i=ge(e.getModel().get(["lineStyle","curveness"]),-rE(e,t,n,!0),0),r=Fe(e.node1.getLayout()),o=Fe(e.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),e.setLayout(a)})}function sE(e,t){e.eachSeriesByType("graph",function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),r=[];W(n.dimensions,function(e){r=r.concat(i.mapDimensionsAll(e))});for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}aE(i.graph,e)}else t&&"none"!==t||oE(e)})}function lE(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX;return((t.getZoom()-1)*n+1)/i}function uE(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var cE=Math.PI,hE=[];function dE(e,t){var n=e.coordinateSystem;if(!n||"view"===n.type){var i=n.getBoundingRect(),r=e.getData(),o=r.graph,a=i.width/2+i.x,s=i.height/2+i.y,l=Math.min(i.width,i.height)/2,u=r.count();r.setLayout({cx:a,cy:s}),u&&(fE[t](e,o,r,l,a,s,u),o.eachEdge(function(t,n){var i,r=ge(t.getModel().get(["lineStyle","curveness"]),rE(t,e,n),0),o=Fe(t.node1.getLayout()),l=Fe(t.node2.getLayout()),u=(o[0]+l[0])/2,c=(o[1]+l[1])/2;+r&&(i=[a*(r*=3)+u*(1-r),s*r+c*(1-r)]),t.setLayout([o,l,i])}))}}var fE={value:function(e,t,n,i,r,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);t.eachNode(function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n})},symbolSize:function(e,t,n,i,r,o,a){var s=0;hE.length=a;var l=lE(e);t.eachNode(function(e){var t=uE(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/i);isNaN(n)&&(n=cE/2),hE[e.dataIndex]=n,s+=2*n});var u=(2*cE-s)/a/2,c=0;t.eachNode(function(e){var t=u+hE[e.dataIndex];c+=t,e.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+o]),c+=t})}};function pE(e){e.eachSeriesByType("graph",function(e){"circular"===e.get("layout")&&dE(e,"symbolSize")})}var AE=Ne;function gE(e){e.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),r=i.data,o=i.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?r.each(function(e){var t=r.getId(e);r.setItemLayout(e,n[t]||[NaN,NaN])}):s&&"none"!==s?"circular"===s&&dE(e,"value"):oE(e);var l=r.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),d=te(c)?c:[c,c],f=te(h)?h:[h,h];f=[f[1],f[0]];var p=r.mapArray("value",function(e,t){var n=r.getItemLayout(t),i=br(e,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:r.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),A=o.mapArray("value",function(t,n){var r=i.getEdgeByIndex(n),o=br(t,u,f);isNaN(o)&&(o=(f[0]+f[1])/2);var a=r.getModel(),s=ge(r.getModel().get(["lineStyle","curveness"]),-rE(r,e,n,!0),0);return{n1:p[r.node1.dataIndex],n2:p[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}}),g=t.getBoundingRect(),v=function(e,t,n){for(var i=e,r=t,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var h=i[c];h.p||(h.p=De(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=Fe(h.p),h.edges=null}var d,f,p=null==n.friction?.6:n.friction,A=p;return{warmUp:function(){A=.8*p},setFixed:function(e){i[e].fixed=!0},setUnfixed:function(e){i[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){f=e},step:function(e){d&&d(i,r);for(var t=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1;Re(t,(g=a.n2).p,s.p);var c=Ue(t)-a.d,h=g.w/(s.w+g.w);isNaN(h)&&(h=0),We(t,t),!s.fixed&&AE(s.p,s.p,t,h*c*A),!g.fixed&&AE(g.p,g.p,t,-(1-h)*c*A)}}for(o=0;o<n;o++)(y=i[o]).fixed||(Re(t,l,y.p),AE(y.p,y.p,t,u*A));for(o=0;o<n;o++){s=i[o];for(var p=o+1;p<n;p++){var g;Re(t,(g=i[p]).p,s.p),0===(c=Ue(t))&&(Oe(t,Math.random()-.5,Math.random()-.5),c=1);var v=(s.rep+g.rep)/c/c;!s.fixed&&AE(s.pp,s.pp,t,v),!g.fixed&&AE(g.pp,g.pp,t,-v)}}var m=[];for(o=0;o<n;o++){var y;(y=i[o]).fixed||(Re(m,y.p,y.pp),AE(y.p,y.p,m,A),Pe(y.pp,y.p))}var _=(A*=.992)<.01;f&&f(i,r,_),e&&e(_)}}}(p,A,{rect:g,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep(function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].fixed&&Pe(e[n].p,i.getNodeByIndex(n).getLayout())}),v.afterStep(function(e,t,o){for(var a=0,s=e.length;a<s;a++)e[a].fixed||i.getNodeByIndex(a).setLayout(e[a].p),n[r.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var l=t[a],u=i.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,d=u.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],Pe(d[0],c),Pe(d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}}),e.forceLayout=v,e.preservedPoints=n,v.step()}else e.forceLayout=null})}function vE(e,t){var n=[];return e.eachSeriesByType("graph",function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var r=e.getData(),o=[],a=[];Fa(r.mapArray(function(e){var t=r.getItemModel(e);return[+t.get("x"),+t.get("y")]}),o,a),a[0]-o[0]==0&&(a[0]+=1,o[0]-=1),a[1]-o[1]==0&&(a[1]+=1,o[1]-=1);var s=(a[0]-o[0])/(a[1]-o[1]),l=function(e,t,n){return jd(Q(e.getBoxLayoutParams(),{aspect:n}),{width:t.getWidth(),height:t.getHeight()})}(e,t,s);isNaN(s)&&(o=[l.x,l.y],a=[l.x+l.width,l.y+l.height]);var u=a[0]-o[0],c=a[1]-o[1],h=l.width,d=l.height,f=e.coordinateSystem=new Jk;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(o[0],o[1],u,c),f.setViewRect(l.x,l.y,h,d),f.setCenter(e.get("center")),f.setZoom(e.get("zoom")),n.push(f)}}),n}var mE=rc.prototype,yE=uc.prototype,_E=function(){return 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}g(t,e)}(_E);function bE(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var wE=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return g(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new _E},t.prototype.buildPath=function(e,t){bE(t)?mE.buildPath.call(this,e,t):yE.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return bE(this.shape)?mE.pointAt.call(this,e):yE.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=bE(t)?[t.x2-t.x1,t.y2-t.y1]:yE.tangentAt.call(this,e);return We(n,n)},t}(Bs),xE=["fromSymbol","toSymbol"];function CE(e){return"_"+e+"Type"}function SE(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=qg(r),u=Xg(a||0,l),c=Yg(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function kE(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 BE=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createLine(t,n,i),r}return g(t,e),t.prototype._createLine=function(e,t,n){var i=e.hostModel,r=function(e){var t=new wE({name:"line",subPixelOptimize:!0});return kE(t.shape,e),t}(e.getItemLayout(t));r.shape.percent=0,Tc(r,{shape:{percent:1}},i,t),this.add(r),W(xE,function(n){var i=SE(n,e,t);this.add(i),this[CE(n)]=e.getItemVisual(t,n)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=e.getItemLayout(t),a={shape:{}};kE(a.shape,o),Bc(r,a,i,t),W(xE,function(n){var i=e.getItemVisual(t,n),r=CE(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=SE(n,e,t);this.add(o)}this[r]=i},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels;if(!n||e.hasItemOption){var u=e.getItemModel(t);o=u.getModel(["emphasis","lineStyle"]).getLineStyle(),a=u.getModel(["blur","lineStyle"]).getLineStyle(),s=u.getModel(["select","lineStyle"]).getLineStyle(),l=dh(u)}var c=e.getItemVisual(t,"style"),h=c.stroke;r.useStyle(c),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,W(xE,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=c.opacity;for(var n=0;n<ul.length;n++){var i=ul[n],o=r.getState(i);if(o){var a=o.style||{},s=t.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}t.markRedraw()}},this);var d=i.getRawValue(t);hh(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:h||"#000",defaultOpacity:c.opacity,defaultText:(null==d?e.getName(t):isFinite(d)?xr(d):d)+""});var f=this.getTextContent();if(f){var p=l.normal;f.__align=f.style.align,f.__verticalAlign=f.style.verticalAlign,f.__position=p.get("position")||"middle";var A=p.get("distance");te(A)||(A=[A,A]),f.__labelDistance=A}this.setTextConfig({position:null,local:!0,inside:!1}),Wl(this)},t.prototype.highlight=function(){Ol(this)},t.prototype.downplay=function(){Ll(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");kE(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this.childOfName("fromSymbol"),t=this.childOfName("toSymbol"),n=this.getTextContent();if(e||t||n&&!n.ignore){for(var i=1,r=this.parent;r;)r.scaleX&&(i/=r.scaleX),r=r.parent;var o=this.childOfName("line");if(this.__dirty||o.__dirty){var a=o.shape.percent,s=o.pointAt(0),l=o.pointAt(a),u=Re([],l,s);if(We(u,u),e&&(e.setPosition(s),w(e,0),e.scaleX=e.scaleY=i*a,e.markRedraw()),t&&(t.setPosition(l),w(t,1),t.scaleX=t.scaleY=i*a,t.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var c=void 0,h=void 0,d=n.__labelDistance,f=d[0]*i,p=d[1]*i,A=a/2,g=o.tangentAt(A),v=[g[1],-g[0]],m=o.pointAt(A);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var y=g[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var _=-Math.atan2(g[1],g[0]);l[0]<s[0]&&(_=Math.PI+_),n.rotation=_}var b=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":b=-p,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":b=p,h="top";break;default:b=0,h="middle"}switch(n.__position){case"end":n.x=u[0]*f+l[0],n.y=u[1]*p+l[1],c=u[0]>.8?"left":u[0]<-.8?"right":"center",h=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*f+s[0],n.y=-u[1]*p+s[1],c=u[0]>.8?"right":u[0]<-.8?"left":"center",h=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=f*y+s[0],n.y=s[1]+b,c=g[0]<0?"right":"left",n.originX=-f*y,n.originY=-b;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=m[0],n.y=m[1]+b,c="center",n.originY=-b;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-f*y+l[0],n.y=l[1]+b,c=g[0]>=0?"right":"left",n.originX=f*y,n.originY=-b}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||h,align:n.__align||c})}}}function w(e,t){var n=e.__specifiedRotation;if(null==n){var i=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(lr);function TE(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:dh(t)}}function EE(e){return isNaN(e[0])||isNaN(e[1])}function IE(e){return!EE(e[0])&&!EE(e[1])}var ME=function(){function e(e){this.group=new lr,this._LineCtor=e||BE}return e.prototype.isPersistent=function(){return!0},e.prototype.updateData=function(e){var t=this,n=this.group,i=this._lineData;this._lineData=e,i||n.removeAll();var r=TE(e);e.diff(i).add(function(n){t._doAdd(e,n,r)}).update(function(n,o){t._doUpdate(i,e,o,n,r)}).remove(function(e){n.remove(i.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=TE(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)}for(var i=e.start;i<e.end;i++){if(IE(t.getItemLayout(i))){var r=new this._LineCtor(t,i,this._seriesScope);r.traverse(n),this.group.add(r),t.setItemGraphicEl(i,r)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype._doAdd=function(e,t,n){if(IE(e.getItemLayout(t))){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},e.prototype._doUpdate=function(e,t,n,i,r){var o=e.getItemGraphicEl(n);IE(t.getItemLayout(i))?(o?o.updateData(t,i,r):o=new this._LineCtor(t,i,r),t.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},e}(),DE=[],PE=[],FE=[],OE=_a,LE=Xe,NE=Math.abs;function RE(e,t,n){for(var i,r=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){DE[0]=OE(r[0],o[0],a[0],c),DE[1]=OE(r[1],o[1],a[1],c),(f=NE(LE(DE,t)-l))<s&&(s=f,i=c)}for(var h=0;h<32;h++){var d=i+u;PE[0]=OE(r[0],o[0],a[0],i),PE[1]=OE(r[1],o[1],a[1],i),FE[0]=OE(r[0],o[0],a[0],d),FE[1]=OE(r[1],o[1],a[1],d);var f=LE(PE,t)-l;if(NE(f)<.01)break;var p=LE(FE,t)-l;u/=2,f<0?p>=0?i+=u:i-=u:p>=0?i-=u:i+=u}return i}function UE(e,t){var n=[],i=xa,r=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge(function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[Fe(l[0]),Fe(l[1])],l[2]&&l.__original.push(Fe(l[2])));var h=l.__original;if(null!=l[2]){if(Pe(r[0],h[0]),Pe(r[1],h[2]),Pe(r[2],h[1]),u&&"none"!==u){var d=uE(e.node1),f=RE(r,h[0],d*t);i(r[0][0],r[1][0],r[2][0],f,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],f,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){d=uE(e.node2),f=RE(r,h[1],d*t);i(r[0][0],r[1][0],r[2][0],f,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],f,n),r[1][1]=n[1],r[2][1]=n[2]}Pe(l[0],r[0]),Pe(l[1],r[2]),Pe(l[2],r[1])}else{if(Pe(o[0],h[0]),Pe(o[1],h[1]),Re(a,o[1],o[0]),We(a,a),u&&"none"!==u){d=uE(e.node1);Ne(o[0],o[0],a,d*t)}if(c&&"none"!==c){d=uE(e.node2);Ne(o[1],o[1],a,-d*t)}Pe(l[0],o[0]),Pe(l[1],o[1])}})}function QE(e){return"view"===e.type}var HE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(e,t){var n=new Vx,i=new ME,r=this.group;this._controller=new Ek(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(QE(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Bc(s,l,e)}UE(e.getGraph(),lE(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var h=e.forceLayout,d=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d),u.graph.eachNode(function(e){var t=e.dataIndex,n=e.getGraphicEl(),r=e.getModel();n.off("drag").off("dragend");var o=r.get("draggable");o&&n.on("drag",function(){h&&(h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(t),u.setItemLayout(t,[n.x,n.y]))}).on("dragend",function(){h&&h.setUnfixed(t)}),n.setDraggable(o&&!!h),"adjacency"===r.get(["emphasis","focus"])&&(tl(n).focus=e.getAdjacentDataIndices())}),u.graph.eachEdge(function(e){var t=e.getGraphicEl();"adjacency"===e.getModel().get(["emphasis","focus"])&&(tl(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),p=u.getLayout("cx"),A=u.getLayout("cy");u.eachItemGraphicEl(function(e,t){var n=u.getItemModel(t).get(["label","rotate"])||0,i=e.getSymbolPath();if(f){var r=u.getItemLayout(t),o=Math.atan2(r[1]-A,r[0]-p);o<0&&(o=2*Math.PI+o);var a=r[0]<p;a&&(o-=Math.PI);var s=a?"left":"right";i.setTextConfig({rotation:-o,position:s,origin:"center"});var l=i.ensureState("emphasis");Q(l.textConfig||(l.textConfig={}),{position:s})}else i.setTextConfig({rotation:n*=Math.PI/180})}),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 i(){e.step(function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())})}()},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker(function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!Pk(t,n,e)}),QE(e.coordinateSystem)?(r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",function(t){Ik(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){Mk(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),UE(e.getGraph(),lE(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()})):r.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=lE(e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){UE(e.getGraph(),lE(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}(KA);function jE(e){return"_EC_"+e}var VE=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 i=new zE(e,t);return i.hostGraph=this,this.nodes.push(i),n[jE(e)]=i,i}},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 i=this._nodesMap,r=this._edgesMap;if("number"==typeof e&&(e=this.nodes[e]),"number"==typeof t&&(t=this.nodes[t]),e instanceof zE||(e=i[jE(e)]),t instanceof zE||(t=i[jE(t)]),e&&t){var o=e.id+"-"+t.id,a=new $E(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),r[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof zE&&(e=e.id),t instanceof zE&&(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,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof zE||(t=this._nodesMap[jE(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null))for(var a=[t];a.length;){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(e.call(i,c,s))return;a.push(c),c.__visited=!0}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)n[e.getRawIndex(r)].dataIndex=r;t.filterSelf(function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)i[t.getRawIndex(r)].dataIndex=r},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)t.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),zE=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(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e}(),$E=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(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function GE(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},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)}}}$(zE,GE("hostGraph","data")),$($E,GE("hostGraph","edgeData"));var WE=VE;function KE(e,t,n,i,r){for(var o=new WE(i),a=0;a<e.length;a++)o.addNode(pe(e[a].id,e[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<t.length;a++){var c=t[a],h=c.source,d=c.target;o.addEdge(h,d,u)&&(l.push(c),s.push(pe(no(c.id,null),h+" > "+d)),u++)}var f,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=w_(e,n);else{var A=Ff.get(p),g=A&&A.dimensions||[];V(g,"value")<0&&g.concat(["value"]);var v=p_(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;(f=new d_(v,n)).initData(e)}var m=new d_(["value"],n);return m.initData(l,s),r&&r(f,m),LB({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var YE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return g(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new uS(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Yr(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n,i=e.edges||e.links||[],r=e.data||e.nodes||[],o=this;if(r&&i){XT(n=this)&&(n.__curvenessList=[],n.__edgeMap={},JT(n));var a=KE(r,i,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e){var t=o._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e});var n=Oh.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=r,i}function r(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=r,e.getModel=i,e})});return W(a.edges,function(e){!function(e,t,n,i){if(XT(n)){var r=ZT(e,t,n),o=n.__edgeMap,a=o[eE(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(e.node1,e.node2,this,e.dataIndex)},this),a.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 i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),pA("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return CA({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=K(this.option.categories||[],function(e){return null!=e.value?e:Q({value:0},e)}),t=new d_(["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={zlevel:0,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}(LA),qE={type:"graphRoam",event:"graphRoam",update:"none"};var XE=function(){return function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}}(),JE=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return g(t,e),t.prototype.getDefaultShape=function(){return new XE},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=r/3?1:2),l=t.y-i(a)*o*(o>=r/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+i(a)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(a)*o,t.y-i(a)*o),e.lineTo(s,l)},t}(Bs);function ZE(e,t){var n=null==e?"":e+"";return t&&("string"==typeof t?n=t.replace("{value}",n):"function"==typeof t&&(n=t(e))),n}var eI=2*Math.PI,tI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),r=function(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r);return{cx:wr(n[0],t.getWidth()),cy:wr(n[1],t.getHeight()),r:wr(e.get("radius"),o/2)}}(e,n);this._renderMain(e,t,n,i,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,r){for(var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap")?kC:Vu,h=u.get("show"),d=u.getModel("lineStyle"),f=d.get("width"),p=(l-s)%eI||l===s?(l-s)%eI:eI,A=s,g=0;h&&g<i.length;g++){var v=new c({shape:{startAngle:A,endAngle:l=s+p*Math.min(Math.max(i[g][0],0),1),cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-f,r:r.r},silent:!0});v.setStyle({fill:i[g][1]}),v.setStyle(d.getLineStyle(["color","width"])),o.add(v),A=l}var m=function(e){if(e<=0)return i[0][1];var t;for(t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};if(!a){var y=s;s=l,l=y}this._renderTicks(e,t,n,m,r,s,l,a,f),this._renderTitleAndDetail(e,t,n,m,r),this._renderAnchor(e,r),this._renderPointer(e,t,n,m,r,s,l,a,f)},t.prototype._renderTicks=function(e,t,n,i,r,o,a,s,l){for(var u,c,h=this.group,d=r.cx,f=r.cy,p=r.r,A=+e.get("min"),g=+e.get("max"),v=e.getModel("splitLine"),m=e.getModel("axisTick"),y=e.getModel("axisLabel"),_=e.get("splitNumber"),b=m.get("splitNumber"),w=wr(v.get("length"),p),x=wr(m.get("length"),p),C=o,S=(a-o)/_,k=S/b,B=v.getModel("lineStyle").getLineStyle(),T=m.getModel("lineStyle").getLineStyle(),E=v.get("distance"),I=0;I<=_;I++){if(u=Math.cos(C),c=Math.sin(C),v.get("show")){var M=new rc({shape:{x1:u*(p-(D=E?E+l:l))+d,y1:c*(p-D)+f,x2:u*(p-w-D)+d,y2:c*(p-w-D)+f},style:B,silent:!0});"auto"===B.stroke&&M.setStyle({stroke:i(I/_)}),h.add(M)}if(y.get("show")){var D=y.get("distance")+E,P=ZE(xr(I/_*(g-A)+A),y.get("formatter")),F=i(I/_);h.add(new el({style:fh(y,{text:P,x:u*(p-w-D)+d,y:c*(p-w-D)+f,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:F}),silent:!0}))}if(m.get("show")&&I!==_){D=(D=m.get("distance"))?D+l:l;for(var O=0;O<=b;O++){u=Math.cos(C),c=Math.sin(C);var L=new rc({shape:{x1:u*(p-D)+d,y1:c*(p-D)+f,x2:u*(p-x-D)+d,y2:c*(p-x-D)+f},silent:!0,style:T});"auto"===T.stroke&&L.setStyle({stroke:i((I+O/b)/_)}),h.add(L),C+=k}C-=k}else C+=S}},t.prototype._renderPointer=function(e,t,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],f=e.get(["pointer","show"]),p=e.getModel("progress"),A=p.get("show"),g=e.getData(),v=g.mapDimension("value"),m=+e.get("min"),y=+e.get("max"),_=[m,y],b=[o,a];function w(t,n){var i,o=g.getItemModel(t).getModel("pointer"),a=wr(o.get("width"),r.r),s=wr(o.get("length"),r.r),l=e.get(["pointer","icon"]),u=o.get("offsetCenter"),c=wr(u[0],r.r),h=wr(u[1],r.r),d=o.get("keepAspect");return(i=l?Yg(l,c-a/2,h-s,a,s,null,d):new JE({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function x(e,t){var n=p.get("roundCap")?kC:Vu,i=p.get("overlap"),a=i?p.get("width"):l/g.count(),u=i?r.r-a:r.r-(e+1)*a,c=i?r.r:r.r-e*a,h=new n({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:c}});return i&&(h.z2=y-g.get(v,e)%y),h}(A||f)&&(g.diff(c).add(function(t){if(f){var n=w(t,o);Tc(n,{rotation:-(br(g.get(v,t),_,b,!0)+Math.PI/2)},e),u.add(n),g.setItemGraphicEl(t,n)}if(A){var i=x(t,o),r=p.get("clip");Tc(i,{shape:{endAngle:br(g.get(v,t),_,b,r)}},e),u.add(i),nl(e.seriesIndex,g.dataType,t,i),d[t]=i}}).update(function(t,n){if(f){var i=c.getItemGraphicEl(n),r=i?i.rotation:o,a=w(t,r);a.rotation=r,Bc(a,{rotation:-(br(g.get(v,t),_,b,!0)+Math.PI/2)},e),u.add(a),g.setItemGraphicEl(t,a)}if(A){var s=h[n],l=x(t,s?s.shape.endAngle:o),m=p.get("clip");Bc(l,{shape:{endAngle:br(g.get(v,t),_,b,m)}},e),u.add(l),nl(e.seriesIndex,g.dataType,t,l),d[t]=l}}).execute(),g.each(function(e){var t=g.getItemModel(e),n=t.getModel("emphasis");if(f){var r=g.getItemGraphicEl(e),o=g.getItemVisual(e,"style"),a=o.fill;if(r instanceof Fs){var s=r.style;r.useStyle(Q({image:s.image,x:s.x,y:s.y,width:s.width,height:s.height},o))}else r.useStyle(o),"pointer"!==r.type&&r.setColor(a);r.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===r.style.fill&&r.setStyle("fill",i(br(g.get(v,e),_,[0,1],!0))),r.z2EmphasisLift=0,Xl(r,t),Wl(r,n.get("focus"),n.get("blurScope"))}if(A){var l=d[e];l.useStyle(g.getItemVisual(e,"style")),l.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),l.z2EmphasisLift=0,Xl(l,t),Wl(l,n.get("focus"),n.get("blurScope"))}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=Yg(r,t.cx-i/2+wr(o[0],t.r),t.cy-i/2+wr(o[1],t.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,r){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new lr,h=[],d=[],f=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);a.diff(this._data).add(function(e){h[e]=new el({silent:!0}),d[e]=new el({silent:!0})}).update(function(e,t){h[e]=o._titleEls[t],d[e]=o._detailEls[t]}).execute(),a.each(function(t){var n=a.getItemModel(t),o=a.get(s,t),A=new lr,g=i(br(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),y=r.cx+wr(m[0],r.r),_=r.cy+wr(m[1],r.r);(T=h[t]).attr({z2:p?0:2,style:fh(v,{x:y,y:_,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:g})}),A.add(T)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),x=r.cx+wr(w[0],r.r),C=r.cy+wr(w[1],r.r),S=wr(b.get("width"),r.r),k=wr(b.get("height"),r.r),B=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:g,T=d[t],E=b.get("formatter");T.attr({z2:p?0:2,style:fh(b,{x:x,y:C,text:ZE(o,E),width:isNaN(S)?null:S,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:B})}),bh(T,{normal:b},o,function(e){return ZE(e,E)}),f&&wh(T,t,a,e,{getFormattedLabel:function(e,t,n,i,r,a){return ZE(a?a.interpolatedValue:o,E)}}),A.add(T)}c.add(A)}),this.group.add(c),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(KA),nI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return g(t,e),t.prototype.getInitialData=function(e,t){return lS(this,["value"])},t.type="series.gauge",t.defaultOption={zlevel:0,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},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}(LA);var iI=["itemStyle","opacity"],rI=function(e){function t(t,n){var i=e.call(this)||this,r=i,o=new ec,a=new el;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return g(t,e),t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=e.getItemModel(t),o=e.getItemLayout(t),a=r.getModel("emphasis"),s=r.get(iI);s=null==s?1:s,n||Pc(this),this.useStyle(e.getItemVisual(t,"style")),this.style.lineJoin="round",n?(this.setShape({points:o.points}),this.style.opacity=0,Tc(this,{style:{opacity:s}},i,t)):Bc(this,{style:{opacity:s},shape:{points:o.points}},i,t),Xl(this,r),this._updateLabel(e,t),Wl(this,a.get("focus"),a.get("blurScope"))},t.prototype._updateLabel=function(e,t){var n=this.getTextGuideLine(),i=this.getTextContent(),r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t).label,s=e.getItemVisual(t,"style"),l=s.fill;hh(i,dh(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:s.opacity,defaultText:e.getName(t)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:l,outsideFill:l});var u=a.linePoints;n.setShape({points:u}),this.textGuideLineConfig={anchor:u?new Mi(u[0][0],u[0][1]):null},Bc(i,{style:{x:a.x,y:a.y}},r,t),i.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),bw(this,ww(o),{stroke:l})},t}(Xu),oI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return g(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add(function(e){var t=new rI(i,e);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){Dc(r.getItemGraphicEl(t),e,t)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(KA),aI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new uS(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return lS(this,{coordDimensions:["value"],encodeDefaulter:ee(ff,this)})},t.prototype._defaultLabelLine=function(e){Yr(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={zlevel:0,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}(LA);function sI(e,t){e.eachSeriesByType("funnel",function(e){var n=e.getData(),i=n.mapDimension("value"),r=e.get("sort"),o=function(e,t){return jd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),a=e.get("orient"),s=o.width,l=o.height,u=function(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,function(e){return e}),r=[],o="ascending"===t,a=0,s=e.count();a<s;a++)r[a]=a;return"function"==typeof t?r.sort(t):"none"!==t&&r.sort(function(e,t){return o?i[e]-i[t]:i[t]-i[e]}),r}(n,r),c=o.x,h=o.y,d="horizontal"===a?[wr(e.get("minSize"),l),wr(e.get("maxSize"),l)]:[wr(e.get("minSize"),s),wr(e.get("maxSize"),s)],f=n.getDataExtent(i),p=e.get("min"),A=e.get("max");null==p&&(p=Math.min(f[0],0)),null==A&&(A=f[1]);var g=e.get("funnelAlign"),v=e.get("gap"),m=(("horizontal"===a?s:l)-v*(n.count()-1))/n.count(),y=function(e,t){if("horizontal"===a){var r=br(n.get(i,e)||0,[p,A],d,!0),o=void 0;switch(g){case"top":o=h;break;case"center":o=h+(l-r)/2;break;case"bottom":o=h+(l-r)}return[[t,o],[t,o+r]]}var u,f=br(n.get(i,e)||0,[p,A],d,!0);switch(g){case"left":u=c;break;case"center":u=c+(s-f)/2;break;case"right":u=c+s-f}return[[u,t],[u+f,t]]};"ascending"===r&&(m=-m,v=-v,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var _=0;_<u.length;_++){var b=u[_],w=u[_+1],x=n.getItemModel(b);if("horizontal"===a){var C=x.get(["itemStyle","width"]);null==C?C=m:(C=wr(C,s),"ascending"===r&&(C=-C));var S=y(b,c),k=y(w,c+C);c+=C+v,n.setItemLayout(b,{points:S.concat(k.slice().reverse())})}else{var B=x.get(["itemStyle","height"]);null==B?B=m:(B=wr(B,l),"ascending"===r&&(B=-B));S=y(b,h),k=y(w,h+B);h+=B+v,n.setItemLayout(b,{points:S.concat(k.slice().reverse())})}}!function(e){var t=e.hostModel.get("orient");e.each(function(n){var i,r,o,a,s=e.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=e.getItemLayout(n),h=c.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(r=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,i="left"):"insideRight"===l?(r=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,i="right"):(r=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,i="center"),a=[[r,o],[r,o]];else{var f=void 0,p=void 0,A=void 0,g=void 0,v=u.get("length");"left"===l?(f=(h[3][0]+h[0][0])/2,p=(h[3][1]+h[0][1])/2,r=(A=f-v)-5,i="right"):"right"===l?(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,r=(A=f+v)+5,i="left"):"top"===l?(f=(h[3][0]+h[0][0])/2,o=(g=(p=(h[3][1]+h[0][1])/2)-v)-5,i="center"):"bottom"===l?(f=(h[1][0]+h[2][0])/2,o=(g=(p=(h[1][1]+h[2][1])/2)+v)+5,i="center"):"rightTop"===l?(f="horizontal"===t?h[3][0]:h[1][0],p="horizontal"===t?h[3][1]:h[1][1],"horizontal"===t?(o=(g=p-v)-5,i="center"):(r=(A=f+v)+5,i="top")):"rightBottom"===l?(f=h[2][0],p=h[2][1],"horizontal"===t?(o=(g=p+v)+5,i="center"):(r=(A=f+v)+5,i="bottom")):"leftTop"===l?(f=h[0][0],p="horizontal"===t?h[0][1]:h[1][1],"horizontal"===t?(o=(g=p-v)-5,i="center"):(r=(A=f-v)-5,i="right")):"leftBottom"===l?(f="horizontal"===t?h[1][0]:h[3][0],p="horizontal"===t?h[1][1]:h[2][1],"horizontal"===t?(o=(g=p+v)+5,i="center"):(r=(A=f-v)-5,i="right")):(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,"horizontal"===t?(o=(g=p+v)+5,i="center"):(r=(A=f+v)+5,i="left")),"horizontal"===t?r=A=f:o=g=p,a=[[f,p],[A,g]]}c.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:d}})}(n)})}var lI=.3;function uI(e,t,n,i){for(var r,o=[],a=0;a<n.length;a++){var s=n[a],l=e.get(e.mapDimension(s),t);r=l,("category"===i.getAxis(s).type?null==r:null==r||isNaN(r))||o.push(i.dataToPoint(l,s))}return o}function cI(e,t,n,i,r){var o=uI(e,n,i,r),a=new ec({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function hI(e){var t=e.get("smooth",!0);return!0===t&&(t=lI),fe(t=Qr(t))&&(t=0),{smooth:t}}function dI(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var r=t.getItemModel(n),o=r.getModel("emphasis");Xl(e,r,"lineStyle"),Wl(e,o.get("focus"),o.get("blurScope"))}var fI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new lr,n._initialized=!1,n}return g(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){var r=this._dataGroup,o=e.getData(),a=this._data,s=e.coordinateSystem,l=s.dimensions,u=hI(e);if(o.diff(a).add(function(e){dI(cI(o,r,e,l,s),o,e,u)}).update(function(t,n){var i=a.getItemGraphicEl(n),r=uI(o,t,l,s);o.setItemGraphicEl(t,i),Bc(i,{shape:{points:r}},e,t),Pc(i),dI(i,o,t,u)}).remove(function(e){var t=a.getItemGraphicEl(e);r.remove(t)}).execute(),!this._initialized){this._initialized=!0;var c=function(e,t,n){var i=e.model,r=e.getRect(),o=new js({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),Tc(o,{shape:{width:r.width,height:r.height}},t,n),o}(s,e,function(){setTimeout(function(){r.removeClipPath()})});r.setClipPath(c)}this._data=o},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 i=t.getData(),r=t.coordinateSystem,o=r.dimensions,a=hI(t),s=e.start;s<e.end;s++){var l=cI(i,this._dataGroup,s,o,r);l.incremental=!0,dI(l,i,s,a)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(KA);function pI(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return W(t.dimensions,function(e){var t=+e.replace("dim","");n[e]=t}),n}}var AI=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 g(t,e),t.prototype.getInitialData=function(e,t){return w_(null,this,{useEncodeDefaulter:Z(pI,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,function(t,r){e===t&&i.push(n.getRawIndex(r))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={zlevel:0,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}(LA),gI=["lineStyle","opacity"],vI={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,function(e,n){var r=i[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(gI,!0);null!=o&&(r=o)}t.ensureUniqueItemVisual(n,"style").opacity=r},e.start,e.end)}}}};function mI(e){!function(e){if(e.parallel)return;var t=!1;W(e.series,function(e){e&&"parallel"===e.type&&(t=!0)}),t&&(e.parallel=[{}])}(e),function(e){W(Kr(e.parallelAxis),function(t){if(ae(t)){var n=t.parallelIndex||0,i=Kr(e.parallel)[n];i&&i.parallelAxisDefault&&R(t,i.parallelAxisDefault,!1)}})}(e)}var yI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},W(_I,function(e,t){n.getZr().on(t,this._handlers[t]=Z(e,this))},this)),ZA(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){W(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(Q({type:"parallelAxisExpand"},e))},t.type="parallel",t}(RA),_I={mousedown:function(e){bI(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(bI(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 i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&bI(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function bI(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var wI=yI,xI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&R(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){W(["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=[];W(q(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(e){return(e.get("parallelIndex")||0)===this.componentIndex},this),function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={zlevel:0,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}(qd),CI=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return g(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Kb);function SI(e,t,n,i,r,o){e=e||0;var a=n[1]-n[0];if(null!=r&&(r=BI(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(t[1]-t[0]);r=o=BI(s=BI(s,[0,a]),[r,o]),i=0}t[0]=BI(t[0],n),t[1]=BI(t[1],n);var l=kI(t,i);t[i]+=e;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,t[i]=BI(t[i],h),u=kI(t,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(t[1-i]=t[i]+l.sign*r),u=kI(t,i),null!=o&&u.span>o&&(t[1-i]=t[i]+u.sign*o),t}function kI(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 BI(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var TI=W,EI=Math.min,II=Math.max,MI=Math.floor,DI=Math.ceil,PI=xr,FI=Math.PI;function OI(e,t){return EI(II(e,t[0]),t[1])}var LI=function(){function e(e,t,n){this.type="parallel",this._axesMap=Se(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;TI(i,function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new CI(e,Sb(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.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,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],a=e[r];return o>=n&&o<=n+t.axisLength&&a>=i&&a<=i+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 i=n.getData();TI(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),Cb(t.scale,t.model)},this)}},this)},e.prototype.resize=function(e,t){this._rect=jd(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,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=OI(t.get("axisExpandWidth"),l),h=OI(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=t.get("axisExpandWindow");f?(e=OI(f[1]-f[0],l),f[1]=f[0]+e):(e=OI(c*(h-1),l),(f=[c*(t.get("axisExpandCenter")||MI(u/2))-e/2])[1]=f[0]+e);var p=(s-e)/(u-h);p<3&&(p=0);var A=[MI(PI(f[0]/c,1))+1,DI(PI(f[1]/c,1))-1],g=p/c*f[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:A,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each(function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])}),TI(n,function(t,n){var o=(i.axisExpandable?function(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],u=o,c=!0):(n=r-(a-1-e)*s,i=s);return{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}:function(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}})(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:FI/2,vertical:0},l=[a[r].x+e.x,a[r].y+e.y],u=s[r],c=[1,0,0,1,0,0];Ai(c,c,u),pi(c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,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(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];W(o,function(t){a.push(e.mapDimension(t)),s.push(r.get(t).model)});for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var c=void 0;if(l){c="active";for(var h=e.getValues(a,u),d=0,f=o.length;d<f;d++){if("inactive"===s[d].getActiveState(h[d])){c="inactive";break}}}else c="normal";t(c,u)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,r=e.length;i<r;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){return Xc([e,0],this._axesLayout[t].transform)},e.prototype.getAxisLayout=function(e){return N(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<r*c[0]?(l="jump",a=s-r*c[2]):h&&u&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),(a*=t.axisExpandWidth/u)?SI(a,i,o,"all"):l="none";else{var d=i[1]-i[0];(i=[II(0,o[1]*s/d-d/2)])[1]=EI(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},e}();var NI={create:function(e,t){var n=[];return e.eachComponent("parallel",function(i,r){var o=new LI(i,e,t);o.name="parallel_"+r,o.resize(i,t),i.coordinateSystem=o,o.model=i,n.push(o)}),e.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",co).models[0];e.coordinateSystem=t.coordinateSystem}}),n}},RI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return g(t,e),t.prototype.getAreaSelectStyle=function(){return Bo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=N(e);if(t)for(var n=t.length-1;n>=0;n--)Cr(t[n])},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}(qd);$(RI,Mb);var UI=RI,QI=!0,HI=Math.min,jI=Math.max,VI=Math.pow,zI=1e4,$I=6,GI=6,WI={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},KI={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},YI={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},qI=0,XI=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new lr,n._uid="brushController_"+qI++,W(CM,function(e,t){this._handlers[t]=Z(e,this)},n),n}return g(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){Sk(e)[t]=n}(t,"globalPan",this._uid),W(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=R(N(YI),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var i=Sk(e);i[t]===n&&(i[t]=null)}(e,"globalPan",this._uid),W(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={};W(e,function(e){t[e.panelId]=N(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=K(e,function(e){return R(N(YI),e,!0)});var t="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new jy(n,e,function(e,t){return a(e.__brushOption,t)},a).add(s).update(s).remove(function(e){n[e]!==o&&r.group.remove(n[e])}).execute(),this;function a(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(t,a){var s=e[t];if(null!=a&&n[a]===o)i[t]=n[a];else{var l=i[t]=null!=a?(n[a].__brushOption=s,n[a]):ZI(r,JI(r,s));nM(r,l)}}},t.prototype.unmount=function(){return this.enableBrush(!1),aM(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ot);function JI(e,t){var n=kM[t.brushType].createCover(e,t);return n.__brushOption=t,tM(n,t),e.group.add(n),n}function ZI(e,t){var n=iM(t);return n.endCreating&&(n.endCreating(e,t),tM(t,t.__brushOption)),t}function eM(e,t){var n=t.__brushOption;iM(t).updateCoverShape(e,t,n.range,n)}function tM(e,t){var n=t.z;null==n&&(n=zI),e.traverse(function(e){e.z=n,e.z2=n})}function nM(e,t){iM(t).updateCommon(e,t),eM(e,t)}function iM(e){return kM[e.__brushOption.brushType]}function rM(e,t,n){var i,r=e._panels;if(!r)return QI;var o=e._transform;return W(r,function(e){e.isTargetByCursor(t,n,o)&&(i=e)}),i}function oM(e,t){var n=e._panels;if(!n)return QI;var i=t.__brushOption.panelId;return null!=i?n[i]:QI}function aM(e){var t=e._covers,n=t.length;return W(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function sM(e,t){var n=K(e._covers,function(e){var t=e.__brushOption,n=N(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function lM(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function uM(e,t,n,i){var r=new lr;return r.add(new js({name:"main",style:fM(n),silent:!0,draggable:!0,cursor:"move",drift:ee(gM,e,t,r,["n","s","w","e"]),ondragend:ee(sM,t,{isEnd:!0})})),W(i,function(n){r.add(new js({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ee(gM,e,t,r,n),ondragend:ee(sM,t,{isEnd:!0})}))}),r}function cM(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=jI(r,GI),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-o+r/2,f=h-o+r/2,p=c-a,A=h-s,g=p+r,v=A+r;dM(e,t,"main",a,s,p,A),i.transformable&&(dM(e,t,"w",l,u,o,v),dM(e,t,"e",d,u,o,v),dM(e,t,"n",l,u,g,o),dM(e,t,"s",l,f,g,o),dM(e,t,"nw",l,u,o,o),dM(e,t,"ne",d,u,o,o),dM(e,t,"sw",l,f,o,o),dM(e,t,"se",d,f,o,o))}function hM(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(fM(n)),r.attr({silent:!i,cursor:i?"move":"default"}),W([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var r=t.childOfName(n.join("")),o=1===n.length?AM(e,n[0]):function(e,t){var n=[AM(e,t[0]),AM(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?KI[o]+"-resize":null})})}function dM(e,t,n,i,r,o,a){var s,l,u,c,h,d=t.childOfName(n);d&&d.setShape((s=yM(e,t,[[i,r],[i+o,r+a]]),l=HI(s[0][0],s[1][0]),u=HI(s[0][1],s[1][1]),c=jI(s[0][0],s[1][0]),h=jI(s[0][1],s[1][1]),{x:l,y:u,width:c-l,height:h-u}))}function fM(e){return H({strokeNoScale:!0},e.brushStyle)}function pM(e,t,n,i){var r=[HI(e,n),HI(t,i)],o=[jI(e,n),jI(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function AM(e,t){return{left:"w",right:"e",top:"n",bottom:"s"}[Jc({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return qc(e.group)}(e))]}function gM(e,t,n,i,r,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=mM(t,r,o);W(i,function(e){var t=WI[e];s[t[0]][t[1]]+=l[t[0]]}),a.range=e.fromRectRange(pM(s[0][0],s[1][0],s[0][1],s[1][1])),nM(t,n),sM(t,{isEnd:!1})}function vM(e,t,n,i){var r=t.__brushOption.range,o=mM(e,n,i);W(r,function(e){e[0]+=o[0],e[1]+=o[1]}),nM(e,t),sM(e,{isEnd:!1})}function mM(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function yM(e,t,n){var i=oM(e,t);return i&&i!==QI?i.clipPath(n,e._transform):N(n)}function _M(e){var t=e.event;t.preventDefault&&t.preventDefault()}function bM(e,t,n){return e.childOfName("main").contain(t,n)}function wM(e,t,n,i){var r,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],r=n[0]-i[0],o=n[1]-i[1];return VI(r*r+o*o,.5)>$I}(e)||o){if(a&&!o){"single"===s.brushMode&&aM(e);var l=N(s);l.brushType=xM(l.brushType,a),l.panelId=a===QI?null:a.panelId,o=e._creatingCover=JI(e,l),e._covers.push(o)}if(o){var u=kM[xM(e._brushType,a)];o.__brushOption.range=u.getCreatingRange(yM(e,o,e._track)),i&&(ZI(e,o),u.updateCommon(e,o)),eM(e,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&rM(e,t,n)&&aM(e)&&(r={isEnd:i,removeOnClick:!0});return r}function xM(e,t){return"auto"===e?t.defaultBrushType:e}var CM={mousedown:function(e){if(this._dragging)SM(this,e);else if(!e.target||!e.target.draggable){_M(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=rM(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=rM(e,t,n);if(!e._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===QI||s.panelId===o.panelId)&&kM[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}(this,e,i),this._dragging){_M(e);var r=wM(this,e,i,!1);r&&sM(this,r)}},mouseup:function(e){SM(this,e)}};function SM(e,t){if(e._dragging){_M(t);var n=t.offsetX,i=t.offsetY,r=wM(e,t,e.group.transformCoordToLocal(n,i),!0);e._dragging=!1,e._track=[],e._creatingCover=null,r&&sM(e,r)}}var kM={lineX:BM(0),lineY:BM(1),rect:{createCover:function(e,t){function n(e){return e}return uM({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=lM(e);return pM(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){cM(e,t,n,i)},updateCommon:hM,contain:bM},polygon:{createCover:function(e,t){var n=new lr;return n.add(new ec({name:"main",style:fM(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Xu({name:"main",draggable:!0,drift:ee(vM,e,t),ondragend:ee(sM,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:yM(e,t,n)})},updateCommon:hM,contain:bM}};function BM(e){return{createCover:function(t,n){return uM({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=lM(t);return[HI(n[0][e],n[1][e]),jI(n[0][e],n[1][e])]},updateCoverShape:function(t,n,i,r){var o,a=oM(t,n);if(a!==QI&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),cM(t,n,l,r)},updateCommon:hM,contain:bM}}var TM=XI;function EM(e){return e=DM(e),function(t){return th(t,e)}}function IM(e,t){return e=DM(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function MM(e,t,n){var i=DM(e);return function(e,r){return i.contain(r[0],r[1])&&!Pk(e,t,n)}}function DM(e){return Qi.create(e)}var PM=["axisLine","axisTickLabel","axisName"];var FM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new TM(n.getZr())).on("brush",Z(this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!function(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new lr,this.group.add(this._axisGroup),e.get("show")){var o=function(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,c=Q({strokeContainThreshold:l},a.getAxisLayout(u)),h=new VS(e,c);W(PM,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(c,s,e,o,l,n),eh(r,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=Qi.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:EM(u),isTargetByCursor:MM(u,o,i),getLinearBrushOtherExtent:IM(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return K(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,i=n.axis,r=K(t,function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(RA),OM={type:"axisAreaSelect",event:"axisAreaSelected"};var LM={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function NM(e){e.registerComponentView(wI),e.registerComponentModel(xI),e.registerCoordinateSystem("parallel",NI),e.registerPreprocessor(mI),e.registerComponentModel(UI),e.registerComponentView(FM),xS(e,"parallel",UI,LM),function(e){e.registerAction(OM,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 RM=function(){return 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}}(),UM=function(e){function t(t){return e.call(this,t)||this}return g(t,e),t.prototype.getDefaultShape=function(){return new RM},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(){Ol(this)},t.prototype.downplay=function(){Ll(this)},t}(Bs);var QM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return g(t,e),t.prototype.render=function(e,t,n){var i=this,r=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,l=a.height,u=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge(function(t){var n=new UM,i=tl(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,a,u,d,f,p,A,g,v=t.getModel(),m=v.getModel("lineStyle"),y=m.get("curveness"),_=t.node1.getLayout(),b=t.node1.getModel(),w=b.get("localX"),x=b.get("localY"),C=t.node2.getLayout(),S=t.node2.getModel(),k=S.get("localX"),B=S.get("localY"),T=t.getLayout();switch(n.shape.extent=Math.max(1,T.dy),n.shape.orient=h,"vertical"===h?(r=(null!=w?w*s:_.x)+T.sy,a=(null!=x?x*l:_.y)+_.dy,u=(null!=k?k*s:C.x)+T.ty,f=r,p=a*(1-y)+(d=null!=B?B*l:C.y)*y,A=u,g=a*y+d*(1-y)):(r=(null!=w?w*s:_.x)+_.dx,a=(null!=x?x*l:_.y)+T.sy,f=r*(1-y)+(u=null!=k?k*s:C.x)*y,p=a,A=r*y+u*(1-y),g=d=(null!=B?B*l:C.y)+T.ty),n.setShape({x1:r,y1:a,x2:u,y2:d,cpx1:f,cpy1:p,cpx2:A,cpy2:g}),n.useStyle(m.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 E=t.node1.getVisual("color"),I=t.node2.getVisual("color");"string"==typeof E&&"string"==typeof I&&(n.style.fill=new Ac(0,0,+("horizontal"===h),+("vertical"===h),[{color:E,offset:0},{color:I,offset:1}]))}var M=v.getModel("emphasis");Xl(n,v,"lineStyle",function(e){return e.getItemStyle()}),o.add(n),c.setItemGraphicEl(t.dataIndex,n);var D=M.get("focus");Wl(n,"adjacency"===D?t.getAdjacentDataIndices():D,M.get("blurScope")),tl(n).dataType="edge"}),r.eachNode(function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),h=new js({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});hh(h,dh(i),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),h.disableLabelAnimation=!0,h.setStyle("fill",t.getVisual("color")),h.setStyle("decal",t.getVisual("style").decal),Xl(h,i),o.add(h),u.setItemGraphicEl(t.dataIndex,h),tl(h).dataType="node";var d=c.get("focus");Wl(h,"adjacency"===d?t.getAdjacentDataIndices():d,c.get("blurScope"))}),u.eachItemGraphicEl(function(t,r){u.getItemModel(r).get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")}),!this._data&&e.isAnimationEnabled()&&o.setClipPath(function(e,t,n){var i=new js({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Tc(i,{shape:{width:e.width+20}},t,n),i}(o.getBoundingRect(),e,function(){o.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(KA),HM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new Oh(r[a],this,t));if(i&&n)return KE(i,n,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e}),t.wrapMethod("getItemModel",function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(e.parentModel=a)}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 i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,a=r.value;return pA("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(e).getLayout().value,l=this.getDataParams(e,n).data.name;return pA("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(t).getLayout().value;i.value=r}return i},t.type="series.sankey",t.defaultOption={zlevel:0,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}(LA);function jM(e,t){e.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=function(e,t){return jd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=r;var o=r.width,a=r.height,s=e.getGraph(),l=s.nodes,u=s.edges;!function(e){W(e,function(e){var t=JM(e.outEdges,XM),n=JM(e.inEdges,XM),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)})}(l),function(e,t,n,i,r,o,a,s,l){(function(e,t,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<t.length;d++)s[d]=1;for(var d=0;d<e.length;d++)l[d]=e[d].inEdges.length,0===l[d]&&u.push(e[d]);var f=-1;for(;u.length;){for(var p=0;p<u.length;p++){var A=u[p],g=A.hostGraph.data.getRawDataItem(A.dataIndex),v=null!=g.depth&&g.depth>=0;v&&g.depth>f&&(f=g.depth),A.setLayout({depth:v?g.depth:h},!0),"vertical"===o?A.setLayout({dy:n},!0):A.setLayout({dx:n},!0);for(var m=0;m<A.outEdges.length;m++){var y=A.outEdges[m],_=t.indexOf(y);s[_]=0;var b=y.node2,w=e.indexOf(b);0==--l[w]&&c.indexOf(b)<0&&c.push(b)}}++h,u=c,c=[]}for(var d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var x=f>h-1?f:h-1;a&&"left"!==a&&function(e,t,n,i){if("right"===t){for(var r=[],o=e,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];r.indexOf(c.node1)<0&&r.push(c.node1)}}o=r,r=[],++a}W(e,function(e){VM(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)})}else"justify"===t&&function(e,t){W(e,function(e){VM(e)||e.outEdges.length||e.setLayout({depth:t},!0)})}(e,i)}(e,a,0,x);!function(e,t,n){W(e,function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)})}(e,"vertical"===o?(r-n)/x:(i-n)/x,o)})(e,t,n,r,o,s,l),function(e,t,n,i,r,o,a){var s=function(e,t){var n=[],i="vertical"===t?"y":"x",r=Ao(e,function(e){return e.getLayout()[i]});return r.keys.sort(function(e,t){return e-t}),W(r.keys,function(e){n.push(r.buckets.get(e))}),n}(e,a);(function(e,t,n,i,r,o){var a=1/0;W(e,function(e){var t=e.length,s=0;W(e,function(e){s+=e.getLayout().value});var l="vertical"===o?(i-(t-1)*r)/s:(n-(t-1)*r)/s;l<a&&(a=l)}),W(e,function(e){W(e,function(e,t){var n=e.getLayout().value*a;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))})}),W(t,function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)})})(s,t,n,i,r,a),zM(s,r,n,i,a);for(var l=1;o>0;o--)$M(s,l*=.99,a),zM(s,r,n,i,a),ZM(s,l,a),zM(s,r,n,i,a)}(e,t,o,r,i,a,s),function(e,t){var n="vertical"===t?"x":"y";W(e,function(e){e.outEdges.sort(function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]}),e.inEdges.sort(function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]})}),W(e,function(e){var t=0,n=0;W(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),W(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})}(e,s)}(l,u,n,i,o,a,0!==q(l,function(e){return 0===e.getLayout().value}).length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))})}function VM(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function zM(e,t,n,i,r){var o="vertical"===r?"x":"y";W(e,function(e){var a,s,l;e.sort(function(e,t){return e.getLayout()[o]-t.getLayout()[o]});for(var u=0,c=e.length,h="vertical"===r?"dx":"dy",d=0;d<c;d++)(l=u-(s=e[d]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+t;if((l=u-t-("vertical"===r?i:n))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=c-2;d>=0;--d)(l=(s=e[d]).getLayout()[o]+s.getLayout()[h]+t-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}})}function $M(e,t,n){W(e.slice().reverse(),function(e){W(e,function(e){if(e.outEdges.length){var i=JM(e.outEdges,GM,n)/JM(e.outEdges,XM);if(isNaN(i)){var r=e.outEdges.length;i=r?JM(e.outEdges,WM,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-qM(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-qM(e,n))*t;e.setLayout({y:a},!0)}}})})}function GM(e,t){return qM(e.node2,t)*e.getValue()}function WM(e,t){return qM(e.node2,t)}function KM(e,t){return qM(e.node1,t)*e.getValue()}function YM(e,t){return qM(e.node1,t)}function qM(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function XM(e){return e.getValue()}function JM(e,t,n){for(var i=0,r=e.length,o=-1;++o<r;){var a=+t(e[o],n);isNaN(a)||(i+=a)}return i}function ZM(e,t,n){W(e,function(e){W(e,function(e){if(e.inEdges.length){var i=JM(e.inEdges,KM,n)/JM(e.inEdges,XM);if(isNaN(i)){var r=e.inEdges.length;i=r?JM(e.inEdges,YM,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-qM(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-qM(e,n))*t;e.setLayout({y:a},!0)}}})})}function eD(e){e.eachSeriesByType("sankey",function(e){var t=e.getGraph().nodes;if(t.length){var n=1/0,i=-1/0;W(t,function(e){var t=e.getLayout().value;t<n&&(n=t),t>i&&(i=t)}),W(t,function(t){var r=new TT({type:"color",mappingMethod:"linear",dataExtent:[n,i],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),o=t.getModel().get(["itemStyle","color"]);null!=o?(t.setVisual("color",o),t.setVisual("style",{fill:o})):(t.setVisual("color",r),t.setVisual("style",{fill:r}))})}})}var tD=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[r,o],f=d[u].get("type"),p=d[1-u].get("type"),A=e.data;if(A&&i){var g=[];W(A,function(e,t){var n;te(e)?(n=e.slice(),e.unshift(t)):te(e.value)?((n=Q({},e)).value=n.value.slice(),e.value.unshift(t)):n=e,g.push(n)}),e.data=g}var v=this.defaultValueDimensions,m=[{name:c,type:$y(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:$y(p),dimsDef:v.slice()}];return lS(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:ee(df,m,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),nD=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 g(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,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}(LA);$(nD,tD,!0);var iD=nD,rD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(o).add(function(e){if(i.hasValue(e)){var t=sD(i.getItemLayout(e),i,e,a,!0);i.setItemGraphicEl(e,t),r.add(t)}}).update(function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(Pc(n),lD(s,n,i,e)):n=sD(s,i,e,a),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)}).remove(function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.type="boxplot",t}(KA),oD=function(){return function(){}}(),aD=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return g(t,e),t.prototype.getDefaultShape=function(){return new oD},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}(Bs);function sD(e,t,n,i,r){var o=e.ends,a=new aD({shape:{points:r?function(e,t,n){return K(e,function(e){return(e=e.slice())[t]=n.initBaseline,e})}(o,i,e):o}});return lD(e,a,t,n,r),a}function lD(e,t,n,i,r){var o=n.hostModel;(0,l[r?"initProps":"updateProps"])(t,{shape:{points:e.ends}},o,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var a=n.getItemModel(i);Xl(t,a),Wl(t,a.get(["emphasis","focus"]),a.get(["emphasis","blurScope"]))}var uD=rD;function cD(e,t){}var hD=W;function dD(e){var t=function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(e){var i=e.getBaseAxis(),r=V(n,i);r<0&&(r=n.length,n[r]=i,t[r]={axis:i,seriesModels:[]}),t[r].seriesModels.push(e)}),t}(e);hD(t,function(e){var t=e.seriesModels;t.length&&(!function(e){var t,n,i=e.axis,r=e.seriesModels,o=r.length,a=e.boxWidthList=[],s=e.boxOffsetList=[],l=[];if("category"===i.type)n=i.getBandWidth();else{var u=0;hD(r,function(e){u=Math.max(u,e.getData().count())}),t=i.getExtent(),Math.abs(t[1]-t[0])}hD(r,function(e){var t=e.get("boxWidth");te(t)||(t=[t,t]),l.push([wr(t[0],n)||0,wr(t[1],n)||0])});var c=.8*n-2,h=c/o*.3,d=(c-h*(o-1))/o,f=d/2-c/2;hD(r,function(e,t){s.push(f),f+=h+d,a.push(Math.min(Math.max(d,l[t][0]),l[t][1]))})}(e),hD(t,function(t,n){!function(e,t,n){var i=e.coordinateSystem,r=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],u=r.mapDimension(l[a]),c=r.mapDimensionsAll(l[s]);if(null==u||c.length<5)return;for(var h=0;h<r.count();h++){var d=r.get(u,h),f=y(d,c[2],h),p=y(d,c[0],h),A=y(d,c[1],h),g=y(d,c[3],h),v=y(d,c[4],h),m=[];_(m,A,!1),_(m,g,!0),m.push(p,A,v,g),b(m,p),b(m,v),b(m,f),r.setItemLayout(h,{initBaseline:f[s],ends:m})}function y(e,n,o){var l,u=r.get(n,o),c=[];return c[a]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c))[a]+=t,l}function _(e,t,n){var i=t.slice(),r=t.slice();i[a]+=o,r[a]-=o,n?e.push(i,r):e.push(r,i)}function b(e,t){var n=t.slice(),i=t.slice();n[a]-=o,i[a]+=o,e.push(n,i)}}(t,e.boxOffsetList[n],e.boxWidthList[n])}))})}var fD={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==nf){var n="";0,$r(n)}var i=function(e,t){for(var n=[],i=[],r=(t=t||{}).boundIQR,o="none"===r||0===r,a=0;a<e.length;a++){var s=Cr(e[a].slice()),l=Rr(s,.25),u=Rr(s,.5),c=Rr(s,.75),h=s[0],d=s[s.length-1],f=(null==r?1.5:r)*(c-l),p=o?h:Math.max(h,l-f),A=o?d:Math.min(d,c+f),g=t.itemNameFormatter,v=ne(g)?g({value:a}):ie(g)?g.replace("{value}",a+""):a+"";n.push([v,p,l,u,c,A]);for(var m=0;m<s.length;m++){var y=s[m];if(y<p||y>A){var _=[v,y];i.push(_)}}}return{boxData:n,outliers:i}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};var pD=["color","borderColor"],AD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),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,i){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},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 t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add(function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&yD(s,a))return;var l=mD(a,n,!0);Tc(l,{shape:{points:a.ends}},e,n),_D(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}}).update(function(a,l){var u=n.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&yD(s,c)?i.remove(u):(u?(Bc(u,{shape:{points:c.ends}},e,a),Pc(u)):u=mD(c,a),_D(u,t,a,r),i.add(u),t.setItemGraphicEl(a,u))}else i.remove(u)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),xD(e,this.group);var t=e.get("clip",!0)?oC(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,i=t.getData(),r=i.getLayout("isSimpleBox");null!=(n=e.next());){var o=mD(i.getItemLayout(n),n);_D(o,i,n,r),o.incremental=!0,this.group.add(o)}},t.prototype._incrementalRenderLarge=function(e,t){xD(t,this.group,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(KA),gD=function(){return function(){}}(),vD=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return g(t,e),t.prototype.getDefaultShape=function(){return new gD},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}(Bs);function mD(e,t,n){var i=e.ends;return new vD({shape:{points:n?function(e,t){return K(e,function(e){return(e=e.slice())[1]=t.initBaseline,e})}(i,e):i},z2:100})}function yD(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 _D(e,t,n,i){var r=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,Xl(e,r)}var bD=function(){return function(){}}(),wD=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return g(t,e),t.prototype.getDefaultShape=function(){return new bD},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}(Bs);function xD(e,t,n){var i=e.getData(),r=i.getLayout("largePoints"),o=new wD({shape:{points:r},__sign:1});t.add(o);var a=new wD({shape:{points:r},__sign:-1});t.add(a),CD(1,o,e,i),CD(-1,a,e,i),n&&(o.incremental=!0,a.incremental=!0)}function CD(e,t,n,i){var r=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(pD);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var SD=AD,kD=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 g(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,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}(LA);$(kD,tD,!0);var BD=kD;function TD(e){e&&te(e.series)&&W(e.series,function(e){ae(e)&&"k"===e.type&&(e.type="candlestick")})}var ED=["itemStyle","borderColor"],ID=["itemStyle","borderColor0"],MD=["itemStyle","color"],DD=["itemStyle","color0"],PD={seriesType:"candlestick",plan:UA(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?MD:DD)}function i(e,t){return t.get(e>0?ED:ID)}if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var r;null!=(r=e.next());){var o=t.getItemModel(r),a=t.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill,Q(t.ensureUniqueItemVisual(r,"style"),s)}}}}},FD="undefined"!=typeof Float32Array?Float32Array:Array;function OD(e,t,n,i,r){return n>i?-1:n<i?1:t>0?e.get(r,t-1)<=i?1:-1:1}var LD={seriesType:"candlestick",plan:UA(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=function(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=wr(Ae(e.get("barMaxWidth"),r),r),a=wr(Ae(e.get("barMinWidth"),1),r),s=e.get("barWidth");return null!=s?wr(s,r):Math.max(Math.min(r/2,o),a)}(e,n),r=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[r])),l=K(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?function(e,n){var i,a,l=new FD(4*e.count),f=0,p=[],A=[],g=n.getStore();for(;null!=(a=e.next());){var v=g.get(s,a),m=g.get(u,a),y=g.get(c,a),_=g.get(h,a),b=g.get(d,a);isNaN(v)||isNaN(_)||isNaN(b)?(l[f++]=NaN,f+=3):(l[f++]=OD(g,a,m,y,c),p[r]=v,p[o]=_,i=t.dataToPoint(p,null,A),l[f++]=i?i[0]:NaN,l[f++]=i?i[1]:NaN,p[o]=b,i=t.dataToPoint(p,null,A),l[f++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}:function(e,n){var a,l=n.getStore();for(;null!=(a=e.next());){var f=l.get(s,a),p=l.get(u,a),A=l.get(c,a),g=l.get(h,a),v=l.get(d,a),m=Math.min(p,A),y=Math.max(p,A),_=S(m,f),b=S(y,f),w=S(g,f),x=S(v,f),C=[];k(C,b,0),k(C,_,1),C.push(T(x),T(b),T(w),T(_)),n.setItemLayout(a,{sign:OD(l,a,p,A,c),initBaseline:p>A?b[o]:_[o],ends:C,brushRect:B(g,v,f)})}function S(e,n){var i=[];return i[r]=n,i[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function k(e,t,n){var o=t.slice(),a=t.slice();o[r]=Yc(o[r]+i/2,1,!1),a[r]=Yc(a[r]-i/2,1,!0),n?e.push(o,a):e.push(a,o)}function B(e,t,n){var a=S(e,n),s=S(t,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function T(e){return e[r]=Yc(e[r],1),e}}}}};function ND(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 RD=function(e){function t(t,n){var i=e.call(this)||this,r=new Ux(t,n),o=new lr;return i.add(r),i.add(o),i.updateData(t,n),i}return g(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=Yg(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),r.add(a)}ND(r,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}ND(n,e)},t.prototype.highlight=function(){Ol(this)},t.prototype.downplay=function(){Ll(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var r=this.childAt(1),o=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=qg(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill;r.setScale(s),r.traverse(function(e){e.setStyle("fill",u)});var c=Xg(e.getItemVisual(t,"symbolOffset"),s);c&&(r.x=c[0],r.y=c[1]);var h=e.getItemVisual(t,"symbolRotate");r.rotation=(h||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=o.get(["rippleEffect","scale"]),d.brushType=o.get(["rippleEffect","brushType"]),d.period=1e3*o.get(["rippleEffect","period"]),d.effectOffset=t/e.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=a,d.color=u,d.rippleEffectColor=o.get(["rippleEffect","color"]),d.rippleNumber=o.get(["rippleEffect","number"]),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===d.showEffectOn?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==d.showEffectOn&&n.startEffectAnimation(d):"normal"===e&&"render"!==d.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=d,Wl(this)},t.prototype.fadeOut=function(e){this.off("mouseover").off("mouseout"),e&&e()},t}(lr),UD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(){this._symbolDraw=new Vx(RD)},t.prototype.render=function(e,t,n){var i=e.getData(),r=this._symbolDraw;r.updateData(i,{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 i=e.getData();this.group.dirty();var r=mC("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=mi(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(KA),QD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return g(t,e),t.prototype.getInitialData=function(e,t){return w_(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,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}(LA);var HD=function(e){function t(t,n,i){var r=e.call(this)||this;return r.add(r.createLine(t,n,i)),r._updateEffectSymbol(t,n),r}return g(t,e),t.prototype.createLine=function(e,t,n){return new BE(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");te(i)||(i=[i,i]);var o=e.getItemVisual(t,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==r&&(this.remove(s),(s=Yg(r,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=i[0],s.scaleY=i[1],s.setColor(a),this._symbolType=r,this._symbolScale=i,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var r=this,o=e.getItemLayout(n),a=1e3*t.get("period"),s=t.get("loop"),l=t.get("constantSpeed"),u=pe(t.get("delay"),function(t){return t/e.count()*a/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),l>0&&(a=this._getLineLength(i)/l*1e3),(a!==this._period||s!==this._loop)&&(i.stopAnimation(),a>0)){var c=void 0;c="function"==typeof u?u(n):u,i.__t>0&&(c=-a*i.__t),i.__t=0;var h=i.animate("",s).when(a,{__t:1}).delay(c).during(function(){r._updateSymbolPosition(i)});s||h.done(function(){r.remove(i)}),h.start()}this._period=a,this._loop=s}},t.prototype._getLineLength=function(e){return Ye(e.__p1,e.__cp1)+Ye(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[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(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t,o=[e.x,e.y],a=o.slice(),s=_a,l=ba;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var u=l(t[0],i[0],n[0],r),c=l(t[1],i[1],n[1],r);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*Ye(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*Ye(t,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.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}(lr),jD=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createPolyline(t,n,i),r}return g(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),r=new ec({shape:{points:i}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel;Bc(this.childAt(0),{shape:{points:e.getItemLayout(t)}},i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),r=e.getItemModel(t),o=n&&n.emphasisLineStyle;n&&!e.hasItemOption||(o=r.getModel(["emphasis","lineStyle"]).getLineStyle()),i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,Wl(this)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(lr),VD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return g(t,e),t.prototype.createLine=function(e,t,n){return new jD(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,r=1;r<t.length;r++){var o=t[r-1],a=t[r];i+=Ye(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(t<this._lastFramePercent){for(o=Math.min(a+1,r-1);o>=0&&!(i[o]<=t);o--);o=Math.min(o,r-2)}else{for(o=a;o<r&&!(i[o]>t);o++);o=Math.min(o-1,r-2)}var s=(t-i[o])/(i[o+1]-i[o]),l=n[o],u=n[o+1];e.x=l[0]*(1-s)+s*u[0],e.y=l[1]*(1-s)+s*u[1];var c=u[0]-l[0],h=u[1]-l[1];e.rotation=-Math.atan2(h,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(HD),zD=function(){return function(){this.polyline=!1,this.curveness=0,this.segs=[]}}(),$D=function(e){function t(t){return e.call(this,t)||this}return g(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zD},t.prototype.buildPath=function(e,t){var n=t.segs,i=t.curveness;if(t.polyline)for(var r=0;r<n.length;){var o=n[r++];if(o>0){e.moveTo(n[r++],n[r++]);for(var a=1;a<o;a++)e.lineTo(n[r++],n[r++])}}else for(r=0;r<n.length;){var s=n[r++],l=n[r++],u=n[r++],c=n[r++];if(e.moveTo(s,l),i>0){var h=(s+u)/2-(l-c)*i,d=(l+c)/2-(u-s)*i;e.quadraticCurveTo(h,d,u,c)}else e.lineTo(u,c)}},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],c=i[s++],h=1;h<l;h++){if(ss(u,c,d=i[s++],f=i[s++],o,e,t))return a}a++}else for(a=0,s=0;s<i.length;){u=i[s++],c=i[s++];var d=i[s++],f=i[s++];if(r>0){if(us(u,c,(u+d)/2-(c-f)*r,(c+f)/2-(d-u)*r,d,f,o,e,t))return a}else if(ss(u,c,d,f,o,e,t))return a;a++}return-1},t}(Bs),GD=function(){function e(){this.group=new lr}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e){this.group.removeAll();var t=new $D({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new xc({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t){var n=new $D;n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=e.start,this.group.add(n))},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("style");if(r&&r.stroke&&e.setStyle("stroke",r.stroke),e.setStyle("fill",null),!n){var o=tl(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",function(t){o.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(o.dataIndex=n+e.__startIndex)})}},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),WD={seriesType:"lines",plan:UA(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=r.start;c<r.end;c++){var f=e.getLineCoords(c,a);n&&(s[h++]=f);for(var p=0;p<f;p++)d=t.dataToPoint(a[p],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var A=o.getItemModel(c),g=(f=e.getLineCoords(c,a),[]);if(n)for(var v=0;v<f;v++)g.push(t.dataToPoint(a[v]));else{g[0]=t.dataToPoint(a[0]),g[1]=t.dataToPoint(a[1]);var m=A.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}o.setItemLayout(c,g)}}}}},KD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e),o=e.get("zlevel"),a=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();(l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a)&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)}));r.updateData(i);var u=e.get("clip",!0)&&oC(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData();this._updateLineDraw(i,e).incrementalPrepareUpdate(i),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.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=WD.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new GD:new ME(r?i?VD:jD:i?HD:BE),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},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}(KA),YD="undefined"==typeof Uint32Array?Array:Uint32Array,qD="undefined"==typeof Float64Array?Array:Float64Array;function XD(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=K(t,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),U([t,e[0],e[1]])}))}var JD=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 g(t,e),t.prototype.init=function(t){t.data=t.data||[],XD(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(XD(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=ke(this._flatCoords,t.flatCoords),this._flatCoordsOffset=ke(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),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},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],i=this._flatCoordsOffset[2*e+1],r=0;r<i;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[n+2*r],t[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(e);for(r=0;r<o.length;r++)t[r]=t[r]||[],t[r][0]=o[r][0],t[r][1]=o[r][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"==typeof e[0]){for(var n=e.length,i=new YD(n),r=new qD(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=e[l++];i[a++]=o+t,i[a++]=u;for(var c=0;c<u;c++){var h=e[l++],d=e[l++];r[o++]=h,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new d_(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(e,t,i,r){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[r]:o:void 0}),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().getItemModel(e),r=i.get("name");if(r)return r;var o=i.get("fromName"),a=i.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),pA("nameValue",{name:s.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.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",zlevel:0,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}(LA);function ZD(e){return e instanceof Array||(e=[e,e]),e}var eP={seriesType:"lines",reset:function(e){var t=ZD(e.get("symbol")),n=ZD(e.get("symbolSize")),i=e.getData();return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(e,t){var n=e.getItemModel(t),i=ZD(n.getShallow("symbol",!0)),r=ZD(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}:null}}};var tP=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=j();this.canvas=e}return e.prototype.update=function(e,t,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=e.length;c.width=t,c.height=n;for(var f=0;f<d;++f){var p=e[f],A=p[0],g=p[1],v=i(p[2]);h.globalAlpha=v,h.drawImage(a,A-u,g-u)}if(!c.width||!c.height)return c;for(var m=h.getImageData(0,0,c.width,c.height),y=m.data,_=0,b=y.length,w=this.minOpacity,x=this.maxOpacity-w;_<b;){v=y[_+3]/256;var C=4*Math.floor(255*v);if(v>0){var S=o(v)?s:l;v>0&&(v=v*x+w),y[_++]=S[C],y[_++]=S[C+1],y[_++]=S[C+2],y[_++]=S[C+3]*v*256}else _+=4}return h.putImageData(m,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=j()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},e}();function nP(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var iP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",function(t){t.eachTargetSeries(function(n){n===e&&(i=t)})}),this.group.removeAll(),this._incrementalDisplayable=null;var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):nP(r)&&this._renderOnGeo(r,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var r=t.coordinateSystem;r&&(nP(r)?this.render(t,n,i):this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0))},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,r){var o,a,s,l,u=e.coordinateSystem;if(aC(u,"cartesian2d")){var c=u.getAxis("x"),h=u.getAxis("y");0,o=c.getBandWidth(),a=h.getBandWidth(),s=c.scale.getExtent(),l=h.scale.getExtent()}for(var d=this.group,f=e.getData(),p=e.getModel(["emphasis","itemStyle"]).getItemStyle(),A=e.getModel(["blur","itemStyle"]).getItemStyle(),g=e.getModel(["select","itemStyle"]).getItemStyle(),v=dh(e),m=e.get(["emphasis","focus"]),y=e.get(["emphasis","blurScope"]),_=aC(u,"cartesian2d")?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],b=n;b<i;b++){var w=void 0,x=f.getItemVisual(b,"style");if(aC(u,"cartesian2d")){var C=f.get(_[0],b),S=f.get(_[1],b);if(isNaN(f.get(_[2],b))||C<s[0]||C>s[1]||S<l[0]||S>l[1])continue;var k=u.dataToPoint([C,S]);w=new js({shape:{x:Math.floor(Math.round(k[0])-o/2),y:Math.floor(Math.round(k[1])-a/2),width:Math.ceil(o),height:Math.ceil(a)},style:x})}else{if(isNaN(f.get(_[1],b)))continue;w=new js({z2:1,shape:u.dataToRect([f.get(_[0],b)]).contentShape,style:x})}var B=f.getItemModel(b);if(f.hasItemOption){var T=B.getModel("emphasis");p=T.getModel("itemStyle").getItemStyle(),A=B.getModel(["blur","itemStyle"]).getItemStyle(),g=B.getModel(["select","itemStyle"]).getItemStyle(),m=T.get("focus"),y=T.get("blurScope"),v=dh(B)}var E=e.getRawValue(b),I="-";E&&null!=E[2]&&(I=E[2]+""),hh(w,v,{labelFetcher:e,labelDataIndex:b,defaultOpacity:x.opacity,defaultText:I}),w.ensureState("emphasis").style=p,w.ensureState("blur").style=A,w.ensureState("select").style=g,Wl(w,m,y),w.incremental=r,r&&(w.states.emphasis.hoverLayer=!0),d.add(w),f.setItemGraphicEl(b,w)}},t.prototype._renderOnGeo=function(e,t,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new tP;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),f=Math.min(l.height+l.y,i.getHeight()),p=d-c,A=f-h,g=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(g,function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=c,r[1]-=h,r.push(i),r}),m=n.getExtent(),y="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]}}(m,n.option.range):function(e,t,n){var i=e[1]-e[0],r=(t=K(t,function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}})).length,o=0;return function(e){var i;for(i=o;i<r;i++)if((a=t[i].interval)[0]<=e&&e<=a[1]){o=i;break}if(i===r)for(i=o-1;i>=0;i--){var a;if((a=t[i].interval)[0]<=e&&e<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}(m,n.getPieceList(),n.option.selected);s.update(v,p,A,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},y);var _=new Fs({style:{width:p,height:A,x:c,y:h,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(KA),rP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.getInitialData=function(e,t){return w_(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Ff.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",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(LA);var oP=["itemStyle","borderWidth"],aP=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],sP=new Cu;function lP(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),h={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?n:null,hoverScale:c&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(e,t,n,i,r){var o,a=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(te(s)){var h=[uP(l,s[0])-u,uP(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?uP(l,s)-u:t?i.coordSysExtent[a.index][c]-u:n[a.wh];r.boundingLength=o,t&&(r.repeatCutLength=n[a.wh]);r.pxSign=o>0?1:o<0?-1:0}(n,o,r,i,h),function(e,t,n,i,r,o,a,s,l,u){var c,h=l.valueDim,d=l.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,"symbolSize");c=te(p)?p.slice():null==p?["100%","100%"]:[p,p];c[d.index]=wr(c[d.index],f),c[h.index]=wr(c[h.index],i?f:Math.abs(o)),u.symbolSize=c,(u.symbolScale=[c[0]/s,c[1]/s])[h.index]*=(l.isHorizontal?-1:1)*a}(e,t,r,o,0,h.boundingLength,h.pxSign,u,i,h),function(e,t,n,i,r){var o=e.get(oP)||0;o&&(sP.attr({scaleX:t[0],scaleY:t[1],rotation:n}),sP.updateTransform(),o/=sP.getLineScale(),o*=t[i.valueDim.index]);r.valueLineWidth=o}(n,h.symbolScale,l,i,h);var d=h.symbolSize;return function(e,t,n,i,r,o,a,s,l,u,c,h){var d=c.categoryDim,f=c.valueDim,p=h.pxSign,A=Math.max(t[f.index]+s,0),g=A;if(i){var v=Math.abs(l),m=pe(e.get("symbolMargin"),"15%")+"",y=!1;m.lastIndexOf("!")===m.length-1&&(y=!0,m=m.slice(0,m.length-1));var _=wr(m,t[f.index]),b=Math.max(A+2*_,0),w=y?0:2*_,x=Hr(i),C=x?i:CP((v+w)/b),S=v-C*A;_=S/2/(y?C:Math.max(C-1,1)),b=A+2*_,w=y?0:2*_,x||"fixed"===i||(C=u?CP((Math.abs(u)+w)/b):0),g=C*b-w,h.repeatTimes=C,h.symbolMargin=_}var k=p*(g/2),B=h.pathPosition=[];B[d.index]=n[d.wh]/2,B[f.index]="start"===a?k:"end"===a?l-k:l/2,o&&(B[0]+=o[0],B[1]+=o[1]);var T=h.bundlePosition=[];T[d.index]=n[d.xy],T[f.index]=n[f.xy];var E=h.barRectShape=Q({},n);E[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(B[f.index]+k)),E[d.wh]=n[d.wh];var I=h.clipShape={};I[d.xy]=-n[d.xy],I[d.wh]=c.ecSize[d.wh],I[f.xy]=0,I[f.wh]=n[f.wh]}(n,d,r,o,0,Xg(n.get("symbolOffset"),d),s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function uP(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function cP(e){var t=e.symbolPatternSize,n=Yg(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function hP(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,h=o[t.valueDim.index]+a+2*n.symbolMargin;for(bP(e,function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?wP(e,null,p(c),n,i):wP(e,null,{scaleX:0,scaleY:0},n,i,function(){r.remove(e)}),c++});c<u;c++){var d=cP(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,r.add(d);var f=p(c);wP(d,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},n,i)}function p(e){var t=s.slice(),i=n.pxSign,r=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-e),t[l.index]=h*(r-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function dP(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?wP(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=cP(n),r.add(o),wP(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function fP(e,t,n){var i=Q({},t.barRectShape),r=e.__pictorialBarRect;r?wP(r,null,{shape:i},t,n):((r=e.__pictorialBarRect=new js({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,e.add(r))}function pP(e,t,n,i){if(n.symbolClip){var r=e.__pictorialClipPath,o=Q({},n.clipShape),a=t.valueDim,s=n.animationModel,u=n.dataIndex;if(r)Bc(r,{shape:o},s,u);else{o[a.wh]=0,r=new js({shape:o}),e.__pictorialBundle.setClipPath(r),e.__pictorialClipPath=r;var c={};c[a.wh]=n.clipShape[a.wh],l[i?"updateProps":"initProps"](r,{shape:c},s,u)}}}function AP(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=gP,n.isAnimationEnabled=vP,n}function gP(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function vP(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function mP(e,t,n,i){var r=new lr,o=new lr;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?hP(r,t,n):dP(r,0,n),fP(r,n,i),pP(r,t,n,i),r.__pictorialShapeStr=_P(e,n),r.__pictorialSymbolMeta=n,r}function yP(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];bP(i,function(e){o.push(e)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),W(o,function(e){Ic(e,{scaleX:0,scaleY:0},n,t,function(){i.parent&&i.parent.remove(i)})}),e.setItemGraphicEl(t,null)}function _P(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function bP(e,t,n){W(e.__pictorialBundle.children(),function(i){i!==e.__pictorialBarRect&&t.call(n,i)})}function wP(e,t,n,i,r,o){t&&e.attr(t),i.symbolClip&&!r?n&&e.attr(n):n&&l[r?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,o)}function xP(e,t,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");bP(e,function(e){if(e instanceof Fs){var t=e.style;e.useStyle(Q({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2});var f=t.valueDim.posDesc[+(n.boundingLength>0)];hh(e.__pictorialBarRect,dh(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:Lx(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Wl(e,c,h)}function CP(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var SP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:aP[+s],categoryDim:aP[1-+s]};return r.diff(o).add(function(e){if(r.hasValue(e)){var t=AP(r,e),n=lP(r,e,t,u),o=mP(r,u,n);r.setItemGraphicEl(e,o),i.add(o),xP(o,u,n)}}).update(function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var a=AP(r,e),s=lP(r,e,a,u),l=_P(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var i=n.animationModel,r=n.dataIndex;Bc(e.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?hP(e,t,n,!0):dP(e,t,n,!0);fP(e,n,!0),pP(e,t,n,!0)}(n,u,s):n=mP(r,u,s,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),xP(n,u,s)}else i.remove(n)}).remove(function(e){var t=o.getItemGraphicEl(e);t&&yP(o,e,t.__pictorialSymbolMeta.animationModel,t)}).execute(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(t){yP(i,tl(t).dataIndex,e,t)}):n.removeAll()},t.type="pictorialBar",t}(KA),kP=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 g(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Rh(xC.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}(xC);var BP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return g(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,a=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(e){return e.name}o.x=0,o.y=l.y+u[0];var h=[];function d(t,n,s){var l=r._layers;if("remove"!==t){for(var u,c,d=[],f=[],p=a[n].indices,A=0;A<p.length;A++){var g=i.getItemLayout(p[A]),v=g.x,m=g.y0,y=g.y;d.push(v,m),f.push(v,m+y),u=i.getItemVisual(p[A],"style")}var _=i.getItemLayout(p[0]),b=e.getModel("label").get("margin"),w=e.getModel("emphasis");if("add"===t){var x=h[n]=new lr;c=new nC({shape:{points:d,stackedOnPoints:f,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),x.add(c),o.add(x),e.isAnimationEnabled()&&c.setClipPath(function(e,t,n){var i=new js({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Tc(i,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),i}(c.getBoundingRect(),e,function(){c.removeClipPath()}))}else{x=l[s];c=x.childAt(0),o.add(x),h[n]=x,Bc(c,{shape:{points:d,stackedOnPoints:f}},e),Pc(c)}hh(c,dh(e),{labelDataIndex:p[A-1],defaultText:i.getName(p[A-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var C=c.getTextContent();C&&(C.x=_.x-b,C.y=_.y0+_.y/2),c.useStyle(u),i.setItemGraphicEl(n,c),Xl(c,e),Wl(c,w.get("focus"),w.get("blurScope"))}else o.remove(l[n])}new jy(this._layersSeries||[],a,c,c).add(Z(d,this,"add")).update(Z(d,this,"update")).remove(Z(d,this,"remove")).execute(),this._layersSeries=a,this._layers=h},t.type="themeRiver",t}(KA),TP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new uS(Z(this.getData,this),Z(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=[];Ao(e,function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]}).buckets.each(function(e,t){i.push({name:t,dataList:e})});for(var r=i.length,o=0;o<r;++o){for(var a=i[o].name,s=0;s<i[o].dataList.length;++s){var l=i[o].dataList[s][0]+"";n[l]=o}for(var l in n)n.hasOwnProperty(l)&&n[l]!==o&&(n[l]=o,e[t]=[l,0,a],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",co).models[0].get("type"),i=q(e.data,function(e){return void 0!==e[2]}),r=this.fixData(i||[]),o=[],a=this.nameMap=Se(),s=0,l=0;l<r.length;++l)o.push(r[l][2]),a.get(r[l][2])||(a.set(r[l][2],s),s++);var u=p_(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:$y(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new d_(u,this);return c.initData(r),c},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var r=e.mapDimension("single"),o=[];return Ao(n,function(t){return e.get("name",t)}).buckets.each(function(t,n){t.sort(function(t,n){return e.get(r,t)-e.get(r,n)}),o.push({name:n,indices:t})}),o},t.prototype.getAxisTooltipData=function(e,t,n){te(e)||(e=e?[e]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,d=0;d<h;++d){var f=r.get(e[0],o[l].indices[d]),p=Math.abs(f-t);p<=u&&(i=f,u=p,c=o[l].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData();return pA("nameValue",{name:i.getName(e),value:i.get(i.mapDimension("value"),e)})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={zlevel:0,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}(LA);function EP(e,t){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),n=e.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=e.get("boundaryGap"),a=n.getAxis();(i.boundaryGap=o,"horizontal"===a.orient)?(o[0]=wr(o[0],r.height),o[1]=wr(o[1],r.height),IP(t,e,r.height-o[0]-o[1])):(o[0]=wr(o[0],r.width),o[1]=wr(o[1],r.width),IP(t,e,r.width-o[0]-o[1]));t.setLayout("layoutInfo",i)})}function IP(e,t,n){if(e.count())for(var i,r=t.coordinateSystem,o=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),l=K(o,function(t){return K(t.indices,function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n})}),u=function(e){for(var t=e.length,n=e[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(o-i[u])/2;o=0;for(var c=0;c<n;++c){var h=i[c]+r[c];h>o&&(o=h)}return{y0:r,max:o}}(l),c=u.y0,h=n/u.max,d=o.length,f=o[0].indices.length,p=0;p<f;++p){i=c[p]*h,e.setItemLayout(o[0].indices[p],{layerIndex:0,x:l[0][p][0],y0:i,y:l[0][p][1]*h});for(var A=1;A<d;++A)i+=l[A-1][p][1]*h,e.setItemLayout(o[A].indices[p],{layerIndex:A,x:l[A][p][0],y0:i,y:l[A][p][1]*h})}}var MP=2,DP=4,PP=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=MP,o.textConfig={inside:!0},tl(o).seriesIndex=n.seriesIndex;var a=new el({z2:DP,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,i,r),o}return g(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;tl(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),u=Q({},l);u.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var h=t.getVisual("decal");h&&(c.decal=Sv(h,r));var d=oS(a.getModel("itemStyle"),u,!0);Q(u,d),W(ul,function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=oS(n,u);i&&(t.shape=i)}),e?(o.setShape(u),o.shape.r=l.r0,Bc(o,{shape:{r:l.r}},n,t.dataIndex)):(Bc(o,{shape:u},n),Pc(o)),o.useStyle(c),this._updateLabel(n);var f=a.getShallow("cursor");f&&o.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var p=s.get("focus");Wl(this,"ancestor"===p?t.getAncestorsIndices():"descendant"===p?t.getDescendantIndices():p,s.get("blurScope"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,f=i.get("show")&&!(null!=d&&Math.abs(o)<d);function p(e,t){var n=e.get(t);return null==n?i.get(t):n}c.ignore=!f,W(cl,function(i){var o="normal"===i?n.getModel("label"):n.getModel([i,"label"]),d="normal"===i,f=d?c:c.ensureState(i),A=e.getFormattedLabel(h,i);d&&(A=A||t.node.name),f.style=fh(o,{},null,"normal"!==i,!0),A&&(f.style.text=A);var g=o.get("show");null==g||d||(f.ignore=!g);var v,m=p(o,"position"),y=d?u:u.states[i],_=y.style.fill;y.textConfig={outsideFill:"inherit"===o.get("color")?_:null,inside:"outside"!==m};var b=p(o,"distance")||0,w=p(o,"align");"outside"===m?(v=r.r+b,w=a>Math.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(v=r.r0+b,a>Math.PI/2&&(w="right")):"right"===w&&(v=r.r-b,a>Math.PI/2&&(w="left")):(v=(r.r+r.r0)/2,w="center"),f.style.align=w,f.style.verticalAlign=p(o,"verticalAlign")||"middle",f.x=v*s+r.cx,f.y=v*l+r.cy;var x=p(o,"rotate"),C=0;"radial"===x?(C=-a)<-Math.PI/2&&(C+=Math.PI):"tangential"===x?(C=Math.PI/2-a)>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI):"number"==typeof x&&(C=x*Math.PI/180),f.rotation=C}),c.dirtyStyle()},t}(Vu),FP="sunburstRootToNode",OP="sunburstHighlight",LP="sunburstUnhighlight";var NP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n,i){var r=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),c=[];s.eachNode(function(e){c.push(e)});var h=this._oldChildren||[];!function(i,r){if(0===i.length&&0===r.length)return;function s(e){return e.getId()}function c(s,c){var h=null==s?null:i[s],d=null==c?null:r[c];!function(i,r){u||!i||i.getValue()||(i=null);if(i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,e,t,n),o.setItemGraphicEl(i.dataIndex,r.piece)):function(e){if(!e)return;e.piece&&(l.remove(e.piece),e.piece=null)}(r);else if(i){var s=new PP(i,e,t,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}(h,d)}new jy(r,i,s,s).add(c).update(c).remove(ee(c,null)).execute()}(c,h),function(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,e,t,n):(r.virtualPiece=new PP(i,e,t,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",function(e){r._rootToNode(o.parentNode)})):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},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(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a)Ld(a,o.get("target",!0)||"_blank")}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:FP,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var i=e[0]-n.cx,r=e[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},t.type="sunburst",t}(KA);var RP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return g(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;W(t.children,function(t){e(t);var i=t.value;te(i)&&(i=i[0]),n+=i});var i=t.value;te(i)&&(i=i[0]);(null==i||isNaN(i))&&(i=n);i<0&&(i=0);te(t.value)?t.value[0]=i:t.value=i}(n);var i=this._levelModels=K(e.levels||[],function(e){return new Oh(e,this,t)},this),r=RB.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=r.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e})});return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=jB(i,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(){YB(this)},t.type="series.sunburst",t.defaultOption={zlevel:0,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}(LA),UP=Math.PI/180;function QP(e,t,n){t.eachSeriesByType(e,function(e){var t=e.get("center"),i=e.get("radius");te(i)||(i=[0,i]),te(t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=wr(t[0],r),l=wr(t[1],o),u=wr(i[0],a/2),c=wr(i[1],a/2),h=-e.get("startAngle")*UP,d=e.get("minAngle")*UP,f=e.getData().tree.root,p=e.getViewRoot(),A=p.depth,g=e.get("sort");null!=g&&function e(t,n){var i=t.children||[];t.children=function(e,t){if("function"==typeof t){var n=K(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(e,n){return t(e.params,n.params)}),K(n,function(t){return e[t.index]})}var i="asc"===t;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n})}(i,n);i.length&&W(t.children,function(t){e(t,n)})}(p,g);var v=0;W(p.children,function(e){!isNaN(e.getValue())&&v++});var m=p.getValue(),y=Math.PI/(m||v)*2,_=p.depth>0,b=p.height-(_?-1:1),w=(c-u)/(b||1),x=e.get("clockwise"),C=e.get("stillShowZeroSum"),S=x?1:-1,k=function(t,n){if(t){var i=n;if(t!==f){var r=t.getValue(),o=0===m&&C?y:r*y;o<d&&(o=d),i=n+S*o;var c=t.depth-A-(_?-1:1),h=u+w*c,p=u+w*(c+1),g=e.getLevelModel(t);if(g){var v=g.get("r0",!0),b=g.get("r",!0),B=g.get("radius",!0);null!=B&&(v=B[0],b=B[1]),null!=v&&(h=wr(v,a/2)),null!=b&&(p=wr(b,a/2))}t.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:x,cx:s,cy:l,r0:h,r:p})}if(t.children&&t.children.length){var T=0;W(t.children,function(e){T+=k(e,n+T)})}return i-n}};if(_){var B=u,T=u+w,E=2*Math.PI;f.setLayout({angle:E,startAngle:h,endAngle:h+E,clockwise:x,cx:s,cy:l,r0:B,r:T})}k(p,h)})}function HP(e){var t={};e.eachSeriesByType("sunburst",function(e){var n=e.getData(),i=n.tree;i.eachNode(function(r){var o=r.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(e,n,i){for(var r=e;r&&r.depth>1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&"string"==typeof o&&(o=vn(o,(e.depth-1)/(i-1)*.5)),o}(r,e,i.root.height)),Q(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)})})}var jP={color:"fill",borderColor:"stroke"},VP={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},zP=ao(),$P=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return w_(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=zP(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},t}(LA);function GP(e,t){return t=t||[0,0],K(["x","y"],function(n,i){var r=this.getAxis(n),o=t[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function WP(e,t){return t=t||[0,0],K([0,1],function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function KP(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function YP(e,t){return t=t||[0,0],K(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=t[i],a=e[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function qP(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Te(e,"text")))}function XP(e,t,n){var i,r,o,a=e;if("text"===t)o=a;else{o={},Te(a,"text")&&(o.text=a.text),Te(a,"rich")&&(o.rich=a.rich),Te(a,"textFill")&&(o.fill=a.textFill),Te(a,"textStroke")&&(o.stroke=a.textStroke),Te(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Te(a,"fontSize")&&(o.fontSize=a.fontSize),Te(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Te(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=Te(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Te(a,"textPosition")&&(i.position=a.textPosition),Te(a,"textOffset")&&(i.offset=a.textOffset),Te(a,"textRotation")&&(i.rotation=a.textRotation),Te(a,"textDistance")&&(i.distance=a.textDistance)}return JP(o,e),W(o.rich,function(e){JP(e,e)}),{textConfig:i,textContent:r}}function JP(e,t){t&&(t.font=t.textFont||t.font,Te(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Te(t,"textAlign")&&(e.align=t.textAlign),Te(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Te(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Te(t,"textWidth")&&(e.width=t.textWidth),Te(t,"textHeight")&&(e.height=t.textHeight),Te(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Te(t,"textPadding")&&(e.padding=t.textPadding),Te(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Te(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Te(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Te(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Te(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Te(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Te(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function ZP(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";eF(i,t);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,W(t.rich,function(e){eF(e,e)}),i}function eF(e,t){t&&(Te(t,"fill")&&(e.textFill=t.fill),Te(t,"stroke")&&(e.textStroke=t.fill),Te(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Te(t,"font")&&(e.font=t.font),Te(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Te(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Te(t,"fontSize")&&(e.fontSize=t.fontSize),Te(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Te(t,"align")&&(e.textAlign=t.align),Te(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Te(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Te(t,"width")&&(e.textWidth=t.width),Te(t,"height")&&(e.textHeight=t.height),Te(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Te(t,"padding")&&(e.textPadding=t.padding),Te(t,"borderColor")&&(e.textBorderColor=t.borderColor),Te(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Te(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Te(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Te(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Te(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Te(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Te(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Te(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Te(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Te(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var tF={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]};function nF(e,t,n){var i=e[n],r=tF[n];i&&(t[r[0]]=i[0],t[r[1]]=i[1])}function iF(e,t,n){null!=e[n]&&(t[n]=e[n])}function rF(e,t,n){n&&(e[t]=n[t])}function oF(e,t,n,i,r){var o=n[e];if(o){var a,s=t[e],l=o.enterFrom;if(r&&l){!a&&(a=i[e]={});for(var u=J(l),c=0;c<u.length;c++){a[m=u[c]]=l[m]}}if(!r&&s)if(o.transition){!a&&(a=i[e]={});var h=Kr(o.transition);for(c=0;c<h.length;c++){var d=s[m=h[c]];0,a[m]=d}}else if(V(n.transition,e)>=0){!a&&(a=i[e]={});var f=J(s);for(c=0;c<f.length;c++){d=s[m=f[c]];sF(o[m],d)&&(a[m]=d)}}var p=o.leaveTo;if(p){var A=lF(t),g=A[e]||(A[e]={}),v=J(p);for(c=0;c<v.length;c++){var m;g[m=v[c]]=p[m]}}}}function aF(e,t,n){var i=t[e];if(i)for(var r=n[e]={},o=J(i),a=0;a<o.length;a++){var s=o[a];r[s]=Nn(i[s])}}function sF(e,t){return G(e)?e!==t:null!=e&&isFinite(e)}function lF(e){var t=zP(e);return t.leaveToProps||(t.leaveToProps={})}J({x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1}).join(", ");var uF="emphasis",cF="normal",hF=[cF,uF,"blur","select"],dF={normal:["itemStyle"],emphasis:[uF,"itemStyle"],blur:["blur","itemStyle"],select:["select","itemStyle"]},fF={normal:["label"],emphasis:[uF,"label"],blur:["blur","label"],select:["select","label"]},pF="e\0\0",AF={normal:{},emphasis:{},blur:{},select:{}},gF={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Z(GP,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:Z(WP,e)}}},singleAxis:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Z(KP,e)}}},polar:function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=e.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:Z(YP,e)}}},calendar:function(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}};function vF(e){return e instanceof Bs}function mF(e){return e instanceof ta}var yF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n,i){var r=this._data,o=e.getData(),a=this.group,s=BF(e,o,t,n);r||a.removeAll(),o.diff(r).add(function(t){TF(n,null,t,s(t,i),e,a,o)}).remove(function(t){NF(r.getItemGraphicEl(t),e,a)}).update(function(t,l){var u=r.getItemGraphicEl(l);TF(n,u,t,s(t,i),e,a,o)}).execute();var l=e.get("clip",!0)?oC(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,r){var o=t.getData(),a=BF(t,o,n,i);function s(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var l=e.start;l<e.end;l++){var u=TF(null,null,l,a(l,r),t,this.group,o);u&&u.traverse(s)}},t.prototype.filterForExposedEvent=function(e,t,n,i){var r=t.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},t.type="custom",t}(KA);function _F(e){var t,n=e.type;if("path"===n){var i=e.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=RF(i);t=jc(o,null,r,i.layout||"center"),zP(t).customPathData=o}else if("image"===n)t=new Fs({}),zP(t).customImagePath=e.style.image;else if("text"===n)t=new el({});else if("group"===n)t=new lr;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=Hc(n);if(!a){var s="";0,$r(s)}t=new a}return zP(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function bF(e,t,n,i,r,o,a,s){var l=r&&r.normal.cfg;l&&t.setTextConfig(l);var u=i&&i.style;if(u){if("text"===t.type){var c=u;Te(c,"textFill")&&(c.fill=c.textFill),Te(c,"textStroke")&&(c.stroke=c.textStroke)}var h=void 0,d=vF(t)?u.decal:null;e&&d&&(d.dirty=!0,h=Sv(d,e)),u.__decalPattern=h}zP(t).userDuring=i.during;var f={},p={};oF("shape",t,i,f,a),aF("shape",i,p),function(e,t,n,i){var r=t.enterFrom;if(i&&r)for(var o=J(r),a=0;a<o.length;a++)n[d=o[a]]=r[d];if(!i)if(t.transition){var s=Kr(t.transition);for(a=0;a<s.length;a++)if("style"!==(d=s[a])&&"shape"!==d&&"extra"!==d){var l=e[d];n[d]=l}}else rF(n,"x",e),rF(n,"y",e);var u=t.leaveTo;if(u){var c=lF(e),h=J(u);for(a=0;a<h.length;a++){var d;c[d=h[a]]=u[d]}}}(t,i,f,a),function(e,t,n){nF(t,n,"position"),nF(t,n,"scale"),nF(t,n,"origin"),iF(t,n,"x"),iF(t,n,"y"),iF(t,n,"scaleX"),iF(t,n,"scaleY"),iF(t,n,"originX"),iF(t,n,"originY"),iF(t,n,"rotation")}(0,i,p),oF("extra",t,i,f,a),aF("extra",i,p),function(e,t,n,i,r){if(n){var o,a=e.style,s=n.enterFrom;if(r&&s){var l=J(s);!o&&(o=i.style={});for(var u=0;u<l.length;u++)o[y=l[u]]=s[y]}if(!r&&a)if(n.transition){var c=Kr(n.transition);for(!o&&(o=i.style={}),u=0;u<c.length;u++){var h=a[y=c[u]];o[y]=h}}else if(e.getAnimationStyleProps&&V(t.transition,"style")>=0){var d=e.getAnimationStyleProps(),f=d?d.style:null;if(f){!o&&(o=i.style={});var p=J(n);for(u=0;u<p.length;u++)f[y=p[u]]&&(h=a[y],o[y]=h)}}var A=n.leaveTo;if(A){var g=J(A),v=lF(e),m=v.style||(v.style={});for(u=0;u<g.length;u++){var y;m[y=g[u]]=A[y]}}}}(t,i,u,f,a),p.style=u,function(e,t){var n=e.isGroup?null:e,i=t.style;if(n&&i){n.useStyle(i);var r=i.__decalPattern;r&&(n.style.decal=r);for(var o=n.animators,a=0;a<o.length;a++){var s=o[a];"style"===s.targetName&&s.changeTarget(n.style)}}t&&(t.style=null,t&&e.attr(t),t.style=i)}(t,p),function(e,t,n,i,r){if(i){var o=zP(e).userDuring,a=o?Z(CF,{el:e,userDuring:o}):null,s={dataIndex:t,isFrom:!0,during:a};r?Tc(e,i,n,s):Bc(e,i,n,s)}}(t,n,o,f,a),function(e,t,n){Te(t,"silent")&&(e.silent=t.silent),Te(t,"ignore")&&(e.ignore=t.ignore),mF(e)&&Te(t,"invisible")&&(e.invisible=t.invisible);vF(e)&&Te(t,"autoBatch")&&(e.autoBatch=t.autoBatch);n||Te(t,"info")&&(zP(e).info=t.info)}(t,i,s),u?t.dirty():t.markRedraw()}var wF={},xF={setTransform:function(e,t){return wF.el[e]=t,this},getTransform:function(e){return wF.el[e]},setShape:function(e,t){return(wF.el.shape||(wF.el.shape={}))[e]=t,wF.isShapeDirty=!0,this},getShape:function(e){var t=wF.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=wF.el.style;return n&&(n[e]=t,wF.isStyleDirty=!0),this},getStyle:function(e){var t=wF.el.style;if(t)return t[e]},setExtra:function(e,t){return(wF.el.extra||(wF.el.extra={}))[e]=t,this},getExtra:function(e){var t=wF.el.extra;if(t)return t[e]}};function CF(){var e=this.el;if(e){var t=zP(e).userDuring,n=this.userDuring;t===n?(wF.el=e,wF.isShapeDirty=!1,wF.isStyleDirty=!1,n(xF),wF.isShapeDirty&&e.dirtyShape&&e.dirtyShape(),wF.isStyleDirty&&e.dirtyStyle&&e.dirtyStyle()):this.el=this.userDuring=null}}function SF(e,t,n,i,r,o,a){var s=t.isGroup?null:t,l=r&&r[e].cfg;if(s){var u=s.ensureState(e);if(!1===i){var c=s.getState(e);c&&(c.style=null)}else u.style=i||null;l&&(u.textConfig=l),Dl(s)}}function kF(e,t,n){var i=n===cF,r=i?t:DF(t,n),o=r?r.z2:null;null!=o&&((i?e:e.ensureState(n)).z2=o||0)}function BF(e,t,n,i){var r=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):gF[o.type](o));for(var s,l,u=H({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)},style:function(n,i){0;null==i&&(i=s);var r=t.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=m(i,cF).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:ie(o)?o:"#000"},c=y(i,cF),h=fh(c,null,u,!1,!0);h.text=c.getShallow("show")?Ae(e.getFormattedLabel(i,cF),Lx(t,i)):null;var d=ph(c,u,!1);return b(n,l),l=ZP(l,h,d),n&&_(l,n),l.legacy=!0,l},ordinalRawValue:function(e,n){null==n&&(n=s),e=e||0;var i=t.getDimensionInfo(e);if(!i){var r=t.getDimensionIndex(e);return r>=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,i){0;null==i&&(i=s);var r=m(i,uF).getItemStyle(),o=y(i,uF),a=fh(o,null,null,!0,!0);a.text=o.getShallow("show")?ge(e.getFormattedLabel(i,uF),e.getFormattedLabel(i,cF),Lx(t,i)):null;var l=ph(o,null,!0);return b(n,r),r=ZP(r,a,l),n&&_(r,n),r.legacy=!0,r},visual:function(e,n){if(null==n&&(n=s),Te(jP,e)){var i=t.getItemVisual(n,"style");return i?i[jP[e]]:null}if(Te(VP,e))return t.getItemVisual(n,e)},barLayout:function(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return function(e){var t=[],n=e.axis;if("category"===n.type){for(var i=n.getBandWidth(),r=0;r<e.count;r++)t.push(H({bandWidth:i,axisKey:"axis0",stackId:Q_+r},e));var o=G_(t),a=[];for(r=0;r<e.count;r++){var s=o.axis0[Q_+r];s.offsetCenter=s.offset+s.width/2,a.push(s)}return a}}(H({axis:t},e))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return yh(e,n)}},a.api||{}),c={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:function(e){var t={};return W(e.dimensions,function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim;(t[r]=t[r]||[])[i.coordDimIndex]=e.getDimensionIndex(n)}}),t}(e.getData())},h={},d={},f={},p={},A=0;A<hF.length;A++){var g=hF[A];f[g]=e.getModel(dF[g]),p[g]=e.getModel(fF[g])}function v(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function m(e,n){return t.hasItemOption?e===s?h[n]||(h[n]=v(e).getModel(dF[n])):v(e).getModel(dF[n]):f[n]}function y(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=v(e).getModel(fF[n])):v(e).getModel(fF[n]):p[n]}return function(e,n){return s=e,l=null,h={},d={},r&&r(H({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},c),u)};function _(e,t){for(var n in t)Te(t,n)&&(e[n]=t[n])}function b(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function TF(e,t,n,i,r,o,a){if(i){var s=EF(e,t,n,i,r,o,!0);return s&&a.setItemGraphicEl(n,s),s&&Wl(s,i.focus,i.blurScope),s}o.remove(t)}function EF(e,t,n,i,r,o,a){var s=-1,l=t;t&&IF(t,i,r)&&(s=V(o.childrenRef(),t),t=null);var u,c,h=!t,d=t;d?d.clearStates():(d=_F(i),l&&(u=l,(c=d).copyTransform(u),mF(c)&&mF(u)&&(c.setStyle(u.style),c.z=u.z,c.z2=u.z2,c.zlevel=u.zlevel,c.invisible=u.invisible,c.ignore=u.ignore,vF(c)&&vF(u)&&c.setShape(u.shape)))),!1===i.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),AF.normal.cfg=AF.normal.conOpt=AF.emphasis.cfg=AF.emphasis.conOpt=AF.blur.cfg=AF.blur.conOpt=AF.select.cfg=AF.select.conOpt=null,AF.isLegacy=!1,function(e,t,n,i,r,o){if(e.isGroup)return;MF(n,null,o),MF(n,uF,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=_F(a),e.setTextContent(c)),bF(null,c,t,a,null,i,r,!0);for(var h=a&&a.style,d=0;d<hF.length;d++){var f=hF[d];if(f!==cF){var p=o[f].conOpt;SF(f,c,0,PF(a,p,f),null)}}h?c.dirty():c.markRedraw()}}}(d,n,i,r,h,AF),function(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&IF(a,o,i)&&(a=null),a||(a=_F(o),e.setClipPath(a)),bF(null,a,t,o,null,i,r,!1)}}(d,n,i,r,h),bF(e,d,n,i,AF,r,h,!1);for(var f=0;f<hF.length;f++){var p=hF[f];if(p!==cF){var A=DF(i,p);SF(p,d,0,PF(i,A,p),AF)}}return function(e,t,n){if(!e.isGroup){var i=e,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=t.z2;null!=a&&(i.z2=a||0);for(var s=0;s<hF.length;s++)kF(i,t,hF[s])}}(d,i,r),"group"===i.type&&function(e,t,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(!a&&!l&&!u)return;if(l)return c={api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:t},void new jy(c.oldChildren,c.newChildren,FF,FF,c).add(OF).update(OF).remove(LF).execute();var c;u&&t.removeAll();for(var h=0;h<a;h++)o[h]&&EF(e,t.childAt(h),n,o[h],r,t,!1);for(var d=t.childCount()-1;d>=h;d--)NF(t.childAt(d),r,t)}(e,d,n,i,r),s>=0?o.replaceAt(d,s):o.add(d),d}function IF(e,t,n){var i,r=zP(e),o=t.type,a=t.shape,s=t.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&((i=a)&&(Te(i,"pathData")||Te(i,"d")))&&RF(a)!==r.customPathData||"image"===o&&Te(s,"image")&&s.image!==r.customImagePath}function MF(e,t,n){var i=t?DF(e,t):e,r=t?PF(e,i,uF):e.style,o=e.type,a=i?i.textConfig:null,s=e.textContent,l=s?t?DF(s,t):s:null;if(r&&(n.isLegacy||qP(r,o,!!a,!!l))){n.isLegacy=!0;var u=XP(r,o,!t);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var h=t?n[t]:n.normal;h.cfg=a,h.conOpt=l}function DF(e,t){return t?e?e[t]:null:e}function PF(e,t,n){var i=t&&t.style;return null==i&&n===uF&&e&&(i=e.styleEmphasis),i}function FF(e,t){var n=e&&e.name;return null!=n?n:pF+t}function OF(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;EF(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function LF(e){var t=this.context;NF(t.oldChildren[e],t.seriesModel,t.group)}function NF(e,t,n){if(e){var i=zP(e).leaveToProps;i?Bc(e,i,t,{cb:function(){n.remove(e)}}):n.remove(e)}}function RF(e){return e&&(e.pathData||e.d)}var UF=ao(),QF=N,HF=Z;function jF(e,t,n,i){(function e(t,n){if(ae(t)&&ae(n)){var i=!0;return W(n,function(n,r){i=i&&e(t[r],n)}),!!i}return t===n})(UF(n).lastProp,i)||(UF(n).lastProp=i,t?Bc(n,i,e):(n.stopAnimation(),n.attr(i)))}function VF(e,t){e[t.get(["label","show"])?"show":"hide"]()}function zF(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function $F(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)})}var GF=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var r=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var h=ee(jF,t,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,t)}else a=this._group=new lr,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);$F(a,t,!0),this._renderHandle(r)}},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"),i=e.axis,r="category"===i.type,o=t.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=GS(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,i){var r=t.pointer;if(r){var o=UF(e).pointerEl=new l[r.type](QF(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=UF(e).labelEl=new el(QF(t.label));e.add(r),VF(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=UF(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=UF(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),VF(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=ih(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){bt(e.event)},onmousedown:HF(this._onHandleDragMove,this,0,0),drift:HF(this._onHandleDragMove,this),ondragend:HF(this._onHandleDragEnd,this)}),i.add(r)),$F(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");te(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,ZA(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){jF(this._axisPointerModel,!t&&this._moveAnimation,this._handle,zF(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(zF(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(zF(i)),UF(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,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},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 WF(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle()).fill=null:"shadow"===n&&((t=i.getAreaStyle()).stroke=null),t}function KF(e,t,n,i,r){var o=YF(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Cd(a.get("padding")||0),l=a.getFont(),u=Gi(o,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=r.align;"right"===f&&(c[0]-=h),"center"===f&&(c[0]-=h/2);var p=r.verticalAlign;"bottom"===p&&(c[1]-=d),"middle"===p&&(c[1]-=d/2),function(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(c,h,d,i);var A=a.get("backgroundColor");A&&"auto"!==A||(A=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:fh(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:A}),z2:10}}function YF(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),a=r.formatter;if(a){var s={value:Bb(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};W(i,function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&s.seriesData.push(r)}),ie(a)?o=a.replace("{value}",o):ne(a)&&(o=a(s))}return o}function qF(e,t,n){var i=[1,0,0,1,0,0];return Ai(i,i,n.rotation),pi(i,i,n.position),Xc([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function XF(e,t,n,i,r,o){var a=VS.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),KF(t,i,r,o,{position:qF(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function JF(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function ZF(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function eO(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var tO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=nO(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=WF(i),h=iO[s](o,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}XF(t,e,ES(a.model,n),n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=ES(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=qF(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=nO(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(GF);function nO(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var iO={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:JF([t,n[0]],[t,n[1]],rO(e))}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:ZF([t-i/2,n[0]],[i,r],rO(e))}}};function rO(e){return"x"===e.dim?0:1}var oO=tO,aO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="axisPointer",t.defaultOption={show:"auto",zlevel:0,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}(qd),sO=ao(),lO=W;function uO(e,t,n){if(!_.node){var i=t.getZr();sO(i).records||(sO(i).records={}),function(e,t){if(sO(e).initialized)return;function n(n,i){e.on(n,function(n){var r=function(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}(t);lO(sO(e).records,function(e){e&&i(e,n,r.dispatchAction)}),function(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(r.pendings,t)})}sO(e).initialized=!0,n("click",ee(hO,"click")),n("mousemove",ee(hO,"mousemove")),n("globalout",cO)}(i,t),(sO(i).records[e]||(sO(i).records[e]={})).handler=n}}function cO(e,t,n){e.handler("leave",null,n)}function hO(e,t,n,i){t.handler(e,n,i)}function dO(e,t){if(!_.node){var n=t.getZr();(sO(n).records||{})[e]&&(sO(n).records[e]=null)}}var fO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";uO("axisPointer",n,function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){dO("axisPointer",t)},t.prototype.dispose=function(e,t){dO("axisPointer",t)},t.type="axisPointer",t}(RA);function pO(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=oo(o,e);if(null==a||a<0||te(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,d="x"===c||"radius"===c?1:0,f=o.mapDimension(h),p=[];p[d]=o.get(f,a),p[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(p)||[]}else i=l.dataToPoint(o.getValues(K(l.dimensions,function(e){return o.mapDimension(e)}),a))||[];else if(s){var A=s.getBoundingRect().clone();A.applyTransform(s.transform),i=[A.x+A.width/2,A.y+A.height/2]}return{point:i,el:s}}var AO=ao();function gO(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,a=e.dispatchAction||Z(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){bO(r)&&(r=pO({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=bO(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||bO(r),d={},f={},p={list:[],map:{}},A={showPointer:ee(mO,f),showTooltip:ee(yO,p)};W(s.coordSysMap,function(e,t){var n=l||e.containPoint(r);W(s.coordSysAxesInfo[t],function(e,t){var i=e.axis,o=function(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}(u,e);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&vO(e,a,A,!1,d)}})});var g={};return W(c,function(e,t){var n=e.linkGroup;n&&!f[t]&&W(n.axesInfo,function(t,i){var r=f[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,_O(t),_O(e)))),g[e.key]=o}})}),W(g,function(e,t){vO(c[t],e,A,!0,d)}),function(e,t,n){var i=n.axesInfo=[];W(t,function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})})}(f,c,d),function(e,t,n,i){if(bO(t)||!e.list.length)return void i({type:"hideTip"});var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}(p,r,e,a),function(e,t,n){var i=n.getZr(),r=AO(i).axisPointerLastHighlights||{},o=AO(i).axisPointerLastHighlights={};W(e,function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&W(n.seriesDataIndices,function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e})});var a=[],s=[];W(r,function(e,t){!o[t]&&s.push(e)}),W(o,function(e,t){!r[t]&&a.push(e)}),s.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),a.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(c,0,n),d}}function vO(e,t,n,i,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,i=n.dim,r=e,o=[],a=Number.MAX_VALUE,s=-1;return W(t.seriesModels,function(t,l){var u,c,h=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(h,e,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=t.getData().indicesOfNearest(h[0],e,"category"===n.type?.5:null)).length)return;u=t.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=e-u,p=Math.abs(f);p<=a&&((p<a||f>=0&&s<0)&&(a=p,s=f,r=u,o.length=0),W(c,function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:o,snapToValue:r}}(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&Q(r,s[0]),!i&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function mO(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function yO(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=KS(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function _O(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function bO(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function wO(e){qS.registerAxisPointerClass("CartesianAxisPointer",oO),e.registerComponentModel(aO),e.registerComponentView(fO),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!te(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=zS(e,t)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gO)}var xO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(t),u=i.get("type");if(u&&"none"!==u){var c=WF(i),h=CO[u](o,a,l,s);h.style=c,e.graphicKey=h.type,e.pointer=h}KF(e,n,i,r,function(e,t,n,i,r){var o=t.axis,a=o.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=[1,0,0,1,0,0];Ai(d,d,s),pi(d,d,[i.cx,i.cy]),l=Xc([a,-r],d);var f=t.getModel("axisLabel").get("rotate")||0,p=VS.innerTextLayout(s,f*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var A=h[1];l=i.coordToPoint([A+r,a]);var g=i.cx,v=i.cy;u=Math.abs(l[0]-g)/A<.3?"center":l[0]>g?"left":"right",c=Math.abs(l[1]-v)/A<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(t,n,0,a,i.get(["label","margin"])))},t}(GF);var CO={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:JF(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:eO(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:eO(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}},SO=xO,kO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(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={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},t}(qd),BO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",co).models[0]},t.type="polarAxis",t}(qd);$(BO,Mb);var TO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="angleAxis",t}(BO),EO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="radiusAxis",t}(BO),IO=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return g(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(Kb);IO.prototype.dataToRadius=Kb.prototype.dataToCoord,IO.prototype.radiusToData=Kb.prototype.coordToData;var MO=IO,DO=ao(),PO=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return g(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.getLabelModel(),t=this.scale,n=t.getExtent(),i=t.count();if(n[1]-n[0]<1)return 0;var r=n[0],o=this.dataToCoord(r+1)-this.dataToCoord(r),a=Math.abs(o),s=Gi(null==r?"":r+"",e.getFont(),"center","top"),l=Math.max(s.height,7)/a;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),c=DO(this.model),h=c.lastAutoInterval,d=c.lastTickCount;return null!=h&&null!=d&&Math.abs(h-u)<=1&&Math.abs(d-i)<=1&&h>u?u=h:(c.lastTickCount=i,c.lastAutoInterval=u),u},t}(Kb);PO.prototype.dataToAngle=Kb.prototype.dataToCoord,PO.prototype.angleToData=Kb.prototype.coordToData;var FO=PO,OO=["radius","angle"];function LO(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var NO=function(){function e(e){this.dimensions=OO,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new MO,this._angleAxis=new FO,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(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[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,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),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(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},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,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var l=Math.atan2(-n,t)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},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(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},e.prototype.convertToPixel=function(e,t,n){return LO(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return LO(t)===this?this.pointToData(n):null},e}();function RO(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();W(Ib(t,"radius"),function(e){r.scale.unionExtentFromData(t,e)}),W(Ib(t,"angle"),function(e){i.scale.unionExtentFromData(t,e)})}}),Cb(i.scale,i.model),Cb(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function UO(e,t){if(e.type=t.get("type"),e.scale=Sb(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 QO={dimensions:OO,create:function(e,t){var n=[];return e.eachComponent("polar",function(e,i){var r=new NO(i+"");r.update=RO;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");UO(o,s),UO(a,l),function(e,t,n){var i=t.get("center"),r=n.getWidth(),o=n.getHeight();e.cx=wr(i[0],r),e.cy=wr(i[1],o);var a=e.getRadiusAxis(),s=Math.min(r,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:te(l)||(l=[0,l]);var u=[wr(l[0],s),wr(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e}),e.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",co).models[0];0,e.coordinateSystem=t.coordinateSystem}}),n}},HO=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function jO(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function VO(e){return e.getRadiusAxis().inverse?0:1}function zO(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 $O=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return g(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=K(n.getViewLabels(),function(e){e=N(e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e});zO(s),zO(o),W(HO,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||GO[t](this.group,e,i,o,a,r,s)},this)}},t.type="angleAxis",t}(qS),GO={axisLine:function(e,t,n,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=VO(n),u=l?0:1;(a=0===o[u]?new Cu({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Gu({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(a)},axisTick:function(e,t,n,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[VO(n)],u=K(i,function(e){return new rc({shape:jO(n,[l,l+s],e.coord)})});e.add($c(u,{style:H(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[VO(n)],c=[],h=0;h<r.length;h++)for(var d=0;d<r[h].length;d++)c.push(new rc({shape:jO(n,[u,u+l],r[h][d].coord)}));e.add($c(c,{style:H(s.getModel("lineStyle").getLineStyle(),H(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,r,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");W(a,function(i,r){var a=l,h=i.tickValue,d=o[VO(n)],f=n.coordToPoint([d+u,i.coord]),p=n.cx,A=n.cy,g=Math.abs(f[0]-p)/d<.3?"center":f[0]>p?"left":"right",v=Math.abs(f[1]-A)/d<.3?"middle":f[1]>A?"top":"bottom";if(s&&s[h]){var m=s[h];ae(m)&&m.textStyle&&(a=new Oh(m.textStyle,l,l.ecModel))}var y=new el({silent:VS.isLabelSilent(t),style:fh(a,{x:f[0],y:f[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:g,verticalAlign:v})});if(e.add(y),c){var _=VS.makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=i.rawLabel,tl(y).eventData=_}},this)},splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<i.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new rc({shape:jO(n,o,i[c].coord)}))}for(c=0;c<u.length;c++)e.add($c(u[c],{style:H({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new rc({shape:jO(n,o,r[l][u].coord)}));e.add($c(s,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,r,o){if(i.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,h=-i[0].coord*c,d=Math.min(o[0],o[1]),f=Math.max(o[0],o[1]),p=t.get("clockwise"),A=1,g=i.length;A<=g;A++){var v=A===g?i[0].coord:i[A].coord,m=l++%s.length;u[m]=u[m]||[],u[m].push(new Vu({shape:{cx:n.cx,cy:n.cy,r0:d,r:f,startAngle:h,endAngle:-v*c,clockwise:p},silent:!0})),h=-v*c}for(A=0;A<u.length;A++)e.add($c(u[A],{style:H({fill:s[A%s.length]},a.getAreaStyle()),silent:!0}))}}},WO=$O,KO=["axisLine","axisTickLabel","axisName"],YO=["splitLine","splitArea","minorSplitLine"],qO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return g(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,i=this._axisGroup=new lr;this.group.add(i);var r=e.axis,o=r.polar,a=o.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=a.getExtent()[0],c=r.getExtent(),h=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}}(o,e,u),d=new VS(e,h);W(KO,d.add,d),i.add(d.getGroup()),eh(n,i,e),W(YO,function(t){e.get([t,"show"])&&!r.scale.isBlank()&&XO[t](this.group,e,o,u,c,s,l)},this)}},t.type="radiusAxis",t}(qS),XO={splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<o.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new Cu({shape:{cx:n.cx,cy:n.cy,r:o[c].coord}}))}for(c=0;c<u.length;c++)e.add($c(u[c],{style:H({stroke:s[c%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,r,o,a){if(a.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new Cu({shape:{cx:n.cx,cy:n.cy,r:a[u][c].coord}}));e.add($c(l,{style:H({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,r,o){if(o.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=o[0].coord,h=1;h<o.length;h++){var d=l++%s.length;u[d]=u[d]||[],u[d].push(new Vu({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[h].coord}for(h=0;h<u.length;h++)e.add($c(u[h],{style:H({fill:s[h%s.length]},a.getAreaStyle()),silent:!0}))}}};var JO=qO;function ZO(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function eL(e,t){return t.dim+e.model.componentIndex}var tL=function(e,t,n){var i={},r=function(e){var t={};W(e,function(e,n){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),a=eL(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var h=ZO(e);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=wr(e.get("barWidth"),l),f=wr(e.get("barMaxWidth"),l),p=e.get("barGap"),A=e.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),f&&(c[h].maxWidth=f),null!=p&&(u.gap=p),null!=A&&(u.categoryGap=A)});var n={};return W(t,function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=wr(e.categoryGap,r),a=wr(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),W(i,function(e,t){var n=e.maxWidth;n&&n<u&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)}),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;W(i,function(e,t){e.width||(e.width=u),c=e,h+=e.width*(1+a)}),c&&(h-=c.width*a);var d=-h/2;W(i,function(e,i){n[t][i]=n[t][i]||{offset:d,width:e.width},d+=e.width*(1+a)})}),n}(q(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 t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),a=eL(n,o),s=ZO(e),l=r[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),d=e.coordinateSystem.cx,f=e.coordinateSystem.cy,p=e.get("barMinHeight")||0,A=e.get("barMinAngle")||0;i[s]=i[s]||[];for(var g=t.mapDimension(h.dim),v=t.mapDimension(o.dim),m=__(t,g),y="radius"!==o.dim||!e.get("roundCap",!0),_=h.dataToCoord(0),b=0,w=t.count();b<w;b++){var x=t.get(g,b),C=t.get(v,b),S=x>=0?"p":"n",k=_;m&&(i[s][C]||(i[s][C]={p:_,n:_}),k=i[s][C][S]);var B=void 0,T=void 0,E=void 0,I=void 0;if("radius"===h.dim){var M=h.dataToCoord(x)-_,D=o.dataToCoord(C);Math.abs(M)<p&&(M=(M<0?-1:1)*p),B=k,T=k+M,I=(E=D-u)-c,m&&(i[s][C][S]=T)}else{var P=h.dataToCoord(x,y)-_,F=o.dataToCoord(C);Math.abs(P)<A&&(P=(P<0?-1:1)*A),T=(B=F+u)+c,E=k,I=k+P,m&&(i[s][C][S]=I)}t.setItemLayout(b,{cx:d,cy:f,r0:B,r:T,startAngle:-E*Math.PI/180,endAngle:-I*Math.PI/180,clockwise:E>=I})}}})},nL={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},iL={splitNumber:5},rL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="polar",t}(RA);function oL(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),pe(t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var c=t.rotate;return null==c&&(c=e.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-c:c,r.z2=1,r}var aL=["axisLine","axisTickLabel","axisName"],sL=["splitArea","splitLine"],lL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return g(t,e),t.prototype.render=function(t,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new lr;var s=oL(t),l=new VS(t,s);W(aL,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),W(sL,function(e){t.get([e,"show"])&&uL[e](this,this.group,this._axisGroup,t)},this),eh(a,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)},t.prototype.remove=function(){ZS(this)},t.type="singleAxis",t}(qS),uL={splitLine:function(e,t,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=[],h=0,d=r.getTicksCoords({tickModel:o}),f=[],p=[],A=0;A<d.length;++A){var g=r.toGlobalCoord(d[A].coord);u?(f[0]=g,f[1]=l.y,p[0]=g,p[1]=l.y+l.height):(f[0]=l.x,f[1]=g,p[0]=l.x+l.width,p[1]=g);var v=h++%s.length;c[v]=c[v]||[],c[v].push(new rc({subPixelOptimize:!0,shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},silent:!0}))}var m=a.getLineStyle(["color"]);for(A=0;A<c.length;++A)t.add($c(c[A],{style:H({stroke:s[A%s.length]},m),silent:!0}))}},splitArea:function(e,t,n,i){JS(e,n,i,i)}},cL=lL,hL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(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}(qd);$(hL,Mb.prototype);var dL=hL,fL=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return g(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}(Kb),pL=["single"];function AL(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var gL=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=pL,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=this.dimension,r=new fL(i,Sb(e),[0,0],e.get("type"),e.get("position")),o="category"===r.type;r.onBand=o&&e.get("boundaryGap"),r.inverse=e.get("inverse"),r.orient=e.get("orient"),e.axis=r,r.model=e,r.coordinateSystem=this,this._axis=r},e.prototype.update=function(e,t){e.eachSeries(function(e){if(e.coordinateSystem===this){var t=e.getData();W(t.mapDimensionsAll(this.dimension),function(e){this._axis.scale.unionExtentFromData(t,e)},this),Cb(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(e,t){this._rect=jd({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 e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=t.reverse?1:0;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return i-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 t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.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(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){return AL(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return AL(t)===this?this.pointToData(n):null},e}();var vL={create:function(e,t){var n=[];return e.eachComponent("singleAxis",function(i,r){var o=new gL(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)}),e.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",co).models[0];e.coordinateSystem=t&&t.coordinateSystem}}),n},dimensions:pL},mL=["x","y"],yL=["width","height"],_L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.coordinateSystem,s=xL(a,1-wL(o)),l=a.dataToPoint(t)[0],u=i.get("type");if(u&&"none"!==u){var c=WF(i),h=bL[u](o,l,s);h.style=c,e.graphicKey=h.type,e.pointer=h}XF(t,e,oL(n),n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=oL(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=qF(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,a=wL(r),s=xL(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=xL(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(GF),bL={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:JF([t,n[0]],[t,n[1]],wL(e))}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:ZF([t-i/2,n[0]],[i,r],wL(e))}}};function wL(e){return e.isHorizontal()?0:1}function xL(e,t){var n=e.getRect();return[n[mL[t]],n[mL[t]]+n[yL[t]]]}var CL=_L,SL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="single",t}(RA);function kL(e,t){var n,i=e.cellSize;1===(n=te(i)?i:e.cellSize=[i,i]).length&&(n[1]=n[0]);var r=K([0,1],function(e){return function(e,t){return null!=e[Ud[t][0]]||null!=e[Ud[t][1]]&&null!=e[Ud[t][2]]}(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]});$d(e,t,{type:"box",ignoreSize:r})}var BL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(t,n,i){var r=Gd(t);e.prototype.init.apply(this,arguments),kL(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),kL(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={zlevel:0,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}(qd),TL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,a,i),this._renderYearText(e,o,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,o,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new js({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new ec({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return"string"==typeof e&&e?(n=e,W(t,function(e,t){n=n.replace("{"+t+"}",i?Bd(e):e)}),n):"function"==typeof e?e(t):t.nameMap;var n,i},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var f=r.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:d},A=this._formatterLabel(f,p),g=new el({z2:30,style:fh(r,{text:A})});g.attr(this._yearTextPositionControl(g,h[a],n,a,o)),i.add(g)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(a="bottom")):(s+=r,t&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!ie(o)||(o&&(t=Gh(o)||t),o=t.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,f=0;f<u[c].length-1;f++){var p=u[c][f].slice(),A=this._firstDayOfMonth[f];if(d){var g=this._firstDayPoints[f];p[h]=(g[h]+u[0][f+1][h])/2}var v=r.get("formatter"),m=o[+A.m-1],y={yyyy:A.y,yy:(A.y+"").slice(2),MM:A.m,M:+A.m,nameMap:m},_=this._formatterLabel(v,y),b=new el({z2:30,style:Q(fh(r,{text:_}),this._monthTextPositionControl(p,d,n,s,a))});i.add(b)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,r){var o="center",a="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,i,r){var o=e.getModel("dayLabel");if(o.get("show")){var a=e.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||ie(l))l&&(t=Gh(l)||t),l=t.get(["time","dayOfWeekShort"])||K(t.get(["time","dayOfWeekAbbr"]),function(e){return e[0]});var h=a.getNextNDay(n.end.time,7-n.lweek).time,d=[a.getCellWidth(),a.getCellHeight()];u=wr(u,Math.min(d[1],d[0])),"start"===s&&(h=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var f=0;f<7;f++){var p,A=a.getNextNDay(h,f),g=a.dataToRect([A.time],!1).center;p=Math.abs((f+c)%7);var v=new el({z2:30,style:Q(fh(o,{text:l[p]}),this._weekTextPositionControl(g,i,s,u,d))});r.add(v)}}},t.type="calendar",t}(RA);function EL(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var IL=function(){function e(t,n,i){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=Fr(e)).getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,r=e.getDate(),o=r<10?"0"+r:""+r,a=e.getDay();return{y:t+"",m:i,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)?this.getDateInfo(e):((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,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];W([0,1],function(e){u(r,e)&&(o[i[e]]=r[e]*a[e])});var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=jd(o,s);function u(e,t){return null!=e[t]&&"auto"!==e[t]}W([0,1],function(e){u(r,e)||(r[e]=l[i[e]]/a[e])}),this._sw=r[0],this._sh=r[1]},e.prototype.dataToPoint=function(e,t){te(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,r=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+864e5))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*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(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[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,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=EL(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=EL(t);return i===this?i.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(te(t)&&1===t.length&&(t=t[0]),te(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 i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var a=this._getRangeInfo(e);return a.start.time>a.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 i=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var r=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o}),t.eachSeries(function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])}),i},e.dimensions=["time","value"],e}();var ML=ao(),DL={path:null,compoundPath:null,group:lr,image:Fs,text:el},PL=function(e){var t=e.graphic;te(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])},FL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return g(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,r=n.elements=t?[]:n.elements,o=[];this._flatten(i,o,null);var a=Zr(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];W(a,function(e,t){var n=e.newOption;n&&(s.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 i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var i=Q({},n),r=e[t],o=n.$action||"merge";if("merge"===o){if(r)R(r,i,!0),$d(r,i,{ignoreSize:!0}),Wd(n,r);else e[t]=i}else"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}(r,t,n),function(e,t){if(!e)return;if(e.hv=t.hv=[RL(t,["left","right"]),RL(t,["top","bottom"])],"group"===e.type){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(r[t],n))},this);for(var l=r.length-1;l>=0;l--)null==r[l]?r.splice(l,1):delete r[l].$action},t.prototype._flatten=function(e,t,n){W(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;"group"===e.type&&i&&this._flatten(i,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(qd),OL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(){this._elMap=Se()},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,i=this.group;W(t,function(t){var r=no(t.id,null),o=null!=r?n.get(r):null,a=no(t.parentId,null),s=null!=a?n.get(a):i,l=t.type,u=t.style;"text"===l&&u&&t.hv&&t.hv[1]&&(u.textVerticalAlign=u.textBaseline=u.verticalAlign=u.align=null);var c=t.textContent,h=t.textConfig;if(u&&qP(u,l,!!h,!!c)){var d=XP(u,l,!0);!h&&d.textConfig&&(h=t.textConfig=d.textConfig),!c&&d.textContent&&(c=d.textContent)}var f=function(e){return e=Q({},e),W(["id","parentId","$action","hv","bounding","textContent"].concat(Rd),function(t){delete e[t]}),e}(t);var p=t.$action||"merge";"merge"===p?o?o.attr(f):LL(r,s,f,n):"replace"===p?(NL(o,n),LL(r,s,f,n)):"remove"===p&&NL(o,n);var A=n.get(r);if(A&&c)if("merge"===p){var g=A.getTextContent();g?g.attr(c):A.setTextContent(new el(c))}else"replace"===p&&A.setTextContent(new el(c));if(A){var v=ML(A);v.__ecGraphicWidthOption=t.width,v.__ecGraphicHeightOption=t.height,function(e,t,n){var i=tl(e).eventData;e.silent||e.ignore||i||(i=tl(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});i&&(i.info=n.info)}(A,e,t),sh({el:A,componentModel:e,itemName:A.name,itemTooltipOption:t.tooltip})}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,r=this._elMap,o=t.getWidth(),a=t.getHeight(),s=0;s<n.length;s++){if((f=null!=(d=no((h=n[s]).id,null))?r.get(d):null)&&f.isGroup){var l=(p=f.parent)===i,u=ML(f),c=ML(p);u.__ecGraphicWidth=wr(u.__ecGraphicWidthOption,l?o:c.__ecGraphicWidth)||0,u.__ecGraphicHeight=wr(u.__ecGraphicHeightOption,l?a:c.__ecGraphicHeight)||0}}for(s=n.length-1;s>=0;s--){var h,d,f;if(f=null!=(d=no((h=n[s]).id,null))?r.get(d):null){var p=f.parent;c=ML(p);Vd(f,h,p===i?{width:o,height:a}:{width:c.__ecGraphicWidth,height:c.__ecGraphicHeight},null,{hv:h.hv,boundingMode:h.bounding})}}},t.prototype._clear=function(){var e=this._elMap;e.each(function(t){NL(t,e)}),this._elMap=Se()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(RA);function LL(e,t,n,i){var r=n.type;var o=Te(DL,r)?DL[r]:Hc(r);var a=new o(n);t.add(a),i.set(e,a),ML(a).__ecGraphicId=e}function NL(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse(function(e){NL(e,t)}),t.removeKey(ML(e).__ecGraphicId),n.remove(e))}function RL(e,t){var n;return W(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}var UL=["x","y","radius","angle","single"],QL=["cartesian2d","polar","singleAxis"];function HL(e){return e+"Axis"}function jL(e,t){var n,i=Se(),r=[],o=Se();e.eachComponent({mainType:"dataZoom",query:t},function(e){o.get(e.uid)||s(e)});do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis(function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)}),t}(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),r.push(e),e.eachTargetAxis(function(e,t){(i.get(e)||i.set(e,[]))[t]=!0})}return r}function VL(e){var t=e.ecModel,n={infoList:[],infoMap:Se()};return e.eachTargetAxis(function(e,i){var r=t.getComponent(HL(e),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}}),n}var zL=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}();function $L(e){var t={};return W(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var GL=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 g(t,e),t.prototype.init=function(e,t,n){var i=$L(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=$L(e);R(this.option,e,!0),R(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;W([["start","startValue"],["end","endValue"]],function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Se();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 W(UL,function(n){var i=this.getReferringComponents(HL(n),ho);if(i.specified){t=!0;var r=new zL;W(i.models,function(e){r.add(e.componentIndex)}),e.set(n,r)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var r="vertical"===t?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}i&&o(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function o(t,n){var r=t[0];if(r){var o=new zL;if(o.add(r.componentIndex),e.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",co).models[0];a&&W(t,function(e){r.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",co).models[0]&&o.add(e.componentIndex)})}}}i&&W(UL,function(t){if(i){var r=n.findComponents({mainType:HL(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new zL;o.add(r[0].componentIndex),e.set(t,o),i=!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");W([["start","startValue"],["end","endValue"]],function(i,r){var o=null!=e[i[0]],a=null!=e[i[1]];o&&!a?t[r]="percent":!o&&a?t[r]="value":n?t[r]=n[r]:o&&(t[r]="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(HL(t),n))},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,i){W(n.indexList,function(n){e.call(t,i,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(HL(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;W([["start","startValue"],["end","endValue"]],function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;W(["start","startValue","end","endValue"],function(n){t[n]=e[n]})},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),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}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={zlevel:0,z:4,filterMode:"filter",start:0,end:100},t}(qd),WL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="dataZoom.select",t}(GL),KL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(RA),YL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="dataZoom.select",t}(KL),qL=W,XL=Cr;var JL=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,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 V(QL,t)>=0}(t)){var n=HL(this._dimName),i=t.getReferringComponents(n,co).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return N(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];qL(["start","end"],function(l,u){var c=e[l],h=e[l+"Value"];"percent"===r[u]?(null==c&&(c=o[u]),h=i.parse(br(c,o,n))):(t=!0,c=br(h=null==h?n[u]:i.parse(h),n,o)),s[u]=h,a[u]=c}),XL(s),XL(a);var l=this._minMaxSpan;function u(e,t,n,r,o){var a=o?"Span":"ValueSpan";SI(0,e,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)t[s]=br(e[s],n,r,!0),o&&(t[s]=i.parse(t[s]))}return t?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var i=[1/0,-1/0];qL(n,function(e){!function(e,t,n){t&&W(Ib(t,n),function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])})}(i,e.getData(),t)});var r=e.getAxisModel(),o=bb(r.axis.scale,r,i).calculate();return[o.min,o.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,i=this.getTargetSeriesModels(),r=e.get("filterMode"),o=this._valueWindow;"none"!==r&&qL(i,function(e){var t=e.getData(),i=t.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=t.getStore(),s=K(i,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,r,l=0;l<i.length;l++){var u=a.get(s[l],e),c=!isNaN(u),h=u<o[0],d=u>o[1];if(c&&!h&&!d)return!0;c&&(r=!0),h&&(t=!0),d&&(n=!0)}return r&&t&&n})}else qL(i,function(n){if("empty"===r)e.setData(t=t.map(n,function(e){return function(e){return e>=o[0]&&e<=o[1]}(e)?e:NaN}));else{var i={};i[n]=o,t.selectRange(i)}});qL(i,function(e){t.setApproximateExtent(o,e)})}})}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;qL(["min","max"],function(i){var r=t.get(i+"Span"),o=t.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=br(n[0]+o,n,[0,100],!0):null!=r&&(o=br(r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=Br(n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}(),ZL={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r){var o=e.getComponent(HL(i),r);t(i,r,o,n)})})}t(function(e,t,n,i){n.__dzAxisProxy=null});var n=[];t(function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new JL(t,i,o,e),n.push(r.__dzAxisProxy))});var i=Se();return W(n,function(e){W(e.getTargetSeriesModels(),function(e){i.set(e.uid,e)})}),i},overallReset:function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};var eN=!1;function tN(e){eN||(eN=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,ZL),function(e){e.registerAction("dataZoom",function(e,t){W(jL(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function nN(e){e.registerComponentModel(WL),e.registerComponentView(YL),tN(e)}var iN=function(){return function(){}}(),rN={};function oN(e,t){rN[e]=t}function aN(e){return rN[e]}var sN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;W(this.option.feature,function(e,n){var i=aN(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),R(e,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,zlevel:0,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}(qd);function lN(e,t){var n=Cd(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new js({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1})}var uN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(e,t,n,i){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),a=e.get("feature")||{},s=this._features||(this._features={}),l=[];W(a,function(e,t){l.push(t)}),new jy(this._featureNames||[],l).add(u).update(u).remove(ee(u,null)).execute(),this._featureNames=l,function(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=jd(i,o,r);Hd(t.get("orient"),e,t.get("itemGap"),a.width,a.height),Vd(e,i,o,r)}(r,e,n),r.add(lN(r.getBoundingRect(),e)),r.eachChild(function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.states.emphasis;if(l&&!ne(l)&&t){var u=l.style||(l.style={}),c=Gi(t,el.makeFont(u)),h=e.x+r.x,d=!1;e.y+r.y+o+c.height>n.getHeight()&&(a.position="top",d=!0);var f=d?-5-c.height:o+8;h+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):h-c.width/2<0&&(a.position=[0,f],u.align="left")}})}function u(u,c){var h,d=l[u],f=l[c],p=a[d],A=new Oh(p,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===d&&(p.title=i.newTitle),d&&!f){if(function(e){return 0===e.indexOf("my")}(d))h={onclick:A.option.onclick,featureName:d};else{var g=aN(d);if(!g)return;h=new g}s[d]=h}else if(!(h=s[f]))return;h.uid=Nh("toolbox-feature"),h.model=A,h.ecModel=t,h.api=n;var v=h instanceof iN;d||!f?!A.get("show")||v&&h.unusable?v&&h.remove&&h.remove(t,n):(!function(i,a,s){var l,u,c=i.getModel("iconStyle"),h=i.getModel(["emphasis","iconStyle"]),d=a instanceof iN&&a.getIcons?a.getIcons():i.get("icon"),f=i.get("title")||{};"string"==typeof d?(l={})[s]=d:l=d;"string"==typeof f?(u={})[s]=f:u=f;var p=i.iconPaths={};W(l,function(s,l){var d=ih(s,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(c.getItemStyle());var f=d.ensureState("emphasis");f.style=h.getItemStyle();var A=new el({style:{text:u[l],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});d.setTextContent(A),sh({el:d,componentModel:e,itemName:l,formatterParamsExtra:{title:u[l]}}),d.__title=u[l],d.on("mouseover",function(){var t=h.getItemStyle(),n="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";A.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),d.setTextConfig({position:h.get("textPosition")||n}),A.ignore=!e.get("showTitle"),Ol(this)}).on("mouseout",function(){"emphasis"!==i.get(["iconStatus",l])&&Ll(this),A.hide()}),("emphasis"===i.get(["iconStatus",l])?Ol:Ll)(d),r.add(d),d.on("click",Z(a.onclick,a,t,n,l)),p[l]=d})}(A,h,d),A.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?Ol:Ll)(i[e])},h instanceof iN&&h.render&&h.render(A,t,n,i)):v&&h.dispose&&h.dispose(t,n)}},t.prototype.updateView=function(e,t,n,i){W(this._features,function(e){e instanceof iN&&e.updateView&&e.updateView(e.model,t,n,i)})},t.prototype.remove=function(e,t){W(this._features,function(n){n instanceof iN&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){W(this._features,function(n){n instanceof iN&&n.dispose&&n.dispose(e,t)})},t.type="toolbox",t}(RA),cN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=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")});if("function"!=typeof MouseEvent||!_.browser.newEdge&&(_.browser.ie||_.browser.edge))if(window.navigator.msSaveOrOpenBlob||r){var s=a.split(","),l=s[0].indexOf("base64")>-1,u=r?decodeURIComponent(s[1]):s[1];l&&(u=window.atob(u));var c=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var h=u.length,d=new Uint8Array(h);h--;)d[h]=u.charCodeAt(h);var f=new Blob([d]);window.navigator.msSaveOrOpenBlob(f,c)}else{var p=document.createElement("iframe");document.body.appendChild(p);var A=p.contentWindow,g=A.document;g.open("image/svg+xml","replace"),g.write(u),g.close(),A.focus(),g.execCommand("SaveAs",!0,c),document.body.removeChild(p)}}else{var v=n.get("lang"),m='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(v&&v[0]||"")+'" /></body>',y=window.open();y.document.write(m),y.document.title=i}else{var b=document.createElement("a");b.download=i+"."+o,b.target="_blank",b.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(w)}},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}(iN);cN.prototype.unusable=!_.canvasSupported;var hN=cN,dN=[["line","bar"],["stack"]],fN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return W(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 i=this.model,r=i.get(["seriesIndex",n]);if(pN[n]){var o,a={series:[]};W(dN,function(e){V(e,n)>=0&&W(e,function(e){i.setIconStatus(e,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},function(e){var t=e.subType,r=e.id,o=pN[n](t,r,e,i);o&&(H(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=e.getReferringComponents(u,co).models[0].componentIndex;a[u]=a[u]||[];for(var h=0;h<=c;h++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(o=R({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},t}(iN),pN={line:function(e,t,n,i){if("bar"===e)return R({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return R({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var r="__ec_magicType_stack__"===n.get("stack");if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),R({id:t,stack:r?"":"__ec_magicType_stack__"},i.get(["option","stack"])||{},!0)}};Cy({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var AN=fN,gN=new Array(60).join("-"),vN="\t";function mN(e){var t,n,i,r=function(e){var t={},n=[],i=[];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 a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}}),{seriesGroupByCategoryAxis:t,other:n,meta:i}}(e);return{value:q([(n=r.seriesGroupByCategoryAxis,i=[],W(n,function(e,t){var n=e.categoryAxis,r=e.valueAxis.dim,o=[" "].concat(K(e.series,function(e){return e.name})),a=[n.model.getCategories()];W(e.series,function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(r),function(e){return e}))});for(var s=[o.join(vN)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(vN))}i.push(s.join("\n"))}),i.join("\n\n"+gN+"\n\n")),(t=r.other,K(t,function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,function(){for(var e=arguments.length,r=arguments[e-1],o=t.getName(r),a=0;a<e-1;a++)i[a]=arguments[a];n.push((o?o+vN:"")+i.join(vN))}),n.join("\n")}).join("\n\n"+gN+"\n\n"))],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join("\n\n"+gN+"\n\n"),meta:r.meta}}function yN(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var _N=new RegExp("["+vN+"]+","g");function bN(e,t){var n={series:[]};return W(e.split(new RegExp("\n*"+gN+"\n*","g")),function(e,i){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(vN)>=0)return!0}(e)){var r=function(e){for(var t=e.split(/\n+/g),n=[],i=K(yN(t.shift()).split(_N),function(e){return{name:e,data:[]}}),r=0;r<t.length;r++){var o=yN(t[r]).split(_N);n.push(o.shift());for(var a=0;a<o.length;a++)i[a]&&(i[a].data[r]=o[a])}return{series:i,categories:n}}(e),o=t[i],a=o.axisDim+"Axis";o&&(n[a]=n[a]||[],n[a][o.axisIndex]={data:r.categories},n.series=n.series.concat(r.series))}else{r=function(e){for(var t=e.split(/\n+/g),n=yN(t.shift()),i=[],r=0;r<t.length;r++){var o=yN(t[r]);if(o){var a=o.split(_N),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}(e);n.series.push(r)}}),n}var wN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.onclick=function(e,t){var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin: 10px 20px;",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="display:block;width:100%;overflow:auto;";var u=i.get("optionToContent"),c=i.get("contentToOption"),h=mN(e);if("function"==typeof u){var d=u(t.getOption());"string"==typeof d?s.innerHTML=d:ue(d)&&s.appendChild(d)}else s.appendChild(l),l.readOnly=i.get("readOnly"),l.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",l.style.color=i.get("textColor"),l.style.borderColor=i.get("textareaBorderColor"),l.style.backgroundColor=i.get("textareaColor"),l.value=h.value;var f=h.meta,p=document.createElement("div");p.style.cssText="position:absolute;bottom:0;left:0;right:0;";var A="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",g=document.createElement("div"),v=document.createElement("div");A+=";background-color:"+i.get("buttonColor"),A+=";color:"+i.get("buttonTextColor");var m=this;function y(){n.removeChild(r),m._dom=null}_t(g,"click",y),_t(v,"click",function(){if(null==c&&null!=u||null!=c&&null==u)y();else{var e;try{e="function"==typeof c?c(s,t.getOption()):bN(l.value,f)}catch(e){throw y(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),y()}}),g.innerHTML=a[1],v.innerHTML=a[2],v.style.cssText=A,g.style.cssText=A,!i.get("readOnly")&&p.appendChild(v),p.appendChild(g),r.appendChild(o),r.appendChild(s),r.appendChild(p),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},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}(iN);Cy({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];W(e.newOption.series,function(e){var i=t.getSeriesByName(e.name)[0];if(i){var r=i.get("data");n.push({name:e.name,data:function(e,t){return K(e,function(e,n){var i=t&&t[n];if(ae(i)&&!te(i)){ae(e)&&!te(e)||(e={value:e});var r=null!=i.name&&null==e.name;return e=H(e,i),r&&delete e.name,e}return e})}(e.data,r)})}else n.push(Q({type:"scatter"},e))}),t.mergeOption(H({series:n},e.newOption))});var xN=wN,CN=W,SN=ao();function kN(e){var t=SN(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var BN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.onclick=function(e,t){!function(e){SN(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}(iN);Cy({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var TN=BN,EN=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],IN=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=DN(t,e);W(PN,function(e,t){(!n||!n.include||V(n.include,t)>=0)&&e(r,i._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=LN[e.brushType](0,n,t);e.__rangeOffset={offset:RN[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){W(e,function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&W(i.coordSyses,function(i){var r=LN[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)})},this)},e.prototype.setInputRanges=function(e,t){W(e,function(e){var n,i,r,o,a,s=this.findTargetInfo(e,t);if(e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var l=LN[e.brushType](0,s.coordSys,e.coordRange),u=e.__rangeOffset;e.range=u?RN[e.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=QN(n),o=QN(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}},this)},e.prototype.makePanelOpts=function(e,t){return K(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:EM(i),isTargetByCursor:MM(i,e,n.coordSysModel),getLinearBrushOtherExtent:IM(i)}})},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&V(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=DN(t,e),r=0;r<n.length;r++){var o=n[r],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<FN.length;s++)if(FN[s](i,o))return o}return!0},e}();function MN(e){return e[0]>e[1]&&e.reverse(),e}function DN(e,t){return lo(e,t,{includeMainTypes:EN})}var PN={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,o=Se(),a={},s={};(n||i||r)&&(W(n,function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0}),W(i,function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0}),W(r,function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0}),o.each(function(e){var r=[];W(e.coordinateSystem.getCartesians(),function(e,t){(V(n,e.getAxis("x").model)>=0||V(i,e.getAxis("y").model)>=0)&&r.push(e)}),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:r[0],coordSyses:r,getPanelRect:ON.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){W(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:ON.geo})})}},FN=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],ON={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(qc(e)),t}},LN={lineX:ee(NN,0),lineY:ee(NN,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[MN([r[0],o[0]]),MN([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:K(n,function(n){var o=e?t.pointToData(n,i):t.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}),xyMinMax:r}}};function NN(e,t,n,i){var r=n.getAxis(["x","y"][e]),o=MN(K([0,1],function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))})),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var RN={lineX:ee(UN,0),lineY:ee(UN,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 K(e,function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]})}};function UN(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function QN(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var HN,jN,VN=IN,zN=W,$N=Wr+"toolbox-dataZoom_",GN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new TM(n.getZr()),this._brushController.on("brush",Z(this._onBrush,this)).mount()),function(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive);n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new VN(KN(e),t,{include:["grid"]}).makePanelOpts(r,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,i,n),function(e,t){e.setIconStatus("back",function(e){return kN(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){WN[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={},i=this.ecModel;this._brushController.updateCovers([]),new VN(KN(this.model),i,{include:["grid"]}).matchOutputRanges(t,i,function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(r("x",n,t[0]),r("y",n,t[1])):r({lineX:"x",lineY:"y"}[i],n,t)}}),function(e,t){var n=kN(e);CN(t,function(t,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(t)}(i,n),this._dispatchZoomAction(n)}function r(e,t,r){var o=t.getAxis(e),a=o.model,s=function(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(e,t.componentIndex)&&(i=n)}),i}(e,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=SI(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];zN(e,function(e,n){t.push(N(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}(iN),WN={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=kN(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return CN(n,function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n]){i[n]=e;break}}),i}(this.ecModel))}};function KN(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}HN="dataZoom",jN=function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=lo(e,KN(i));return zN(o.xAxisModels,function(e){return a(e,"xAxis","xAxisIndex")}),zN(o.yAxisModels,function(e){return a(e,"yAxis","yAxisIndex")}),r}function a(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:$N+t+o};a[n]=o,r.push(a)}},ye(null==vf.get(HN)&&jN),vf.set(HN,jN);var YN=GN;var qN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={zlevel:0,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}(qd);function XN(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function JN(e){if(_.domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}var ZN=JN(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function eR(e,t){if(!e)return t;t=xd(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var tR=eR(JN(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),nR=eR(ZN,"transform"),iR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(_.transform3dSupported?"will-change:transform;":"");function rR(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!_.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=_.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+nR+":"+a+";":[["top",0],["left",0],[ZN,a]]}function oR(e,t,n){var i=[],r=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),h=wA(e,"html"),d=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+d),t&&r&&i.push(function(e,t){var n=" "+e/2+"s cubic-bezier(0.23,1,0.32,1)",i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s cubic-bezier(0.23,1,0.32,1)",i+=_.transformSupported?","+nR+n:",left"+n+",top"+n),tR+":"+i}(r,n)),o&&(_.canvasSupported?i.push("background-color:"+o):(i.push("background-color:#"+mn(o)),i.push("filter:alpha(opacity=70)"))),W(["width","color","radius"],function(t){var n="border-"+t,r=xd(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))}),i.push(function(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return r&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),W(["decoration","align"],function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)}),t.join(";")}(c)),null!=h&&i.push("padding:"+Cd(h).join("px ")+"px"),i.join(";")+";"}function aR(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&function(e,t,n,i,r){ht(ct,t,i,r,!0)&&ht(e,n,ct[0],ct[1])}(e,a,document.body,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var sR=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,_.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;aR(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler;yt(r.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){var t,n,i,r=this._container,o=(n="position",(i=(t=r).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t))?n?i[n]:i:null),a=r.style;"absolute"!==a.position&&"absolute"!==o&&(a.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,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=iR+oR(e,!this._firstShow,this._longHide)+rR(r[0],r[1],!0)+"border-color:"+Od(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var a="";if(ie(r)&&"item"===n.get("trigger")&&!XN(n)&&(a=function(e,t,n){if(!ie(n)||"inside"===n)return"";var i=e.get("backgroundColor"),r=e.get("borderWidth");t=Od(t);var o,a,s=o="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(r),6),u="",c=nR+":";V(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,d=l+r,f=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),p=t+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;",(u+=";"+s+":-"+Math.round(100*((f-Math.SQRT2*r)/2+Math.SQRT2*r-(f-d)/2))/100+"px")+";"+c+";","border-bottom:"+p,"border-right:"+p,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),ie(e))o.innerHTML=e+a;else if(e){o.innerHTML="",te(e)||(e=[e]);for(var s=0;s<e.length;s++)ue(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}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(aR(n,this._zr,this._appendToBody,e,t),null!=n[0]&&null!=n[1]){var i=this.el.style;W(rR(n[0],n[1]),function(e){i[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,t=this.el.style;t.visibility="hidden",t.opacity="0",_.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();function lR(e){return Math.max(0,e)}function uR(e){var t=lR(e.shadowBlur||0),n=lR(e.shadowOffsetX||0),i=lR(e.shadowOffsetY||0);return{left:lR(t-n),right:lR(t+n),top:lR(t-i),bottom:lR(t+i)}}function cR(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var hR=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),cR(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(e,t,n,i,r){ae(e)&&$r(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new el({style:{rich:t.richTextStyles,text:e,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:i,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:o.get("textShadowColor"),textShadowBlur:o.get("textShadowBlur")||0,textShadowOffsetX:o.get("textShadowOffsetX")||0,textShadowOffsetY:o.get("textShadowOffsetY")||0,fill:n.get(["textStyle","color"]),padding:wA(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el);var a=this;this.el.on("mouseover",function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0}),this.el.on("mouseout",function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=uR(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 i=this._styleCoord;cR(i,this._zr,e,t),e=i[0],t=i[1];var r=n.style,o=lR(r.borderWidth||0),a=uR(r);n.x=e+o+a.left,n.y=t+o+a.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(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}(),dR=Z,fR=W,pR=wr,AR=new js({shape:{x:-1,y:-1,width:2,height:2}});function gR(e,t,n){var i,r=t.ecModel;n?(i=new Oh(n,r,r),i=new Oh(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Oh&&(a=a.get("tooltip",!0)),ie(a)&&(a={formatter:a}),a&&(i=new Oh(a,i,r)))}return i}function vR(e,t){return e.dispatchAction||Z(t.dispatchAction,t)}function mR(e){return"center"===e||"middle"===e}var yR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(e,t){if(!_.node){var n,i=e.getComponent("tooltip"),r=i.get("renderMode");this._renderMode="auto"===(n=r)?_.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===this._renderMode?new hR(t):new sR(t.getDom(),t,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(e,t,n){if(!_.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._alwaysShowContent=e.get("alwaysShowContent");var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._updatePosition="html"===this._renderMode?JA(dR(this._doUpdatePosition,this),50):this._doUpdatePosition}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");uO("itemTooltip",this._api,dR(function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!_.node){var r=vR(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(e,t,n){var i=uo(e).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o,a=fo(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(n.getViewOfComponentModel(a).group.traverse(function(t){var n=tl(t).tooltipConfig;if(n&&n.name===e.name)return o=t,!0}),o)return{componentMainType:r,componentIndex:a.componentIndex,el:o}}(i,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=AR;l.x=i.x,l.y=i.y,l.update(),tl(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var u=pO(i,t),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},t.prototype.manuallyHideTip=function(e,t,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(vR(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s)if("axis"===gR([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,e);else if(n){var r,o;this._lastDataByCoordSys=null,Ng(n,function(e){return null!=tl(e).dataIndex?(r=e,!0):null!=tl(e).tooltipConfig?(o=e,!0):void 0},!0),r?this._showSeriesItemTooltip(e,r,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Z(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=gR([t.tooltipOption],i),a=this._renderMode,s=[],l=pA("section",{blocks:[],noHeader:!0}),u=[],c=new xA;fR(e,function(e){fR(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var r=YF(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),o=pA("section",{header:r,noHeader:!_e(r),sortBlocks:!0,blocks:[]});l.blocks.push(o),W(e.seriesDataIndices,function(l){var h=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=h.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=Bb(t.axis,{value:i}),f.axisValueLabel=r,f.marker=c.makeTooltipMarker("item",Od(f.color),a);var p=Mp(h.formatTooltip(d,!0,null));p.markupFragment&&o.blocks.push(p.markupFragment),p.markupText&&u.push(p.markupText),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var h=t.position,d=o.get("order"),f=vA(l,c,a,d,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var p="richText"===a?"\n\n":"<br/>",A=u.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,A,s,Math.random()+"",r[0],r[1],h,null,c)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=tl(t),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=e.positionDefault,f=gR([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var A=s.getDataParams(l,u),g=new xA;A.marker=g.makeTooltipMarker("item",Od(A.color),h);var v=Mp(s.formatTooltip(l,!1,u)),m=f.get("order"),y=v.markupFragment?vA(v.markupFragment,g,h,m,i.get("useUTC"),f.get("textStyle")):v.markupText,_="item_"+s.name+"_"+l;this._showOrMove(f,function(){this._showTooltipContent(f,y,A,_,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i=tl(t),r=i.tooltipConfig.option||{};if(ie(r)){r={content:r,formatter:r}}var o=[r],a=this._ecModel.getComponent(i.componentMainType,i.componentIndex);a&&o.push(a),o.push({formatter:r.content});var s=e.positionDefault,l=gR(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",h=new xA;this._showOrMove(l,function(){var n=N(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,e.offsetX,e.offsetY,e.position,t,h)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent,c=e.get("formatter");a=a||e.get("position");var h=t,d=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")).color;if(c)if(ie(c)){var f=e.ecModel.get("useUTC"),p=te(n)?n[0]:n;h=c,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(h=rd(p.axisValue,h,f)),h=Md(h,n,!0)}else if(ne(c)){var A=dR(function(t,i){t===this._ticket&&(u.setContent(i,l,e,d,a),this._updatePosition(e,a,r,o,u,n,s))},this);this._ticket=i,h=c(n,i,A)}else h=c;u.setContent(h,l,e,d,a),u.show(e,d),this._updatePosition(e,a,r,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||te(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:te(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._doUpdatePosition=function(e,t,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=r.getSize(),c=e.get("align"),h=e.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),ne(t)&&(t=t([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),te(t))n=pR(t[0],s),i=pR(t[1],l);else if(ae(t)){var f=t;f.width=u[0],f.height=u[1];var p=jd(f,{width:s,height:l});n=p.x,i=p.y,c=null,h=null}else if(ie(t)&&a){var A=function(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-r/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-r/2,l=t.y+c+a;break;case"left":s=t.x-r-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}(t,d,u,e.get("borderWidth"));n=A[0],i=A[1]}else{A=function(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(e+l+o+2>i?e-=l+o:e+=o);null!=a&&(t+u+a>r?t-=u+a:t+=a);return[e,t]}(n,i,r,s,l,c?null:20,h?null:20);n=A[0],i=A[1]}if(c&&(n-=mR(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=mR(h)?u[1]/2:"bottom"===h?u[1]:0),XN(e)){A=function(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,i,r,s,l);n=A[0],i=A[1]}r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&fR(n,function(n,o){var a=n.dataByAxis||[],s=(e[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&fR(a,function(e,n){var o=s[n]||{},a=e.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===l.length)&&fR(a,function(e,t){var n=l[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),i&&W(e.seriesDataIndices,function(e){var n=e.seriesIndex,o=t[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){_.node||(this._tooltipContent.dispose(),dO("itemTooltip",t))},t.type="tooltip",t}(RA);var _R=["rect","polygon","keep","clear"];function bR(e,t){var n=Kr(e?e.brush:[]);if(n.length){var i=[];W(n,function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))});var r=e&&e.toolbox;te(r)&&(r=r[0]),r||(r={feature:{}},e.toolbox=[r]);var o,a,s=r.feature||(r.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,i),a={},W(o=u,function(e){a[e]=1}),o.length=0,W(a,function(e,t){o.push(t)}),t&&!u.length&&u.push.apply(u,_R)}}var wR=W;function xR(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function CR(e,t,n){var i={};return wR(t,function(t){var r,o=i[t]=((r=function(){}).prototype.__hidden=r.prototype,new r);wR(e[t],function(e,i){if(TT.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),o[i]=new TT(r),"opacity"===i&&((r=N(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new TT(r))}})}),i}function SR(e,t,n){var i;W(n,function(e){t.hasOwnProperty(e)&&xR(t[e])&&(i=!0)}),i&&W(n,function(n){t.hasOwnProperty(n)&&xR(t[n])?e[n]=N(t[n]):delete e[n]})}var kR={lineX:BR(0),lineY:BR(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&qv(n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var r=e.x,o=e.y,a=e.width,s=e.height,l=i[0];return!!(qv(i,r,o)||qv(i,r+a,o)||qv(i,r,o+s)||qv(i,r+a,o+s)||Qi.create(e).contain(l[0],l[1])||rh(r,o,r+a,o,i)||rh(r,o,r,o+s,i)||rh(r+a,o,r+a,o+s,i)||rh(r,o+s,r+a,o+s,i))||void 0}}};function BR(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var r=i.range;return TR(t[e],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),TR(s[0],a)||TR(s[1],a)||TR(a[0],s)||TR(a[1],s)}}}}function TR(e,t){return t[0]<=e&&e<=t[1]}var ER=["inBrush","outOfBrush"],IR="__ecBrushSelect",MR="__ecInBrushSelectEvent";function DR(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new VN(t.option,e)).setInputRanges(t.areas,e)})}function PR(e,t,n){var i,r,o=[];e.eachComponent({mainType:"brush"},function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})}),DR(e),e.eachComponent({mainType:"brush"},function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:N(t.areas),selected:[]};o.push(a);var s=t.option,l=s.brushLink,u=[],c=[],h=[],d=!1;n||(i=s.throttleType,r=s.throttleDelay);var f=K(t.areas,function(e){var t=LR[e.brushType],n=H({boundingRect:t?t(e):void 0},e);return n.selectors=function(e){var t=e.brushType,n={point:function(i){return kR[t].point(i,n,e)},rect:function(i){return kR[t].rect(i,n,e)}};return n}(n),n}),p=CR(t.option,ER,function(e){e.mappingMethod="fixed"});function A(e){return"all"===l||!!u[e]}function g(e){return!!e.length}te(l)&&W(l,function(e){u[e]=1}),e.eachSeries(function(n,i){var r=h[i]=[];"parallel"===n.subType?function(e,t){var n=e.coordinateSystem;d=d||n.hasAxisBrushed(),A(t)&&n.eachActiveState(e.getData(),function(e,t){"active"===e&&(c[t]=1)})}(n,i):function(n,i,r){if(!n.brushSelector||function(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(te(n)?V(n,t)<0:t!==n)}(t,i))return;if(W(f,function(i){t.brushTargetManager.controlSeries(i,n,e)&&r.push(i),d=d||g(r)}),A(i)&&g(r)){var o=n.getData();o.each(function(e){OR(n,r,o,e)&&(c[e]=1)})}}(n,i,r)}),e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var i=h[t],r=e.getData(),o=A(t)?function(e){return c[e]?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return OR(e,i,r,t)?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"};(A(t)?d:g(i))&&function(e,t,n,i,r,o){var a,s={};function l(e){return Dg(n,a,e)}function u(e,t){Fg(n,a,e,t)}function c(e,c){a=null==o?e:c;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=i.call(r,e),f=t[d],p=s[d],A=0,g=p.length;A<g;A++){var v=p[A];f[v]&&f[v].applyVisual(e,l,u)}}W(e,function(e){var n=TT.prepareVisualTypes(t[e]);s[e]=n}),null==o?n.each(c):n.each([o],c)}(ER,p,r,o)})}),function(e,t,n,i,r){if(!r)return;var o=e.getZr();if(o[MR])return;o[IR]||(o[IR]=FR);ZA(o,IR,n,t)(e,i)}(t,i,r,o,n)}function FR(e,t){if(!e.isDisposed()){var n=e.getZr();n[MR]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[MR]=!1}}function OR(e,t,n,i){for(var r=0,o=t.length;r<o;r++){var a=t[r];if(e.brushSelector(i,n,a.selectors,a))return!0}}var LR={rect:function(e){return NR(e.range)},polygon:function(e){for(var t,n=e.range,i=0,r=n.length;i<r;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&NR(t)}};function NR(e){return new Qi(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var RR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new TM(t.getZr())).on("brush",Z(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){DR(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$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:N(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:N(n),$from:t})},t.type="brush",t}(RA);function UR(e,t){return R({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Oh(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var QR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return g(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&SR(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=K(e,function(e){return UR(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=UR(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}(qd),HR=["rect","polygon","lineX","lineY","keep","clear"],jR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length}),this._brushType=i,this._brushMode=r,W(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"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 W(e.get("type",!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=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?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){return{show:!0,type:HR.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}(iN);var VR=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 g(t,e),t.type="title",t.defaultOption={zlevel:0,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}(qd),zR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=Ae(e.get("textBaseline"),e.get("textVerticalAlign")),l=new el({style:fh(r,{text:e.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),h=new el({style:fh(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),f=e.get("sublink"),p=e.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",function(){Ld(d,"_"+e.get("target"))}),f&&h.on("click",function(){Ld(f,"_"+e.get("subtarget"))}),tl(l).eventData=tl(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),c&&i.add(h);var A=i.getBoundingRect(),g=e.getBoxLayoutParams();g.width=A.width,g.height=A.height;var v=jd(g,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),A=i.getBoundingRect();var y=v.margin,_=e.getItemStyle(["color","opacity"]);_.fill=e.get("backgroundColor");var b=new js({shape:{x:A.x-y[3],y:A.y-y[0],width:A.width+y[1]+y[3],height:A.height+y[0]+y[2],r:e.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},t.type="title",t}(RA);var $R=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return g(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){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||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],W(n,function(t,n){var i,o=no(Xr(t),"");ae(t)?(i=N(t)).value=n:i=n,e.push(i),r.push(o)})):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new d_([{name:"value",type:o}],this)).initData(e,r)},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={zlevel:0,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}(qd),GR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="timeline.slider",t.defaultOption=Rh($R.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}($R);$(GR,Ip.prototype);var WR=GR,KR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="timeline",t}(RA),YR=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return g(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Kb),qR=Math.PI,XR=ao();function JR(e,t,n,i,r,o){var a=t.get("color");r?(r.setColor(a),n.add(r),o&&o.onUpdate(r)):((r=Yg(e.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r));var s=t.getItemStyle(["color"]);r.setStyle(s),i=R({rectHover:!0,z2:100},i,!0);var l=qg(e.get("symbolSize"));i.scaleX=l[0]/2,i.scaleY=l[1]/2;var u=Xg(e.get("symbolOffset"),l);u&&(i.x=(i.x||0)+u[0],i.y=(i.y||0)+u[1]);var c=e.get("symbolRotate");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function ZR(e,t,n,i,r,o){if(!e.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var eU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(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 i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){return pA("nameValue",{noName:!0,value:a.scale.getLabel({value:e})})},W(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](i,r,a,e)},this),this._renderAxisLabel(i,o,a,e),this._position(i,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,i,r,o,a=e.get(["label","position"]),s=e.get("orient"),l=function(e,t){return jd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<t.getHeight()/2?"-":"+":l.x+l.width/2<t.getWidth()/2?"+":"-":ie(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:qR/2},d="vertical"===s?l.height:l.width,f=e.getModel("controlStyle"),p=f.get("show",!0),A=p?f.get("itemSize"):0,g=p?f.get("itemGap"):0,v=A+g,m=e.get(["label","rotate"])||0;m=m*qR/180;var y=f.get("position",!0),_=p&&f.get("showPlayBtn",!0),b=p&&f.get("showPrevBtn",!0),w=p&&f.get("showNextBtn",!0),x=0,C=d;"left"===y||"bottom"===y?(_&&(i=[0,0],x+=v),b&&(r=[x,0],x+=v),w&&(o=[C-A,0],C-=v)):(_&&(i=[C-A,0],C-=v),b&&(r=[0,0],x+=v),w&&(o=[C-A,0],C-=v));var S=[x,C];return e.get("inverse")&&S.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:h[s],labelRotation:m,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[s],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:S,controlSize:A,controlGap:g}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=[1,0,0,1,0,0],a=r.x,s=r.y+r.height;pi(o,o,[-a,-s]),Ai(o,o,-qR/2),pi(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=g(r),u=g(n.getBoundingRect()),c=g(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var f,p=e.labelPosOpt;null==p||ie(p)?(v(h,u,l,1,f="+"===p?0:1),v(d,c,l,1,1-f)):(v(h,u,l,1,f=p>=0?0:1),d[1]=h[1]+p);function A(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,A(n),A(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new L_({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new ab({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new U_}}(t,i);r.getTicks=function(){return n.mapArray(["value"],function(e){return{value:e}})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new YR("value",r,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new lr;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new rc({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Q({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new rc({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:H({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],W(a,function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:Z(r._changeTimeline,r,e.value)},d=JR(s,l,t,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Wl(d);var f=tl(d);s.get("tooltip")?(f.dataIndex=e.value,f.dataModel=i):f.dataIndex=f.dataModel=null,r._tickSymbols.push(d)})},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],W(a,function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new el({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:Z(r._changeTimeline,r,a),silent:!1,style:fh(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=fh(u),d.ensureState("progress").style=fh(c),t.add(d),Wl(d),XR(d).dataIndex=a,r._tickLabels.push(d)})}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(e,n,l,u){if(e){var c=qi(Ae(i.get(["controlStyle",n+"BtnSize"]),r),r),h=function(e,t,n,i){var r=i.style,o=ih(e.get(["controlStyle",t]),i||{},new Qi(n[0],n[1],n[2],n[3]));r&&o.setStyle(r);return o}(i,n+"Icon",[0,-c/2,c,c],{x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,t.add(h),Wl(h)}}c(e.nextBtnPosition,"next",Z(this._changeTimeline,this,u?"-":"+")),c(e.prevBtnPosition,"prev",Z(this._changeTimeline,this,u?"+":"-")),c(e.playPosition,l?"stop":"play",Z(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Z(s._handlePointerDrag,s),e.ondragend=Z(s._handlePointerDragend,s),ZR(e,s._progressLine,o,n,i,!0)},onUpdate:function(e){ZR(e,s._progressLine,o,n,i)}};this._currentPointer=JR(a,a,this._mainGroup,{},this._currentPointer,l)},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],i=Cr(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var r=this._findNearestTick(n),o=this.model;(t||r!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(r)},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 Xc(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-e);s<i&&(i=s,t=o)}),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",XR(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(KR);function tU(e){var t=e&&e.timeline;te(t)||(t=t?[t]:[]),W(t,function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};n[t]&&(e.axisType=n[t],delete e.type);if(nU(e),iU(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});iU(i,"position")||(i.position=e.controlPosition),"none"!==i.position||iU(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}W(e.data||[],function(e){ae(e)&&!te(e)&&(!iU(e,"value")&&iU(e,"name")&&(e.value=e.name),nU(e))})}(e)})}function nU(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};W(i,function(e,t){o[t]||iU(r,t)||(r[t]=e)}),n.label&&!iU(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function iU(e,t){return e.hasOwnProperty(t)}function rU(e,t){if(!e)return!1;for(var n=te(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}function oU(e){Yr(e,"label",["show"])}var aU=ao(),sU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return g(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(_.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,i){var r=this.mainType;n||t.eachSeries(function(e){var n=e.get(this.mainType,!0),o=aU(e)[r];n&&n.data?(o?o._mergeOption(n,t,!0):(i&&oU(n),W(n.data,function(e){e instanceof Array?(oU(e[0]),oU(e[1])):oU(e)}),Q(o=this.createMarkerModelFromSeries(n,this,t),{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),aU(e)[r]=o):aU(e)[r]=null},this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return pA("section",{header:this.name,blocks:[pA("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return aU(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(qd);$(sU,Ip.prototype);var lU=sU,uU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markPoint",t.defaultOption={zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(lU);function cU(e,t,n,i,r,o){var a=[],s=__(t,i)?t.getCalculationInfo("stackResultDimension"):i,l=gU(t,s,e),u=t.indicesOfNearest(s,l)[0];a[r]=t.get(n,u),a[o]=t.get(s,u);var c=t.get(i,u),h=Sr(t.get(i,u));return(h=Math.min(h,20))>=0&&(a[o]=+a[o].toFixed(h)),[a,c]}var hU={min:ee(cU,"min"),max:ee(cU,"max"),average:ee(cU,"average"),median:ee(cU,"median")};function dU(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!te(t.coord)&&i){var r=i.dimensions,o=fU(t,n,i,e);if((t=N(t)).type&&hU[t.type]&&o.baseAxis&&o.valueAxis){var a=V(r,o.baseAxis.dim),s=V(r,o.valueAxis.dim),l=hU[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else{for(var u=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],c=0;c<2;c++)hU[u[c]]&&(u[c]=gU(n,n.mapDimension(r[c]),u[c]));t.coord=u}}return t}function fU(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(function(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function pU(e,t){return!(e&&e.containData&&t.coord&&!function(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}(t))||e.containData(t.coord)}function AU(e,t){return e?function(e,n,i,r){return Op(r<2?e.coord&&e.coord[r]:e.value,t[r])}:function(e,n,i,r){return Op(e.value,t[r])}}function gU(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,function(e,t){isNaN(e)||(i+=e,r++)}),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var vU=ao(),mU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(){this.markerGroupMap=Se()},t.prototype.render=function(e,t,n){var i=this,r=this.markerGroupMap;r.each(function(e){vU(e).keep=!1}),t.eachSeries(function(e){var r=lU.getMarkerModelFromSeries(e,i.type);r&&i.renderSeries(e,r,t,n)}),r.each(function(e){!vU(e).keep&&i.group.remove(e.group)})},t.prototype.markKeep=function(e){vU(e).keep=!0},t.prototype.blurSeries=function(e){var t=this;W(e,function(e){var n=lU.getMarkerModelFromSeries(e,t.type);n&&n.getData().eachItemGraphicEl(function(e){e&&Nl(e)})})},t.type="marker",t}(RA);function yU(e,t,n){var i=t.coordinateSystem;e.each(function(r){var o,a=e.getItemModel(r),s=wr(a.get("x"),n.getWidth()),l=wr(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var u=e.get(i.dimensions[0],r),c=e.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(r,o)})}var _U=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=lU.getMarkerModelFromSeries(e,"markPoint");t&&(yU(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Vx),u=function(e,t,n){var i;i=e?K(e&&e.dimensions,function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Q(Q({},n),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}];var r=new d_(i,n),o=K(n.get("data"),ee(dU,t));e&&(o=q(o,ee(pU,e)));var a=AU(!!e,i);return r.initData(o,null,a),r}(r,e,t);t.setData(u),yU(t.getData(),e,i),u.each(function(e){var n=u.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(ne(i)||ne(r)||ne(o)||ne(s)){var c=t.getRawValue(e),h=t.getDataParams(e);ne(i)&&(i=i(c,h)),ne(r)&&(r=r(c,h)),ne(o)&&(o=o(c,h)),ne(s)&&(s=s(c,h))}var d=n.getModel("itemStyle").getItemStyle(),f=Pg(a,"color");d.fill||(d.fill=f),u.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(e){e.traverse(function(e){tl(e).dataModel=t})}),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(mU);var bU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={zlevel:0,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}(lU),wU=ao(),xU=function(e,t,n,i){var r,o=e.getData();if(te(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=pe(i.yAxis,i.xAxis);else{var u=fU(i,o,t,e);s=u.valueAxis,l=gU(o,b_(o,u.valueDataDim),a)}var c="x"===s.dim?0:1,h=1-c,d=N(i),f={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,f.coord[h]=1/0;var p=n.get("precision");p>=0&&"number"==typeof l&&(l=+l.toFixed(Math.min(p,20))),d.coord[c]=f.coord[c]=l,r=[d,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var A=[dU(e,r[0]),dU(e,r[1]),Q({},r[2])];return A[2].type=A[2].type||null,R(A[2],A[0]),R(A[2],A[1]),A};function CU(e){return!isNaN(e)&&!isFinite(e)}function SU(e,t,n,i){var r=1-e,o=i.dimensions[e];return CU(t[r])&&CU(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function kU(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(SU(1,n,i,e)||SU(0,n,i,e)))return!0}return pU(e,t[0])&&pU(e,t[1])}function BU(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=wr(s.get("x"),r.getWidth()),u=wr(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,h=e.get(c[0],t),d=e.get(c[1],t);o=a.dataToPoint([h,d])}if(aC(a,"cartesian2d")){var f=a.getAxis("x"),p=a.getAxis("y");c=a.dimensions;CU(e.get(c[0],t))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):CU(e.get(c[1],t))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var TU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=lU.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),r=wU(t).from,o=wU(t).to;r.each(function(t){BU(r,t,!0,e,n),BU(o,t,!1,e,n)}),i.each(function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new ME);this.group.add(l.group);var u=function(e,t,n){var i;i=e?K(e&&e.dimensions,function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Q(Q({},n),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}];var r=new d_(i,n),o=new d_(i,n),a=new d_([],n),s=K(n.get("data"),ee(xU,t,e,n));e&&(s=q(s,ee(kU,e)));var l=AU(!!e,i);return r.initData(K(s,function(e){return e[0]}),null,l),o.initData(K(s,function(e){return e[1]}),null,l),a.initData(K(s,function(e){return e[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,e,t),c=u.from,h=u.to,d=u.line;wU(t).from=c,wU(t).to=h,t.setData(d);var f=t.get("symbol"),p=t.get("symbolSize"),A=t.get("symbolRotate"),g=t.get("symbolOffset");function v(t,n,r){var o=t.getItemModel(n);BU(t,n,r,e,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Pg(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Ae(o.get("symbolOffset",!0),g[r?0:1]),symbolRotate:Ae(o.get("symbolRotate",!0),A[r?0:1]),symbolSize:Ae(o.get("symbolSize"),p[r?0:1]),symbol:Ae(o.get("symbol",!0),f[r?0:1]),style:s})}te(f)||(f=[f,f]),te(p)||(p=[p,p]),te(A)||(A=[A,A]),te(g)||(g=[g,g]),u.from.each(function(e){v(c,e,!0),v(h,e,!1)}),d.each(function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[c.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})}),l.updateData(d),u.line.eachItemGraphicEl(function(e,n){e.traverse(function(e){tl(e).dataModel=t})}),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(mU);var EU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(lU),IU=ao(),MU=function(e,t,n,i){var r=dU(e,i[0]),o=dU(e,i[1]),a=r.coord,s=o.coord;a[0]=pe(a[0],-1/0),a[1]=pe(a[1],-1/0),s[0]=pe(s[0],1/0),s[1]=pe(s[1],1/0);var l=U([{},r,o]);return l.coord=[r.coord,o.coord],l.x0=r.x,l.y0=r.y,l.x1=o.x,l.y1=o.y,l};function DU(e){return!isNaN(e)&&!isFinite(e)}function PU(e,t,n,i){var r=1-e;return DU(t[r])&&DU(n[r])}function FU(e,t){var n=t.coord[0],i=t.coord[1];return!!(aC(e,"cartesian2d")&&n&&i&&(PU(1,n,i)||PU(0,n,i)))||(pU(e,{coord:n,x:t.x0,y:t.y0})||pU(e,{coord:i,x:t.x1,y:t.y1}))}function OU(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=wr(s.get(n[0]),r.getWidth()),u=wr(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(n,t));else{var c=[f=e.get(n[0],t),p=e.get(n[1],t)];a.clampData&&a.clampData(c,c),o=a.dataToPoint(c,!0)}if(aC(a,"cartesian2d")){var h=a.getAxis("x"),d=a.getAxis("y"),f=e.get(n[0],t),p=e.get(n[1],t);DU(f)?o[0]=h.toGlobalCoord(h.getExtent()["x0"===n[0]?0:1]):DU(p)&&(o[1]=d.toGlobalCoord(d.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var LU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];var NU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=lU.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each(function(t){var r=K(LU,function(r){return OU(i,t,r,e,n)});i.setItemLayout(t,r),i.getItemGraphicEl(t).setShape("points",r)})}},this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new lr});this.group.add(l.group),this.markKeep(l);var u=function(e,t,n){var i,r;if(e){var o=K(e&&e.dimensions,function(e){var n=t.getData(),i=n.getDimensionInfo(n.mapDimension(e))||{};return Q(Q({},i),{name:e,ordinalMeta:null})});r=K(["x0","y0","x1","y1"],function(e,t){return{name:e,type:o[t%2].type}}),i=new d_(r,n)}else i=new d_(r=[{name:"value",type:"float"}],n);var a=K(n.get("data"),ee(MU,t,e,n));e&&(a=q(a,ee(FU,e)));var s=e?function(e,t,n,i){var o=e.coord[Math.floor(i/2)][i%2];return Op(o,r[i])}:function(e,t,n,i){return Op(e.value,r[i])};return i.initData(a,null,s),i.hasItemOption=!0,i}(r,e,t);t.setData(u),u.each(function(t){var n=K(LU,function(n){return OU(u,t,n,e,i)}),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",t)),o.parse(u.get("x1",t))],d=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];Cr(h),Cr(d);var f=!!(l[0]>h[1]||l[1]<h[0]||c[0]>d[1]||c[1]<d[0]);u.setItemLayout(t,{points:n,allClipped:f});var p=u.getItemModel(t).getModel("itemStyle").getItemStyle(),A=Pg(a,"color");p.fill||(p.fill=A,"string"==typeof p.fill&&(p.fill=Cn(p.fill,.4))),p.stroke||(p.stroke=A),u.setItemVisual(t,"style",p)}),u.diff(IU(l).data).add(function(e){var t=u.getItemLayout(e);if(!t.allClipped){var n=new Xu({shape:{points:t.points}});u.setItemGraphicEl(e,n),l.group.add(n)}}).update(function(e,n){var i=IU(l).data.getItemGraphicEl(n),r=u.getItemLayout(e);r.allClipped?i&&l.group.remove(i):(i?Bc(i,{shape:{points:r.points}},t,e):i=new Xu({shape:{points:r.points}}),u.setItemGraphicEl(e,i),l.group.add(i))}).remove(function(e){var t=IU(l).data.getItemGraphicEl(e);l.group.remove(t)}).execute(),u.eachItemGraphicEl(function(e,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");e.useStyle(u.getItemVisual(n,"style")),hh(e,dh(i),{labelFetcher:t,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:"string"==typeof r.fill?Cn(r.fill,1):"#000"}),Xl(e,i),Wl(e),tl(e).dataModel=t}),IU(l).data=u,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(mU);var RU=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 g(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),te(t)&&W(t,function(e,i){ie(e)&&(e={type:e}),t[i]=R(e,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}(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(a)),a.length?t=t.concat(a):r=!0}else r=!0;r&&io(i)&&t.push(i.name)}),this._availableNames=n;var i=K(this.get("data")||t,function(e){return"string"!=typeof e&&"number"!=typeof e||(e={name:e}),new Oh(e,this,this.ecModel)},this);this._data=i},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&W(this._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 e=this._data,t=this.option.selected;W(e,function(e){t[e.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;W(e,function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&V(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={zlevel:0,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}(qd),UU=ee,QU=W,HU=lr;function jU(e,t,n,i){$U(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),zU(e,t,n,i)}function VU(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 zU(e,t,n,i){VU(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function $U(e,t,n,i){VU(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}var GU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return g(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new HU),this.group.add(this._selectorGroup=new HU),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 i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),h=jd(l,u,c),d=this.layoutInner(e,r,h,i,a,s),f=jd(H({width:d.width,height:d.height},l),u,c);this.group.x=f.x-d.x,this.group.y=f.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=lN(d,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,i,r,o,a){var s=this.getContentGroup(),l=Se(),u=t.get("selectedMode"),c=[];n.eachRawSeries(function(e){!e.get("legendHoverLink")&&c.push(e.id)}),QU(t.getData(),function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new HU;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var f=d.getData(),p=f.getVisual("legendLineStyle")||{},A=f.getVisual("legendIcon"),g=f.getVisual("style");this._createItem(d,a,o,r,t,e,p,g,A,u).on("click",UU(jU,a,null,i,c)).on("mouseover",UU(zU,d.name,null,i,c)).on("mouseout",UU($U,d.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries(function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),d=s.getItemVisual(h,"style"),f=s.getItemVisual(h,"legendIcon"),p=An(d.fill);p&&0===p[3]&&(p[3]=.2,d.fill=Sn(p,"rgba")),this._createItem(n,a,o,r,t,e,{},d,f,u).on("click",UU(jU,null,a,i,c)).on("mouseover",UU(zU,null,a,i,c)).on("mouseout",UU($U,null,a,i,c)),l.set(a,!0)}},this);0}},this),r&&this._createSelector(r,t,i,o,a)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();QU(e,function(e){var i=e.type,r=new el({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r),hh(r,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),Wl(r)})},t.prototype._createItem=function(e,t,n,i,r,o,a,s,l,u){var c=e.visualDrawType,h=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(t),p=i.get("symbolRotate"),A=i.get("symbolKeepAspect"),g=i.get("icon"),v=function(e,t,n,i,r,o){function a(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),QU(e,function(n,i){"inherit"===e[i]&&(e[i]=t[i])})}var s=t.getModel("itemStyle").getItemStyle(),l=0===e.lastIndexOf("empty",0)?"fill":"stroke";s.decal=i.decal,"inherit"===s.fill&&(s.fill=i[r]);"inherit"===s.stroke&&(s.stroke=i[l]);"inherit"===s.opacity&&(s.opacity=("fill"===r?i:n).opacity);a(s,i);var u=t.getModel("lineStyle"),c=u.getLineStyle();if(a(c,n),"auto"===s.fill&&(s.fill=i.fill),"auto"===s.stroke&&(s.stroke=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),!o){var h=t.get("inactiveBorderWidth"),d=s[l];s.lineWidth="auto"===h?i.lineWidth>0&&d?2:0:s.lineWidth,s.fill=t.get("inactiveColor"),s.stroke=t.get("inactiveBorderColor"),c.stroke=u.get("inactiveColor"),c.lineWidth=u.get("inactiveWidth")}return{itemStyle:s,lineStyle:c}}(l=g||l||"roundRect",i,a,s,c,f),m=new HU,y=i.getModel("textStyle");if("function"!=typeof e.getLegendIcon||g&&"inherit"!==g){var _="inherit"===g&&e.getData().getVisual("symbol")?"inherit"===p?e.getData().getVisual("symbolRotate"):p:0;m.add(function(e){var t=e.icon||"roundRect",n=Yg(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:h,itemHeight:d,icon:l,iconRotate:_,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:A}))}else m.add(e.getLegendIcon({itemWidth:h,itemHeight:d,icon:l,iconRotate:p,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:A}));var b="left"===o?h+5:-5,w=o,x=r.get("formatter"),C=t;"string"==typeof x&&x?C=x.replace("{name}",null!=t?t:""):"function"==typeof x&&(C=x(t));var S=i.get("inactiveColor");m.add(new el({style:fh(y,{text:C,x:b,y:d/2,fill:f?y.getTextColor():S,align:w,verticalAlign:"middle"})}));var k=new js({shape:m.getBoundingRect(),invisible:!0}),B=i.getModel("tooltip");return B.get("show")&&sh({el:k,componentModel:r,itemName:t,itemTooltipOption:B.option}),m.add(k),m.eachChild(function(e){e.silent=!0}),k.silent=!u,this.getContentGroup().add(m),Wl(m),m.__legendDataIndex=n,m},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Hd(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Hd("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),f=e.getOrient().index,p=0===f?"width":"height",A=0===f?"height":"width",g=0===f?"y":"x";"end"===o?h[f]+=l[p]+d:u[f]+=c[p]+d,h[1-f]+=l[A]/2-c[A]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[p]=l[p]+d+c[p],v[A]=Math.max(l[A],c[A]),v[g]=Math.min(0,c[g]+h[1-f]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(RA);function WU(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function KU(e,t,n){var i,r={},o="toggleSelected"===e;return n.eachComponent("legend",function(n){o&&null!=i?n[i?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),i=n.isSelected(t.name)),W(n.getData(),function(e){var t=e.get("name");if("\n"!==t&&""!==t){var i=n.isSelected(t);r.hasOwnProperty(t)?r[t]=r[t]&&i:r[t]=i}})}),"allSelect"===e||"inverseSelect"===e?{selected:r}:{name:t.name,selected:r}}function YU(e){e.registerComponentModel(RU),e.registerComponentView(GU),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,WU),e.registerSubTypeDefaulter("legend",function(){return"plain"}),function(e){e.registerAction("legendToggleSelect","legendselectchanged",ee(KU,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",ee(KU,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",ee(KU,"inverseSelect")),e.registerAction("legendSelect","legendselected",ee(KU,"select")),e.registerAction("legendUnSelect","legendunselected",ee(KU,"unSelect"))}(e)}function qU(e,t,n){var i=[1,1];i[e.getOrient().index]=0,$d(t,n,{type:"box",ignoreSize:!!i})}var XU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,i){var r=Gd(t);e.prototype.init.call(this,t,n,i),qU(this,t,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),qU(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Rh(RU.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}(RU),JU=lr,ZU=["width","height"],eQ=["x","y"],tQ=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 g(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new JU),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new JU)},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,i,r,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,i,r,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=te(c)?c:[c,c];f("pagePrev",0);var d=n.getModel("pageTextStyle");function f(e,t){var i=e+"DataIndex",o=ih(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:Z(l._pageGo,l,i,n,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=e,u.add(o)}u.add(new el({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=ZU[s],u=eQ[s],c=ZU[1-s],h=eQ[1-s];r&&Hd("horizontal",a,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),f=a.getBoundingRect(),p=[-f.x,-f.y],A=N(n);r&&(A[l]=n[l]-f[l]-d);var g=this._layoutContentAndController(e,i,A,s,l,c,h,u);if(r){if("end"===o)p[s]+=g[l]+d;else{var v=f[l]+d;p[s]-=v,g[u]-=v}g[l]+=f[l]+d,p[1-s]+=g[h]+g[c]/2-f[c]/2,g[c]=Math.max(g[c],f[c]),g[h]=Math.min(g[h],f[h]+p[1-s]),a.x=p[0],a.y=p[1],a.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;Hd(e.get("orient"),l,e.get("itemGap"),i?n.width:null,i?null:n.height),Hd("horizontal",c,e.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),f=this._showController=h[r]>n[r],p=[-h.x,-h.y];t||(p[i]=l[s]);var A=[0,0],g=[-d.x,-d.y],v=Ae(e.get("pageButtonGap",!0),e.get("itemGap",!0));f&&("end"===e.get("pageButtonPosition",!0)?g[i]+=n[r]-d[r]:A[i]+=d[r]+v);g[1-i]+=h[o]/2-d[o]/2,l.setPosition(p),u.setPosition(A),c.setPosition(g);var m={x:0,y:0};if(m[r]=f?n[r]:h[r],m[o]=Math.max(h[o],d[o]),m[a]=Math.min(0,d[a]+g[1-i]),u.__rectSize=n[r],f){var y={x:0,y:0};y[r]=Math.max(n[r]-d[r]-v,0),y[o]=m[o],u.setClipPath(new js({shape:y})),u.__rectSize=y[r]}else c.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(e);return null!=_.pageIndex&&Bc(l,{x:_.contentPosition[0],y:_.contentPosition[1]},f?e:null),this._updatePageInfoView(e,_),m},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;W(["pagePrev","pageNext"],function(i){var r=null!=t[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;i&&r&&i.setStyle("text",ie(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=ZU[r],a=eQ[r],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=m(u);d.contentPosition[r]=-f.s;for(var p=s+1,A=f,g=f,v=null;p<=c;++p)(!(v=m(l[p]))&&g.e>A.s+i||v&&!y(v,A.s))&&(A=g.i>A.i?g:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=A.i),++d.pageCount),g=v;for(p=s-1,A=f,g=f,v=null;p>=-1;--p)(v=m(l[p]))&&y(g,v.s)||!(A.i<g.i)||(g=A,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=A.i),++d.pageCount,++d.pageIndex),A=v;return d;function m(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)}),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(GU);function nQ(e){Uy(YU),e.registerComponentModel(XU),e.registerComponentView(tQ),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 iQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="dataZoom.inside",t.defaultOption=Rh(GL.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(GL),rQ=ao();function oQ(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function aQ(e,t){e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function sQ(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}function lQ(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=rQ(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=Se());i.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(e){W(VL(e).infoList,function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(e,t){var n={model:t,containsPoint:ee(sQ,t),dispatchAction:ee(aQ,e),dataZoomInfoMap:null,controller:null},i=n.controller=new Ek(e.getZr());return W(["pan","zoom","scrollMove"],function(e){i.on(e,function(t){var i=[];n.dataZoomInfoMap.each(function(r){if(t.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[e],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}}),i.length&&n.dispatchAction(i)})}),n}(t,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=Se())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),i.each(function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var a=function(e){var t,n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(e){var r=e.model,o=!r.get("disabled",!0)&&(!r.get("zoomLock",!0)||"move");n["type_"+o]>n["type_"+t]&&(t=o),i=i&&r.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),ZA(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else oQ(i,e)})})}var uQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return g(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),function(e,t,n){rQ(e).coordSysRecordMap.each(function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)})}(i,t,{pan:Z(cQ.pan,this),zoom:Z(cQ.zoom,this),scrollMove:Z(cQ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=rQ(e).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid;s.get(l)&&(s.removeKey(l),s.keys().length||oQ(n,a))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(KL),cQ={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),a=e.axisModels[0];if(a){var s=dQ[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return SI(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:hQ(function(e,t,n,i,r,o){var a=dQ[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength}),scrollMove:hQ(function(e,t,n,i,r,o){return dQ[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n).signal*(e[1]-e[0])*o.scrollDelta})};function hQ(e){return function(t,n,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s)return SI(e(a,s,t,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var dQ={grid:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},fQ=uQ;function pQ(e){tN(e),e.registerComponentModel(iQ),e.registerComponentView(fQ),lQ(e)}var AQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Rh(GL.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}(GL),gQ=js,vQ="horizontal",mQ=5,yQ=["line","bar","candlestick","scatter"],_Q={easing:"cubicOut",duration:100,delay:0};function bQ(e){return"vertical"===e?"ns-resize":"ew-resize"}var wQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return g(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Z(this._onBrush,this),this._onBrushEnd=Z(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),ZA(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.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(){var e,t,n;(n=(e=this)[t="_dispatchZoomAction"])&&n[YA]&&(e[t]=n[YA]);var i=this.api.getZr();i.off("mousemove",this._onBrush),i.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 lr;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,i=this._findCoordRect(),r={width:t.getWidth(),height:t.getHeight()},o=this._orient===vQ?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=Gd(e.option);W(["right","top","width","height"],function(e){"ph"===a[e]&&(a[e]=o[e])});var s=jd(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],"vertical"===this._orient&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==vQ||r?n===vQ&&r?{scaleY:a?1:-1,scaleX:-1}:"vertical"!==n||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.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,i=e.get("brushSelect");n.add(new gQ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new gQ({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Z(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=e.series,i=n.getRawData(),r=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=r){var o=i.getDataExtent(r),a=.3*(o[1]-o[0]);o=[o[0]-a,o[1]+a];var s,l=[0,t[1]],u=[0,t[0]],c=[[t[0],0],[0,0]],h=[],d=u[1]/(i.count()-1),f=0,p=Math.round(i.count()/t[0]);i.each([r],function(e,t){if(p>0&&t%p)f+=d;else{var n=null==e||isNaN(e)||""===e,i=n?0:br(e,o,l,!0);n&&!s&&t?(c.push([c[c.length-1][0],0]),h.push([h[h.length-1][0],0])):!n&&s&&(c.push([f,0]),h.push([f,0])),c.push([f,i]),h.push([f,i]),f+=d,s=n}});for(var A=this.dataZoomModel,g=0;g<3;g++){var v=m(1===g);this._displayables.sliderGroup.add(v),this._displayables.dataShadowSegs.push(v)}}}function m(e){var t=A.getModel(e?"selectedDataBackground":"dataBackground"),n=new lr,i=new Xu({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new ec({shape:{points:h},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis(function(r,o){W(e.getAxisProxy(r,o).getTargetSeriesModels(),function(e){if(!(n||!0!==t&&V(yQ,e.get("type"))<0)){var a,s=i.getComponent(HL(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:r,otherDim:l,otherAxisInverse:a}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new gQ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new gQ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),W([0,1],function(t){var o=a.get("handleIcon");!Gg[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Yg(o,-1,0,2,2,null,!0);s.attr({cursor:bQ(this._orient),draggable:!0,drift:Z(this._onDragMove,this,t),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=wr(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Wl(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[t]=s);var h=a.getModel("textStyle");e.add(i[t]=new el({silent:!0,invisible:!0,style:fh(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))},this);var h=c;if(u){var d=wr(a.get("moveHandleSize"),o[1]),f=t.moveHandle=new js({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),p=.8*d,A=t.moveHandleIcon=Yg(a.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);A.silent=!0,A.y=o[1]+d/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var g=Math.min(o[1]/2,Math.max(d,10));(h=t.moveZone=new js({invisible:!0,shape:{y:o[1]-g,height:d+g}})).on("mouseover",function(){s.enterEmphasis(f)}).on("mouseout",function(){s.leaveEmphasis(f)}),r.add(f),r.add(A),r.add(h)}h.attr({draggable:!0,cursor:bQ(this._orient),drift:Z(this._onDragMove,this,"all"),ondragstart:Z(this._showDataInfo,this,!0),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[br(e[0],[0,100],t,!0),br(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];SI(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?br(o.minSpan,a,r,!0):null,null!=o.maxSpan?br(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Cr([br(i[0],r,a,!0),br(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=Cr(n.slice()),r=this._size;W([0,1],function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})},this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new js,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=Cr(this._handleEnds.slice());function h(e){var t=qc(n.handles[e].parent,this.group),a=Jc(0===e?"right":"left",t),s=this._handleWidth/2+mQ,l=Xc([c[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:r===vQ?"middle":a,align:r===vQ?a:"center",text:o[e]})}h.call(this,0),h.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(r,20));return ne(i)?i(e,o):ie(i)?i.replace("{value}",o):o},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,i){this._dragging=!0,bt(i.event);var r=Xc([t,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(e,r[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&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 i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Mi(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 i=this._getViewExtent(),r=[0,100];this._range=Cr([br(n.x,i,r,!0),br(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(bt(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new gQ({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?_Q:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=VL(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(KL);function xQ(e){e.registerComponentModel(AQ),e.registerComponentView(wQ),tN(e)}var CQ={get:function(e,t,n){var i=N((SQ[e]||{})[t]);return n&&te(i)?i[i.length-1]:i}},SQ={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]}},kQ=CQ,BQ=TT.mapVisual,TQ=TT.eachVisual,EQ=te,IQ=W,MQ=Cr,DQ=br,PQ=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 g(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;_.canvasSupported||(n.realtime=!1),!t&&SR(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=Z(e,this),this.controllerVisuals=CR(this.option.controller,t,e),this.targetVisuals=CR(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){W(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)},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 i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],te(e)&&(e=e.slice(),i=!0);var l=t?e:i?[u(e[0]),u(e[1])]:u(e);return ie(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):ne(s)?i?s(e[0],e[1]):s(e):i?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=MQ([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});R(i,n),R(r,n);var o=this.isCategory();function a(n){EQ(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}a.call(this,i),a.call(this,r),function(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},IQ(i,function(e,t){if(TT.isValidType(t)){var n=kQ.get(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}.call(this,i,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";IQ(this.stateList,function(a){var s=this.itemSize,l=e[a];l||(l=e[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=t&&N(t)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&N(n)||(o?s[0]:[s[0],s[0]])),l.symbol=BQ(l.symbol,function(e){return"none"===e?r:e});var u=l.symbolSize;if(null!=u){var c=-1/0;TQ(u,function(e){e>c&&(c=e)}),l.symbolSize=BQ(u,function(e){return DQ(e,[0,c],[0,s[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,zlevel: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}(qd),FQ=[20,140];function OQ(e,t,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}var LQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(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]=FQ[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=FQ[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):te(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),W(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=Cr((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 i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)},this),t.push({seriesId:n.id,dataIndex:i})},this),t},t.prototype.getVisualMeta=function(e){var t=OQ(this,"outOfRange",this.getExtent()),n=OQ(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&r(t[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(t[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Rh(PQ.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}(PQ),NQ=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 g(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,i):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Cd(t.get("padding")||0),i=e.getBoundingRect();e.add(new js({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.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 i=(n=n||{}).forceState,r=this.visualMapModel,o={};if("color"===t){var a=r.get("contentColor");o.color=a}function s(e){return o[e]}function l(e,t){o[e]=t}var u=r.controllerVisuals[i||r.getValueState(e)];return W(TT.prepareVisualTypes(u),function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),TT.dependsOn(i,t)&&r&&r.applyVisual(e,s,l)}),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;Vd(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(RA),RQ=[["left","right","width"],["top","bottom","height"]];function UQ(e,t,n){var i=e.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===i.orient?1:0,s=RQ[a],l=[0,null,10],u={},c=0;c<3;c++)u[RQ[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],d=jd(u,o,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function QQ(e,t){return W(e||[],function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var HQ=br,jQ=W,VQ=Math.min,zQ=Math.max,$Q=12;function GQ(e,t,n,i){return new Xu({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){bt(e.event)},ondragend:i})}function WQ(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function KQ(e){return"vertical"===e?"ns-resize":"ew-resize"}var YQ=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 g(t,e),t.prototype.doRender=function(e,t,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.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 i=t[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new el({style:{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i,font:h.getFont(),fill:h.getTextColor()}}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,r=this._orient,o=this._useHandle,a=UQ(t,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new lr;s.add(l),l.add(n.outOfRange=GQ()),l.add(n.inRange=GQ(null,o?KQ(this._orient):null,Z(this._dragHandle,this,"all",!1),Z(this._dragHandle,this,"all",!0))),l.setClipPath(new js({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=t.textStyleModel.getTextRect("国"),c=zQ(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,i,c,r),this._createHandle(t,s,1,i,c,r)),this._createIndicator(t,s,i,c,r),e.add(s)},t.prototype._createHandle=function(e,t,n,i,r,o){var a=Z(this._dragHandle,this,n,!1),s=Z(this._dragHandle,this,n,!0),l=qi(e.get("handleSize"),i[0]),u=Yg(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=KQ(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){bt(e.event)}}),u.x=i[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Jl(u,!0),t.add(u);var h=this.visualMapModel.textStyleModel,d=new el({cursor:c,draggable:!0,drift:a,onmousemove:function(e){bt(e.event)},ondragend:s,style:{x:0,y:0,text:"",font:h.getFont(),fill:h.getTextColor()}});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var f=[l,0],p=this._shapes;p.handleThumbs[n]=u,p.handleLabelPoints[n]=f,p.handleLabels[n]=d},t.prototype._createIndicator=function(e,t,n,i,r){var o=qi(e.get("indicatorSize"),n[0]),a=Yg(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof Fs){var l=a.style;a.useStyle(Q({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);t.add(a);var u=this.visualMapModel.textStyleModel,c=new el({silent:!0,invisible:!0,style:{x:0,y:0,text:"",font:u.getFont(),fill:u.getTextColor()}});this.group.add(c);var h=[("horizontal"===r?i/2:6)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,r[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():WQ(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[HQ(t[0],n,i,!0),HQ(t[1],n,i,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];SI(t,i,r,e,0);var o=n.getExtent();this._dataInterval=[HQ(i[0],r,o,!0),HQ(i[1],r,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,r=[0,t.itemSize[1]],o=e?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,r),a=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new Ac(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=[],i=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var r=1;r<100;r++){var o=e[0]+i*r;if(o>e[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:r/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 lr("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,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();jQ([0,1],function(l){var u=r[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=HQ(e[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=Xc(n.handleLabelPoints[l],qc(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(e,"symbolSize"),d=HQ(e,o,s,!0),f=a[0]-h/2,p={x:u.x,y:u.y};u.y=d,u.x=f;var A=Xc(l.indicatorLabelPoint,qc(u,this.group)),g=l.indicatorLabel;g.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;g.setStyle({text:(n||"")+r.formatValueText(t),verticalAlign:m?v:"middle",align:m?"center":v});var y={x:f,y:d,style:{fill:c}},_={style:{x:A[0],y:A[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=p.x,u.y=p.y,u.animateTo(y,b),g.animateTo(_,b)}else u.attr(y),g.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var x=0;x<w.length;x++)this._api.enterBlur(w[x])}},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,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);i[1]=VQ(zQ(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[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,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();e=VQ(zQ(r[0],e),r[1]);var a=function(e,t,n){var i=$Q/2,r=e.get("hoverLinkDataSize");r&&(i=HQ(r,t,n,!0)/2);return i}(n,o,r),s=[e-a,e+a],l=HQ(e,r,o,!0),u=[HQ(s[0],r,o,!0),HQ(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(t||WQ(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=function(e,t){var n={},i={};return r(e||[],n),r(t||[],i,n),[o(n),o(i)];function r(e,t,n){for(var i=0,r=e.length;i<r;i++){var o=no(e[i].seriesId,null);if(null==o)return;for(var a=Kr(e[i].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(t[o]||(t[o]={}))[c]=1}}}function o(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var r=o(e[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}(c,h);this._dispatchHighDown("downplay",QQ(d[0],n)),this._dispatchHighDown("highlight",QQ(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=tl(t).dataIndex){var i=tl(t),r=this.ecModel.getSeriesByIndex(i.seriesIndex);if(n.isTargetSeries(r)){var o=r.getData(i.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),i.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},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 n=0;n<t.length;n++)this._api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",QQ(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,t,n,i){var r=qc(t,i?null:this.group);return te(e)?Xc(e,r,n):Jc(e,r,n)},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}(NQ),qQ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},XQ=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})},JQ=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",function(t){var i,r,o,a,s,l=e.pipelineContext;!t.isTargetSeries(e)||l&&l.large||n.push((i=t.stateList,r=t.targetVisuals,o=Z(t.getValueState,t),a=t.getDataDimensionIndex(e.getData()),s={},W(i,function(e){var t=TT.prepareVisualTypes(r[e]);s[e]=t}),{progress:function(e,t){var n,i;function l(e){return Dg(t,i,e)}function u(e,n){Fg(t,i,e,n)}null!=a&&(n=t.getDimensionIndex(a));for(var c=t.getStore();null!=(i=e.next());){var h=t.getRawDataItem(i);if(!h||!1!==h.visualMap)for(var d=null!=a?c.get(n,i):i,f=o(d),p=r[f],A=s[f],g=0,v=A.length;g<v;g++){var m=A[g];p[m]&&p[m].applyVisual(d,l,u)}}}}))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(Z(ZQ,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}}),e.getData().setVisual("visualMeta",i)}}];function ZQ(e,t,n,i){for(var r=t.targetVisuals[i],o=TT.prepareVisualTypes(r),a={color:Pg(e.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return a.color;function h(e){return a[e]}function d(e,t){a[e]=t}}var eH=W;function tH(e){var t=e&&e.visualMap;te(t)||(t=t?[t]:[]),eH(t,function(e){if(e){nH(e,"splitList")&&!nH(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&te(t)&&eH(t,function(e){ae(e)&&(nH(e,"start")&&!nH(e,"min")&&(e.min=e.start),nH(e,"end")&&!nH(e,"max")&&(e.max=e.end))})}})}function nH(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var iH=!1;function rH(e){iH||(iH=!0,e.registerSubTypeDefaulter("visualMap",function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}),e.registerAction(qQ,XQ),W(JQ,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(tH))}function oH(e){e.registerComponentModel(LQ),e.registerComponentView(YQ),rH(e)}var aH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return g(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],sH[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual(function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=N(r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=K(this._pieceList,function(e){return e=N(e),"inRange"!==t&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=TT.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}W(t.pieces,function(e){W(i,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),W(n,function(e,n){var i=!1;W(this.stateList,function(e){i=i||o(t,e,n)||o(t.target,e,n)},this),!i&&W(this.stateList,function(e){(t[e]||(t[e]={}))[n]=kQ.get(n,"inRange"===e?"active":"inactive",r)})},this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,W(i,function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)},this),"single"===n.selectedMode){var o=!1;W(i,function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(o?r[n]=!1:o=!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 e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=N(e)},t.prototype.getValueState=function(e){var t=TT.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(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(t,i){TT.findPieceIndex(t,n)===e&&r.push(i)},this),t.push({seriesId:i.id,dataIndex:r})},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=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return W(r,function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])},this),{stops:t,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Rh(PQ.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}(PQ),sH={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),Ur(e),W(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;W(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),lH(t,e)},pieces:function(e){var t=this.option;W(t.pieces,function(t,n){ae(t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var r=i.value=t.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==o[c];d++)o[c]=t[h[d]],a[c]=s[d],u[c]=2===d;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=TT.retrieveVisuals(t),e.push(i)},this),lH(t,e),Ur(e),W(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 lH(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var uH=aH,cH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=pe(t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,c,a),W(l.viewPieceList,function(i){var l=i.piece,u=new lr;u.onclick=Z(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var h=t.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new el({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1}}))}e.add(u)},this),u&&this._renderEndsText(e,u[1],s,c,a),Hd(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 i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:QQ(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return UQ(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new lr,a=this.visualMapModel.textStyleModel;o.add(new el({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t,font:a.getFont(),fill:a.getTextColor()}})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=K(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Yg(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,n=t.option,i=N(n.selected),r=t.getSelectedMapKey(e);"single"===n.selectedMode?(i[r]=!0,W(i,function(e,t){i[t]=t===r})):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},t.type="visualMap.piecewise",t}(NQ);function hH(e){e.registerComponentModel(uH),e.registerComponentView(cH),rH(e)}var dH={label:{enabled:!0},decal:{show:!1}},fH=ao(),pH={};function AH(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=N(dH);R(i.label,e.getLocaleModel().get("aria"),!1),R(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var t=Se();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),fH(e).scope=n}}),e.eachRawSeries(function(t){if(!e.isSeriesFiltered(t))if("function"!=typeof t.enableAriaDecal){var n=t.getData();if(t.isColorBySeries()){var i=Cf(t.ecModel,t.name,pH,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=t.getRawData(),a={},s=fH(t).scope;n.each(function(e){var t=n.getRawIndex(e);a[t]=e});var l=o.count();o.each(function(e){var i=a[e],r=o.getName(e)||e+"",c=Cf(t.ecModel,r,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(h,c))})}}else t.enableAriaDecal();function u(e,t){var n=e?Q(Q({},t),e):t;return n.dirty=!0,n}})}}(),function(){var i=e.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=H(o.option,i),!o.get("enabled"))return;var a=t.getZr().dom;if(o.get("description"))return void a.setAttribute("aria-label",o.get("description"));var s,l=e.getSeriesCount(),u=o.get(["data","maxCount"])||10,c=o.get(["series","maxCount"])||10,h=Math.min(l,c);if(l<1)return;var d=function(){var t=e.get("title");t&&t.length&&(t=t[0]);return t&&t.text}();if(d){var f=o.get(["general","withTitle"]);s=r(f,{title:d})}else s=o.get(["general","withoutTitle"]);var p=[],A=l>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);s+=r(A,{seriesCount:l}),e.eachSeries(function(t,n){if(n<h){var i=void 0,a=t.get("name"),s=a?"withName":"withoutName";i=r(i=l>1?o.get(["series","multiple",s]):o.get(["series","single",s]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(b=t.subType,e.getLocaleModel().get(["series","typeNames"])[b]||"自定义图")});var c=t.getData();if(c.count()>u){var d=o.get(["data","partialData"]);i+=r(d,{displayCnt:u})}else i+=o.get(["data","allData"]);for(var f=o.get(["data","separator","middle"]),A=o.get(["data","separator","end"]),g=[],v=0;v<c.count();v++)if(v<u){var m=c.getName(v),y=c.getValues(v),_=o.get(["data",m?"withName":"withoutName"]);g.push(r(_,{name:m,value:y.join(f)}))}i+=g.join(f)+A,p.push(i)}var b});var g=o.getModel(["series","multiple","separator"]),v=g.get("middle"),m=g.get("end");s+=p.join(v)+m,a.setAttribute("aria-label",s)}()}function r(e,t){if("string"!=typeof e)return e;var n=e;return W(t,function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)}),n}}function gH(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},W(["description","general","series","data"],function(e){null!=t[e]&&(t.label[e]=t[e])})}}var vH={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},mH=function(){function e(e){if(null==(this._condVal=ie(e)?new RegExp(e):de(e)?e:null)){var t="";0,$r(t)}}return e.prototype.evaluate=function(e){var t=typeof e;return"string"===t?this._condVal.test(e):"number"===t&&this._condVal.test(e+"")},e}(),yH=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),_H=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),bH=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),wH=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),xH=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 CH(e,t){if(!0===e||!1===e){var n=new yH;return n.value=e,n}var i="";return kH(e)||$r(i),e.and?SH("and",e,t):e.or?SH("or",e,t):e.not?function(e,t){var n=e.not,i="";0;kH(n)||$r(i);var r=new wH;r.child=CH(n,t),r.child||$r(i);return r}(e,t):function(e,t){for(var n="",i=t.prepareGetValue(e),r=[],o=J(e),a=e.parser,s=a?Np(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!t.valueGetterAttrMap.get(u)){var c=Te(vH,u)?vH[u]:u,h=e[u],d=s?s(h):h,f=jp(c,d)||"reg"===c&&new mH(d);f||$r(n),r.push(f)}}r.length||$r(n);var p=new xH;return p.valueGetterParam=i,p.valueParser=s,p.getValue=t.getValue,p.subCondList=r,p}(e,t)}function SH(e,t,n){var i=t[e],r="";te(i)||$r(r),i.length||$r(r);var o="and"===e?new _H:new bH;return o.children=K(i,function(e){return CH(e,n)}),o.children.length||$r(r),o}function kH(e){return ae(e)&&!G(e)}var BH=function(){function e(e,t){this._cond=CH(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();var TH={type:"echarts:filter",transform:function(e){for(var t,n,i,r=e.upstream,o=(n=e.config,i={valueGetterAttrMap:Se({dimension:!0}),prepareGetValue:function(e){var t="",n=e.dimension;Te(e,"dimension")||$r(t);var i=r.getDimensionInfo(n);return i||$r(t),{dimIdx:i.index}},getValue:function(e){return r.retrieveValueFromItem(t,e.dimIdx)}},new BH(n,i)),a=[],s=0,l=r.count();s<l;s++)t=r.getRawDataItem(s),o.evaluate()&&a.push(t);return{data:a}}};var EH={type:"echarts:sort",transform:function(e){var t=e.upstream,n="",i=Kr(e.config);i.length||$r(n);var r=[];W(i,function(e){var i=e.dimension,o=e.order,a=e.parser,s=e.incomparable;if(null==i&&$r(n),"asc"!==o&&"desc"!==o&&$r(n),s&&"min"!==s&&"max"!==s){var l="";0,$r(l)}if("asc"!==o&&"desc"!==o){var u="";0,$r(u)}var c=t.getDimensionInfo(i);c||$r(n);var h=a?Np(a):null;a&&!h&&$r(n),r.push({dimIdx:c.index,parser:h,comparator:new Qp(o,s)})});var o=t.sourceFormat;o!==nf&&o!==rf&&$r(n);for(var a=[],s=0,l=t.count();s<l;s++)a.push(t.getRawDataItem(s));return a.sort(function(e,n){for(var i=0;i<r.length;i++){var o=r[i],a=t.retrieveValueFromItem(e,o.dimIdx),s=t.retrieveValueFromItem(n,o.dimIdx);o.parser&&(a=o.parser(a),s=o.parser(s));var l=o.comparator.evaluate(a,s);if(0!==l)return l}return 0}),{data:a}}};var IH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return g(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new aA(this),sA(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),sA(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:lf},t}(qd),MH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return g(t,e),t.type="dataset",t}(RA);var DH=as.CMD;function PH(e,t){return Math.abs(e-t)<1e-5}function FH(e){var t,n,i,r,o,a=e.data,s=e.len(),l=[],u=0,c=0,h=0,d=0;function f(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function p(e,n,i,r){PH(e,i)&&PH(n,r)||t.push(e,n,i,r,i,r)}function A(e,n,i,r,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=n<e?-1:1,c=Math.cos(e),h=Math.sin(e),d=Math.cos(n),f=Math.sin(n),p=c*o+i,A=h*a+r,g=d*o+i,v=f*a+r,m=o*l*u,y=a*l*u;t.push(p-m*h,A+y*c,g+m*f,v-y*d,g,v)}for(var g=0;g<s;){var v=a[g++],m=1===g;switch(m&&(h=u=a[g],d=c=a[g+1],v!==DH.L&&v!==DH.C&&v!==DH.Q||(t=[h,d])),v){case DH.M:u=h=a[g++],c=d=a[g++],f(h,d);break;case DH.L:p(u,c,n=a[g++],i=a[g++]),u=n,c=i;break;case DH.C:t.push(a[g++],a[g++],a[g++],a[g++],u=a[g++],c=a[g++]);break;case DH.Q:n=a[g++],i=a[g++],r=a[g++],o=a[g++],t.push(u+2/3*(n-u),c+2/3*(i-c),r+2/3*(n-r),o+2/3*(i-o),r,o),u=r,c=o;break;case DH.A:var y=a[g++],_=a[g++],b=a[g++],w=a[g++],x=a[g++],C=a[g++]+x;g+=1;var S=!a[g++];n=Math.cos(x)*b+y,i=Math.sin(x)*w+_,m?f(h=n,d=i):p(u,c,n,i),u=Math.cos(C)*b+y,c=Math.sin(C)*w+_;for(var k=(S?-1:1)*Math.PI/2,B=x;S?B>C:B<C;B+=k){A(B,S?Math.max(B+k,C):Math.min(B+k,C),y,_,b,w)}break;case DH.R:h=u=a[g++],d=c=a[g++],n=h+a[g++],i=d+a[g++],f(n,d),p(n,d,n,i),p(n,i,h,i),p(h,i,h,d),p(h,d,n,d);break;case DH.Z:t&&p(u,c,h,d),u=h,c=d}}return t&&t.length>2&&l.push(t),l}function OH(e,t,n,i,r,o,a,s,l,u){if(PH(e,n)&&PH(t,i)&&PH(r,a)&&PH(o,s))l.push(a,s);else{var c=2/u,h=c*c,d=a-e,f=s-t,p=Math.sqrt(d*d+f*f);d/=p,f/=p;var A=n-e,g=i-t,v=r-a,m=o-s,y=A*A+g*g,_=v*v+m*m;if(y<h&&_<h)l.push(a,s);else{var b=d*A+f*g,w=-d*v-f*m;if(y-b*b<h&&b>=0&&_-w*w<h&&w>=0)l.push(a,s);else{var x=[],C=[];va(e,n,r,a,.5,x),va(t,i,o,s,.5,C),OH(x[0],C[0],x[1],C[1],x[2],C[2],x[3],C[3],l,u),OH(x[4],C[4],x[5],C[5],x[6],C[6],x[7],C[7],l,u)}}}}function LH(e,t,n){var i=e[t],r=e[1-t],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=n-a*s;if(c>0)for(u=0;u<c;u++)l[u%a]+=1;return l}function NH(e,t,n){for(var i=e.r0,r=e.r,o=e.startAngle,a=e.endAngle,s=Math.abs(a-o),l=s*r,u=r-i,c=l>Math.abs(u),h=LH([l,u],c?0:1,t),d=(c?s:u)/h.length,f=0;f<h.length;f++)for(var p=(c?u:s)/h[f],A=0;A<h[f];A++){var g={};c?(g.startAngle=o+d*f,g.endAngle=o+d*(f+1),g.r0=i+p*A,g.r=i+p*(A+1)):(g.startAngle=o+p*A,g.endAngle=o+p*(A+1),g.r0=i+d*f,g.r=i+d*(f+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function RH(e,t,n,i){return e*i-n*t}function UH(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,h=s-o,d=RH(c,h,l,u);if(Math.abs(d)<1e-6)return null;var f=RH(e-r,t-o,c,h)/d;return f<0||f>1?null:new Mi(f*l+e,f*u+t)}function QH(e,t,n){var i=new Mi;Mi.sub(i,n,t),i.normalize();var r=new Mi;return Mi.sub(r,e,t),r.dot(i)}function HH(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function jH(e){var t=e.points,n=[],i=[];Fa(t,n,i);var r=new Qi(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new Mi,c=new Mi;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),function(e,t,n){for(var i=e.length,r=[],o=0;o<i;o++){var a=e[o],s=e[(o+1)%i],l=UH(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&r.push({projPt:QH(l,t,n),pt:l,idx:o})}if(r.length<2)return[{points:e},{points:e}];r.sort(function(e,t){return e.projPt-t.projPt});var u=r[0],c=r[r.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var d=[u.pt.x,u.pt.y],f=[c.pt.x,c.pt.y],p=[d],A=[f];for(o=u.idx+1;o<=c.idx;o++)HH(p,e[o].slice());for(HH(p,f),HH(p,d),o=c.idx+1;o<=u.idx+i;o++)HH(A,e[o%i].slice());return HH(A,d),HH(A,f),[{points:p},{points:A}]}(t,u,c)}function VH(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),o=e(t);VH(e,o[0],r,i),VH(e,o[1],n-r,i)}return i}function zH(e,t){var n,i=[],r=e.shape;switch(e.type){case"rect":!function(e,t,n){for(var i=e.width,r=e.height,o=i>r,a=LH([i,r],o?0:1,t),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=e[s]/a.length,d=0;d<a.length;d++)for(var f=e[l]/a[d],p=0;p<a[d];p++){var A={};A[u]=d*h,A[c]=p*f,A[s]=h,A[l]=f,A.x+=e.x,A.y+=e.y,n.push(A)}}(r,t,i),n=js;break;case"sector":NH(r,t,i),n=Vu;break;case"circle":NH({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},t,i),n=Vu;break;default:var o=e.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=K(function(e,t){var n=FH(e),i=[];t=t||1;for(var r=0;r<n.length;r++){var o=n[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],d=o[u++],f=o[u++],p=o[u++],A=o[u++];OH(s,l,c,h,d,f,p,A,a,t),s=p,l=A}i.push(a)}return i}(e.getUpdatedPathProxy(),a),function(e){return function(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}(e)}),l=s.length;if(0===l)VH(jH,{points:s[0]},t,i);else if(l===t)for(var u=0;u<l;u++)i.push({points:s[u]});else{var c=0,h=K(s,function(e){var t=[],n=[];Fa(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return c+=i,{poly:e,area:i}});h.sort(function(e,t){return t.area-e.area});var d=t;for(u=0;u<l;u++){var f=h[u];if(d<=0)break;var p=u===l-1?d:Math.ceil(f.area/c*t);p<0||(VH(jH,{points:f.poly},p,i),d-=p)}}n=Xu}if(!n)return function(e,t){for(var n=[],i=0;i<t;i++)n.push(bu(e));return n}(e,t);var A,g,v=[];for(u=0;u<i.length;u++){var m=new n;m.setShape(i[u]),A=e,(g=m).setStyle(A.style),g.z=A.z,g.z2=A.z2,g.zlevel=A.zlevel,v.push(m)}return v}function $H(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var r=[],o=[],a=n<i?e:t,s=Math.min(n,i),l=Math.abs(i-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],d=l,f=2;f<s;){var p=a[f-2],A=a[f-1],g=a[f++],v=a[f++],m=a[f++],y=a[f++],_=a[f++],b=a[f++];if(d<=0)h.push(g,v,m,y,_,b);else{for(var w=Math.min(d,c-1)+1,x=1;x<=w;x++){var C=x/w;va(p,g,m,_,C,r),va(A,v,y,b,C,o),p=r[3],A=o[3],h.push(r[1],o[1],r[2],o[2],p,A),g=r[5],v=o[5],m=r[6],y=o[6]}d-=w-1}}return a===e?[h,t]:[e,h]}function GH(e,t){for(var n=e.length,i=e[n-2],r=e[n-1],o=[],a=0;a<t.length;)o[a++]=i,o[a++]=r;return o}function WH(e){for(var t=0,n=0,i=0,r=e.length,o=0,a=r-2;o<r;a=o,o+=2){var s=e[a],l=e[a+1],u=e[o],c=e[o+1],h=s*c-u*l;t+=h,n+=(s+u)*h,i+=(l+c)*h}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function KH(e,t,n,i){for(var r=(e.length-2)/6,o=1/0,a=0,s=e.length,l=s-2,u=0;u<r;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var f=0===d?c:(c+d-2)%l+2,p=e[f]-n[0],A=e[f+1]-n[1],g=t[d]-i[0]-p,v=t[d+1]-i[1]-A;h+=g*g+v*v}h<o&&(o=h,a=u)}return a}function YH(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 qH(e){return e.__isCombineMorphing}var XH="__mOriginal_";function JH(e,t,n){var i=XH+t,r=e[i]||e[t];e[i]||(e[i]=e[t]);var o=n.replace,a=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=o?o.apply(this,t):r.apply(this,t),a&&a.apply(this,t),e}}function ZH(e,t){var n=XH+t;e[n]&&(e[t]=e[n],e[n]=null)}function ej(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=t[0]*o+t[2]*a+t[4],i[r++]=t[1]*o+t[3]*a+t[5]}}function tj(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),r=function(e,t){for(var n,i,r,o=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,h=void 0;l?u?(i=c=(n=$H(l,u))[0],r=h=n[1]):(h=GH(r||l,l),c=l):(c=GH(i||u,u),h=u),o.push(c),a.push(h)}return[o,a]}(FH(n),FH(i)),o=r[0],a=r[1],s=e.getComputedTransform(),l=t.getComputedTransform();s&&ej(o,s),l&&ej(a,l),JH(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var u=function(e,t,n,i){for(var r,o=[],a=0;a<e.length;a++){var s=e[a],l=t[a],u=WH(s),c=WH(l);null==r&&(r=u[2]<0!=c[2]<0);var h=[],d=[],f=0,p=1/0,A=[],g=s.length;r&&(s=YH(s));for(var v=6*KH(s,l,u,c),m=g-2,y=0;y<m;y+=2){var _=(v+y)%m+2;h[y+2]=s[_]-u[0],h[y+3]=s[_+1]-u[1]}if(h[0]=s[v]-u[0],h[1]=s[v+1]-u[1],n>0)for(var b=i/n,w=-i/2;w<=i/2;w+=b){var x=Math.sin(w),C=Math.cos(w),S=0;for(y=0;y<s.length;y+=2){var k=h[y],B=h[y+1],T=l[y]-c[0],E=l[y+1]-c[1],I=T*C-E*x,M=T*x+E*C;A[y]=I,A[y+1]=M;var D=I-k,P=M-B;S+=D*D+P*P}if(S<p){p=S,f=w;for(var F=0;F<A.length;F++)d[F]=A[F]}}else for(var O=0;O<g;O+=2)d[O]=l[O]-c[0],d[O+1]=l[O+1]-c[1];o.push({from:h,to:d,fromCp:u,toCp:c,rotation:-f})}return o}(o,a,10,Math.PI),c=[];JH(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,r=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,h=a.rotation*n,d=a.fromCp,f=a.toCp,p=Math.sin(h),A=Math.cos(h);Ze(r,d,f,n);for(var g=0;g<s.length;g+=2){var v=s[g],m=s[g+1],y=v*i+(x=l[g])*n,_=m*i+(C=l[g+1])*n;c[g]=y*A-_*p+r[0],c[g+1]=y*p+_*A+r[1]}var b=c[0],w=c[1];e.moveTo(b,w);for(g=2;g<s.length;){var x=c[g++],C=c[g++],S=c[g++],k=c[g++],B=c[g++],T=c[g++];b===x&&w===C&&S===B&&k===T?e.lineTo(B,T):e.bezierCurveTo(x,C,S,k,B,T),b=B,w=T}}}})}function nj(e,t,n){if(!e||!t)return t;var i=n.done,r=n.during;return tj(e,t),t.__morphT=0,t.animateTo({__morphT:1},H({during:function(e){t.dirtyShape(),r&&r(e)},done:function(){ZH(t,"buildPath"),ZH(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),i&&i()}},n)),t}function ij(e){var t=1/0,n=1/0,i=-1/0,r=-1/0;return K(K(e,function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]}),function(o,a){return{cp:o,z:function(e,t,n,i,r,o){e=r===n?0:Math.round(32767*(e-n)/(r-n)),t=o===i?0:Math.round(32767*(t-i)/(o-i));for(var a,s=0,l=32768;l>0;l/=2){var u=0,c=0;(e&l)>0&&(u=1),(t&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(e=l-1-e,t=l-1-t),a=e,e=t,t=a)}return s}(o[0],o[1],t,n,i,r),path:e[a]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function rj(e){return zH(e.path,e.count)}function oj(e){return te(e[0])}function aj(e,t){for(var n=[],i=e.length,r=0;r<i;r++)n.push({one:e[r],many:[]});for(r=0;r<t.length;r++){var o=t[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(t[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var sj={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=bu(e.path);r.setStyle("opacity",n),t.push(r)}return t},split:null};function lj(e,t,n,i,r,o){if(e.length&&t.length){var a=Sc("update",i,r);if(a&&a.duration>0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);oj(e)&&(s=e,l=t),oj(t)&&(s=t,l=e);for(var h=s?s===e:e.length>t.length,d=s?aj(l,s):aj(h?t:e,[h?e:t]),f=0,p=0;p<d.length;p++)f+=d[p].many.length;var A=0;for(p=0;p<d.length;p++)g(d[p],h,A,f),A+=d[p].many.length}}function g(e,t,i,r,a){var s=e.many,l=e.one;if(1!==s.length||a)for(var h=H({dividePath:sj[n],individualDelay:u&&function(e,t,n,o){return u(e+i,r)}},c),d=t?function(e,t,n){var i=[];!function e(t){for(var n=0;n<t.length;n++){var r=t[n];qH(r)?e(r.childrenRef()):r instanceof Bs&&i.push(r)}}(e);var r=i.length;if(!r)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||rj)({path:t,count:r});if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};i=ij(i),o=ij(o);for(var a=n.done,s=n.during,l=n.individualDelay,u=new Ii,c=0;c<r;c++){var h=i[c],d=o[c];d.parent=t,d.copyTransform(u),l||tj(h,d)}function f(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}function p(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,ZH(t,"addSelfToZr"),ZH(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return o},JH(t,"addSelfToZr",{after:function(e){f(e)}}),JH(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});var A=o.length;if(l){var g=A,v=function(){0==--g&&(p(),a&&a())};for(c=0;c<A;c++){var m=l?H({delay:(n.delay||0)+l(c,A,i[c],o[c]),done:v},n):n;nj(i[c],o[c],m)}}else t.__morphT=0,t.animateTo({__morphT:1},H({during:function(e){for(var n=0;n<A;n++){var i=o[n];i.__morphT=t.__morphT,i.dirtyShape()}s&&s(e)},done:function(){p();for(var t=0;t<e.length;t++)ZH(e[t],"updateTransform");a&&a()}},n));return t.__zr&&f(t.__zr),{fromIndividuals:i,toIndividuals:o,count:A}}(s,l,h):function(e,t,n){var i=t.length,r=[],o=n.dividePath||rj;if(qH(e)){!function e(t){for(var n=0;n<t.length;n++){var i=t[n];qH(i)?e(i.childrenRef()):i instanceof Bs&&r.push(i)}}(e.childrenRef());var a=r.length;if(a<i)for(var s=0,l=a;l<i;l++)r.push(bu(r[s++%a]));r.length=i}else{r=o({path:e,count:i});var u=e.getComputedTransform();for(l=0;l<r.length;l++)r[l].setLocalTransform(u);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}r=ij(r),t=ij(t);var c=n.individualDelay;for(l=0;l<i;l++){var h=c?H({delay:(n.delay||0)+c(l,i,r[l],t[l])},n):n;nj(r[l],t[l],h)}return{fromIndividuals:r,toIndividuals:t,count:t.length}}(l,s,h),f=d.fromIndividuals,p=d.toIndividuals,A=f.length,v=0;v<A;v++){m=u?H({delay:u(v,A)},c):c;o(f[v],p[v],t?s[v]:e.one,t?e.one:s[v],m)}else{var m,y=t?s[0]:l,_=t?l:s[0];if(qH(y))g({many:[y],one:_},!0,i,r,!0);else nj(y,_,m=u?H({delay:u(i,r)},c):c),o(y,_,y,_,m)}}}function uj(e){if(!e)return[];if(te(e)){for(var t=[],n=0;n<e.length;n++)t.push(uj(e[n]));return t}var i=[];return e.traverse(function(e){e instanceof Bs&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)}),i}var cj=1e4,hj=ao();function dj(e){var t=[];return W(e,function(e){var n=e.data;if(!(n.count()>cj))for(var i=n.getIndices(),r=function(e){for(var t=e.dimensions,n=0;n<t.length;n++){var i=e.getDimensionInfo(t[n]);if(i&&0===i.otherDims.itemGroupId)return t[n]}}(n),o=0;o<i.length;o++)t.push({data:n,dim:e.dim||r,divide:e.divide,dataIndex:o})}),t}function fj(e,t,n){e.traverse(function(e){e instanceof Bs&&Tc(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function pj(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Aj(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function gj(e,t,n){var i=Sc("update",n,t);i&&e.traverse(function(e){if(e instanceof ta){var t=Cc(e).oldStyle;t&&e.animateFrom({style:t},i)}})}function vj(e,t,n){var i=dj(e),r=dj(t);function o(e,t,n,i,r){(n||e)&&t.animateFrom({style:(n||e).style},r)}function a(e){for(var t=0;t<e.length;t++)if(e[t].dim)return e[t].dim}var s=a(i),l=a(r),u=!1;function c(e,t){return function(n){var i=n.data,r=n.dataIndex;if(t)return i.getId(r);var o=i.hostModel&&i.hostModel.get("dataGroupId"),a=e?s||l:l||s,u=a&&i.getDimensionInfo(a),c=u&&u.ordinalMeta;if(u){var h=i.get(u.name,r);return c&&c.categories[h]||h+""}var d=i.getRawDataItem(r);return d&&d.groupId?d.groupId+"":o||i.getId(r)}}var h=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}(i,r),d={};if(!h)for(var f=0;f<r.length;f++){var p=r[f],A=p.data.getItemGraphicEl(p.dataIndex);A&&(d[A.id]=!0)}function g(e,t){var n=i[t],a=r[e],s=a.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),c=a.data.getItemGraphicEl(a.dataIndex);l!==c?l&&d[l.id]||c&&(Aj(c),l?(Aj(l),pj(l),u=!0,lj(uj(l),uj(c),a.divide,s,e,o)):fj(c,s,e)):c&&gj(c,a.dataIndex,s)}new jy(i,r,c(!0,h),c(!1,h),null,"multiple").update(g).updateManyToOne(function(e,t){var n=r[e],a=n.data,s=a.hostModel,l=a.getItemGraphicEl(n.dataIndex),c=q(K(t,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==l&&!d[e.id]});l&&(Aj(l),c.length?(W(c,function(e){Aj(e),pj(e)}),u=!0,lj(uj(c),uj(l),n.divide,s,e,o)):fj(l,s,n.dataIndex))}).updateOneToMany(function(e,t){var n=i[t],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!d[a.id]){var s=q(K(e,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==a}),l=r[e[0]].data.hostModel;s.length&&(W(s,function(e){return Aj(e)}),a?(Aj(a),pj(a),u=!0,lj(uj(a),uj(s),n.divide,l,e[0],o)):W(s,function(t){return fj(t,l,e[0])}))}}).updateManyToMany(function(e,t){new jy(t,e,function(e){return i[e].data.getId(i[e].dataIndex)},function(e){return r[e].data.getId(r[e].dataIndex)}).update(function(n,i){g(e[n],t[i])}).execute()}).execute(),u&&W(t,function(e){var t=e.data.hostModel,i=t&&n.getViewOfSeriesModel(t),r=Sc("update",t,0);i&&t.isAnimationEnabled()&&r&&r.duration>0&&i.group.traverse(function(e){e instanceof Bs&&!e.animators.length&&e.animateFrom({style:{opacity:0}},r)})})}function mj(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function yj(e){return te(e)?e.sort().join(","):e}function _j(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function bj(e,t){var n=Se(),i=Se(),r=Se();return W(e.oldSeries,function(t,n){var o=e.oldData[n],a=mj(t),s=yj(a);i.set(s,o),te(a)&&W(a,function(e){r.set(e,{data:o,key:s})})}),W(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.getData(),o=mj(e),a=yj(o),s=i.get(a);if(s)n.set(a,{oldSeries:[{divide:_j(s),data:s}],newSeries:[{divide:_j(t),data:t}]});else if(te(o)){0;var l=[];W(o,function(e){var t=i.get(e);t&&l.push({divide:_j(t),data:t})}),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:t,divide:_j(t)}]})}else{var u=r.get(o);if(u){var c=n.get(u.key);c||(c={oldSeries:[{data:u.data,divide:_j(u.data)}],newSeries:[]},n.set(u.key,c)),c.newSeries.push({data:t,divide:_j(t)})}}}}),n}function wj(e,t){for(var n=0;n<e.length;n++){if(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)return n}}n.d(t,"version",function(){return"5.2.2"}),n.d(t,"dependencies",function(){return mm}),n.d(t,"PRIORITY",function(){return wm}),n.d(t,"init",function(){return hy}),n.d(t,"connect",function(){return dy}),n.d(t,"disConnect",function(){return fy}),n.d(t,"disconnect",function(){return py}),n.d(t,"dispose",function(){return Ay}),n.d(t,"getInstanceByDom",function(){return gy}),n.d(t,"getInstanceById",function(){return vy}),n.d(t,"registerTheme",function(){return my}),n.d(t,"registerPreprocessor",function(){return yy}),n.d(t,"registerProcessor",function(){return _y}),n.d(t,"registerPostInit",function(){return by}),n.d(t,"registerPostUpdate",function(){return wy}),n.d(t,"registerUpdateLifecycle",function(){return xy}),n.d(t,"registerAction",function(){return Cy}),n.d(t,"registerCoordinateSystem",function(){return Sy}),n.d(t,"getCoordinateSystemDimensions",function(){return ky}),n.d(t,"registerLocale",function(){return $h}),n.d(t,"registerLayout",function(){return By}),n.d(t,"registerVisual",function(){return Ty}),n.d(t,"registerLoading",function(){return My}),n.d(t,"setCanvasCreator",function(){return Dy}),n.d(t,"registerMap",function(){return Py}),n.d(t,"getMap",function(){return Fy}),n.d(t,"registerTransform",function(){return Oy}),n.d(t,"dataTool",function(){return Ly}),n.d(t,"zrender",function(){return s}),n.d(t,"matrix",function(){return a}),n.d(t,"vector",function(){return r}),n.d(t,"zrUtil",function(){return i}),n.d(t,"color",function(){return o}),n.d(t,"throttle",function(){return JA}),n.d(t,"helper",function(){return u}),n.d(t,"use",function(){return Uy}),n.d(t,"parseGeoJSON",function(){return rm}),n.d(t,"parseGeoJson",function(){return rm}),n.d(t,"number",function(){return c}),n.d(t,"time",function(){return h}),n.d(t,"graphic",function(){return d}),n.d(t,"format",function(){return f}),n.d(t,"util",function(){return p}),n.d(t,"env",function(){return _}),n.d(t,"List",function(){return d_}),n.d(t,"Model",function(){return Oh}),n.d(t,"Axis",function(){return Kb}),n.d(t,"ComponentModel",function(){return qd}),n.d(t,"ComponentView",function(){return RA}),n.d(t,"SeriesModel",function(){return LA}),n.d(t,"ChartView",function(){return KA}),n.d(t,"innerDrawElementOnCanvas",function(){return yv}),n.d(t,"extendComponentModel",function(){return Yb}),n.d(t,"extendComponentView",function(){return qb}),n.d(t,"extendSeriesModel",function(){return Xb}),n.d(t,"extendChartView",function(){return Jb}),Uy([function(e){e.registerPainter("canvas",Fx)}]),Uy([function(e){e.registerPainter("svg",Tx)}]),Uy([function(e){e.registerChartView(vC),e.registerSeriesModel(Ox),e.registerLayout(mC("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,bC("line"))},function(e){e.registerChartView(KC),e.registerSeriesModel(CC),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,ee(K_,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Y_),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,bC("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(sS),e.registerSeriesModel(cS),Og("pie",e.registerAction),e.registerLayout(ee(ZC,"pie")),e.registerProcessor(eS("pie")),e.registerProcessor({seriesType:"pie",reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!("number"==typeof i&&!isNaN(i)&&i<0)})}})},function(e){Uy(lk),e.registerSeriesModel(hS),e.registerChartView(AS),e.registerLayout(mC("scatter"))},function(e){Uy(wk),e.registerChartView(fk),e.registerSeriesModel(pk),e.registerLayout(uk),e.registerProcessor(eS("radar")),e.registerPreprocessor(dk)},function(e){Uy(uB),e.registerChartView(Gk),e.registerSeriesModel(Wk),e.registerLayout(Yk),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Kk),Og("map",e.registerAction)},function(e){e.registerChartView(BB),e.registerSeriesModel(VB),e.registerLayout($B),e.registerVisual(GB),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,i=t.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var n=sB(t.coordinateSystem,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)})})}(e)},function(e){e.registerSeriesModel(qB),e.registerChartView(dT),e.registerVisual(MT),e.registerLayout(VT),function(e){for(var t=0;t<KB.length;t++)e.registerAction({type:KB[t],update:"updateView"},WB);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},function(t,n){var i=UB(e,["treemapZoomToNode","treemapRootToNode"],t);if(i){var r=t.getViewRoot();r&&(e.direction=HB(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}})})}(e)},function(e){e.registerChartView(HE),e.registerSeriesModel(YE),e.registerProcessor(WT),e.registerVisual(KT),e.registerVisual(qT),e.registerLayout(sE),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,pE),e.registerLayout(gE),e.registerCoordinateSystem("graphView",{dimensions:Jk.dimensions,create:vE}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){}),e.registerAction(qE,function(e,t){t.eachComponent({mainType:"series",query:e},function(t){var n=sB(t.coordinateSystem,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)})})},function(e){e.registerChartView(tI),e.registerSeriesModel(nI)},function(e){e.registerChartView(oI),e.registerSeriesModel(aI),e.registerLayout(sI),e.registerProcessor(eS("funnel"))},function(e){Uy(NM),e.registerChartView(fI),e.registerSeriesModel(AI),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,vI)},function(e){e.registerChartView(QM),e.registerSeriesModel(HM),e.registerLayout(jM),e.registerVisual(eD),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(iD),e.registerChartView(uD),e.registerVisual(cD),e.registerLayout(dD),e.registerTransform(fD)},function(e){e.registerChartView(SD),e.registerSeriesModel(BD),e.registerPreprocessor(TD),e.registerVisual(PD),e.registerLayout(LD)},function(e){e.registerChartView(UD),e.registerSeriesModel(QD),e.registerLayout(mC("effectScatter"))},function(e){e.registerChartView(KD),e.registerSeriesModel(JD),e.registerLayout(WD),e.registerVisual(eP)},function(e){e.registerChartView(iP),e.registerSeriesModel(rP)},function(e){e.registerChartView(SP),e.registerSeriesModel(kP),e.registerLayout(ee(K_,"pictorialBar"))},function(e){e.registerChartView(BP),e.registerSeriesModel(TP),e.registerLayout(EP),e.registerProcessor(eS("themeRiver"))},function(e){e.registerChartView(NP),e.registerSeriesModel(RP),e.registerLayout(ee(QP,"sunburst")),e.registerProcessor(ee(eS,"sunburst")),e.registerVisual(HP),function(e){e.registerAction({type:FP,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t,n){var i=UB(e,[FP],t);if(i){var r=t.getViewRoot();r&&(e.direction=HB(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}})}),e.registerAction({type:OP,update:"none"},function(e,t,n){e=Q({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t){var n=UB(e,[OP],t);n&&(e.dataIndex=n.node.dataIndex)}),n.dispatchAction(Q(e,{type:"highlight"}))}),e.registerAction({type:LP,update:"updateView"},function(e,t,n){e=Q({},e),n.dispatchAction(Q(e,{type:"downplay"}))})}(e)},function(e){e.registerChartView(yF),e.registerSeriesModel($P)}]),Uy(function(e){Uy(lk),Uy(wO)}),Uy(function(e){Uy(wO),qS.registerAxisPointerClass("PolarAxisPointer",SO),e.registerCoordinateSystem("polar",QO),e.registerComponentModel(kO),e.registerComponentView(rL),xS(e,"angle",TO,nL),xS(e,"radius",EO,iL),e.registerComponentView(WO),e.registerComponentView(JO),e.registerLayout(ee(tL,"bar"))}),Uy(uB),Uy(function(e){Uy(wO),qS.registerAxisPointerClass("SingleAxisPointer",CL),e.registerComponentView(SL),e.registerComponentView(cL),e.registerComponentModel(dL),xS(e,"single",dL,dL.defaultOption),e.registerCoordinateSystem("single",vL)}),Uy(NM),Uy(function(e){e.registerComponentModel(BL),e.registerComponentView(TL),e.registerCoordinateSystem("calendar",IL)}),Uy(function(e){e.registerComponentModel(FL),e.registerComponentView(OL),e.registerPreprocessor(PL)}),Uy(function(e){e.registerComponentModel(sN),e.registerComponentView(uN),oN("saveAsImage",hN),oN("magicType",AN),oN("dataView",xN),oN("dataZoom",YN),oN("restore",TN),Uy(nN)}),Uy(function(e){Uy(wO),e.registerComponentModel(qN),e.registerComponentView(yR),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})}),Uy(wO),Uy(function(e){e.registerComponentView(RR),e.registerComponentModel(QR),e.registerPreprocessor(bR),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,PR),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"},function(){}),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){}),oN("brush",jR)}),Uy(function(e){e.registerComponentModel(VR),e.registerComponentView(zR)}),Uy(function(e){e.registerComponentModel(WR),e.registerComponentView(eU),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),function(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),H({currentIndex:i.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(tU)}),Uy(function(e){e.registerComponentModel(uU),e.registerComponentView(_U),e.registerPreprocessor(function(e){rU(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}),Uy(function(e){e.registerComponentModel(bU),e.registerComponentView(TU),e.registerPreprocessor(function(e){rU(e.series,"markLine")&&(e.markLine=e.markLine||{})})}),Uy(function(e){e.registerComponentModel(EU),e.registerComponentView(NU),e.registerPreprocessor(function(e){rU(e.series,"markArea")&&(e.markArea=e.markArea||{})})}),Uy(function(e){Uy(YU),Uy(nQ)}),Uy(function(e){Uy(pQ),Uy(xQ)}),Uy(pQ),Uy(xQ),Uy(function(e){Uy(oH),Uy(hH)}),Uy(oH),Uy(hH),Uy(function(e){e.registerPreprocessor(gH),e.registerVisual(e.PRIORITY.VISUAL.ARIA,AH)}),Uy(function(e){e.registerTransform(TH),e.registerTransform(EH)}),Uy(function(e){e.registerComponentModel(IH),e.registerComponentView(MH)}),Uy(function(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){W(Kr(n.seriesTransition),function(e){W(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][BA]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(e,t,n){var i=hj(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)W(Kr(r),function(e){!function(e,t,n,i){var r=[],o=[];W(Kr(e.from),function(e){var n=wj(t.oldSeries,e);n>=0&&r.push({data:t.oldData[n],divide:_j(t.oldData[n]),dim:e.dimension})}),W(Kr(e.to),function(e){var t=wj(n.updatedSeries,e);if(t>=0){var i=n.updatedSeries[t].getData();o.push({data:i,divide:_j(i),dim:e.dimension})}}),r.length>0&&o.length>0&&vj(r,o,i)}(e,i,n,t)});else{var o=bj(i,n);W(o.keys(),function(e){var n=o.get(e);vj(n.oldSeries,n.newSeries,t)})}W(n.updatedSeries,function(e){e[BA]&&(e[BA]=!1)})}for(var a=e.getSeries(),s=i.oldSeries=[],l=i.oldData=[],u=0;u<a.length;u++){var c=a[u].getData();c.count()<cj&&(s.push(a[u]),l.push(c))}})}),Uy(Lw)},Xc4G:function(e,t,n){var i=n("lktj"),r=n("1kS7"),o=n("NpIQ");e.exports=function(e){var t=i(e),n=r.f;if(n)for(var a,s=n(e),l=o.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},Xd32:function(e,t,n){n("+tPU"),n("zQR9"),e.exports=n("5PlU")},XgCd:function(e,t,n){"use strict";var i=String.prototype.replace,r=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return i.call(e,r,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},XmWM:function(e,t,n){"use strict";var i=n("cGG2"),r=n("DQCr"),o=n("fuGk"),a=n("xLtR"),s=n("DUeU"),l=n("/506"),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))});var r,o=[];if(this.interceptors.response.forEach(function(e){o.push(e.fulfilled,e.rejected)}),!i){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(o),r=Promise.resolve(e);c.length;)r=r.then(c.shift(),c.shift());return r}for(var h=e;n.length;){var d=n.shift(),f=n.shift();try{h=d(h)}catch(e){f(e);break}}try{r=a(h)}catch(e){return Promise.reject(e)}for(;o.length;)r=r.then(o.shift(),o.shift());return r},c.prototype.getUri=function(e){return e=s(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),i.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,n,i){return this.request(s(i||{},{method:e,url:t,data:n}))}}),e.exports=c},Y5mS:function(e,t,n){"use strict";var i,r=n("lFkc");r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
  72. /**
  73. * Checks if an event is supported in the current execution environment.
  74. *
  75. * NOTE: This will not work correctly for non-generic events such as `change`,
  76. * `reset`, `load`, `error`, and `select`.
  77. *
  78. * Borrows from Modernizr.
  79. *
  80. * @param {string} eventNameSuffix Event name, e.g. "click".
  81. * @param {?boolean} capture Check if the capture phase is supported.
  82. * @return {boolean} True if the event is supported.
  83. * @internal
  84. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  85. */,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&i&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}},YAhB:function(e,t,n){"use strict";var i=n("++K3"),r=n("Y5mS"),o=10,a=40,s=800;function l(e){var t=0,n=0,i=0,r=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),i=t*o,r=n*o,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=a,r*=a):(i*=s,r*=s)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}l.getEventType=function(){return i.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},YQ7m:function(e,t,n){e.exports={default:n("hM5s"),__esModule:!0}},Yobk:function(e,t,n){var i=n("77Pl"),r=n("qio6"),o=n("xnc9"),a=n("ax3d")("IE_PROTO"),s=function(){},l=function(){var e,t=n("ON07")("iframe"),i=o.length;for(t.style.display="none",n("RPLV").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;i--;)delete l.prototype[o[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=i(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:r(n,t)}},Zcwg:function(e,t,n){"use strict";t.__esModule=!0;var i=n("2kvA");var r=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,i.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,i.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,i.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},e.prototype.afterLeave=function(e){(0,i.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 r},n)}}},Zzip:function(e,t,n){e.exports={default:n("/n6Q"),__esModule:!0}},aFK5:function(e,t,n){e.exports={default:n("gAsd"),__esModule:!0}},aMwW:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=140)}({140:function(e,t,n){"use strict";n.r(t);var i=n(5),r=n.n(i),o=n(18),a=n.n(o),s=n(2),l=n(3),u=n(7),c=n.n(u),h={name:"ElTooltip",mixins:[r.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(l.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new c.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=a()(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 i=n.data=n.data||{};return i.staticClass=this.addTooltipClass(i.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(s.on)(this.referenceElm,"mouseenter",this.show),Object(s.on)(this.referenceElm,"mouseleave",this.hide),Object(s.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(s.on)(this.referenceElm,"blur",this.handleBlur),Object(s.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick(function(){e.value&&e.updatePopper()})},watch:{focusing:function(e){e?Object(s.addClass)(this.referenceElm,"focusing"):Object(s.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 t=null,n=0;n<e.length;n++)e[n]&&e[n].tag&&(t=e[n]);return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(s.off)(e,"mouseenter",this.show),Object(s.off)(e,"mouseleave",this.hide),Object(s.off)(e,"focus",this.handleFocus),Object(s.off)(e,"blur",this.handleBlur),Object(s.off)(e,"click",this.removeFocusing))},install:function(e){e.component(h.name,h)}};t.default=h},18:function(e,t){e.exports=n("ON3O")},2:function(e,t){e.exports=n("2kvA")},3:function(e,t){e.exports=n("ylDJ")},5:function(e,t){e.exports=n("fKx3")},7:function(e,t){e.exports=n("7+uW")}})},aW5l:function(e,t,n){"use strict";t.__esModule=!0;n("ylDJ");t.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},aj7g:function(e,t){var n="auto",i={"":!0,lr:!0,rl:!0},r={start:!0,middle:!0,end:!0,left:!0,right:!0};function o(e){return"string"==typeof e&&(!!r[e.toLowerCase()]&&e.toLowerCase())}function a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function s(e,t,r){var s=this,l=/MSIE\s8\.0/.test(navigator.userAgent),u={};l?s=document.createElement("custom"):u.enumerable=!0,s.hasBeenReset=!1;var c="",h=!1,d=e,f=t,p=r,A=null,g="",v=!0,m="auto",y="start",_=50,b="middle",w=50,x="middle";if(Object.defineProperty(s,"id",a({},u,{get:function(){return c},set:function(e){c=""+e}})),Object.defineProperty(s,"pauseOnExit",a({},u,{get:function(){return h},set:function(e){h=!!e}})),Object.defineProperty(s,"startTime",a({},u,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",a({},u,{get:function(){return f},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");f=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",a({},u,{get:function(){return p},set:function(e){p=""+e,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",a({},u,{get:function(){return A},set:function(e){A=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",a({},u,{get:function(){return g},set:function(e){var t=function(e){return"string"==typeof e&&!!i[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");g=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",a({},u,{get:function(){return v},set:function(e){v=!!e,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",a({},u,{get:function(){return m},set:function(e){if("number"!=typeof e&&e!==n)throw new SyntaxError("An invalid number or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",a({},u,{get:function(){return y},set:function(e){var t=o(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",a({},u,{get:function(){return _},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",a({},u,{get:function(){return b},set:function(e){var t=o(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",a({},u,{get:function(){return w},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",a({},u,{get:function(){return x},set:function(e){var t=o(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");x=t,this.hasBeenReset=!0}})),s.displayState=void 0,l)return s}s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=s},alfv:function(e,t,n){var i;window,i=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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=141)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=n(142)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return r}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return s}),n.d(t,"__param",function(){return l}),n.d(t,"__metadata",function(){return u}),n.d(t,"__awaiter",function(){return c}),n.d(t,"__generator",function(){return h}),n.d(t,"__createBinding",function(){return d}),n.d(t,"__exportStar",function(){return f}),n.d(t,"__values",function(){return p}),n.d(t,"__read",function(){return A}),n.d(t,"__spread",function(){return g}),n.d(t,"__spreadArrays",function(){return v}),n.d(t,"__spreadArray",function(){return m}),n.d(t,"__await",function(){return y}),n.d(t,"__asyncGenerator",function(){return _}),n.d(t,"__asyncDelegator",function(){return b}),n.d(t,"__asyncValues",function(){return w}),n.d(t,"__makeTemplateObject",function(){return x}),n.d(t,"__importStar",function(){return S}),n.d(t,"__importDefault",function(){return k}),n.d(t,"__classPrivateFieldGet",function(){return B}),n.d(t,"__classPrivateFieldSet",function(){return T});
  86. /*! *****************************************************************************
  87. Copyright (c) Microsoft Corporation.
  88. Permission to use, copy, modify, and/or distribute this software for any
  89. purpose with or without fee is hereby granted.
  90. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  91. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  92. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  93. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  94. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  95. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  96. PERFORMANCE OF THIS SOFTWARE.
  97. ***************************************************************************** */
  98. var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,i){t(n,i,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})}function h(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var d=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]};function f(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function A(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(A(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function m(e,t){for(var n=0,i=t.length,r=e.length;n<i;n++,r++)e[r]=t[n];return e}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){r[e]&&(i[e]=function(t){return new Promise(function(n,i){o.push([e,t,n,i])>1||s(e,t)})})}function s(e,t){try{(n=r[e](t)).value instanceof y?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(e){c(o[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(e){var t,n;return t={},i("next"),i("throw",function(e){throw e}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise(function(i,r){(function(e,t,n,i){Promise.resolve(i).then(function(t){e({value:t,done:n})},t)})(i,r,(t=e[n](t)).done,t.value)})}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return C(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function B(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(89)),a=i(n(4)),s=i(n(26)),l=i(n(17)),u=i(n(121)),c=i(n(27)),h=i(n(91)),d=i(n(70)),f=i(n(28)),p=i(n(57));(0,r.default)(t,"__esModule",{value:!0}),t.DomElement=void 0;var A=n(2),g=n(6),v=[];function m(e){var t=[],n=[];return t=(0,o.default)(e)?e:e.split(";"),(0,a.default)(t).call(t,function(e){var t,i=(0,s.default)(t=e.split(":")).call(t,function(e){return(0,l.default)(e).call(e)});2===i.length&&n.push(i[0]+":"+i[1])}),n}var y=function(){function e(t){if(this.elems=[],this.length=this.elems.length,this.dataSource=new u.default,t){if(t instanceof e)return t;var n=[],i=t instanceof Node?t.nodeType:-1;if(this.selector=t,1===i||9===i)n=[t];else if(function(e){return!!e&&(e instanceof HTMLCollection||e instanceof NodeList)}(t))n=g.toArray(t);else if(t instanceof Array)n=t;else if("string"==typeof t){var r,o=(0,l.default)(r=t.replace("/\n/mg","")).call(r);n=0===(0,c.default)(o).call(o,"<")?function(e){var t=document.createElement("div");t.innerHTML=e;var n=t.children;return g.toArray(n)}(o):function(e){var t=document.querySelectorAll(e);return g.toArray(t)}(o)}var a=n.length;if(!a)return this;for(var s=0;s<a;s++)this.elems.push(n[s]);this.length=a}}return(0,r.default)(e.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){for(var t=0;t<this.length;t++){var n=this.elems[t];if(!1===e.call(n,n,t))break}return this},e.prototype.clone=function(e){var t;void 0===e&&(e=!1);var n=[];return(0,a.default)(t=this.elems).call(t,function(t){n.push(t.cloneNode(!!e))}),_(n)},e.prototype.get=function(e){void 0===e&&(e=0);var t=this.length;return e>=t&&(e%=t),_(this.elems[e])},e.prototype.first=function(){return this.get(0)},e.prototype.last=function(){var e=this.length;return this.get(e-1)},e.prototype.on=function(e,t,n){var i;return e?("function"==typeof t&&(n=t,t=""),(0,a.default)(i=this).call(i,function(i){if(t){var r=function(e){var i=e.target;i.matches(t)&&n.call(i,e)};i.addEventListener(e,r),v.push({elem:i,selector:t,fn:n,agentFn:r})}else i.addEventListener(e,n)})):this},e.prototype.off=function(e,t,n){var i;return e?("function"==typeof t&&(n=t,t=""),(0,a.default)(i=this).call(i,function(i){if(t){for(var r=-1,o=0;o<v.length;o++){var a=v[o];if(a.selector===t&&a.fn===n&&a.elem===i){r=o;break}}if(-1!==r){var s=(0,h.default)(v).call(v,r,1)[0].agentFn;i.removeEventListener(e,s)}}else i.removeEventListener(e,n)})):this},e.prototype.attr=function(e,t){var n;return null==t?this.elems[0].getAttribute(e)||"":(0,a.default)(n=this).call(n,function(n){n.setAttribute(e,t)})},e.prototype.removeAttr=function(e){var t;(0,a.default)(t=this).call(t,function(t){t.removeAttribute(e)})},e.prototype.addClass=function(e){var t;return e?(0,a.default)(t=this).call(t,function(t){if(t.className){var n=t.className.split(/\s/);n=(0,d.default)(n).call(n,function(e){return!!(0,l.default)(e).call(e)}),(0,c.default)(n).call(n,e)<0&&n.push(e),t.className=n.join(" ")}else t.className=e}):this},e.prototype.removeClass=function(e){var t;return e?(0,a.default)(t=this).call(t,function(t){if(t.className){var n=t.className.split(/\s/);n=(0,d.default)(n).call(n,function(t){return!(!(t=(0,l.default)(t).call(t))||t===e)}),t.className=n.join(" ")}}):this},e.prototype.hasClass=function(e){if(!e)return!1;var t=this.elems[0];if(!t.className)return!1;var n=t.className.split(/\s/);return(0,f.default)(n).call(n,e)},e.prototype.css=function(e,t){var n,i;return i=""==t?"":e+":"+t+";",(0,a.default)(n=this).call(n,function(t){var n,r=(0,l.default)(n=t.getAttribute("style")||"").call(n);if(r){var o=m(r);o=(0,s.default)(o).call(o,function(t){return 0===(0,c.default)(t).call(t,e)?i:t}),""!=i&&(0,c.default)(o).call(o,i)<0&&o.push(i),""==i&&(o=m(o)),t.setAttribute("style",o.join("; "))}else t.setAttribute("style",i)})},e.prototype.getBoundingClientRect=function(){return this.elems[0].getBoundingClientRect()},e.prototype.show=function(){return this.css("display","block")},e.prototype.hide=function(){return this.css("display","none")},e.prototype.children=function(){var e=this.elems[0];return e?_(e.children):null},e.prototype.childNodes=function(){var e=this.elems[0];return e?_(e.childNodes):null},e.prototype.replaceChildAll=function(e){for(var t=this.getNode(),n=this.elems[0];n.hasChildNodes();)t.firstChild&&n.removeChild(t.firstChild);this.append(e)},e.prototype.append=function(e){var t;return(0,a.default)(t=this).call(t,function(t){(0,a.default)(e).call(e,function(e){t.appendChild(e)})})},e.prototype.remove=function(){var e;return(0,a.default)(e=this).call(e,function(e){if(e.remove)e.remove();else{var t=e.parentElement;t&&t.removeChild(e)}})},e.prototype.isContain=function(e){var t=this.elems[0],n=e.elems[0];return t.contains(n)},e.prototype.getNodeName=function(){return this.elems[0].nodeName},e.prototype.getNode=function(e){return void 0===e&&(e=0),this.elems[e]},e.prototype.find=function(e){return _(this.elems[0].querySelectorAll(e))},e.prototype.text=function(e){var t;return e?(0,a.default)(t=this).call(t,function(t){t.innerHTML=e}):this.elems[0].innerHTML.replace(/<[^>]+>/g,function(){return""})},e.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},e.prototype.val=function(){var e,t=this.elems[0];return(0,l.default)(e=t.value).call(e)},e.prototype.focus=function(){var e;return(0,a.default)(e=this).call(e,function(e){e.focus()})},e.prototype.prev=function(){return _(this.elems[0].previousElementSibling)},e.prototype.next=function(){return _(this.elems[0].nextElementSibling)},e.prototype.getNextSibling=function(){return _(this.elems[0].nextSibling)},e.prototype.parent=function(){return _(this.elems[0].parentElement)},e.prototype.parentUntil=function(e,t){var n=t||this.elems[0];if("BODY"===n.nodeName)return null;var i=n.parentElement;return null===i?null:i.matches(e)?_(i):this.parentUntil(e,i)},e.prototype.parentUntilEditor=function(e,t,n){var i=n||this.elems[0];if(_(i).equal(t.$textContainerElem)||_(i).equal(t.$toolbarElem))return null;var r=i.parentElement;return null===r?null:r.matches(e)?_(r):this.parentUntilEditor(e,t,r)},e.prototype.equal=function(t){return t instanceof e?this.elems[0]===t.elems[0]:t instanceof HTMLElement&&this.elems[0]===t},e.prototype.insertBefore=function(e){var t,n=_(e).elems[0];return n?(0,a.default)(t=this).call(t,function(e){var t=n.parentNode;null===t||void 0===t||t.insertBefore(e,n)}):this},e.prototype.insertAfter=function(e){var t,n=_(e).elems[0],i=n&&n.nextSibling;return n?(0,a.default)(t=this).call(t,function(e){var t=n.parentNode;i?t.insertBefore(e,i):t.appendChild(e)}):this},e.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},e.prototype.getNodeTop=function(e){if(this.length<1)return this;var t=this.parent();return e.$textElem.equal(this)||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))},e.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},e.prototype.scrollTop=function(e){this.elems[0].scrollTo({top:e})},e}();function _(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new((0,p.default)(y).apply(y,A.__spreadArrays([void 0],e)))}t.DomElement=y,t.default=_},function(e,t,n){e.exports=n(180)},function(e,t,n){"use strict";var i=n(8),r=n(71).f,o=n(101),a=n(9),s=n(40),l=n(19),u=n(16),c=function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,h,d,f,p,A,g,v,m=e.target,y=e.global,_=e.stat,b=e.proto,w=y?i:_?i[m]:(i[m]||{}).prototype,x=y?a:a[m]||(a[m]={}),C=x.prototype;for(d in t)n=!o(y?d:m+(_?".":"#")+d,e.forced)&&w&&u(w,d),p=x[d],n&&(A=e.noTargetGet?(v=r(w,d))&&v.value:w[d]),f=n&&A?A:t[d],n&&typeof p==typeof f||(g=e.bind&&n?s(f,i):e.wrap&&n?c(f):b&&"function"==typeof f?s(Function.call,f):f,(e.sham||f&&f.sham||p&&p.sham)&&l(g,"sham",!0),x[d]=g,b&&(u(a,h=m+"Prototype")||l(a,h,{}),a[h][d]=f,e.real&&C&&!C[d]&&l(C,d,f)))}},function(e,t,n){"use strict";var i=n(0),r=i(n(92)),o=i(n(1)),a=i(n(256)),s=i(n(45)),l=i(n(46)),u=i(n(89)),c=i(n(26));(0,o.default)(t,"__esModule",{value:!0}),t.hexToRgb=t.getRandomCode=t.toArray=t.deepClone=t.isFunction=t.debounce=t.throttle=t.arrForEach=t.forEach=t.replaceSpecialSymbol=t.replaceHtmlSymbol=t.getRandom=t.UA=void 0;var h=n(2),d=function(){function e(){this._ua=navigator.userAgent;var e=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(e&&"Edge"==e[1]&&(0,a.default)(e[2])<19),this.isFirefox=!(!/Firefox\/\d+/.test(this._ua)||/Seamonkey\/\d+/.test(this._ua))}return e.prototype.isIE=function(){return"ActiveXObject"in window},e.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},e}();t.UA=new d,t.getRandom=function(e){var t;return void 0===e&&(e=""),e+(0,s.default)(t=Math.random().toString()).call(t,2)},t.replaceHtmlSymbol=function(e){return e.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")},t.replaceSpecialSymbol=function(e){return e.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,'"')},t.forEach=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!1===t(n,e[n]))break},t.arrForEach=function(e,t){var n,i,r=e.length||0;for(n=0;n<r&&(i=e[n],!1!==t.call(e,i,n));n++);},t.throttle=function(e,t){void 0===t&&(t=200);var n=!1;return function(){for(var i=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=!0,(0,l.default)(function(){n=!1,e.call.apply(e,h.__spreadArrays([i],r))},t))}},t.debounce=function(e,t){void 0===t&&(t=200);var n=0;return function(){for(var i=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n&&window.clearTimeout(n),n=(0,l.default)(function(){n=0,e.call.apply(e,h.__spreadArrays([i],r))},t)}},t.isFunction=function(e){return"function"==typeof e},t.deepClone=function e(t){if("object"!==(0,r.default)(t)||"function"==typeof t||null===t)return t;var n;for(var i in(0,u.default)(t)&&(n=[]),(0,u.default)(t)||(n={}),t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=e(t[i]));return n},t.toArray=function(e){return(0,s.default)(Array.prototype).call(e)},t.getRandomCode=function(){var e;return(0,s.default)(e=Math.random().toString(36)).call(e,-5)},t.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(null==t)return null;var n=(0,c.default)(t).call(t,function(e){return(0,a.default)(e,16)});return"rgb("+n[1]+", "+n[2]+", "+n[3]+")"}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.EMPTY_P_REGEX=t.EMPTY_P_LAST_REGEX=t.EMPTY_P=t.urlRegex=t.EMPTY_FN=void 0,t.EMPTY_FN=function(){},t.urlRegex=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/g,t.EMPTY_P='<p data-we-empty-p=""><br></p>',t.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,t.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(145))},function(e,t){e.exports={}},function(e,t,n){var i=n(8),r=n(74),o=n(16),a=n(64),s=n(76),l=n(106),u=r("wks"),c=i.Symbol,h=l?c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(c,e)?u[e]=c[e]:u[e]=h("Symbol."+e)),u[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var i=n(9),r=n(16),o=n(93),a=n(18).f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||a(t,e,{value:o.f(e)})}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var i=n(11);e.exports=!i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){var i=n(9);e.exports=function(e){return i[e+"Prototype"]}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=n(192)},function(e,t,n){var i=n(14),r=n(100),o=n(25),a=n(60),s=Object.defineProperty;t.f=i?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),r)try{return s(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 i=n(14),r=n(18),o=n(48);e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],r=0;r<e.length;r++){var o=e[r],l=t.base?o[0]+t.base:o[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var h=s(c),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==h?(a[h].references++,a[h].updater(d)):a.push({identifier:c,updater:A(d,t),references:1}),i.push(c)}return i}function u(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach(function(e){t.setAttribute(e,i[e])}),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var c,h=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(e,t,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=h(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}var f=null,p=0;function A(e,t){var n,i,r;if(t.singleton){var o=p++;n=f||(f=u(t)),i=d.bind(null,n,o,!1),r=d.bind(null,n,o,!0)}else n=u(t),i=function(e,t,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var r=s(n[i]);a[r].references--}for(var o=l(e,t),u=0;u<n.length;u++){var c=s(n[u]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=o}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var r=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")});return[n].concat(o).concat([r]).join("\n")}var a,s,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){var i=n(14),r=n(11),o=n(16),a=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,c=o(t,0)?t[0]:l,h=o(t,1)?t[1]:void 0;return s[e]=!!n&&!r(function(){if(u&&!i)return!0;var e={length:-1};u?a(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,c,h)})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t}(i.__importDefault(n(95)).default);t.default=r},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(46));(0,r.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(3)),u=s.__importDefault(n(95)),c=s.__importDefault(n(134)),h=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;i.title=n.i18next.t("menus.dropListMenu."+i.title);var s,u="zh-CN"===n.config.lang?"":"w-e-drop-list-tl";""!==u&&"list"===i.type&&(0,o.default)(s=i.list).call(s,function(e){var t=e.$elem,n=l.default(t.children());if(n.length>0){var i=null===n||void 0===n?void 0:n.getNodeName();i&&"I"===i&&t.addClass(u)}});var h=new c.default(r,i);return r.dropList=h,t.on("click",function(){var e;null!=n.selection.getRange()&&(t.css("z-index",n.zIndex.get("menu")),(0,o.default)(e=n.txt.eventHooks.dropListMenuHoverEvents).call(e,function(e){return e()}),h.show())}).on("mouseleave",function(){t.css("z-index","auto"),h.hideTimeoutId=(0,a.default)(function(){h.hide()})}),r}return s.__extends(t,e),t}(u.default);t.default=h},function(e,t,n){var i=n(13);e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){e.exports=n(188)},function(e,t,n){e.exports=n(201)},function(e,t,n){e.exports=n(213)},function(e,t,n){e.exports=n(283)},function(e,t,n){var i=n(72),r=n(49);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(49);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(40),r=n(72),o=n(31),a=n(35),s=n(88),l=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,h=6==e,d=5==e||h;return function(f,p,A,g){for(var v,m,y=o(f),_=r(y),b=i(p,A,3),w=a(_.length),x=0,C=g||s,S=t?C(f,w):n?C(f,0):void 0;w>x;x++)if((d||x in _)&&(m=b(v=_[x],x,y),e))if(t)S[x]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:l.call(S,v)}else if(c)return!1;return h?-1:u||c?c:S}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(29)),s=i(n(132));(0,r.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(3)),c=n(7),h=function(){function e(t,n){this.menu=t,this.conf=n,this.$container=u.default('<div class="w-e-panel-container"></div>');var i=t.editor;i.txt.eventHooks.clickEvents.push(e.hideCurAllPanels),i.txt.eventHooks.toolbarClickEvents.push(e.hideCurAllPanels),i.txt.eventHooks.dropListMenuHoverEvents.push(e.hideCurAllPanels)}return e.prototype.create=function(){var t=this,n=this.menu;if(!e.createdMenus.has(n)){var i=this.conf,r=this.$container,s=i.width||300,h=n.editor.$toolbarElem.getBoundingClientRect(),d=n.$elem.getBoundingClientRect(),f=h.height+h.top-d.top,p=(h.width-s)/2+h.left-d.left;Math.abs(p)>300&&(p=d.left<document.documentElement.clientWidth/2?-d.width/2:-s+d.width/2),r.css("width",s+"px").css("margin-top",f+"px").css("margin-left",p+"px").css("z-index",n.editor.zIndex.get("panel"));var A=u.default('<i class="w-e-icon-close w-e-panel-close"></i>');r.append(A),A.on("click",function(){t.remove()});var g=u.default('<ul class="w-e-panel-tab-title"></ul>'),v=u.default('<div class="w-e-panel-tab-content"></div>');r.append(g).append(v);var m=i.height;m&&v.css("height",m+"px").css("overflow-y","auto");var y=i.tabs||[],_=[],b=[];(0,o.default)(y).call(y,function(e,t){if(e){var n=e.title||"",i=e.tpl||"",r=u.default('<li class="w-e-item">'+n+"</li>");g.append(r);var a=u.default(i);v.append(a),_.push(r),b.push(a),0===t?(r.data("active",!0),r.addClass("w-e-active")):a.hide(),r.on("click",function(){r.data("active")||((0,o.default)(_).call(_,function(e){e.data("active",!1),e.removeClass("w-e-active")}),(0,o.default)(b).call(b,function(e){e.hide()}),r.data("active",!0),r.addClass("w-e-active"),a.show())})}}),r.on("click",function(e){e.stopPropagation()}),n.$elem.append(r),i.setLinkValue&&i.setLinkValue(r,"text"),i.setLinkValue&&i.setLinkValue(r,"link"),(0,o.default)(y).call(y,function(e,n){if(e){var i=e.events||[];(0,o.default)(i).call(i,function(e){var i,r=e.selector,o=e.type,s=e.fn||c.EMPTY_FN,u=b[n],h=null!==(i=e.bindEnter)&&void 0!==i&&i,d=function(e){return l.__awaiter(t,void 0,void 0,function(){return l.__generator(this,function(t){switch(t.label){case 0:return e.stopPropagation(),[4,s(e)];case 1:return t.sent()&&this.remove(),[2]}})})};(0,a.default)(u).call(u,r).on(o,d),h&&"click"===o&&u.on("keyup",function(e){13==e.keyCode&&d(e)})})}});var w=(0,a.default)(r).call(r,"input[type=text],textarea");w.length&&w.get(0).focus(),e.hideCurAllPanels(),n.setPanel(this),e.createdMenus.add(n)}},e.prototype.remove=function(){var t=this.menu,n=this.$container;n&&n.remove(),e.createdMenus.delete(t)},e.hideCurAllPanels=function(){var t;0!==e.createdMenus.size&&(0,o.default)(t=e.createdMenus).call(t,function(e){var t=e.panel;t&&t.remove()})},e.createdMenus=new s.default,e}();t.default=h},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(62),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){var i=n(9),r=n(8),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e])||o(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},function(e,t,n){var i=n(81),r=n(18).f,o=n(19),a=n(16),s=n(170),l=n(10)("toStringTag");e.exports=function(e,t,n,u){if(e){var c=n?e:e.prototype;a(c,l)||r(c,l,{configurable:!0,value:t}),u&&!i&&o(c,"toString",s)}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.setPanel=function(e){this.panel=e},t}(i.__importDefault(n(95)).default);t.default=r},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(57));(0,r.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3)),l=function(){function e(e,t,n){this.editor=e,this.$targetElem=t,this.conf=n,this._show=!1,this._isInsertTextContainer=!1;var i=s.default("<div></div>");i.addClass("w-e-tooltip"),this.$container=i}return e.prototype.getPositionData=function(){var e=this.$container,t=0,n=0,i=document.documentElement.scrollTop,r=this.$targetElem.getBoundingClientRect(),o=this.editor.$textElem.getBoundingClientRect(),a=this.$targetElem.getOffsetData(),l=s.default(a.parent),u=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=l.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var c=l.getBoundingClientRect().height,h=a.top,d=a.left,f=a.height,p=h-u;p>25?(t=p-20-15,e.addClass("w-e-tooltip-up")):p+f+20<c?(t=p+f+10,e.addClass("w-e-tooltip-down")):(t=(p>0?p:0)+20+10,e.addClass("w-e-tooltip-down")),n=d<0?0:d}else r.top<20?(t=r.bottom+i+5,e.addClass("w-e-tooltip-down")):r.top-o.top<20?(t=r.bottom+i+5,e.addClass("w-e-tooltip-down")):(t=r.top+i-20-15,e.addClass("w-e-tooltip-up")),n=r.left<0?0:r.left;return{top:t,left:n}},e.prototype.appendMenus=function(){var e=this,t=this.conf,n=this.editor,i=this.$targetElem,r=this.$container;(0,o.default)(t).call(t,function(t,o){var a=t.$elem,l=s.default("<div></div>");l.addClass("w-e-tooltip-item-wrapper "),l.append(a),r.append(l),a.on("click",function(r){r.preventDefault(),t.onClick(n,i)&&e.remove()})})},e.prototype.create=function(){var e,t,n=this.editor,i=this.$container;this.appendMenus();var r=this.getPositionData(),o=r.top,l=r.left;i.css("top",o+"px"),i.css("left",l+"px"),i.css("z-index",n.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(i):s.default("body").append(i),this._show=!0,n.beforeDestroy((0,a.default)(e=this.remove).call(e,this)),n.txt.eventHooks.onBlurEvents.push((0,a.default)(t=this.remove).call(t,this))},e.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,r.default)(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t.default=l},function(e,t,n){var i=n(41);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var i,r,o,a=n(165),s=n(8),l=n(13),u=n(19),c=n(16),h=n(63),d=n(51),f=s.WeakMap;if(a){var p=new f,A=p.get,g=p.has,v=p.set;i=function(e,t){return v.call(p,e,t),t},r=function(e){return A.call(p,e)||{}},o=function(e){return g.call(p,e)}}else{var m=h("state");d[m]=!0,i=function(e,t){return u(e,m,t),t},r=function(e){return c(e,m)?e[m]:{}},o=function(e){return c(e,m)}}e.exports={set:i,get:r,has:o,enforce:function(e){return o(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t){e.exports=!0},function(e,t){e.exports={}},function(e,t,n){e.exports=n(261)},function(e,t,n){e.exports=n(265)},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0;var a=n(2),s=n(137),l=a.__importDefault(n(3));function u(e){return document.createElement(e)}t.filterSelectionNodes=function(e){var t=[];return(0,o.default)(e).call(e,function(e){var n=e.getNodeName();if(n!==s.ListType.OrderedList&&n!==s.ListType.UnorderedList)t.push(e);else if(e.prior)t.push(e.prior);else{var i=e.children();null===i||void 0===i||(0,o.default)(i).call(i,function(e){t.push(l.default(e))})}}),t},t.updateRange=function(e,t,n){var i=e.selection,r=document.createRange();t.length>1?(r.setStart(t.elems[0],0),r.setEnd(t.elems[t.length-1],t.elems[t.length-1].childNodes.length)):r.selectNodeContents(t.elems[0]),n&&r.collapse(!1),i.saveRange(r),i.restoreSelection()},t.getStartPoint=function(e){var t;return e.prior?e.prior:l.default(null===(t=e.children())||void 0===t?void 0:t.elems[0])},t.getEndPoint=function(e){var t;return e.prior?e.prior:l.default(null===(t=e.children())||void 0===t?void 0:t.last().elems[0])},t.insertBefore=function(e,t,n){void 0===n&&(n=null),e.parent().elems[0].insertBefore(t,n)},t.createElement=u,t.createDocumentFragment=function(){return document.createDocumentFragment()},t.createElementFragment=function(e,t,n){return void 0===n&&(n="li"),(0,o.default)(e).call(e,function(e){var i=u(n);i.innerHTML=e.html(),t.appendChild(i),e.remove()}),t}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var i=n(164).charAt,r=n(42),o=n(75),a=r.set,s=r.getterFor("String Iterator");o(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})})},function(e,t){e.exports={}},function(e,t,n){var i=n(107),r=n(80);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n,r){r&&r.enumerable?e[t]=n:i(e,t,n)}},function(e,t,n){n(173);var i=n(174),r=n(8),o=n(65),a=n(19),s=n(44),l=n(10)("toStringTag");for(var u in i){var c=r[u],h=c&&c.prototype;h&&o(h)!==l&&a(h,l,u),s[u]=s.Array}},function(e,t,n){var i=n(34);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(11),r=n(10),o=n(86),a=r("species");e.exports=function(e){return o>=51||!i(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,n){e.exports=n(222)},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListHandle=void 0;var i=n(2).__importDefault(n(373)),r=function(){return function(e){this.options=e,this.selectionRangeElem=new i.default}}();t.ListHandle=r},function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},function(e,t,n){var i=n(13);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(74),r=n(64),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},function(e,t,n){var i=n(81),r=n(34),o=n(10)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=i?r:function(e){var t,n,i;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:a?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,n){var i=n(25),r=n(112),o=n(35),a=n(40),s=n(113),l=n(114),u=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,c,h){var d,f,p,A,g,v,m,y=a(t,n,c?2:1);if(h)d=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(r(f)){for(p=0,A=o(e.length);A>p;p++)if((g=c?y(i(m=e[p])[0],m[1]):y(e[p]))&&g instanceof u)return g;return new u(!1)}d=f.call(e)}for(v=d.next;!(m=v.call(d)).done;)if("object"==typeof(g=l(d,y,m.value,c))&&g&&g instanceof u)return g;return new u(!1)}).stop=function(e){return new u(!0,e)}},function(e,t,n){"use strict";var i=n(11);e.exports=function(e,t){var n=[][e];return!!n&&i(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){"use strict";var i=n(60),r=n(18),o=n(48);e.exports=function(e,t,n){var a=i(t);a in e?r.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){e.exports=n(209)},function(e,t,n){var i=n(14),r=n(59),o=n(48),a=n(30),s=n(60),l=n(16),u=n(100),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=a(e),t=s(t,!0),u)try{return c(e,t)}catch(e){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var i=n(11),r=n(34),o="".split;e.exports=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==r(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var i=n(8),r=n(13),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var i=n(43),r=n(103);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";var i=n(5),r=n(167),o=n(105),a=n(171),s=n(37),l=n(19),u=n(53),c=n(10),h=n(43),d=n(44),f=n(104),p=f.IteratorPrototype,A=f.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v=function(){return this};e.exports=function(e,t,n,c,f,m,y){r(n,t,c);var _,b,w,x=function(e){if(e===f&&T)return T;if(!A&&e in k)return k[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",S=!1,k=e.prototype,B=k[g]||k["@@iterator"]||f&&k[f],T=!A&&B||x(f),E="Array"==t&&k.entries||B;if(E&&(_=o(E.call(new e)),p!==Object.prototype&&_.next&&(h||o(_)===p||(a?a(_,p):"function"!=typeof _[g]&&l(_,g,v)),s(_,C,!0,!0),h&&(d[C]=v))),"values"==f&&B&&"values"!==B.name&&(S=!0,T=function(){return B.call(this)}),h&&!y||k[g]===T||l(k,g,T),d[t]=T,f)if(b={values:x("values"),keys:m?T:x("keys"),entries:x("entries")},y)for(w in b)!A&&!S&&w in k||u(k,w,b[w]);else i({target:t,proto:!0,forced:A||S},b);return b}},function(e,t,n){var i=n(11);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())})},function(e,t,n){var i,r=n(25),o=n(169),a=n(80),s=n(51),l=n(108),u=n(73),c=n(63)("IE_PROTO"),h=function(){},d=function(e){return"<script>"+e+"<\/script>"},f=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;f=i?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(i):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete f.prototype[a[n]];return f()};s[c]=!0,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 i=n(30),r=n(35),o=n(79),a=function(e){return function(t,n,a){var s,l=i(t),u=r(l.length),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var i=n(62),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var i={};i[n(10)("toStringTag")]="z",e.exports="[object z]"===String(i)},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var i=n(36);e.exports=i("navigator","userAgent")||""},function(e,t,n){"use strict";var i=n(41);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i}),this.resolve=i(t),this.reject=i(n)}(e)}},function(e,t,n){var i,r,o=n(8),a=n(84),s=o.process,l=s&&s.versions,u=l&&l.v8;u?r=(i=u.split("."))[0]+i[1]:a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=i[1]),e.exports=r&&+r},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),l=n(6),u=a.__importDefault(n(267)),c=a.__importDefault(n(280)),h=a.__importDefault(n(281)),d=a.__importDefault(n(282)),f=a.__importDefault(n(301)),p=a.__importStar(n(416)),A=a.__importDefault(n(417)),g=a.__importDefault(n(418)),v=a.__importDefault(n(419)),m=a.__importStar(n(420)),y=a.__importDefault(n(423)),_=a.__importDefault(n(424)),b=a.__importDefault(n(425)),w=a.__importDefault(n(427)),x=a.__importDefault(n(437)),C=a.__importDefault(n(440)),S=a.__importStar(n(441)),k=a.__importDefault(n(23)),B=a.__importDefault(n(134)),T=a.__importDefault(n(24)),E=a.__importDefault(n(33)),I=a.__importDefault(n(38)),M=a.__importDefault(n(39)),D=1,P=function(){function e(e,t){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+D++,this.toolbarSelector=e,this.textSelector=t,p.selectorValidator(this),this.config=l.deepClone(u.default),this.$toolbarElem=s.default("<div></div>"),this.$textContainerElem=s.default("<div></div>"),this.$textElem=s.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new c.default(this),this.cmd=new h.default(this),this.txt=new d.default(this),this.menus=new f.default(this),this.zIndex=new _.default,this.change=new b.default(this),this.history=new w.default(this),this.onSelectionChange=new C.default(this);var n=x.default(this),i=n.disable,r=n.enable;this.disable=i,this.enable=r,this.isEnable=!0}return e.prototype.initSelection=function(e){A.default(this,e)},e.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),v.default(this),p.default(this),this.txt.init(),this.menus.init(),m.default(this),this.initSelection(!0),g.default(this),this.change.observe(),this.history.observe(),S.default(this)},e.prototype.beforeDestroy=function(e){return this.beforeDestroyHooks.push(e),this},e.prototype.destroy=function(){var e,t=this;(0,o.default)(e=this.beforeDestroyHooks).call(e,function(e){return e.call(t)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},e.prototype.fullScreen=function(){m.setFullScreen(this)},e.prototype.unFullScreen=function(){m.setUnFullScreen(this)},e.prototype.scrollToHead=function(e){y.default(this,e)},e.registerMenu=function(t,n){n&&"function"==typeof n&&(e.globalCustomMenuConstructorList[t]=n)},e.prototype.registerPlugin=function(e,t){S.registerPlugin(e,t,this.pluginsFunctionList)},e.registerPlugin=function(t,n){S.registerPlugin(t,n,e.globalPluginsFunctionList)},e.$=s.default,e.BtnMenu=k.default,e.DropList=B.default,e.DropListMenu=T.default,e.Panel=E.default,e.PanelMenu=I.default,e.Tooltip=M.default,e.globalCustomMenuConstructorList={},e.globalPluginsFunctionList={},e}();t.default=P},function(e,t,n){var i=n(13),r=n(55),o=n(10)("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?i(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(185)},function(e,t,n){var i=n(49),r="["+n(68)+"]",o=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),s=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t,n){e.exports=n(205)},function(e,t,n){var i=n(227),r=n(230);function o(t){"@babel/helpers - typeof";return e.exports=o="function"==typeof r&&"symbol"==typeof i?function(e){return typeof e}:function(e){return e&&"function"==typeof r&&e.constructor===r&&e!==r.prototype?"symbol":typeof e},o(t)}e.exports=o},function(e,t,n){var i=n(10);t.f=i},function(e,t,n){e.exports=n(306)},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(33)),s=function(){function e(e,t){var n=this;this.$elem=e,this.editor=t,this._active=!1,e.on("click",function(e){var i;a.default.hideCurAllPanels(),(0,o.default)(i=t.txt.eventHooks.menuClickEvents).call(i,function(e){return e()}),e.stopPropagation(),null!=t.selection.getRange()&&n.clickHandler(e)})}return e.prototype.clickHandler=function(e){},e.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},e.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,r.default)(e.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),e}();t.default=s},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(28));function a(e){for(var n=e.elems[0];n&&(0,o.default)(i=t.EXTRA_TAG).call(i,n.nodeName);){var i;if("A"===(n=n.parentElement).nodeName)return n}}(0,r.default)(t,"__esModule",{value:!0}),t.getParentNodeA=t.EXTRA_TAG=void 0,t.EXTRA_TAG=["B","FONT","I","STRIKE"],t.getParentNodeA=a,t.default=function(e){var t,n=e.selection.getSelectionContainerElem();if(!(null===(t=null===n||void 0===n?void 0:n.elems)||void 0===t?void 0:t.length))return!1;if("A"===n.getNodeName())return!0;var i=a(n);return!(!i||"A"!==i.nodeName)}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(57)),a=i(n(4)),s=i(n(27));(0,r.default)(t,"__esModule",{value:!0});var l=n(2),u=n(6),c=l.__importDefault(n(135)),h=l.__importDefault(n(136)),d=function(){function e(e){this.editor=e}return e.prototype.insertImg=function(e,t,n){var i=this.editor,r=i.config,o=function(e,t){return void 0===t&&(t="validate."),i.i18next.t(t+e)},a=e.replace(/</g,"&lt;").replace(/>/g,"&gt;");a=a.replace("'",'"');var s="";n&&(s=n.replace("'",'"'),s="data-href='"+encodeURIComponent(s)+"' ");var l="";t&&(l="alt='"+(l=(l=t.replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace("'",'"'))+"' "),i.cmd.do("insertHTML","<img src='"+a+"' "+l+s+'style="max-width:100%;" contenteditable="false"/>'),r.linkImgCallback(e,t,n);var u=document.createElement("img");u.onload=function(){u=null},u.onerror=function(){r.customAlert(o("插入图片错误"),"error","wangEditor: "+o("插入图片错误")+","+o("图片链接")+' "'+e+'",'+o("下载链接失败")),u=null},u.onabort=function(){return u=null},u.src=e},e.prototype.uploadImg=function(e){var t=this;if(e.length){var n=this.editor,i=n.config,r=function(e){return n.i18next.t("validate."+e)},l=i.uploadImgServer,d=i.uploadImgShowBase64,f=i.uploadImgMaxSize,p=f/1024/1024,A=i.uploadImgMaxLength,g=i.uploadFileName,v=i.uploadImgParams,m=i.uploadImgParamsWithUrl,y=i.uploadImgHeaders,_=i.uploadImgHooks,b=i.uploadImgTimeout,w=i.withCredentials,x=i.customUploadImg;if(x||l||d){var C=[],S=[];if(u.arrForEach(e,function(e){if(e){var t=e.name||e.type.replace("/","."),i=e.size;if(t&&i){var o=n.config.uploadImgAccept.join("|");!1!==new RegExp(".("+o+")$","i").test(t)?f<i?S.push("【"+t+"】"+r("大于")+" "+p+"M"):C.push(e):S.push("【"+t+"】"+r("不是图片"))}}}),S.length)i.customAlert(r("图片验证未通过")+": \n"+S.join("\n"),"warning");else if(0!==C.length)if(C.length>A)i.customAlert(r("一次最多上传")+A+r("张图片"),"warning");else if(x&&"function"==typeof x){var k;x(C,(0,o.default)(k=this.insertImg).call(k,this))}else{var B=new FormData;if((0,a.default)(C).call(C,function(e,t){var n=g||e.name;C.length>1&&(n+=t+1),B.append(n,e)}),l){var T=l.split("#");l=T[0];var E=T[1]||"";(0,a.default)(u).call(u,v,function(e,t){m&&((0,s.default)(l).call(l,"?")>0?l+="&":l+="?",l=l+e+"="+t),B.append(e,t)}),E&&(l+="#"+E);var I=c.default(l,{timeout:b,formData:B,headers:y,withCredentials:!!w,beforeSend:function(e){if(_.before)return _.before(e,n,C)},onTimeout:function(e){i.customAlert(r("上传图片超时"),"error"),_.timeout&&_.timeout(e,n)},onProgress:function(e,t){var i=new h.default(n);t.lengthComputable&&(e=t.loaded/t.total,i.show(e))},onError:function(e){i.customAlert(r("上传图片错误"),"error",r("上传图片错误")+","+r("服务器返回状态")+": "+e.status),_.error&&_.error(e,n)},onFail:function(e,t){i.customAlert(r("上传图片失败"),"error",r("上传图片返回结果错误")+","+r("返回结果")+": "+t),_.fail&&_.fail(e,n,t)},onSuccess:function(e,s){if(_.customInsert){var l;_.customInsert((0,o.default)(l=t.insertImg).call(l,t),s,n)}else{if("0"!=s.errno)return i.customAlert(r("上传图片失败"),"error",r("上传图片返回结果错误")+","+r("返回结果")+" errno="+s.errno),void(_.fail&&_.fail(e,n,s));var u=s.data;(0,a.default)(u).call(u,function(e){"string"==typeof e?t.insertImg(e):t.insertImg(e.url,e.alt,e.href)}),_.success&&_.success(e,n,s)}}});"string"==typeof I&&i.customAlert(I,"error")}else d&&u.arrForEach(e,function(e){var n=t,i=new FileReader;i.readAsDataURL(e),i.onload=function(){if(this.result){var e=this.result.toString();n.insertImg(e,e)}}})}else i.customAlert(r("传入的文件不合法"),"warning")}}},e}();t.default=d},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(410)),a=i(n(4)),s=i(n(45));function l(e){return!!e.length&&"w-e-todo"===e.attr("class")}function u(e,t){return 3===e.nodeType?e.nodeValue===t.nodeValue:e.contains(t)}function c(e,t,n){void 0===n&&(n=!0);var i=e.nodeValue,r=null===i||void 0===i?void 0:(0,s.default)(i).call(i,0,t);if(i=null===i||void 0===i?void 0:(0,s.default)(i).call(i,t),!n){var o=i;i=r,r=o}return e.nodeValue=r,i}(0,r.default)(t,"__esModule",{value:!0}),t.dealTextNode=t.isAllTodo=t.isTodo=t.getCursorNextNode=void 0,t.isTodo=l,t.isAllTodo=function(e){var t=e.selection.getSelectionRangeTopNodes();if(0!==t.length)return(0,o.default)(t).call(t,function(e){return l(e)})},t.getCursorNextNode=function e(t,n,i){var r;if(t.hasChildNodes()){var o=t.cloneNode(),s=!1;""===n.nodeValue&&(s=!0);var l=[];return(0,a.default)(r=t.childNodes).call(r,function(t){if(!u(t,n)&&s&&(o.appendChild(t.cloneNode(!0)),"BR"!==t.nodeName&&l.push(t)),u(t,n)){if(1===t.nodeType){var r=e(t,n,i);r&&""!==r.textContent&&(null===o||void 0===o||o.appendChild(r))}if(3===t.nodeType&&n.isEqualNode(t)){var a=c(t,i);o.textContent=a}s=!0}}),(0,a.default)(l).call(l,function(e){e.remove()}),o}},t.dealTextNode=c},function(e,t,n){"use strict";var i=n(0)(n(1));(0,i.default)(t,"__esModule",{value:!0});var r=n(430),o=function(){function e(e){this.maxSize=e,this.isRe=!1,this.data=new r.CeilStack(e),this.revokeData=new r.CeilStack(e)}return(0,i.default)(e.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),e.prototype.resetMaxSize=function(e){this.data.resetMax(e),this.revokeData.resetMax(e)},e.prototype.save=function(e){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(e),this},e.prototype.revoke=function(e){!this.isRe&&(this.isRe=!0);var t=this.data.outstack();return!!t&&(this.revokeData.instack(t),e(t),!0)},e.prototype.restore=function(e){!this.isRe&&(this.isRe=!0);var t=this.revokeData.outstack();return!!t&&(this.data.instack(t),e(t),!0)},e}();t.default=o},function(e,t,n){var i=n(14),r=n(11),o=n(73);e.exports=!i&&!r(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(11),r=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=l&&("function"==typeof t?i(t):!!t)},a=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},function(e,t,n){var i=n(103),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},function(e,t,n){var i=n(8),r=n(166),o=i["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=o},function(e,t,n){"use strict";var i,r,o,a=n(105),s=n(19),l=n(16),u=n(10),c=n(43),h=u("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(r=a(a(o)))!==Object.prototype&&(i=r):d=!0),void 0==i&&(i={}),c||l(i,h)||s(i,h,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var i=n(16),r=n(31),o=n(63),a=n(168),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),i(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){var i=n(76);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var i=n(16),r=n(30),o=n(78).indexOf,a=n(51);e.exports=function(e,t){var n,s=r(e),l=0,u=[];for(n in s)!i(a,n)&&i(s,n)&&u.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var i=n(36);e.exports=i("document","documentElement")},function(e,t,n){var i=n(8);e.exports=i.Promise},function(e,t,n){var i=n(53);e.exports=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:i(e,r,t[r],n);return e}},function(e,t,n){"use strict";var i=n(36),r=n(18),o=n(10),a=n(14),s=o("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var i=n(10),r=n(44),o=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},function(e,t,n){var i=n(65),r=n(44),o=n(10)("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||r[i(e)]}},function(e,t,n){var i=n(25);e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&i(o.call(e)),t}}},function(e,t,n){var i=n(10)("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var i=n(25),r=n(41),o=n(10)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||void 0==(n=i(a)[o])?t:r(n)}},function(e,t,n){var i,r,o,a=n(8),s=n(11),l=n(34),u=n(40),c=n(108),h=n(73),d=n(118),f=a.location,p=a.setImmediate,A=a.clearImmediate,g=a.process,v=a.MessageChannel,m=a.Dispatch,y=0,_={},b=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},w=function(e){return function(){b(e)}},x=function(e){b(e.data)},C=function(e){a.postMessage(e+"",f.protocol+"//"+f.host)};p&&A||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(y),y},A=function(e){delete _[e]},"process"==l(g)?i=function(e){g.nextTick(w(e))}:m&&m.now?i=function(e){m.now(w(e))}:v&&!d?(o=(r=new v).port2,r.port1.onmessage=x,i=u(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(C)||"file:"===f.protocol?i="onreadystatechange"in h("script")?function(e){c.appendChild(h("script")).onreadystatechange=function(){c.removeChild(this),b(e)}}:function(e){setTimeout(w(e),0)}:(i=C,a.addEventListener("message",x,!1))),e.exports={set:p,clear:A}},function(e,t,n){var i=n(84);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},function(e,t,n){var i=n(25),r=n(13),o=n(85);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){e.exports=n(197)},function(e,t,n){"use strict";var i=n(5),r=n(8),o=n(123),a=n(11),s=n(19),l=n(66),u=n(83),c=n(13),h=n(37),d=n(18).f,f=n(32).forEach,p=n(14),A=n(42),g=A.set,v=A.getterFor;e.exports=function(e,t,n){var A,m=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),_=m?"set":"add",b=r[e],w=b&&b.prototype,x={};if(p&&"function"==typeof b&&(y||w.forEach&&!a(function(){(new b).entries().next()}))){A=t(function(t,n){g(u(t,A,e),{type:e,collection:new b}),void 0!=n&&l(n,t[_],t,m)});var C=v(e);f(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(e){var t="add"==e||"set"==e;e in w&&(!y||"clear"!=e)&&s(A.prototype,e,function(n,i){var r=C(this).collection;if(!t&&y&&!c(n))return"get"==e&&void 0;var o=r[e](0===n?0:n,i);return t?this:o})}),y||d(A.prototype,"size",{configurable:!0,get:function(){return C(this).collection.size}})}else A=n.getConstructor(t,e,m,_),o.REQUIRED=!0;return h(A,e,!1,!0),x[e]=A,i({global:!0,forced:!0},x),y||n.setStrong(A,e,m),A}},function(e,t,n){var i=n(51),r=n(13),o=n(16),a=n(18).f,s=n(64),l=n(200),u=s("meta"),c=0,h=Object.isExtensible||function(){return!0},d=function(e){a(e,u,{value:{objectID:"O"+ ++c,weakData:{}}})},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,u)){if(!h(e))return"F";if(!t)return"E";d(e)}return e[u].objectID},getWeakData:function(e,t){if(!o(e,u)){if(!h(e))return!0;if(!t)return!1;d(e)}return e[u].weakData},onFreeze:function(e){return l&&f.REQUIRED&&h(e)&&!o(e,u)&&d(e),e}};i[u]=!0},function(e,t,n){"use strict";var i=n(18).f,r=n(77),o=n(110),a=n(40),s=n(83),l=n(66),u=n(75),c=n(111),h=n(14),d=n(123).fastKey,f=n(42),p=f.set,A=f.getterFor;e.exports={getConstructor:function(e,t,n,u){var c=e(function(e,i){s(e,c,t),p(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),h||(e.size=0),void 0!=i&&l(i,e[u],e,n)}),f=A(t),g=function(e,t,n){var i,r,o=f(e),a=v(e,t);return a?a.value=n:(o.last=a={index:r=d(t,!0),key:t,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),h?o.size++:e.size++,"F"!==r&&(o.index[r]=a)),e},v=function(e,t){var n,i=f(e),r=d(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return o(c.prototype,{clear:function(){for(var e=f(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t=f(this),n=v(this,e);if(n){var i=n.next,r=n.previous;delete t.index[n.index],n.removed=!0,r&&(r.next=i),i&&(i.previous=r),t.first==n&&(t.first=i),t.last==n&&(t.last=r),h?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=f(this),i=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(c.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),h&&i(c.prototype,"size",{get:function(){return f(this).size}}),c},setStrong:function(e,t,n){var i=t+" Iterator",r=A(t),o=A(i);u(e,t,function(e,t){p(this,{type:i,target:e,state:r(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),c(t)}}},function(e,t,n){n(12)("iterator")},function(e,t,n){var i=n(107),r=n(80).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){e.exports=n(268)},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={zIndex:1e4}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={focus:!0,height:300,placeholder:"请输入正文",zIndexFullScreen:10002,showFullScreen:!0}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0}),t.getPasteImgs=t.getPasteHtml=t.getPasteText=void 0;var a=n(2),s=n(6),l=a.__importDefault(n(292));function u(e){var t=e.clipboardData,n="";return n=null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain"),s.replaceHtmlSymbol(n)}t.getPasteText=u,t.getPasteHtml=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=e.clipboardData,r="";if(i&&(r=i.getData("text/html")),!r){var o=u(e);if(!o)return"";r="<p>"+o+"</p>"}return r=(r=r.replace(/<(\d)/gm,function(e,t){return"&lt;"+t})).replace(/<(\/?meta.*?)>/gim,""),r=l.default(r,t,n)},t.getPasteImgs=function(e){var t,n=[];if(u(e))return n;var i=null===(t=e.clipboardData)||void 0===t?void 0:t.items;return i?((0,o.default)(s).call(s,i,function(e,t){var i=t.type;/image/i.test(i)&&n.push(t.getAsFile())}),n):n}},function(e,t,n){e.exports=n(294)},function(e,t,n){e.exports=n(310)},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(46));(0,r.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3)),l=n(7),u=function(){function e(e,t){var n=this;this.hideTimeoutId=0,this.menu=e,this.conf=t;var i=s.default('<div class="w-e-droplist"></div>'),r=s.default("<p>"+t.title+"</p>");r.addClass("w-e-dp-title"),i.append(r);var u=t.list||[],c=t.type||"list",h=t.clickHandler||l.EMPTY_FN,d=s.default('<ul class="'+("list"===c?"w-e-list":"w-e-block")+'"></ul>');(0,o.default)(u).call(u,function(e){var t=e.$elem,i=e.value,r=s.default('<li class="w-e-item"></li>');t&&(r.append(t),d.append(r),r.on("click",function(e){h(i),e.stopPropagation(),n.hideTimeoutId=(0,a.default)(function(){n.hide()})}))}),i.append(d),i.on("mouseleave",function(){n.hideTimeoutId=(0,a.default)(function(){n.hide()})}),this.$container=i,this.rendered=!1,this._show=!1}return e.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e=this.menu.$elem,t=this.$container;if(!this._show){if(this.rendered)t.show();else{var n=e.getBoundingClientRect().height||0,i=this.conf.width||100;t.css("margin-top",n+"px").css("width",i+"px"),e.append(t),this.rendered=!0}this._show=!0}},e.prototype.hide=function(){var e=this.$container;this._show&&(e.hide(),this._show=!1)},(0,r.default)(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t.default=u},function(e,t,n){"use strict";var i=n(0),r=i(n(92)),o=i(n(1)),a=i(n(4));(0,o.default)(t,"__esModule",{value:!0});var s=n(6);t.default=function(e,t){var n=new XMLHttpRequest;if(n.open("POST",e),n.timeout=t.timeout||1e4,n.ontimeout=function(){console.error("wangEditor - 请求超时"),t.onTimeout&&t.onTimeout(n)},n.upload&&(n.upload.onprogress=function(e){var n=e.loaded/e.total;t.onProgress&&t.onProgress(n,e)}),t.headers&&(0,a.default)(s).call(s,t.headers,function(e,t){n.setRequestHeader(e,t)}),n.withCredentials=!!t.withCredentials,t.beforeSend){var i=t.beforeSend(n);if(i&&"object"===(0,r.default)(i)&&i.prevent)return i.msg}return n.onreadystatechange=function(){if(4===n.readyState){var e=n.status;if(!(e<200||e>=300&&e<400)){if(e>=400)return console.error("wangEditor - XHR 报错,状态码 "+e),void(t.onError&&t.onError(n));var i,o=n.responseText;if("object"!==(0,r.default)(o))try{i=JSON.parse(o)}catch(e){return console.error("wangEditor - 返回结果不是 JSON 格式",o),void(t.onFail&&t.onFail(n,o))}else i=o;t.onSuccess(n,i)}}},n.send(t.formData||null),n}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(342)),a=i(n(46));(0,r.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3)),l=function(){function e(e){this.editor=e,this.$textContainer=e.$textContainerElem,this.$bar=s.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return e.prototype.show=function(e){var t=this;if(!this.isShow){this.isShow=!0;var n=this.$bar;this.$textContainer.append(n),(0,o.default)()-this.time>100&&e<=1&&(n.css("width",100*e+"%"),this.time=(0,o.default)());var i=this.timeoutId;i&&clearTimeout(i),this.timeoutId=(0,a.default)(function(){t.hide()},500)}},e.prototype.hide=function(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},e}();t.default=l},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListType=void 0;var i,r=n(2),o=r.__importDefault(n(3)),a=r.__importDefault(n(24)),s=n(47),l=r.__importStar(n(371));!function(e){e.OrderedList="OL",e.UnorderedList="UL"}(i=t.ListType||(t.ListType={}));var u=function(e){function t(t){var n=this,r=o.default('<div class="w-e-menu" data-title="序列">\n <i class="w-e-icon-list2"></i>\n </div>'),a={width:130,title:"序列",type:"list",list:[{$elem:o.default('\n <p>\n <i class="w-e-icon-list2 w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.list.无序列表")+"\n <p>"),value:i.UnorderedList},{$elem:o.default('<p>\n <i class="w-e-icon-list-numbered w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.list.有序列表")+"\n <p>"),value:i.OrderedList}],clickHandler:function(e){n.command(e)}};return n=e.call(this,r,t,a)||this}return r.__extends(t,e),t.prototype.command=function(e){void 0!==this.editor.selection.getSelectionContainerElem()&&(this.handleSelectionRangeNodes(e),this.tryChangeActive())},t.prototype.validator=function(e,t,n){return!(!e.length||!t.length||n.equal(e)||n.equal(t))},t.prototype.handleSelectionRangeNodes=function(e){var t=this.editor,n=t.selection,i=e.toLowerCase(),r=n.getSelectionContainerElem(),o=n.getSelectionStartElem().getNodeTop(t),a=n.getSelectionEndElem().getNodeTop(t);if(this.validator(o,a,t.$textElem)){var u=n.getRange(),c=null===u||void 0===u?void 0:u.collapsed;t.$textElem.equal(r)||(r=r.getNodeTop(t));var h,d={editor:t,listType:e,listTarget:i,$selectionElem:r,$startElem:o,$endElem:a};h=this.isOrderElem(r)?l.ClassType.Wrap:this.isOrderElem(o)&&this.isOrderElem(a)?l.ClassType.Join:this.isOrderElem(o)?l.ClassType.StartJoin:this.isOrderElem(a)?l.ClassType.EndJoin:l.ClassType.Other;var f=new l.default(l.createListHandle(h,d,u));s.updateRange(t,f.getSelectionRangeElem(),!!c)}},t.prototype.isOrderElem=function(e){var t=e.getNodeName();return t===i.OrderedList||t===i.UnorderedList},t.prototype.tryChangeActive=function(){},t}(a.default);t.default=u},function(e,t,n){e.exports=n(395)},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.selection.getSelectionContainerElem();return!(null===t||void 0===t||!t.length||"CODE"!=t.getNodeName()&&"PRE"!=t.getNodeName()&&"CODE"!=t.parent().getNodeName()&&"PRE"!=t.parent().getNodeName()&&!/hljs/.test(t.parent().attr("class")))}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(29));(0,r.default)(t,"__esModule",{value:!0}),t.todo=void 0;var a=n(2).__importDefault(n(3)),s=function(){function e(e){var t;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=a.default(this.template),this.$child=null===(t=null===e||void 0===e?void 0:e.childNodes())||void 0===t?void 0:t.clone(!0)}return e.prototype.init=function(){var e=this.$child,t=this.getInputContainer();e&&e.insertAfter(t)},e.prototype.getInput=function(){var e=this.$todo;return(0,o.default)(e).call(e,"input")},e.prototype.getInputContainer=function(){return this.getInput().parent()},e.prototype.getTodo=function(){return this.$todo},e}();t.todo=s,t.default=function(e){var t=new s(e);return t.init(),t}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2);n(146),n(148),n(152),n(154),n(156),n(158),n(160);var r=i.__importDefault(n(87));i.__exportStar(n(442),t);try{document}catch(e){throw new Error("请在浏览器环境下运行")}t.default=r.default},function(e,t,n){var i=n(143);e.exports=i},function(e,t,n){n(144);var i=n(9).Object,r=e.exports=function(e,t,n){return i.defineProperty(e,t,n)};i.defineProperty.sham&&(r.sham=!0)},function(e,t,n){var i=n(5),r=n(14);i({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:n(18).f})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var i=n(20),r=n(147);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o);e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar,\n.w-e-text-container,\n.w-e-menu-panel {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n background-color: #fff;\n /*表情菜单样式*/\n /*分割线样式*/\n}\n.w-e-toolbar h1,\n.w-e-text-container h1,\n.w-e-menu-panel h1 {\n font-size: 32px !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n font-size: 24px !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n font-size: 18.72px !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n font-size: 16px !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n font-size: 13.28px !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n font-size: 16px !important;\n}\n.w-e-toolbar .eleImg,\n.w-e-text-container .eleImg,\n.w-e-menu-panel .eleImg {\n cursor: pointer;\n display: inline-block;\n font-size: 18px;\n padding: 0 3px;\n}\n.w-e-toolbar *,\n.w-e-text-container *,\n.w-e-menu-panel * {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n.w-e-toolbar hr,\n.w-e-text-container hr,\n.w-e-menu-panel hr {\n cursor: pointer;\n display: block;\n height: 0px;\n border: 0;\n border-top: 3px solid #ccc;\n margin: 20px 0;\n}\n.w-e-clear-fix:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-drop-list-item {\n position: relative;\n top: 1px;\n padding-right: 7px;\n color: #333 !important;\n}\n.w-e-drop-list-tl {\n padding-left: 10px;\n text-align: left;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),r=n(149);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o);e.exports=r.locals||{}},function(e,t,n){var i=n(21),r=n(150),o=n(151);t=i(!1);var a=r(o);t.push([e.i,"@font-face {\n font-family: 'w-e-icon';\n src: url("+a+') format(\'truetype\');\n font-weight: normal;\n font-style: normal;\n}\n[class^="w-e-icon-"],\n[class*=" w-e-icon-"] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'w-e-icon\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.w-e-icon-close:before {\n content: "\\f00d";\n}\n.w-e-icon-upload2:before {\n content: "\\e9c6";\n}\n.w-e-icon-trash-o:before {\n content: "\\f014";\n}\n.w-e-icon-header:before {\n content: "\\f1dc";\n}\n.w-e-icon-pencil2:before {\n content: "\\e906";\n}\n.w-e-icon-paint-brush:before {\n content: "\\f1fc";\n}\n.w-e-icon-image:before {\n content: "\\e90d";\n}\n.w-e-icon-play:before {\n content: "\\e912";\n}\n.w-e-icon-location:before {\n content: "\\e947";\n}\n.w-e-icon-undo:before {\n content: "\\e965";\n}\n.w-e-icon-redo:before {\n content: "\\e966";\n}\n.w-e-icon-quotes-left:before {\n content: "\\e977";\n}\n.w-e-icon-list-numbered:before {\n content: "\\e9b9";\n}\n.w-e-icon-list2:before {\n content: "\\e9bb";\n}\n.w-e-icon-link:before {\n content: "\\e9cb";\n}\n.w-e-icon-happy:before {\n content: "\\e9df";\n}\n.w-e-icon-bold:before {\n content: "\\ea62";\n}\n.w-e-icon-underline:before {\n content: "\\ea63";\n}\n.w-e-icon-italic:before {\n content: "\\ea64";\n}\n.w-e-icon-strikethrough:before {\n content: "\\ea65";\n}\n.w-e-icon-table2:before {\n content: "\\ea71";\n}\n.w-e-icon-paragraph-left:before {\n content: "\\ea77";\n}\n.w-e-icon-paragraph-center:before {\n content: "\\ea78";\n}\n.w-e-icon-paragraph-right:before {\n content: "\\ea79";\n}\n.w-e-icon-paragraph-justify:before {\n content: "\\ea7a";\n}\n.w-e-icon-terminal:before {\n content: "\\f120";\n}\n.w-e-icon-page-break:before {\n content: "\\ea68";\n}\n.w-e-icon-cancel-circle:before {\n content: "\\ea0d";\n}\n.w-e-icon-font:before {\n content: "\\ea5c";\n}\n.w-e-icon-text-heigh:before {\n content: "\\ea5f";\n}\n.w-e-icon-paint-format:before {\n content: "\\e90c";\n}\n.w-e-icon-indent-increase:before {\n content: "\\ea7b";\n}\n.w-e-icon-indent-decrease:before {\n content: "\\ea7c";\n}\n.w-e-icon-row-height:before {\n content: "\\e9be";\n}\n.w-e-icon-fullscreen_exit:before {\n content: "\\e900";\n}\n.w-e-icon-fullscreen:before {\n content: "\\e901";\n}\n.w-e-icon-split-line:before {\n content: "\\ea0b";\n}\n.w-e-icon-checkbox-checked:before {\n content: "\\ea52";\n}\n',""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){"use strict";n.r(t),t.default="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(e,t,n){var i=n(20),r=n(153);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o);e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar {\n display: flex;\n padding: 0 6px;\n flex-wrap: wrap;\n position: relative;\n /* 单个菜单 */\n}\n.w-e-toolbar .w-e-menu {\n position: relative;\n display: flex;\n width: 40px;\n height: 40px;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n}\n.w-e-toolbar .w-e-menu i {\n color: #999;\n}\n.w-e-toolbar .w-e-menu:hover {\n background-color: #F6F6F6;\n}\n.w-e-toolbar .w-e-menu:hover i {\n color: #333;\n}\n.w-e-toolbar .w-e-active i {\n color: #1e88e5;\n}\n.w-e-toolbar .w-e-active:hover i {\n color: #1e88e5;\n}\n.w-e-menu-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-menu-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-item-wrapper {\n font-size: 14px;\n margin: 0 5px;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),r=n(155);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o);e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-text-container {\n position: relative;\n height: 100%;\n}\n.w-e-text-container .w-e-progress {\n position: absolute;\n background-color: #1e88e5;\n top: 0;\n left: 0;\n height: 1px;\n}\n.w-e-text-container .placeholder {\n color: #D4D4D4;\n position: absolute;\n font-size: 11pt;\n line-height: 22px;\n left: 10px;\n top: 10px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n z-index: -1;\n}\n.w-e-text {\n padding: 0 10px;\n overflow-y: auto;\n}\n.w-e-text p,\n.w-e-text h1,\n.w-e-text h2,\n.w-e-text h3,\n.w-e-text h4,\n.w-e-text h5,\n.w-e-text table,\n.w-e-text pre {\n margin: 10px 0;\n line-height: 1.5;\n}\n.w-e-text ul,\n.w-e-text ol {\n margin: 10px 0 10px 20px;\n}\n.w-e-text blockquote {\n display: block;\n border-left: 8px solid #d0e5f2;\n padding: 5px 10px;\n margin: 10px 0;\n line-height: 1.4;\n font-size: 100%;\n background-color: #f1f1f1;\n}\n.w-e-text code {\n display: inline-block;\n background-color: #f1f1f1;\n border-radius: 3px;\n padding: 3px 5px;\n margin: 0 3px;\n}\n.w-e-text pre code {\n display: block;\n}\n.w-e-text table {\n border-top: 1px solid #ccc;\n border-left: 1px solid #ccc;\n}\n.w-e-text table td,\n.w-e-text table th {\n border-bottom: 1px solid #ccc;\n border-right: 1px solid #ccc;\n padding: 3px 5px;\n min-height: 30px;\n height: 30px;\n}\n.w-e-text table th {\n border-bottom: 2px solid #ccc;\n text-align: center;\n background-color: #f1f1f1;\n}\n.w-e-text:focus {\n outline: none;\n}\n.w-e-text img {\n cursor: pointer;\n}\n.w-e-text img:hover {\n box-shadow: 0 0 5px #333;\n}\n.w-e-text .w-e-todo {\n margin: 0 0 0 20px;\n}\n.w-e-text .w-e-todo li {\n list-style: none;\n font-size: 1em;\n}\n.w-e-text .w-e-todo li span:nth-child(1) {\n position: relative;\n left: -18px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input {\n position: absolute;\n margin-right: 3px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {\n top: 50%;\n margin-top: -6px;\n}\n.w-e-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-item-wrapper {\n cursor: pointer;\n font-size: 14px;\n margin: 0 5px;\n}\n.w-e-tooltip-item-wrapper:hover {\n color: #ccc;\n text-decoration: underline;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),r=n(157);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o);e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-menu .w-e-panel-container {\n position: absolute;\n top: 0;\n left: 50%;\n border: 1px solid #ccc;\n border-top: 0;\n box-shadow: 1px 1px 2px #ccc;\n color: #333;\n background-color: #fff;\n text-align: left;\n /* 为 emotion panel 定制的样式 */\n /* 上传图片、上传视频的 panel 定制样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n margin: 2px 5px 0 0;\n cursor: pointer;\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close:hover {\n color: #333;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title {\n list-style: none;\n display: flex;\n font-size: 14px;\n margin: 2px 10px 0 10px;\n border-bottom: 1px solid #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {\n padding: 3px 5px;\n color: #999;\n cursor: pointer;\n margin: 0 3px;\n position: relative;\n top: 1px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {\n color: #333;\n border-bottom: 1px solid #333;\n cursor: default;\n font-weight: 700;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content {\n padding: 10px 15px 10px 15px;\n font-size: 16px;\n /* 输入框的样式 */\n /* 按钮的样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {\n outline: none;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {\n width: 100%;\n border: 1px solid #ccc;\n padding: 5px;\n margin-top: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {\n border-color: #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {\n border: none;\n border-bottom: 1px solid #ccc;\n font-size: 14px;\n height: 20px;\n color: #333;\n text-align: left;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {\n width: 30px;\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {\n display: block;\n width: 100%;\n margin: 10px 0;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {\n border-bottom: 2px solid #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {\n font-size: 14px;\n color: #1e88e5;\n border: none;\n padding: 5px 10px;\n background-color: #fff;\n cursor: pointer;\n border-radius: 3px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {\n float: left;\n margin-right: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {\n float: right;\n margin-left: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {\n color: #c24f4a;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {\n background-color: #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {\n cursor: pointer;\n font-size: 18px;\n padding: 0 3px;\n display: inline-block;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container,\n.w-e-menu .w-e-panel-container .w-e-up-video-container {\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {\n display: inline-block;\n color: #999;\n cursor: pointer;\n font-size: 60px;\n line-height: 1;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {\n color: #333;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),r=n(159);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o);e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-toolbar .w-e-droplist {\n position: absolute;\n left: 0;\n top: 0;\n background-color: #fff;\n border: 1px solid #f1f1f1;\n border-right-color: #ccc;\n border-bottom-color: #ccc;\n}\n.w-e-toolbar .w-e-droplist .w-e-dp-title {\n text-align: center;\n color: #999;\n line-height: 2;\n border-bottom: 1px solid #f1f1f1;\n font-size: 13px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list {\n list-style: none;\n line-height: 1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {\n color: #333;\n padding: 5px 0;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block {\n list-style: none;\n text-align: left;\n padding: 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {\n display: inline-block;\n padding: 3px 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var i=n(0)(n(161));Element.prototype.matches||(Element.prototype.matches=function(e){for(var t=this.ownerDocument.querySelectorAll(e),n=t.length;n>=0&&t.item(n)!==this;n--);return n>-1}),i.default||(window.Promise=i.default)},function(e,t,n){e.exports=n(162)},function(e,t,n){var i=n(163);e.exports=i},function(e,t,n){n(61),n(50),n(54),n(175),n(178),n(179);var i=n(9);e.exports=i.Promise},function(e,t,n){var i=n(62),r=n(49),o=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var i=n(8),r=n(102),o=i.WeakMap;e.exports="function"==typeof o&&/native code/.test(r(o))},function(e,t,n){var i=n(8),r=n(19);e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},function(e,t,n){"use strict";var i=n(104).IteratorPrototype,r=n(77),o=n(48),a=n(37),s=n(44),l=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=r(i,{next:o(1,n)}),a(e,u,!1,!0),s[u]=l,e}},function(e,t,n){var i=n(11);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var i=n(14),r=n(18),o=n(25),a=n(52);e.exports=i?Object.defineProperties:function(e,t){o(e);for(var n,i=a(t),s=i.length,l=0;s>l;)r.f(e,n=i[l++],t[n]);return e}},function(e,t,n){"use strict";var i=n(81),r=n(65);e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,n){var i=n(25),r=n(172);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return i(n),r(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){var i=n(13);e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var i=n(30),r=n(82),o=n(44),a=n(42),s=n(75),l=a.set,u=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){l(this,{type:"Array Iterator",target:i(e),index:0,kind:t})},function(){var e=u(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var i,r,o,a,s=n(5),l=n(43),u=n(8),c=n(36),h=n(109),d=n(53),f=n(110),p=n(37),A=n(111),g=n(13),v=n(41),m=n(83),y=n(34),_=n(102),b=n(66),w=n(115),x=n(116),C=n(117).set,S=n(176),k=n(119),B=n(177),T=n(85),E=n(120),I=n(42),M=n(101),D=n(10),P=n(86),F=D("species"),O="Promise",L=I.get,N=I.set,R=I.getterFor(O),U=h,Q=u.TypeError,H=u.document,j=u.process,V=c("fetch"),z=T.f,$=z,G="process"==y(j),W=!!(H&&H.createEvent&&u.dispatchEvent),K=M(O,function(){if(!(_(U)!==String(U))){if(66===P)return!0;if(!G&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!U.prototype.finally)return!0;if(P>=51&&/native code/.test(U))return!1;var e=U.resolve(1),t=function(e){e(function(){},function(){})};return(e.constructor={})[F]=t,!(e.then(function(){})instanceof t)}),Y=K||!w(function(e){U.all(e).catch(function(){})}),q=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},X=function(e,t,n){if(!t.notified){t.notified=!0;var i=t.reactions;S(function(){for(var r=t.value,o=1==t.state,a=0;i.length>a;){var s,l,u,c=i[a++],h=o?c.ok:c.fail,d=c.resolve,f=c.reject,p=c.domain;try{h?(o||(2===t.rejection&&te(e,t),t.rejection=1),!0===h?s=r:(p&&p.enter(),s=h(r),p&&(p.exit(),u=!0)),s===c.promise?f(Q("Promise-chain cycle")):(l=q(s))?l.call(s,d,f):d(s)):f(r)}catch(e){p&&!u&&p.exit(),f(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Z(e,t)})}},J=function(e,t,n){var i,r;W?((i=H.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),u.dispatchEvent(i)):i={promise:t,reason:n},(r=u["on"+e])?r(i):"unhandledrejection"===e&&B("Unhandled promise rejection",n)},Z=function(e,t){C.call(u,function(){var n,i=t.value;if(ee(t)&&(n=E(function(){G?j.emit("unhandledRejection",i,e):J("unhandledrejection",e,i)}),t.rejection=G||ee(t)?2:1,n.error))throw n.value})},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){C.call(u,function(){G?j.emit("rejectionHandled",e):J("rejectionhandled",e,t.value)})},ne=function(e,t,n,i){return function(r){e(t,n,r,i)}},ie=function(e,t,n,i){t.done||(t.done=!0,i&&(t=i),t.value=n,t.state=2,X(e,t,!0))},re=function(e,t,n,i){if(!t.done){t.done=!0,i&&(t=i);try{if(e===n)throw Q("Promise can't be resolved itself");var r=q(n);r?S(function(){var i={done:!1};try{r.call(n,ne(re,e,i,t),ne(ie,e,i,t))}catch(n){ie(e,i,n,t)}}):(t.value=n,t.state=1,X(e,t,!1))}catch(n){ie(e,{done:!1},n,t)}}};K&&(U=function(e){m(this,U,O),v(e),i.call(this);var t=L(this);try{e(ne(re,this,t),ne(ie,this,t))}catch(e){ie(this,t,e)}},(i=function(e){N(this,{type:O,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(U.prototype,{then:function(e,t){var n=R(this),i=z(x(this,U));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=G?j.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&X(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i,t=L(e);this.promise=e,this.resolve=ne(re,e,t),this.reject=ne(ie,e,t)},T.f=z=function(e){return e===U||e===o?new r(e):$(e)},l||"function"!=typeof h||(a=h.prototype.then,d(h.prototype,"then",function(e,t){var n=this;return new U(function(e,t){a.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof V&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return k(U,V.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:K},{Promise:U}),p(U,O,!1,!0),A(O),o=c(O),s({target:O,stat:!0,forced:K},{reject:function(e){var t=z(this);return t.reject.call(void 0,e),t.promise}}),s({target:O,stat:!0,forced:l||K},{resolve:function(e){return k(l&&this===o?U:this,e)}}),s({target:O,stat:!0,forced:Y},{all:function(e){var t=this,n=z(t),i=n.resolve,r=n.reject,o=E(function(){var n=v(t.resolve),o=[],a=0,s=1;b(e,function(e){var l=a++,u=!1;o.push(void 0),s++,n.call(t,e).then(function(e){u||(u=!0,o[l]=e,--s||i(o))},r)}),--s||i(o)});return o.error&&r(o.value),n.promise},race:function(e){var t=this,n=z(t),i=n.reject,r=E(function(){var r=v(t.resolve);b(e,function(e){r.call(t,e).then(n.resolve,i)})});return r.error&&i(r.value),n.promise}})},function(e,t,n){var i,r,o,a,s,l,u,c,h=n(8),d=n(71).f,f=n(34),p=n(117).set,A=n(118),g=h.MutationObserver||h.WebKitMutationObserver,v=h.process,m=h.Promise,y="process"==f(v),_=d(h,"queueMicrotask"),b=_&&_.value;b||(i=function(){var e,t;for(y&&(e=v.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(e){throw r?a():o=void 0,e}}o=void 0,e&&e.enter()},y?a=function(){v.nextTick(i)}:g&&!A?(s=!0,l=document.createTextNode(""),new g(i).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):m&&m.resolve?(u=m.resolve(void 0),c=u.then,a=function(){c.call(u,i)}):a=function(){p.call(h,i)}),e.exports=b||function(e){var t={fn:e,next:void 0};o&&(o.next=t),r||(r=t,a()),o=t}},function(e,t,n){var i=n(8);e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";var i=n(5),r=n(41),o=n(85),a=n(120),s=n(66);i({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),i=n.resolve,l=n.reject,u=a(function(){var n=r(t.resolve),o=[],a=0,l=1;s(e,function(e){var r=a++,s=!1;o.push(void 0),l++,n.call(t,e).then(function(e){s||(s=!0,o[r]={status:"fulfilled",value:e},--l||i(o))},function(e){s||(s=!0,o[r]={status:"rejected",reason:e},--l||i(o))})}),--l||i(o)});return u.error&&l(u.value),n.promise}})},function(e,t,n){"use strict";var i=n(5),r=n(43),o=n(109),a=n(11),s=n(36),l=n(116),u=n(119),c=n(53);i({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=l(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then(function(){return n})}:e,n?function(n){return u(t,e()).then(function(){throw n})}:e)}}),r||"function"!=typeof o||o.prototype.finally||c(o.prototype,"finally",s("Promise").prototype.finally)},function(e,t,n){n(54);var i=n(181),r=n(65),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===o||e instanceof Array&&t===o.forEach||a.hasOwnProperty(r(e))?i:t}},function(e,t,n){var i=n(182);e.exports=i},function(e,t,n){n(183);var i=n(15);e.exports=i("Array").forEach},function(e,t,n){"use strict";var i=n(5),r=n(184);i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,n){"use strict";var i=n(32).forEach,r=n(67),o=n(22),a=r("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var i=n(186);e.exports=i},function(e,t,n){n(187);var i=n(9);e.exports=i.Array.isArray},function(e,t,n){n(5)({target:"Array",stat:!0},{isArray:n(55)})},function(e,t,n){var i=n(189);e.exports=i},function(e,t,n){var i=n(190),r=Array.prototype;e.exports=function(e){var t=e.map;return e===r||e instanceof Array&&t===r.map?i:t}},function(e,t,n){n(191);var i=n(15);e.exports=i("Array").map},function(e,t,n){"use strict";var i=n(5),r=n(32).map,o=n(56),a=n(22),s=o("map"),l=a("map");i({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(193);e.exports=i},function(e,t,n){var i=n(194),r=String.prototype;e.exports=function(e){var t=e.trim;return"string"==typeof e||e===r||e instanceof String&&t===r.trim?i:t}},function(e,t,n){n(195);var i=n(15);e.exports=i("String").trim},function(e,t,n){"use strict";var i=n(5),r=n(90).trim;i({target:"String",proto:!0,forced:n(196)("trim")},{trim:function(){return r(this)}})},function(e,t,n){var i=n(11),r=n(68);e.exports=function(e){return i(function(){return!!r[e]()||"​…᠎"!="​…᠎"[e]()||r[e].name!==e})}},function(e,t,n){var i=n(198);e.exports=i},function(e,t,n){n(199),n(61),n(50),n(54);var i=n(9);e.exports=i.Map},function(e,t,n){"use strict";var i=n(122),r=n(124);e.exports=i("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},r)},function(e,t,n){var i=n(11);e.exports=!i(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var i=n(202);e.exports=i},function(e,t,n){var i=n(203),r=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===r||e instanceof Array&&t===r.indexOf?i:t}},function(e,t,n){n(204);var i=n(15);e.exports=i("Array").indexOf},function(e,t,n){"use strict";var i=n(5),r=n(78).indexOf,o=n(67),a=n(22),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,u=o("indexOf"),c=a("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:l||!u||!c},{indexOf:function(e){return l?s.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(206);e.exports=i},function(e,t,n){var i=n(207),r=Array.prototype;e.exports=function(e){var t=e.splice;return e===r||e instanceof Array&&t===r.splice?i:t}},function(e,t,n){n(208);var i=n(15);e.exports=i("Array").splice},function(e,t,n){"use strict";var i=n(5),r=n(79),o=n(62),a=n(35),s=n(31),l=n(88),u=n(69),c=n(56),h=n(22),d=c("splice"),f=h("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,A=Math.min;i({target:"Array",proto:!0,forced:!d||!f},{splice:function(e,t){var n,i,c,h,d,f,g=s(this),v=a(g.length),m=r(e,v),y=arguments.length;if(0===y?n=i=0:1===y?(n=0,i=v-m):(n=y-2,i=A(p(o(t),0),v-m)),v+n-i>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(c=l(g,i),h=0;h<i;h++)(d=m+h)in g&&u(c,h,g[d]);if(c.length=i,n<i){for(h=m;h<v-i;h++)f=h+n,(d=h+i)in g?g[f]=g[d]:delete g[f];for(h=v;h>v-i+n;h--)delete g[h-1]}else if(n>i)for(h=v-i;h>m;h--)f=h+n-1,(d=h+i-1)in g?g[f]=g[d]:delete g[f];for(h=0;h<n;h++)g[h+m]=arguments[h+2];return g.length=v-i+n,c}})},function(e,t,n){var i=n(210);e.exports=i},function(e,t,n){var i=n(211),r=Array.prototype;e.exports=function(e){var t=e.filter;return e===r||e instanceof Array&&t===r.filter?i:t}},function(e,t,n){n(212);var i=n(15);e.exports=i("Array").filter},function(e,t,n){"use strict";var i=n(5),r=n(32).filter,o=n(56),a=n(22),s=o("filter"),l=a("filter");i({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(214);e.exports=i},function(e,t,n){var i=n(215),r=n(217),o=Array.prototype,a=String.prototype;e.exports=function(e){var t=e.includes;return e===o||e instanceof Array&&t===o.includes?i:"string"==typeof e||e===a||e instanceof String&&t===a.includes?r:t}},function(e,t,n){n(216);var i=n(15);e.exports=i("Array").includes},function(e,t,n){"use strict";var i=n(5),r=n(78).includes,o=n(82);i({target:"Array",proto:!0,forced:!n(22)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){n(218);var i=n(15);e.exports=i("String").includes},function(e,t,n){"use strict";var i=n(5),r=n(219),o=n(49);i({target:"String",proto:!0,forced:!n(221)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(r(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(220);e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var i=n(13),r=n(34),o=n(10)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==r(e))}},function(e,t,n){var i=n(10)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var i=n(223);e.exports=i},function(e,t,n){var i=n(224),r=Function.prototype;e.exports=function(e){var t=e.bind;return e===r||e instanceof Function&&t===r.bind?i:t}},function(e,t,n){n(225);var i=n(15);e.exports=i("Function").bind},function(e,t,n){n(5)({target:"Function",proto:!0},{bind:n(226)})},function(e,t,n){"use strict";var i=n(41),r=n(13),o=[].slice,a={};e.exports=Function.bind||function(e){var t=i(this),n=o.call(arguments,1),s=function(){var i=n.concat(o.call(arguments));return this instanceof s?function(e,t,n){if(!(t in a)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";a[t]=Function("C,a","return new C("+i.join(",")+")")}return a[t](e,n)}(t,i.length,i):t.apply(e,i)};return r(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){e.exports=n(228)},function(e,t,n){var i=n(229);e.exports=i},function(e,t,n){n(125),n(50),n(54);var i=n(93);e.exports=i.f("iterator")},function(e,t,n){e.exports=n(231)},function(e,t,n){var i=n(232);n(251),n(252),n(253),n(254),n(255),e.exports=i},function(e,t,n){n(233),n(61),n(234),n(236),n(237),n(238),n(239),n(125),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250);var i=n(9);e.exports=i.Symbol},function(e,t,n){"use strict";var i=n(5),r=n(11),o=n(55),a=n(13),s=n(31),l=n(35),u=n(69),c=n(88),h=n(56),d=n(10),f=n(86),p=d("isConcatSpreadable"),A=f>=51||!r(function(){var e=[];return e[p]=!1,e.concat()[0]!==e}),g=h("concat"),v=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)};i({target:"Array",proto:!0,forced:!A||!g},{concat:function(e){var t,n,i,r,o,a=s(this),h=c(a,0),d=0;for(t=-1,i=arguments.length;t<i;t++)if(o=-1===t?a:arguments[t],v(o)){if(d+(r=l(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<r;n++,d++)n in o&&u(h,d,o[n])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");u(h,d++,o)}return h.length=d,h}})},function(e,t,n){"use strict";var i=n(5),r=n(8),o=n(36),a=n(43),s=n(14),l=n(76),u=n(106),c=n(11),h=n(16),d=n(55),f=n(13),p=n(25),A=n(31),g=n(30),v=n(60),m=n(48),y=n(77),_=n(52),b=n(126),w=n(235),x=n(127),C=n(71),S=n(18),k=n(59),B=n(19),T=n(53),E=n(74),I=n(63),M=n(51),D=n(64),P=n(10),F=n(93),O=n(12),L=n(37),N=n(42),R=n(32).forEach,U=I("hidden"),Q=P("toPrimitive"),H=N.set,j=N.getterFor("Symbol"),V=Object.prototype,z=r.Symbol,$=o("JSON","stringify"),G=C.f,W=S.f,K=w.f,Y=k.f,q=E("symbols"),X=E("op-symbols"),J=E("string-to-symbol-registry"),Z=E("symbol-to-string-registry"),ee=E("wks"),te=r.QObject,ne=!te||!te.prototype||!te.prototype.findChild,ie=s&&c(function(){return 7!=y(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=G(V,t);i&&delete V[t],W(e,t,n),i&&e!==V&&W(V,t,i)}:W,re=function(e,t){var n=q[e]=y(z.prototype);return H(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},oe=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof z},ae=function(e,t,n){e===V&&ae(X,t,n),p(e);var i=v(t,!0);return p(n),h(q,i)?(n.enumerable?(h(e,U)&&e[U][i]&&(e[U][i]=!1),n=y(n,{enumerable:m(0,!1)})):(h(e,U)||W(e,U,m(1,{})),e[U][i]=!0),ie(e,i,n)):W(e,i,n)},se=function(e,t){p(e);var n=g(t),i=_(n).concat(he(n));return R(i,function(t){s&&!le.call(n,t)||ae(e,t,n[t])}),e},le=function(e){var t=v(e,!0),n=Y.call(this,t);return!(this===V&&h(q,t)&&!h(X,t))&&(!(n||!h(this,t)||!h(q,t)||h(this,U)&&this[U][t])||n)},ue=function(e,t){var n=g(e),i=v(t,!0);if(n!==V||!h(q,i)||h(X,i)){var r=G(n,i);return!r||!h(q,i)||h(n,U)&&n[U][i]||(r.enumerable=!0),r}},ce=function(e){var t=K(g(e)),n=[];return R(t,function(e){h(q,e)||h(M,e)||n.push(e)}),n},he=function(e){var t=e===V,n=K(t?X:g(e)),i=[];return R(n,function(e){!h(q,e)||t&&!h(V,e)||i.push(q[e])}),i};(l||(T((z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=D(e),n=function(e){this===V&&n.call(X,e),h(this,U)&&h(this[U],t)&&(this[U][t]=!1),ie(this,t,m(1,e))};return s&&ne&&ie(V,t,{configurable:!0,set:n}),re(t,e)}).prototype,"toString",function(){return j(this).tag}),T(z,"withoutSetter",function(e){return re(D(e),e)}),k.f=le,S.f=ae,C.f=ue,b.f=w.f=ce,x.f=he,F.f=function(e){return re(P(e),e)},s&&(W(z.prototype,"description",{configurable:!0,get:function(){return j(this).description}}),a||T(V,"propertyIsEnumerable",le,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:z}),R(_(ee),function(e){O(e)}),i({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=String(e);if(h(J,t))return J[t];var n=z(t);return J[t]=n,Z[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(h(Z,e))return Z[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),i({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?y(e):se(y(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ue}),i({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ce,getOwnPropertySymbols:he}),i({target:"Object",stat:!0,forced:c(function(){x.f(1)})},{getOwnPropertySymbols:function(e){return x.f(A(e))}}),$)&&i({target:"JSON",stat:!0,forced:!l||c(function(){var e=z();return"[null]"!=$([e])||"{}"!=$({a:e})||"{}"!=$(Object(e))})},{stringify:function(e,t,n){for(var i,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(i=t,(f(t)||void 0!==e)&&!oe(e))return d(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!oe(t))return t}),r[1]=t,$.apply(null,r)}});z.prototype[Q]||B(z.prototype,Q,z.prototype.valueOf),L(z,"Symbol"),M[U]=!0},function(e,t,n){var i=n(30),r=n(126).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(i(e))}},function(e,t,n){n(12)("asyncIterator")},function(e,t){},function(e,t,n){n(12)("hasInstance")},function(e,t,n){n(12)("isConcatSpreadable")},function(e,t,n){n(12)("match")},function(e,t,n){n(12)("matchAll")},function(e,t,n){n(12)("replace")},function(e,t,n){n(12)("search")},function(e,t,n){n(12)("species")},function(e,t,n){n(12)("split")},function(e,t,n){n(12)("toPrimitive")},function(e,t,n){n(12)("toStringTag")},function(e,t,n){n(12)("unscopables")},function(e,t,n){n(37)(Math,"Math",!0)},function(e,t,n){var i=n(8);n(37)(i.JSON,"JSON",!0)},function(e,t,n){n(12)("asyncDispose")},function(e,t,n){n(12)("dispose")},function(e,t,n){n(12)("observable")},function(e,t,n){n(12)("patternMatch")},function(e,t,n){n(12)("replaceAll")},function(e,t,n){e.exports=n(257)},function(e,t,n){var i=n(258);e.exports=i},function(e,t,n){n(259);var i=n(9);e.exports=i.parseInt},function(e,t,n){var i=n(5),r=n(260);i({global:!0,forced:parseInt!=r},{parseInt:r})},function(e,t,n){var i=n(8),r=n(90).trim,o=n(68),a=i.parseInt,s=/^[+-]?0[Xx]/,l=8!==a(o+"08")||22!==a(o+"0x16");e.exports=l?function(e,t){var n=r(String(e));return a(n,t>>>0||(s.test(n)?16:10))}:a},function(e,t,n){var i=n(262);e.exports=i},function(e,t,n){var i=n(263),r=Array.prototype;e.exports=function(e){var t=e.slice;return e===r||e instanceof Array&&t===r.slice?i:t}},function(e,t,n){n(264);var i=n(15);e.exports=i("Array").slice},function(e,t,n){"use strict";var i=n(5),r=n(13),o=n(55),a=n(79),s=n(35),l=n(30),u=n(69),c=n(10),h=n(56),d=n(22),f=h("slice"),p=d("slice",{ACCESSORS:!0,0:0,1:2}),A=c("species"),g=[].slice,v=Math.max;i({target:"Array",proto:!0,forced:!f||!p},{slice:function(e,t){var n,i,c,h=l(this),d=s(h.length),f=a(e,d),p=a(void 0===t?d:t,d);if(o(h)&&("function"!=typeof(n=h.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[A])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(h,f,p);for(i=new(void 0===n?Array:n)(v(p-f,0)),c=0;f<p;f++,c++)f in h&&u(i,c,h[f]);return i.length=c,i}})},function(e,t,n){n(266);var i=n(9);e.exports=i.setTimeout},function(e,t,n){var i=n(5),r=n(8),o=n(84),a=[].slice,s=function(e){return function(t,n){var i=arguments.length>2,r=i?a.call(arguments,2):void 0;return e(i?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};i({global:!0,bind:!0,forced:/MSIE .\./.test(o)},{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(128));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(272)),l=a.__importDefault(n(273)),u=a.__importDefault(n(129)),c=a.__importDefault(n(274)),h=a.__importDefault(n(275)),d=a.__importDefault(n(276)),f=a.__importDefault(n(130)),p=a.__importDefault(n(277)),A=a.__importDefault(n(278)),g=a.__importDefault(n(279)),v=(0,o.default)({},s.default,l.default,u.default,h.default,c.default,d.default,f.default,p.default,A.default,g.default,{linkCheck:function(e,t){return!0}});t.default=v},function(e,t,n){var i=n(269);e.exports=i},function(e,t,n){n(270);var i=n(9);e.exports=i.Object.assign},function(e,t,n){var i=n(5),r=n(271);i({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";var i=n(14),r=n(11),o=n(52),a=n(127),s=n(59),l=n(31),u=n(72),c=Object.assign,h=Object.defineProperty;e.exports=!c||r(function(){if(i&&1!==c({b:1},c(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||"abcdefghijklmnopqrst"!=o(c({},t)).join("")})?function(e,t){for(var n=l(e),r=arguments.length,c=1,h=a.f,d=s.f;r>c;)for(var f,p=u(arguments[c++]),A=h?o(p).concat(h(p)):o(p),g=A.length,v=0;g>v;)f=A[v++],i&&!d.call(p,f)||(n[f]=p[f]);return n}:c},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"    ",emotions:[{title:"表情",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣".split(/\s/)},{title:"手势",type:"emoji",content:"👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(7);t.default={onchangeTimeout:200,onchange:null,onfocus:i.EMPTY_FN,onblur:i.EMPTY_FN,onCatalogChange:null,customAlert:function(e,t,n){window.alert(e),n&&console.error("wangEditor: "+n)}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(e){return e}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={styleWithCSS:!1}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(7);t.default={linkImgCheck:function(e,t,n){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:i.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5242880,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:1e4,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{"重置":"重置","插入":"插入","默认":"默认","创建":"创建","修改":"修改","如":"如","请输入正文":"请输入正文",menus:{title:{"标题":"标题","加粗":"加粗","字号":"字号","字体":"字体","斜体":"斜体","下划线":"下划线","删除线":"删除线","缩进":"缩进","行高":"行高","文字颜色":"文字颜色","背景色":"背景色","链接":"链接","序列":"序列","对齐":"对齐","引用":"引用","表情":"表情","图片":"图片","视频":"视频","表格":"表格","代码":"代码","分割线":"分割线","恢复":"恢复","撤销":"撤销","全屏":"全屏","取消全屏":"取消全屏","待办事项":"待办事项"},dropListMenu:{"设置标题":"设置标题","背景颜色":"背景颜色","文字颜色":"文字颜色","设置字号":"设置字号","设置字体":"设置字体","设置缩进":"设置缩进","对齐方式":"对齐方式","设置行高":"设置行高","序列":"序列",head:{"正文":"正文"},indent:{"增加缩进":"增加缩进","减少缩进":"减少缩进"},justify:{"靠左":"靠左","居中":"居中","靠右":"靠右","两端":"两端"},list:{"无序列表":"无序列表","有序列表":"有序列表"}},panelMenus:{emoticon:{"默认":"默认","新浪":"新浪",emoji:"emoji","手势":"手势"},image:{"上传图片":"上传图片","网络图片":"网络图片","图片地址":"图片地址","图片文字说明":"图片文字说明","跳转链接":"跳转链接"},link:{"链接":"链接","链接文字":"链接文字","取消链接":"取消链接","查看链接":"查看链接"},video:{"插入视频":"插入视频","上传视频":"上传视频"},table:{"行":"行","列":"列","的":"的","表格":"表格","添加行":"添加行","删除行":"删除行","添加列":"添加列","删除列":"删除列","设置表头":"设置表头","取消表头":"取消表头","插入表格":"插入表格","删除表格":"删除表格"},code:{"删除代码":"删除代码","修改代码":"修改代码","插入代码":"插入代码"}}},validate:{"张图片":"张图片","大于":"大于","图片链接":"图片链接","不是图片":"不是图片","返回结果":"返回结果","上传图片超时":"上传图片超时","上传图片错误":"上传图片错误","上传图片失败":"上传图片失败","插入图片错误":"插入图片错误","一次最多上传":"一次最多上传","下载链接失败":"下载链接失败","图片验证未通过":"图片验证未通过","服务器返回状态":"服务器返回状态","上传图片返回结果错误":"上传图片返回结果错误","请替换为支持的图片类型":"请替换为支持的图片类型","您插入的网络图片无法识别":"您插入的网络图片无法识别","您刚才插入的图片链接未通过编辑器校验":"您刚才插入的图片链接未通过编辑器校验","插入视频错误":"插入视频错误","视频链接":"视频链接","不是视频":"不是视频","视频验证未通过":"视频验证未通过","个视频":"个视频","上传视频超时":"上传视频超时","上传视频错误":"上传视频错误","上传视频失败":"上传视频失败","上传视频返回结果错误":"上传视频返回结果错误"}}},en:{wangEditor:{"重置":"reset","插入":"insert","默认":"default","创建":"create","修改":"edit","如":"like","请输入正文":"please enter the text",menus:{title:{"标题":"head","加粗":"bold","字号":"font size","字体":"font family","斜体":"italic","下划线":"underline","删除线":"strikethrough","缩进":"indent","行高":"line heihgt","文字颜色":"font color","背景色":"background","链接":"link","序列":"numbered list","对齐":"align","引用":"quote","表情":"emoticons","图片":"image","视频":"media","表格":"table","代码":"code","分割线":"split line","恢复":"redo","撤销":"undo","全屏":"fullscreen","取消全屏":"cancel fullscreen","待办事项":"todo"},dropListMenu:{"设置标题":"title","背景颜色":"background","文字颜色":"font color","设置字号":"font size","设置字体":"font family","设置缩进":"indent","对齐方式":"align","设置行高":"line heihgt","序列":"list",head:{"正文":"text"},indent:{"增加缩进":"indent","减少缩进":"outdent"},justify:{"靠左":"left","居中":"center","靠右":"right","两端":"justify"},list:{"无序列表":"unordered","有序列表":"ordered"}},panelMenus:{emoticon:{"表情":"emoji","手势":"gesture"},image:{"上传图片":"upload image","网络图片":"network image","图片地址":"image link","图片文字说明":"image alt","跳转链接":"hyperlink"},link:{"链接":"link","链接文字":"link text","取消链接":"unlink","查看链接":"view links"},video:{"插入视频":"insert video","上传视频":"upload local video"},table:{"行":"rows","列":"columns","的":" ","表格":"table","添加行":"insert row","删除行":"delete row","添加列":"insert column","删除列":"delete column","设置表头":"set header","取消表头":"cancel header","插入表格":"insert table","删除表格":"delete table"},code:{"删除代码":"delete code","修改代码":"edit code","插入代码":"insert code"}}},validate:{"张图片":"images","大于":"greater than","图片链接":"image link","不是图片":"is not image","返回结果":"return results","上传图片超时":"upload image timeout","上传图片错误":"upload image error","上传图片失败":"upload image failed","插入图片错误":"insert image error","一次最多上传":"once most at upload","下载链接失败":"download link failed","图片验证未通过":"image validate failed","服务器返回状态":"server return status","上传图片返回结果错误":"upload image return results error","请替换为支持的图片类型":"please replace with a supported image type","您插入的网络图片无法识别":"the network picture you inserted is not recognized","您刚才插入的图片链接未通过编辑器校验":"the image link you just inserted did not pass the editor verification","插入视频错误":"insert video error","视频链接":"video link","不是视频":"is not video","视频验证未通过":"video validate failed","个视频":"videos","上传视频超时":"upload video timeout","上传视频错误":"upload video error","上传视频失败":"upload video failed","上传视频返回结果错误":"upload video return results error"}}}}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(6);t.default={compatibleMode:function(){return!(!i.UA.isIE()&&!i.UA.isOldEdge)},historyMaxSize:30}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(7);t.default={onlineVideoCheck:function(e){return!0},onlineVideoCallback:i.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1073741824,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:72e5,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(17));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),s=n(6),l=n(7),u=function(){function e(e){this._currentRange=null,this.editor=e}return e.prototype.getRange=function(){return this._currentRange},e.prototype.saveRange=function(e){if(e)this._currentRange=e;else{var t=window.getSelection();if(0!==t.rangeCount){var n=t.getRangeAt(0),i=this.getSelectionContainerElem(n);if((null===i||void 0===i?void 0:i.length)&&"false"!==i.attr("contenteditable")&&!i.parentUntil("[contenteditable=false]")){var r=this.editor,a=r.$textElem;if(a.isContain(i)){var s;if(a.elems[0]===i.elems[0])if((0,o.default)(s=a.html()).call(s)===l.EMPTY_P){var u=a.children(),c=null===u||void 0===u?void 0:u.last();r.selection.createRangeByElem(c,!0,!0),r.selection.restoreSelection()}this._currentRange=n}}}}},e.prototype.collapseRange=function(e){void 0===e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},e.prototype.getSelectionText=function(){var e=this._currentRange;return e?e.toString():""},e.prototype.getSelectionContainerElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.commonAncestorContainer,a.default(1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionStartElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.startContainer,a.default(1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionEndElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.endContainer,a.default(1===n.nodeType?n:n.parentNode)},e.prototype.isSelectionEmpty=function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},e.prototype.restoreSelection=function(){var e=window.getSelection(),t=this._currentRange;e&&t&&(e.removeAllRanges(),e.addRange(t))},e.prototype.createEmptyRange=function(){var e,t=this.editor,n=this.getRange();if(n&&this.isSelectionEmpty())try{s.UA.isWebkit()?(t.cmd.do("insertHTML","&#8203;"),n.setEnd(n.endContainer,n.endOffset+1),this.saveRange(n)):(e=a.default("<strong>&#8203;</strong>"),t.cmd.do("insertElem",e),this.createRangeByElem(e,!0))}catch(e){}},e.prototype.createRangeByElems=function(e,t){var n=window.getSelection?window.getSelection():document.getSelection();null===n||void 0===n||n.removeAllRanges();var i=document.createRange();i.setStart(e,0),i.setEnd(t,t.childNodes.length||1),this.saveRange(i),this.restoreSelection()},e.prototype.createRangeByElem=function(e,t,n){if(e.length){var i=e.elems[0],r=document.createRange();n?r.selectNodeContents(i):r.selectNode(i),null!=t&&(r.collapse(t),t||(this.saveRange(r),this.editor.selection.moveCursor(i))),this.saveRange(r)}},e.prototype.getSelectionRangeTopNodes=function(){var e,t,n=null===(e=this.getSelectionStartElem())||void 0===e?void 0:e.getNodeTop(this.editor),i=null===(t=this.getSelectionEndElem())||void 0===t?void 0:t.getNodeTop(this.editor);return this.recordSelectionNodes(a.default(n),a.default(i))},e.prototype.moveCursor=function(e,t){var n,i=this.getRange(),r=3===e.nodeType?null===(n=e.nodeValue)||void 0===n?void 0:n.length:e.childNodes.length;(s.UA.isFirefox||s.UA.isIE())&&0!==r&&(3!==e.nodeType&&"BR"!==e.childNodes[r-1].nodeName||(r-=1));var o=null!==t&&void 0!==t?t:r;i&&e&&(i.setStart(e,o),i.setEnd(e,o),this.restoreSelection())},e.prototype.getCursorPos=function(){var e=window.getSelection();return null===e||void 0===e?void 0:e.anchorOffset},e.prototype.clearWindowSelectionRange=function(){var e=window.getSelection();e&&e.removeAllRanges()},e.prototype.recordSelectionNodes=function(e,t){var n=[],i=!0;try{for(var r=e,o=this.editor.$textElem;i;){var s=null===r||void 0===r?void 0:r.getNodeTop(this.editor);"BODY"===s.getNodeName()&&(i=!1),s.length>0&&(n.push(a.default(r)),(null===t||void 0===t?void 0:t.equal(s))||o.equal(s)?i=!1:r=s.getNextSibling())}}catch(e){i=!1}return n},e.prototype.setRangeToElem=function(e){var t=this.getRange();null===t||void 0===t||t.setStart(e,0),null===t||void 0===t||t.setEnd(e,0)},e}();t.default=u},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(3)),r=function(){function e(e){this.editor=e}return e.prototype.do=function(e,t){var n=this.editor;n.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var i=n.selection;if(i.getRange()){switch(i.restoreSelection(),e){case"insertHTML":this.insertHTML(t);break;case"insertElem":this.insertElem(t);break;default:this.execCommand(e,t)}n.menus.changeActive(),i.saveRange(),i.restoreSelection()}},e.prototype.insertHTML=function(e){var t=this.editor,n=t.selection.getRange();if(null!=n)if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",e);else if(n.insertNode){if(n.deleteContents(),i.default(e).elems.length>0)n.insertNode(i.default(e).elems[0]);else{var r=document.createElement("p");r.appendChild(document.createTextNode(e)),n.insertNode(r)}t.selection.collapseRange()}},e.prototype.insertElem=function(e){var t=this.editor.selection.getRange();null!=t&&t.insertNode&&(t.deleteContents(),t.insertNode(e.elems[0]))},e.prototype.execCommand=function(e,t){document.execCommand(e,!1,t)},e.prototype.queryCommandValue=function(e){return document.queryCommandValue(e)},e.prototype.queryCommandState=function(e){return document.queryCommandState(e)},e.prototype.queryCommandSupported=function(e){return document.queryCommandSupported(e)},e}();t.default=r},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(29)),a=i(n(4)),s=i(n(17)),l=i(n(27)),u=i(n(46));(0,r.default)(t,"__esModule",{value:!0});var c=n(2),h=c.__importDefault(n(3)),d=c.__importDefault(n(287)),f=n(6),p=c.__importDefault(n(299)),A=c.__importDefault(n(300)),g=n(7),v=function(){function e(e){this.editor=e,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return e.prototype.init=function(){this._saveRange(),this._bindEventHooks(),d.default(this)},e.prototype.togglePlaceholder=function(){var e,t=this.html(),n=(0,o.default)(e=this.editor.$textContainerElem).call(e,".placeholder");n.hide(),this.editor.isComposing||t&&" "!==t||n.show()},e.prototype.clear=function(){this.html(g.EMPTY_P)},e.prototype.html=function(e){var t=this.editor,n=t.$textElem;if(null==e){var i=n.html(),r=(i=(i=(i=(i=i.replace(/\u200b/gm,"")).replace(/<p><\/p>/gim,"")).replace(g.EMPTY_P_LAST_REGEX,"")).replace(g.EMPTY_P_REGEX,"<p>")).match(/<(img|br|hr|input)[^>]*>/gi);return null!==r&&(0,a.default)(r).call(r,function(e){e.match(/\/>/)||(i=i.replace(e,e.substring(0,e.length-1)+"/>"))}),i}""===(e=(0,s.default)(e).call(e))&&(e=g.EMPTY_P),0!==(0,l.default)(e).call(e,"<")&&(e="<p>"+e+"</p>"),n.html(e),t.initSelection()},e.prototype.setJSON=function(e){var t=A.default(e).children(),n=this.editor.$textElem;t&&n.replaceChildAll(t)},e.prototype.getJSON=function(){var e=this.editor.$textElem;return p.default(e)},e.prototype.text=function(e){var t=this.editor,n=t.$textElem;if(null==e){var i=n.text();return i=i.replace(/\u200b/gm,"")}n.text("<p>"+e+"</p>"),t.initSelection()},e.prototype.append=function(e){var t=this.editor;0!==(0,l.default)(e).call(e,"<")&&(e="<p>"+e+"</p>"),this.html(this.html()+e),t.initSelection()},e.prototype._saveRange=function(){var e=this.editor,t=e.$textElem,n=h.default(document);function i(){e.selection.saveRange(),e.menus.changeActive()}function r(){i(),n.off("mouseup",r)}function o(){n.on("mouseup",r),t.off("mouseleave",o)}t.on("keyup",i),t.on("click",function e(){i(),t.off("click",e)}),t.on("mousedown",function(){t.on("mouseleave",o)}),t.on("mouseup",function(n){t.off("mouseleave",o),(0,u.default)(function(){null!==e.selection.getRange()&&i()},0)})},e.prototype._bindEventHooks=function(){var e=this.editor,t=e.$textElem,n=this.eventHooks;function i(e){e.preventDefault()}t.on("click",function(e){var t=n.clickEvents;(0,a.default)(t).call(t,function(t){return t(e)})}),t.on("keyup",function(e){if(13===e.keyCode){var t=n.enterUpEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("keyup",function(e){var t=n.keyupEvents;(0,a.default)(t).call(t,function(t){return t(e)})}),t.on("keydown",function(e){var t=n.keydownEvents;(0,a.default)(t).call(t,function(t){return t(e)})}),t.on("keyup",function(e){if(8===e.keyCode||46===e.keyCode){var t=n.deleteUpEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("keydown",function(e){if(8===e.keyCode||46===e.keyCode){var t=n.deleteDownEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("paste",function(e){if(!f.UA.isIE()){e.preventDefault();var t=n.pasteEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("keydown",function(t){(e.isFocus||e.isCompatibleMode)&&(t.ctrlKey||t.metaKey)&&90===t.keyCode&&(t.preventDefault(),t.shiftKey?e.history.restore():e.history.revoke())}),t.on("keyup",function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabUpEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("keydown",function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabDownEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("scroll",f.throttle(function(e){var t=n.textScrollEvents;(0,a.default)(t).call(t,function(t){return t(e)})},100)),h.default(document).on("dragleave",i).on("drop",i).on("dragenter",i).on("dragover",i),e.beforeDestroy(function(){h.default(document).off("dragleave",i).off("drop",i).off("dragenter",i).off("dragover",i)}),t.on("drop",function(e){e.preventDefault();var t=n.dropEvents;(0,a.default)(t).call(t,function(t){return t(e)})}),t.on("click",function(e){var t=null,i=e.target,r=h.default(i);if("A"===r.getNodeName())t=r;else{var o=r.parentUntil("a");null!=o&&(t=o)}if(t){var s=n.linkClickEvents;(0,a.default)(s).call(s,function(e){return e(t)})}}),t.on("click",function(e){var t=null,i=e.target,r=h.default(i);if("IMG"!==r.getNodeName()||r.elems[0].getAttribute("data-emoji")||(e.stopPropagation(),t=r),t){var o=n.imgClickEvents;(0,a.default)(o).call(o,function(e){return e(t)})}}),t.on("click",function(e){var t=null,i=e.target,r=h.default(i);if("PRE"===r.getNodeName())t=r;else{var o=r.parentUntil("pre");null!==o&&(t=o)}if(t){var s=n.codeClickEvents;(0,a.default)(s).call(s,function(e){return e(t)})}}),t.on("click",function(t){var i=null,r=t.target,o=h.default(r);if("HR"===o.getNodeName()&&(i=o),i){e.selection.createRangeByElem(i),e.selection.restoreSelection();var s=n.splitLineEvents;(0,a.default)(s).call(s,function(e){return e(i)})}}),e.$toolbarElem.on("click",function(e){var t=n.toolbarClickEvents;(0,a.default)(t).call(t,function(t){return t(e)})}),e.$textContainerElem.on("mousedown",function(e){var t=e.target;if(h.default(t).hasClass("w-e-img-drag-rb")){var i=n.imgDragBarMouseDownEvents;(0,a.default)(i).call(i,function(e){return e()})}}),t.on("click",function(t){var i,r=t.target;if(i=h.default(r).parentUntilEditor("TABLE",e,r)){var o=n.tableClickEvents;(0,a.default)(o).call(o,function(e){return e(i,t)})}}),t.on("keydown",function(e){if(13===e.keyCode){var t=n.enterDownEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("click",function(e){var t=null,i=e.target,r=h.default(i);if("VIDEO"===r.getNodeName()&&(e.stopPropagation(),t=r),t){var o=n.videoClickEvents;(0,a.default)(o).call(o,function(e){return e(t)})}})},e}();t.default=v},function(e,t,n){var i=n(284);e.exports=i},function(e,t,n){var i=n(285),r=Array.prototype;e.exports=function(e){var t=e.find;return e===r||e instanceof Array&&t===r.find?i:t}},function(e,t,n){n(286);var i=n(15);e.exports=i("Array").find},function(e,t,n){"use strict";var i=n(5),r=n(32).find,o=n(82),a=!0,s=n(22)("find");"find"in[]&&Array(1).find(function(){a=!1}),i({target:"Array",proto:!0,forced:a||!s},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(288)),o=i.__importStar(n(289)),a=i.__importDefault(n(290)),s=i.__importDefault(n(291)),l=i.__importDefault(n(298));t.default=function(e){var t=e.editor,n=e.eventHooks;r.default(t,n.enterUpEvents,n.enterDownEvents),o.default(t,n.deleteUpEvents,n.deleteDownEvents),o.cutToKeepP(t,n.keyupEvents),a.default(t,n.tabDownEvents),s.default(t,n.pasteEvents),l.default(t,n.imgClickEvents)}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(27));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=n(7),l=a.__importDefault(n(3));t.default=function(e,t,n){function i(t){var n,i=l.default(s.EMPTY_P);i.insertBefore(t),(0,o.default)(n=t.html()).call(n,"<img")>=0?i.remove():(e.selection.createRangeByElem(i,!0,!0),e.selection.restoreSelection(),t.remove())}t.push(function(){var t=e.$textElem,n=e.selection.getSelectionContainerElem(),r=n.parent();"<code><br></code>"===r.html()||"FONT"===n.getNodeName()&&""===n.text()&&"monospace"===n.attr("face")?i(r):r.equal(t)&&("P"===n.getNodeName()&&null===n.attr("data-we-empty-p")||n.text()||i(n))}),n.push(function(t){var n;e.selection.saveRange(null===(n=getSelection())||void 0===n?void 0:n.getRangeAt(0)),e.selection.getSelectionContainerElem().id===e.textElemId&&(t.preventDefault(),e.cmd.do("insertHTML","<p><br></p>"))})}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(17)),a=i(n(28));(0,r.default)(t,"__esModule",{value:!0}),t.cutToKeepP=void 0;var s=n(2),l=n(7),u=s.__importDefault(n(3));t.cutToKeepP=function(e,t){t.push(function(t){var n;if(88===t.keyCode){var i=e.$textElem,r=(0,o.default)(n=i.html().toLowerCase()).call(n);if(!r||"<br>"===r){var a=u.default(l.EMPTY_P);i.html(" "),i.append(a),e.selection.createRangeByElem(a,!1,!0),e.selection.restoreSelection(),e.selection.moveCursor(a.getNode(),0)}}})},t.default=function(e,t,n){t.push(function(){var t=e.$textElem,n=e.$textElem.html(),i=e.$textElem.text(),r=(0,o.default)(n).call(n),s=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',l.EMPTY_P];if(/^\s*$/.test(i)&&(!r||(0,a.default)(s).call(s,r))){t.html(l.EMPTY_P);var u=t.getNode();e.selection.createRangeByElems(u.childNodes[0],u.childNodes[0]);var c=e.selection.getSelectionContainerElem();e.selection.restoreSelection(),e.selection.moveCursor(c.getNode(),0)}}),n.push(function(t){var n,i=e.$textElem;(0,o.default)(n=i.html().toLowerCase()).call(n)!==l.EMPTY_P||t.preventDefault()})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e,t){t.push(function(){if(e.cmd.queryCommandSupported("insertHTML")){var t=e.selection.getSelectionContainerElem();if(t){var n=t.parent(),i=t.getNodeName(),r=n.getNodeName();"CODE"==i||"CODE"===r||"PRE"===r||/hljs/.test(r)?e.cmd.do("insertHTML",e.config.languageTab):e.cmd.do("insertHTML","&nbsp;&nbsp;&nbsp;&nbsp;")}}})}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(17)),a=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var s=n(131),l=n(6),u=n(7);function c(e){var t,n=(0,o.default)(t=e.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(t),i=document.createElement("div");return i.innerHTML=n,i.innerHTML.replace(/<p><\/p>/gim,"")}t.default=function(e,t){t.push(function(t){var n=e.config,i=n.pasteFilterStyle,r=n.pasteIgnoreImg,o=n.pasteTextHandle,h=s.getPasteHtml(t,i,r),d=s.getPasteText(t);d=d.replace(/\n/gm,"<br>");var f=e.selection.getSelectionContainerElem();if(f){var p,A=null===f||void 0===f?void 0:f.getNodeName(),g=null===f||void 0===f?void 0:f.getNodeTop(e),v="";if(g.elems[0]&&(v=null===g||void 0===g?void 0:g.getNodeName()),"CODE"===A||"PRE"===v)return o&&l.isFunction(o)&&(d=""+(o(d)||"")),void e.cmd.do("insertHTML",(p=d,p.replace(/<br>|<br\/>/gm,"\n").replace(/<[^>]+>/gm,"")));if(u.urlRegex.test(d)&&i){o&&l.isFunction(o)&&(d=""+(o(d)||""));var m=d.replace(u.urlRegex,function(e){return'<a href="'+e+'" target="_blank">'+e+"</a>"}),y=e.selection.getRange(),_=document.createElement("div"),b=document.createDocumentFragment();if(_.innerHTML=m,null==y)return;for(;_.childNodes.length;)b.append(_.childNodes[0]);var w=b.querySelectorAll("a");return(0,a.default)(w).call(w,function(e){e.innerText=e.href}),y.insertNode&&(y.deleteContents(),y.insertNode(b)),void e.selection.clearWindowSelectionRange()}if(h)try{if(o&&l.isFunction(o)&&(h=""+(o(h)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(h)&&i)e.cmd.do("insertHTML",""+c(d));else{var x=c(h);if(function(e){var t;if(""===e)return!1;var n=document.createElement("div");return n.innerHTML=e,"P"===(null===(t=n.firstChild)||void 0===t?void 0:t.nodeName)}(x)){var C=e.$textElem;if(e.cmd.do("insertHTML",x),C.equal(f))return void e.selection.createEmptyRange();(function(e){if(!(null===e||void 0===e?void 0:e.length))return!1;var t=e.elems[0];return"P"===t.nodeName&&"<br>"===t.innerHTML})(g)&&g.remove()}else e.cmd.do("insertHTML",x)}}catch(t){o&&l.isFunction(o)&&(d=""+(o(d)||"")),e.cmd.do("insertHTML",""+c(d))}}})}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(17)),a=i(n(4)),s=i(n(28));(0,r.default)(t,"__esModule",{value:!0});var l=n(2),u=n(293),c=l.__importDefault(n(297));function h(e,t){var n;return e=(0,o.default)(n=e.toLowerCase()).call(n),!!u.IGNORE_TAGS.has(e)||!(!t||"img"!==e)}t.default=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=[],r="";function l(e){(e=(0,o.default)(e).call(e))&&(u.EMPTY_TAGS.has(e)||(r=e))}(new c.default).parse(e,{startElement:function(e,r){if(l(e),!h(e,n)){var o=u.NECESSARY_ATTRS.get(e)||[],c=[];(0,a.default)(r).call(r,function(e){var n=e.name;"style"!==n?!1!==(0,s.default)(o).call(o,n)&&c.push(e):t||c.push(e)});var d=function(e,t){var n="";n="<"+e;var i=[];return(0,a.default)(t).call(t,function(e){i.push(e.name+'="'+e.value+'"')}),i.length>0&&(n=n+" "+i.join(" ")),n=n+(u.EMPTY_TAGS.has(e)?"/":"")+">"}(e,c);i.push(d)}},characters:function(e){e&&(h(r,n)||i.push(e))},endElement:function(e){if(!h(e,n)){var t=function(e){return"</"+e+">"}(e);i.push(t),r=""}},comment:function(e){l(e)}});var d=i.join("");return d=function(e){var t=/<span>(.*?)<\/span>/;return e.replace(/<span>.*?<\/span>/gi,function(e){var n=e.match(t);return null==n?"":n[1]})}(d)}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(132)),a=i(n(121));(0,r.default)(t,"__esModule",{value:!0}),t.TOP_LEVEL_TAGS=t.EMPTY_TAGS=t.NECESSARY_ATTRS=t.IGNORE_TAGS=void 0,t.IGNORE_TAGS=new o.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),t.NECESSARY_ATTRS=new a.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),t.EMPTY_TAGS=new o.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),t.TOP_LEVEL_TAGS=new o.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(e,t,n){var i=n(295);e.exports=i},function(e,t,n){n(296),n(61),n(50),n(54);var i=n(9);e.exports=i.Set},function(e,t,n){"use strict";var i=n(122),r=n(124);e.exports=i("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},r)},function(e,t){function n(){}n.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(e,t){t&&(this.contentHandler=t);for(var n,i,r,o=!1,a=this;e.length>0;)"\x3c!--"==e.substring(0,4)?-1!=(r=e.indexOf("--\x3e"))?(this.contentHandler.comment(e.substring(4,r)),e=e.substring(r+3),o=!1):o=!0:"</"==e.substring(0,2)?this.endTagRe.test(e)?(RegExp.leftContext,n=RegExp.lastMatch,i=RegExp.rightContext,n.replace(this.endTagRe,function(){return a.parseEndTag.apply(a,arguments)}),e=i,o=!1):o=!0:"<"==e.charAt(0)&&(this.startTagRe.test(e)?(RegExp.leftContext,n=RegExp.lastMatch,i=RegExp.rightContext,n.replace(this.startTagRe,function(){return a.parseStartTag.apply(a,arguments)}),e=i,o=!1):o=!0),o&&(-1==(r=e.indexOf("<"))?(this.contentHandler.characters(e),e=""):(this.contentHandler.characters(e.substring(0,r)),e=e.substring(r))),o=!0},parseStartTag:function(e,t,n){var i=this.parseAttributes(t,n);this.contentHandler.startElement(t,i)},parseEndTag:function(e,t){this.contentHandler.endElement(t)},parseAttributes:function(e,t){var n=this,i=[];return t.replace(this.attrRe,function(t,r,o,a,s,l,u,c){i.push(n.parseAttribute(e,t,r,o,a,s,l,u,c))}),i},parseAttribute:function(e,t,n){var i="";return arguments[7]?i=arguments[8]:arguments[5]?i=arguments[6]:arguments[3]&&(i=arguments[4]),{name:n,value:!i&&!arguments[3]?null:i}}},e.exports=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e,t){t.push(function(t){e.selection.createRangeByElem(t),e.selection.restoreSelection()})}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=n(6),l=a.__importDefault(n(3));t.default=function e(t){var n=[],i=t.childNodes()||[];return(0,o.default)(i).call(i,function(t){var i,r=t.nodeType;if(3===r&&(i=t.textContent||"",i=s.replaceHtmlSymbol(i)),1===r){(i=i={}).tag=t.nodeName.toLowerCase();for(var o=[],a=t.attributes,u=a.length||0,c=0;c<u;c++){var h=a[c];o.push({name:h.name,value:h.value})}i.attrs=o,i.children=e(l.default(t))}i&&n.push(i)}),n}},function(e,t,n){"use strict";var i=n(0),r=i(n(92)),o=i(n(1)),a=i(n(4));(0,o.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3));t.default=function e(t,n){void 0===n&&(n=document.createElement("div"));var i=n;return(0,a.default)(t).call(t,function(t){var n,o;"string"==typeof t&&(n=document.createTextNode(t)),"object"===(0,r.default)(t)&&(n=document.createElement(t.tag),(0,a.default)(o=t.attrs).call(o,function(e){s.default(n).attr(e.name,e.value)}),t.children&&t.children.length>0&&e(t.children,n.getRootNode())),n&&i.appendChild(n)}),s.default(i)}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(89)),a=i(n(70)),s=i(n(28)),l=i(n(302)),u=i(n(4)),c=i(n(94)),h=i(n(133)),d=i(n(46)),f=i(n(57));(0,r.default)(t,"__esModule",{value:!0});var p=n(2),A=p.__importDefault(n(87)),g=p.__importDefault(n(314)),v=p.__importDefault(n(3)),m=function(){function e(e){this.editor=e,this.menuList=[],this.constructorList=g.default}return e.prototype.extend=function(e,t){t&&"function"==typeof t&&(this.constructorList[e]=t)},e.prototype.init=function(){var e,t,n=this,i=this.editor.config,r=i.excludeMenus;!1===(0,o.default)(r)&&(r=[]),i.menus=(0,a.default)(e=i.menus).call(e,function(e){return!1===(0,s.default)(r).call(r,e)});var h=(0,l.default)(A.default.globalCustomMenuConstructorList);h=(0,a.default)(h).call(h,function(e){return(0,s.default)(r).call(r,e)}),(0,u.default)(h).call(h,function(e){delete A.default.globalCustomMenuConstructorList[e]}),(0,u.default)(t=i.menus).call(t,function(e){var t=n.constructorList[e];n._initMenuList(e,t)});for(var d=0,f=(0,c.default)(A.default.globalCustomMenuConstructorList);d<f.length;d++){var p=f[d],g=p[0],v=p[1];this._initMenuList(g,v)}this._addToToolbar(),i.showMenuTooltips&&this._bindMenuTooltips()},e.prototype._initMenuList=function(e,t){var n;if(null!=t&&"function"==typeof t)if((0,h.default)(n=this.menuList).call(n,function(t){return t.key===e}))console.warn("菜单名称重复:"+e);else{var i=new t(this.editor);i.key=e,this.menuList.push(i)}},e.prototype._bindMenuTooltips=function(){var e=this.editor,t=e.$toolbarElem,n=e.config.menuTooltipPosition,i=v.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+n+'">\n <div class="w-e-menu-tooltip-item-wrapper">\n <div></div>\n </div>\n </div>');i.css("visibility","hidden"),t.append(i),i.css("z-index",e.zIndex.get("tooltip"));var r=0;function o(){r&&clearTimeout(r)}function a(){o(),i.css("visibility","hidden")}t.on("mouseover",function(s){var l,u,c=s.target,h=v.default(c);if(h.isContain(t))a();else{if(null!=h.parentUntil(".w-e-droplist"))a();else if(h.attr("data-title"))l=h.attr("data-title"),u=h;else{var f=h.parentUntil(".w-e-menu");null!=f&&(l=f.attr("data-title"),u=f)}if(l&&u){o();var p=u.getOffsetData();i.text(e.i18next.t("menus.title."+l));var A=i.getOffsetData(),g=p.left+p.width/2-A.width/2;i.css("left",g+"px"),"up"===n?i.css("top",p.top-A.height-8+"px"):"down"===n&&i.css("top",p.top+p.height+8+"px"),r=(0,d.default)(function(){i.css("visibility","visible")},200)}else a()}}).on("mouseleave",function(){a()})},e.prototype._addToToolbar=function(){var e,t=this.editor.$toolbarElem;(0,u.default)(e=this.menuList).call(e,function(e){var n=e.$elem;n&&t.append(n)})},e.prototype.menuFind=function(e){for(var t=this.menuList,n=0,i=t.length;n<i;n++)if(t[n].key===e)return t[n];return t[0]},e.prototype.changeActive=function(){var e;(0,u.default)(e=this.menuList).call(e,function(e){var t;(0,d.default)((0,f.default)(t=e.tryChangeActive).call(t,e),100)})},e}();t.default=m},function(e,t,n){e.exports=n(303)},function(e,t,n){var i=n(304);e.exports=i},function(e,t,n){n(305);var i=n(9);e.exports=i.Object.keys},function(e,t,n){var i=n(5),r=n(31),o=n(52);i({target:"Object",stat:!0,forced:n(11)(function(){o(1)})},{keys:function(e){return o(r(e))}})},function(e,t,n){var i=n(307);e.exports=i},function(e,t,n){n(308);var i=n(9);e.exports=i.Object.entries},function(e,t,n){var i=n(5),r=n(309).entries;i({target:"Object",stat:!0},{entries:function(e){return r(e)}})},function(e,t,n){var i=n(14),r=n(52),o=n(30),a=n(59).f,s=function(e){return function(t){for(var n,s=o(t),l=r(s),u=l.length,c=0,h=[];u>c;)n=l[c++],i&&!a.call(s,n)||h.push(e?[n,s[n]]:s[n]);return h}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){var i=n(311);e.exports=i},function(e,t,n){var i=n(312),r=Array.prototype;e.exports=function(e){var t=e.some;return e===r||e instanceof Array&&t===r.some?i:t}},function(e,t,n){n(313);var i=n(15);e.exports=i("Array").some},function(e,t,n){"use strict";var i=n(5),r=n(32).some,o=n(67),a=n(22),s=o("some"),l=a("some");i({target:"Array",proto:!0,forced:!s||!l},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(315)),o=i.__importDefault(n(316)),a=i.__importDefault(n(321)),s=i.__importDefault(n(326)),l=i.__importDefault(n(327)),u=i.__importDefault(n(328)),c=i.__importDefault(n(329)),h=i.__importDefault(n(331)),d=i.__importDefault(n(333)),f=i.__importDefault(n(334)),p=i.__importDefault(n(337)),A=i.__importDefault(n(338)),g=i.__importDefault(n(339)),v=i.__importDefault(n(350)),m=i.__importDefault(n(365)),y=i.__importDefault(n(369)),_=i.__importDefault(n(137)),b=i.__importDefault(n(378)),w=i.__importDefault(n(380)),x=i.__importDefault(n(381)),C=i.__importDefault(n(382)),S=i.__importDefault(n(401)),k=i.__importDefault(n(406)),B=i.__importDefault(n(409));t.default={bold:r.default,head:o.default,italic:s.default,link:a.default,underline:l.default,strikeThrough:u.default,fontName:c.default,fontSize:h.default,justify:d.default,quote:f.default,backColor:p.default,foreColor:A.default,video:g.default,image:v.default,indent:m.default,emoticon:y.default,list:_.default,lineHeight:b.default,undo:w.default,redo:x.default,table:C.default,code:S.default,splitLine:k.default,todo:B.default}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(23)),o=i.__importDefault(n(3)),a=function(e){function t(t){var n=o.default('<div class="w-e-menu" data-title="加粗">\n <i class="w-e-icon-bold"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("bold"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("bold")?this.active():this.unActive()},t}(r.default);t.default=a},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(27)),a=i(n(29)),s=i(n(4)),l=i(n(317)),u=i(n(28));(0,r.default)(t,"__esModule",{value:!0});var c=n(2),h=c.__importDefault(n(24)),d=c.__importDefault(n(3)),f=n(6),p=n(7),A=function(e){function t(t){var n=this,i=d.default('<div class="w-e-menu" data-title="标题"><i class="w-e-icon-header"></i></div>'),r={width:100,title:"设置标题",type:"list",list:[{$elem:d.default("<h1>H1</h1>"),value:"<h1>"},{$elem:d.default("<h2>H2</h2>"),value:"<h2>"},{$elem:d.default("<h3>H3</h3>"),value:"<h3>"},{$elem:d.default("<h4>H4</h4>"),value:"<h4>"},{$elem:d.default("<h5>H5</h5>"),value:"<h5>"},{$elem:d.default("<p>"+t.i18next.t("menus.dropListMenu.head.正文")+"</p>"),value:"<p>"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this,t.config.onCatalogChange&&(n.oldCatalogs=[],n.addListenerCatalog(),n.getCatalogs()),n}return c.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n))this.setMultilineHead(e);else{var i;if((0,o.default)(i=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(i,d.default(n).getNodeName())>-1)return;t.cmd.do("formatBlock",e)}"<p>"!==e&&this.addUidForSelectionElem()},t.prototype.addUidForSelectionElem=function(){var e=this.editor.selection.getSelectionContainerElem(),t=f.getRandomCode();d.default(e).attr("id",t)},t.prototype.addListenerCatalog=function(){var e=this;this.editor.txt.eventHooks.changeEvents.push(function(){e.getCatalogs()})},t.prototype.getCatalogs=function(){var e=this.editor,t=this.editor.$textElem,n=e.config.onCatalogChange,i=(0,a.default)(t).call(t,"h1,h2,h3,h4,h5"),r=[];(0,s.default)(i).call(i,function(e,t){var n=d.default(e),i=n.attr("id"),o=n.getNodeName(),a=n.text();i||(i=f.getRandomCode(),n.attr("id",i)),a&&r.push({tag:o,id:i,text:a})}),(0,l.default)(this.oldCatalogs)!==(0,l.default)(r)&&(this.oldCatalogs=r,n&&n(r))},t.prototype.setMultilineHead=function(e){var t,n,i=this,r=this.editor,o=r.selection,a=null===(t=o.getSelectionContainerElem())||void 0===t?void 0:t.elems[0],l=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],u=d.default(o.getSelectionStartElem()),c=d.default(o.getSelectionEndElem());c.elems[0].outerHTML!==d.default(p.EMPTY_P).elems[0].outerHTML||c.elems[0].nextSibling||(c=c.prev());var h=[];h.push(u.getNodeTop(r));var f=[],A=null===(n=o.getRange())||void 0===n?void 0:n.commonAncestorContainer.childNodes;null===A||void 0===A||(0,s.default)(A).call(A,function(e,t){e===h[0].getNode()&&f.push(t),e===c.getNodeTop(r).getNode()&&f.push(t)});for(var g=0;h[g].getNode()!==c.getNodeTop(r).getNode();){if(!h[g].elems[0])return;var v=d.default(h[g].next().getNode());h.push(v),g++}null===h||void 0===h||(0,s.default)(h).call(h,function(t,n){if(!i.hasTag(t,l)){var r=d.default(e),o=t.parent().getNode();r.html(""+t.html()),o.insertBefore(r.getNode(),t.getNode()),t.remove()}}),o.createRangeByElems(a.children[f[0]],a.children[f[1]])},t.prototype.hasTag=function(e,t){var n,i=this;if(!e)return!1;if((0,u.default)(t).call(t,null===e||void 0===e?void 0:e.getNodeName()))return!0;var r=!1;return null===(n=e.children())||void 0===n||(0,s.default)(n).call(n,function(e){r=i.hasTag(d.default(e),t)}),r},t.prototype.tryChangeActive=function(){var e=this.editor.cmd.queryCommandValue("formatBlock");/^h/i.test(e)?this.active():this.unActive()},t}(h.default);t.default=A},function(e,t,n){e.exports=n(318)},function(e,t,n){var i=n(319);e.exports=i},function(e,t,n){n(320);var i=n(9);i.JSON||(i.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return i.JSON.stringify.apply(null,arguments)}},function(e,t,n){var i=n(5),r=n(36),o=n(11),a=r("JSON","stringify"),s=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,u=/^[\uDC00-\uDFFF]$/,c=function(e,t,n){var i=n.charAt(t-1),r=n.charAt(t+1);return l.test(e)&&!u.test(r)||u.test(e)&&!l.test(i)?"\\u"+e.charCodeAt(0).toString(16):e},h=o(function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")});a&&i({target:"JSON",stat:!0,forced:h},{stringify:function(e,t,n){var i=a.apply(null,arguments);return"string"==typeof i?i.replace(s,c):i}})},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(17));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(38)),l=a.__importDefault(n(3)),u=a.__importDefault(n(322)),c=a.__importStar(n(96)),h=a.__importDefault(n(33)),d=a.__importDefault(n(324)),f=n(7),p=function(e){function t(t){var n,i=l.default('<div class="w-e-menu" data-title="链接"><i class="w-e-icon-link"></i></div>');return n=e.call(this,i,t)||this,d.default(t),n}return a.__extends(t,e),t.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.getSelectionContainerElem(),i=t.$textElem,r=i.html();if((0,o.default)(r).call(r)===f.EMPTY_P){var a=i.children();t.selection.createRangeByElem(a,!0,!0),n=t.selection.getSelectionContainerElem()}if(!n||!t.$textElem.equal(n))if(this.isActive){var s,u;if(!(e=t.selection.getSelectionContainerElem()))return;if("A"!==e.getNodeName()){var h=c.getParentNodeA(e);e=l.default(h)}s=e.elems[0].innerText,u=e.attr("href"),this.createPanel(s,u)}else t.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(t.selection.getSelectionText(),"")},t.prototype.createPanel=function(e,t){var n=u.default(this.editor,e,t);new h.default(this,n).create()},t.prototype.tryChangeActive=function(){var e=this.editor;c.default(e)?this.active():this.unActive()},t}(s.default);t.default=p},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(28)),a=i(n(17)),s=i(n(29));(0,r.default)(t,"__esModule",{value:!0});var l=n(2),u=n(6),c=l.__importDefault(n(3)),h=l.__importStar(n(96)),d=n(323);t.default=function(e,t,n){var i,r=u.getRandom("input-link"),l=u.getRandom("input-text"),f=u.getRandom("btn-ok"),p=u.getRandom("btn-del"),A=h.default(e)?"inline-block":"none";function g(){if(h.default(e)){var t=e.selection.getSelectionContainerElem();t&&(e.selection.createRangeByElem(t),e.selection.restoreSelection(),i=t)}}return{width:300,height:0,tabs:[{title:e.i18next.t("menus.panelMenus.link.链接"),tpl:'<div>\n <input\n id="'+l+'"\n type="text"\n class="block"\n placeholder="'+e.i18next.t("menus.panelMenus.link.链接文字")+'"/>\n </td>\n <input\n id="'+r+'"\n type="text"\n class="block"\n placeholder="'+e.i18next.t("如")+' https://..."/>\n </td>\n <div class="w-e-button-container">\n <button type="button" id="'+f+'" class="right">\n '+e.i18next.t("插入")+'\n </button>\n <button type="button" id="'+p+'" class="gray right" style="display:'+A+'">\n '+e.i18next.t("menus.panelMenus.link.取消链接")+"\n </button>\n </div>\n </div>",events:[{selector:"#"+f,type:"click",fn:function(){var t,n,i,s,u,f=e.selection.getSelectionContainerElem(),p=null===f||void 0===f?void 0:f.elems[0];e.selection.restoreSelection();var A=e.selection.getSelectionRangeTopNodes()[0].getNode(),v=window.getSelection(),m=c.default("#"+r),y=c.default("#"+l),_=(0,a.default)(t=m.val()).call(t),b=(0,a.default)(n=y.val()).call(n),w="";v&&!(null===v||void 0===v?void 0:v.isCollapsed)&&(w=null===(s=d.insertHtml(v,A))||void 0===s?void 0:(0,a.default)(s).call(s));var x=null===w||void 0===w?void 0:w.replace(/<.*?>/g,""),C=null!==(u=null===x||void 0===x?void 0:x.length)&&void 0!==u?u:0;if(C<=b.length){var S=b.substring(0,C),k=b.substring(C);x===S&&(b=x+k)}if(_&&(b||(b=_),function(t,n){var i=e.config.linkCheck(t,n);if(void 0===i);else{if(!0===i)return!0;e.config.customAlert(i,"warning")}return!1}(b,_))){if("A"===(null===p||void 0===p?void 0:p.nodeName))return p.setAttribute("href",_),p.innerText=b,!0;if("A"!==(null===p||void 0===p?void 0:p.nodeName)&&(0,o.default)(i=h.EXTRA_TAG).call(i,p.nodeName)){var B=h.getParentNodeA(f);if(B)return B.setAttribute("href",_),p.innerText=b,!0}return function(t,n){var i=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),r=c.default('<a target="_blank">'+i+"</a>"),o=r.elems[0];o.innerText=t,o.href=n,h.default(e)?(g(),e.cmd.do("insertElem",r)):e.cmd.do("insertElem",r)}(b,_),!0}},bindEnter:!0},{selector:"#"+p,type:"click",fn:function(){return function(){if(h.default(e))if(g(),"A"===i.getNodeName()){var t,n=i.elems[0],r=n.parentElement;r&&(0,o.default)(t=h.EXTRA_TAG).call(t,r.nodeName)?r.innerHTML=n.innerHTML:e.cmd.do("insertHTML","<span>"+n.innerHTML+"</span>")}else{var a=h.getParentNodeA(i).innerHTML;e.cmd.do("insertHTML","<span>"+a+"</span>")}}(),!0}}]}],setLinkValue:function(e,i){var o="",a="";"text"===i&&(o="#"+l,a=t),"link"===i&&(o="#"+r,a=n),(0,s.default)(e).call(e,o).elems[0].value=a}}}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));function a(e,t){var n=e,i=e;do{if(n.textContent===t)break;i=n,n.parentNode&&(n=null===n||void 0===n?void 0:n.parentNode)}while("P"!==(null===n||void 0===n?void 0:n.nodeName));return i}function s(e,t){var n=e.nodeName,i="";if(3===e.nodeType||/^(h|H)[1-6]$/.test(n))return t;if(1===e.nodeType){var r=e.getAttribute("style"),o=e.getAttribute("face"),a=e.getAttribute("color");r&&(i=i+' style="'+r+'"'),o&&(i=i+' face="'+o+'"'),a&&(i=i+' color="'+a+'"')}return"<"+(n=n.toLowerCase())+i+">"+t+"</"+n+">"}function l(e,t,n,i){var r,o=null===(r=t.textContent)||void 0===r?void 0:r.substring(n,i),a=t,l="";do{o=l=s(a,null!==o&&void 0!==o?o:""),a=null===a||void 0===a?void 0:a.parentElement}while(a&&a.textContent!==e);return l}function u(e,t){return(0,o.default)(e).call(e,function(e){t=s(e,t)}),t}(0,r.default)(t,"__esModule",{value:!0}),t.insertHtml=t.createPartHtml=t.makeHtmlString=t.getTopNode=void 0,t.getTopNode=a,t.makeHtmlString=s,t.createPartHtml=l,t.insertHtml=function(e,t){var n,i,r,o,c,h=e.anchorNode,d=e.focusNode,f=e.anchorOffset,p=e.focusOffset,A=null!==(n=t.textContent)&&void 0!==n?n:"",g=function(e){for(var t,n=null!==(t=e.textContent)&&void 0!==t?t:"",i=[];(null===e||void 0===e?void 0:e.textContent)===n;)"P"!==e.nodeName&&"TABLE"!==e.nodeName&&i.push(e),e=e.childNodes[0];return i}(t),v="",m="",y="",_=h,b=d,w=h;if(null===h||void 0===h?void 0:h.isEqualNode(null!==d&&void 0!==d?d:null)){var x=l(A,h,f,p);return x=u(g,x)}for(h&&(v=l(A,h,null!==f&&void 0!==f?f:0)),d&&(y=l(A,d,0,p)),h&&(_=a(h,A)),d&&(b=a(d,A)),w=null!==(i=null===_||void 0===_?void 0:_.nextSibling)&&void 0!==i?i:h;!(null===w||void 0===w?void 0:w.isEqualNode(null!==b&&void 0!==b?b:null));){if("#text"===(null===w||void 0===w?void 0:w.nodeName))m+=null===w||void 0===w?void 0:w.textContent;else{var C=null===(o=null===(r=null===w||void 0===w?void 0:w.firstChild)||void 0===r?void 0:r.parentElement)||void 0===o?void 0:o.innerHTML;w&&(m+=s(w,null!==C&&void 0!==C?C:""))}var S=null!==(c=null===w||void 0===w?void 0:w.nextSibling)&&void 0!==c?c:w;if(S===w)break;w=S}return u(g,""+v+m+y)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(325));t.default=function(e){i.default(e)}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(28));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),l=a.__importDefault(n(39)),u=n(96);t.default=function(e){var t=function(e){var t;return{showLinkTooltip:function(n){var i=[{$elem:s.default("<span>"+e.i18next.t("menus.panelMenus.link.查看链接")+"</span>"),onClick:function(e,t){var n=t.attr("href");return window.open(n,"_target"),!0}},{$elem:s.default("<span>"+e.i18next.t("menus.panelMenus.link.取消链接")+"</span>"),onClick:function(e,t){var n,i;e.selection.createRangeByElem(t),e.selection.restoreSelection();var r=t.childNodes();if("IMG"===(null===r||void 0===r?void 0:r.getNodeName())){var a=null===(i=null===(n=e.selection.getSelectionContainerElem())||void 0===n?void 0:n.children())||void 0===i?void 0:i.elems[0].children[0];e.cmd.do("insertHTML","<img \n src="+(null===a||void 0===a?void 0:a.getAttribute("src"))+" \n style="+(null===a||void 0===a?void 0:a.getAttribute("style"))+">")}else{var s,l=t.elems[0],c=l.innerHTML,h=l.parentElement;h&&(0,o.default)(s=u.EXTRA_TAG).call(s,h.nodeName)?h.innerHTML=c:e.cmd.do("insertHTML","<span>"+c+"</span>")}return!0}}];(t=new l.default(e,n,i)).create()},hideLinkTooltip:function(){t&&(t.remove(),t=null)}}}(e),n=t.showLinkTooltip,i=t.hideLinkTooltip;e.txt.eventHooks.linkClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(23)),o=i.__importDefault(n(3)),a=function(e){function t(t){var n=o.default('<div class="w-e-menu" data-title="斜体">\n <i class="w-e-icon-italic"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("italic"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("italic")?this.active():this.unActive()},t}(r.default);t.default=a},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(23)),o=i.__importDefault(n(3)),a=function(e){function t(t){var n=o.default('<div class="w-e-menu" data-title="下划线">\n <i class="w-e-icon-underline"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("underline"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("underline")?this.active():this.unActive()},t}(r.default);t.default=a},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(23)),o=i.__importDefault(n(3)),a=function(e){function t(t){var n=o.default('<div class="w-e-menu" data-title="删除线">\n <i class="w-e-icon-strikethrough"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("strikeThrough"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},t}(r.default);t.default=a},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(24)),o=i.__importDefault(n(3)),a=i.__importDefault(n(330)),s=function(e){function t(t){var n=this,i=o.default('<div class="w-e-menu" data-title="字体">\n <i class="w-e-icon-font"></i>\n </div>'),r={width:100,title:"设置字体",type:"list",list:new a.default(t.config.fontNames).getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this}return i.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),r=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=r){var o="p"!==(null===r||void 0===r?void 0:r.nodeName.toLowerCase()),a=(null===r||void 0===r?void 0:r.getAttribute("face"))===e;if(i){if(o&&!a){var s=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(s[0]),n.selection.moveCursor(s[0].elems[0])}n.selection.setRangeToElem(r),n.selection.createEmptyRange()}n.cmd.do("fontName",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(r.default);t.default=s},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),s=function(){function e(e){var t=this;this.itemList=[],(0,o.default)(e).call(e,function(e){var n="string"==typeof e?e:e.value,i="string"==typeof e?e:e.name;t.itemList.push({$elem:a.default("<p style=\"font-family:'"+n+"'\">"+i+"</p>"),value:i})})}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=s},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(24)),o=i.__importDefault(n(3)),a=i.__importDefault(n(332)),s=function(e){function t(t){var n=this,i=o.default('<div class="w-e-menu" data-title="字号">\n <i class="w-e-icon-text-heigh"></i>\n </div>'),r={width:160,title:"设置字号",type:"list",list:new a.default(t.config.fontSizes).getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this}return i.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty();null!=(null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0])&&(n.cmd.do("fontSize",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection()))},t.prototype.tryChangeActive=function(){},t}(r.default);t.default=s},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(3)),r=function(){function e(e){for(var t in this.itemList=[],e){var n=e[t];this.itemList.push({$elem:i.default('<p style="font-size:'+t+'">'+n.name+"</p>"),value:n.value})}}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=r},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(27));(0,r.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(24)),u=s.__importDefault(n(3)),c=["LI"],h=["BLOCKQUOTE"],d=function(e){function t(t){var n=this,i=u.default('<div class="w-e-menu" data-title="对齐"><i class="w-e-icon-paragraph-left"></i></div>'),r={width:100,title:"对齐方式",type:"list",list:[{$elem:u.default('<p>\n <i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.靠左")+"\n </p>"),value:"left"},{$elem:u.default('<p>\n <i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.居中")+"\n </p>"),value:"center"},{$elem:u.default('<p>\n <i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.靠右")+"\n </p>"),value:"right"},{$elem:u.default('<p>\n <i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.两端")+"\n </p>"),value:"justify"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this}return s.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection,i=n.getSelectionContainerElem();n.saveRange();var r=t.selection.getSelectionRangeTopNodes();if(null===i||void 0===i?void 0:i.length)if(this.isSpecialNode(i,r[0])||this.isSpecialTopNode(r[0])){var a=this.getSpecialNodeUntilTop(i,r[0]);if(null==a)return;u.default(a).css("text-align",e)}else(0,o.default)(r).call(r,function(t){t.css("text-align",e)});n.restoreSelection()},t.prototype.getSpecialNodeUntilTop=function(e,t){for(var n=e.elems[0],i=t.elems[0];null!=n;){if(-1!==(0,a.default)(c).call(c,null===n||void 0===n?void 0:n.nodeName))return n;if(n.parentNode===i)return n;n=n.parentNode}return n},t.prototype.isSpecialNode=function(e,t){var n=this.getSpecialNodeUntilTop(e,t);return null!=n&&-1!==(0,a.default)(c).call(c,n.nodeName)},t.prototype.isSpecialTopNode=function(e){var t;return null!=e&&-1!==(0,a.default)(h).call(h,null===(t=e.elems[0])||void 0===t?void 0:t.nodeName)},t.prototype.tryChangeActive=function(){},t}(l.default);t.default=d},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),l=a.__importDefault(n(23)),u=a.__importDefault(n(335)),c=a.__importDefault(n(336)),h=n(7),d=function(e){function t(t){var n,i=s.default('<div class="w-e-menu" data-title="引用">\n <i class="w-e-icon-quotes-left"></i>\n </div>');return n=e.call(this,i,t)||this,u.default(t),n}return a.__extends(t,e),t.prototype.clickHandler=function(){var e,t,n=this.editor,i=n.selection.isSelectionEmpty(),r=n.selection.getSelectionRangeTopNodes(),a=r[r.length-1];if("BLOCKQUOTE"!==this.getTopNodeName()){var l=c.default(r);if(n.$textElem.equal(a)){var u=null===(e=n.selection.getSelectionContainerElem())||void 0===e?void 0:e.elems[0];n.selection.createRangeByElems(u.children[0],u.children[0]),r=n.selection.getSelectionRangeTopNodes(),l=c.default(r),a.append(l)}else l.insertAfter(a);this.delSelectNode(r);var d=null===(t=l.childNodes())||void 0===t?void 0:t.last().getNode();if(null==d)return;return d.textContent?n.selection.moveCursor(d):n.selection.moveCursor(d,0),this.tryChangeActive(),void s.default(h.EMPTY_P).insertAfter(l)}var f=s.default(a.childNodes()),p=f.length,A=a;(0,o.default)(f).call(f,function(e){var t=s.default(e);t.insertAfter(A),A=t}),a.remove(),n.selection.moveCursor(f.elems[p-1]),this.tryChangeActive(),i&&(n.selection.collapseRange(),n.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e;"BLOCKQUOTE"===(null===(e=this.editor.selection.getSelectionRangeTopNodes()[0])||void 0===e?void 0:e.getNodeName())?this.active():this.unActive()},t.prototype.getTopNodeName=function(){var e=this.editor.selection.getSelectionRangeTopNodes()[0];return null===e||void 0===e?void 0:e.getNodeName()},t.prototype.delSelectNode=function(e){(0,o.default)(e).call(e,function(e){e.remove()})},t}(l.default);t.default=d},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=n(7),o=i.__importDefault(n(3));t.default=function(e){e.txt.eventHooks.enterDownEvents.push(function(t){var n,i=e.selection.getSelectionContainerElem(),a=e.selection.getSelectionRangeTopNodes()[0];if("BLOCKQUOTE"===(null===a||void 0===a?void 0:a.getNodeName())){if("BLOCKQUOTE"===i.getNodeName()){var s=null===(n=i.childNodes())||void 0===n?void 0:n.getNode();e.selection.moveCursor(s)}if(""===i.text()){t.preventDefault(),i.remove();var l=o.default(r.EMPTY_P);l.insertAfter(a),e.selection.moveCursor(l.getNode(),0)}""===a.text()&&a.remove()}})}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));t.default=function(e){var t=a.default("<blockquote></blockquote>");return(0,o.default)(e).call(e,function(e){t.append(e.clone(!0))}),t}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(26));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(24)),l=a.__importDefault(n(3)),u=n(6),c=function(e){function t(t){var n,i=this,r=l.default('<div class="w-e-menu" data-title="背景色">\n <i class="w-e-icon-paint-brush"></i>\n </div>'),a={width:120,title:"背景颜色",type:"inline-block",list:(0,o.default)(n=t.config.colors).call(n,function(e){return{$elem:l.default('<i style="color:'+e+';" class="w-e-icon-paint-brush"></i>'),value:e}}),clickHandler:function(e){i.command(e)}};return i=e.call(this,r,t,a)||this}return a.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),r=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=r){var o="p"!==(null===r||void 0===r?void 0:r.nodeName.toLowerCase()),a=null===r||void 0===r?void 0:r.style.backgroundColor,s=u.hexToRgb(e)===a;if(i){if(o&&!s){var l=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(l[0]),n.selection.moveCursor(l[0].elems[0])}n.selection.createEmptyRange()}n.cmd.do("backColor",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(s.default);t.default=c},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(26));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(24)),l=a.__importDefault(n(3)),u=function(e){function t(t){var n,i=this,r=l.default('<div class="w-e-menu" data-title="文字颜色">\n <i class="w-e-icon-pencil2"></i>\n </div>'),a={width:120,title:"文字颜色",type:"inline-block",list:(0,o.default)(n=t.config.colors).call(n,function(e){return{$elem:l.default('<i style="color:'+e+';" class="w-e-icon-pencil2"></i>'),value:e}}),clickHandler:function(e){i.command(e)}};return i=e.call(this,r,t,a)||this}return a.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),r=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=r){var o=n.selection.getSelectionText();if("A"===r.nodeName&&r.textContent===o){var a=l.default("<span>&#8203;</span>").getNode();r.appendChild(a)}n.cmd.do("foreColor",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(s.default);t.default=u},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(33)),a=i.__importDefault(n(38)),s=i.__importDefault(n(340)),l=i.__importDefault(n(346)),u=function(e){function t(t){var n,i=r.default('<div class="w-e-menu" data-title="视频">\n <i class="w-e-icon-play"></i>\n </div>');return n=e.call(this,i,t)||this,l.default(t),n}return i.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel("")},t.prototype.createPanel=function(e){var t=s.default(this.editor,e);new o.default(this,t).create()},t.prototype.tryChangeActive=function(){},t}(a.default);t.default=u},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(17));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=n(6),l=a.__importDefault(n(3)),u=a.__importDefault(n(341)),c=n(7);t.default=function(e,t){var n=e.config,i=new u.default(e),r=s.getRandom("input-iframe"),a=s.getRandom("btn-ok"),h=s.getRandom("input-upload"),d=s.getRandom("btn-local-ok"),f=[{title:e.i18next.t("menus.panelMenus.video.上传视频"),tpl:'<div class="w-e-up-video-container">\n <div id="'+d+'" class="w-e-up-btn">\n <i class="w-e-icon-upload2"></i>\n </div>\n <div style="display:none;">\n <input id="'+h+'" type="file" accept="video/*"/>\n </div>\n </div>',events:[{selector:"#"+d,type:"click",fn:function(){var e=l.default("#"+h).elems[0];if(!e)return!0;e.click()}},{selector:"#"+h,type:"change",fn:function(){var e=l.default("#"+h).elems[0];if(!e)return!0;var t=e.files;return t.length&&i.uploadVideo(t),!0}}]},{title:e.i18next.t("menus.panelMenus.video.插入视频"),tpl:'<div>\n <input \n id="'+r+'" \n type="text" \n class="block" \n placeholder="'+e.i18next.t("如")+':<iframe src=... ></iframe>"/>\n </td>\n <div class="w-e-button-container">\n <button type="button" id="'+a+'" class="right">\n '+e.i18next.t("插入")+"\n </button>\n </div>\n </div>",events:[{selector:"#"+a,type:"click",fn:function(){var t,n=l.default("#"+r),i=(0,o.default)(t=n.val()).call(t);if(i&&function(t){var n=e.config.onlineVideoCheck(t);return!0===n||("string"==typeof n&&e.config.customAlert(n,"error"),!1)}(i))return function(t){e.cmd.do("insertHTML",t+c.EMPTY_P),e.config.onlineVideoCallback(t)}(i),!0},bindEnter:!0}]}],p={width:300,height:0,tabs:[]};return window.FileReader&&(n.uploadVideoServer||n.customUploadVideo)&&p.tabs.push(f[0]),n.showLinkVideo&&p.tabs.push(f[1]),p}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(133)),a=i(n(57)),s=i(n(4)),l=i(n(27));(0,r.default)(t,"__esModule",{value:!0});var u=n(2),c=n(6),h=u.__importDefault(n(135)),d=u.__importDefault(n(136)),f=n(7),p=n(6),A=function(){function e(e){this.editor=e}return e.prototype.uploadVideo=function(e){var t=this;if(e.length){var n=this.editor,i=n.config,r=function(e){return n.i18next.t("validate."+e)},u=i.uploadVideoServer,f=i.uploadVideoMaxSize/1024,p=i.uploadVideoName,A=i.uploadVideoParams,g=i.uploadVideoParamsWithUrl,v=i.uploadVideoHeaders,m=i.uploadVideoHooks,y=i.uploadVideoTimeout,_=i.withVideoCredentials,b=i.customUploadVideo,w=i.uploadVideoAccept,x=[],C=[];if(c.arrForEach(e,function(e){var t=e.name,n=e.size/1024/1024;t&&n&&(w instanceof Array?(0,o.default)(w).call(w,function(e){return e===t.split(".")[t.split(".").length-1]})?f<n?C.push("【"+t+"】"+r("大于")+" "+f+"M"):x.push(e):C.push("【"+t+"】"+r("不是视频")):C.push("【"+w+"】"+r("uploadVideoAccept 不是Array")))}),C.length)i.customAlert(r("视频验证未通过")+": \n"+C.join("\n"),"warning");else if(0!==x.length)if(b&&"function"==typeof b){var S;b(x,(0,a.default)(S=this.insertVideo).call(S,this))}else{var k=new FormData;if((0,s.default)(x).call(x,function(e,t){var n=p||e.name;x.length>1&&(n+=t+1),k.append(n,e)}),u){var B=u.split("#");u=B[0];var T=B[1]||"";(0,s.default)(c).call(c,A,function(e,t){g&&((0,l.default)(u).call(u,"?")>0?u+="&":u+="?",u=u+e+"="+t),k.append(e,t)}),T&&(u+="#"+T);var E=h.default(u,{timeout:y,formData:k,headers:v,withCredentials:!!_,beforeSend:function(e){if(m.before)return m.before(e,n,x)},onTimeout:function(e){i.customAlert(r("上传视频超时"),"error"),m.timeout&&m.timeout(e,n)},onProgress:function(e,t){var i=new d.default(n);t.lengthComputable&&(e=t.loaded/t.total,i.show(e))},onError:function(e){i.customAlert(r("上传视频错误"),"error",r("上传视频错误")+","+r("服务器返回状态")+": "+e.status),m.error&&m.error(e,n)},onFail:function(e,t){i.customAlert(r("上传视频失败"),"error",r("上传视频返回结果错误")+","+r("返回结果")+": "+t),m.fail&&m.fail(e,n,t)},onSuccess:function(e,o){if(m.customInsert){var s;m.customInsert((0,a.default)(s=t.insertVideo).call(s,t),o,n)}else{if("0"!=o.errno)return i.customAlert(r("上传视频失败"),"error",r("上传视频返回结果错误")+","+r("返回结果")+" errno="+o.errno),void(m.fail&&m.fail(e,n,o));var l=o.data;t.insertVideo(l.url),m.success&&m.success(e,n,o)}}});"string"==typeof E&&i.customAlert(E,"error")}}else i.customAlert(r("传入的文件不合法"),"warning")}},e.prototype.insertVideo=function(e){var t=this.editor,n=t.config,i=function(e,n){return void 0===n&&(n="validate."),t.i18next.t(n+e)};if(n.customInsertVideo)n.customInsertVideo(e);else{p.UA.isFirefox?t.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+e+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):t.cmd.do("insertHTML",'<video src="'+e+'" controls="controls" style="max-width:100%"></video>'+f.EMPTY_P);var r=document.createElement("video");r.onload=function(){r=null},r.onerror=function(){n.customAlert(i("插入视频错误"),"error","wangEditor: "+i("插入视频错误")+","+i("视频链接")+' "'+e+'",'+i("下载链接失败")),r=null},r.onabort=function(){return r=null},r.src=e}},e}();t.default=A},function(e,t,n){e.exports=n(343)},function(e,t,n){var i=n(344);e.exports=i},function(e,t,n){n(345);var i=n(9);e.exports=i.Date.now},function(e,t,n){n(5)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(347)),o=i.__importDefault(n(349));t.default=function(e){r.default(e),o.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(39)),a=i.__importDefault(n(348));function s(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};return{showVideoTooltip:function(i){var s=[{$elem:r.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return t.remove(),!0}},{$elem:r.default("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>"+n("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}},{$elem:r.default("<span>"+n("menus.justify.靠左")+"</span>"),onClick:function(e,t){return a.default(t,"left"),!0}},{$elem:r.default("<span>"+n("menus.justify.居中")+"</span>"),onClick:function(e,t){return a.default(t,"center"),!0}},{$elem:r.default("<span>"+n("menus.justify.靠右")+"</span>"),onClick:function(e,t){return a.default(t,"right"),!0}}];(t=new o.default(e,i,s)).create()},hideVideoTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=s,t.default=function(e){var t=s(e),n=t.showVideoTooltip,i=t.hideVideoTooltip;e.txt.eventHooks.videoClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i),e.txt.eventHooks.changeEvents.push(i)}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(28));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));t.default=function(e,t){var n=function(e,t){for(var n,i=e.elems[0];null!=i;){if((0,o.default)(t).call(t,null===i||void 0===i?void 0:i.nodeName))return i;if("BODY"===(null===(n=null===i||void 0===i?void 0:i.parentNode)||void 0===n?void 0:n.nodeName))return null;i=i.parentNode}return i}(e,["P"]);n&&a.default(n).css("text-align",t)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(6);t.default=function(e){if(i.UA.isFirefox){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push(function(t){var i=n.getSelectionContainerElem();if(i){var r=i.getNodeTop(e),o=r.length&&r.prev().length?r.prev():null;o&&o.attr("data-we-video-p")&&0===n.getCursorPos()&&8===t.keyCode&&o.remove()}})}}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(26));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=n(7),l=a.__importDefault(n(3)),u=a.__importDefault(n(33)),c=a.__importDefault(n(38)),h=a.__importDefault(n(351)),d=a.__importDefault(n(364)),f=function(e){function t(t){var n,i=this,r=l.default('<div class="w-e-menu" data-title="图片"><i class="w-e-icon-image"></i></div>'),a=d.default(t);a.onlyUploadConf&&(r=a.onlyUploadConf.$elem,(0,o.default)(n=a.onlyUploadConf.events).call(n,function(e){var t=e.type,n=e.fn||s.EMPTY_FN;r.on(t,function(e){e.stopPropagation(),n(e)})}));return(i=e.call(this,r,t)||this).imgPanelConfig=a,h.default(t),i}return a.__extends(t,e),t.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},t.prototype.createPanel=function(){var e=this.imgPanelConfig,t=new u.default(this,e);this.setPanel(t),t.create()},t.prototype.tryChangeActive=function(){},t}(c.default);t.default=f},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(352)),o=i.__importDefault(n(353)),a=i.__importDefault(n(354)),s=i.__importDefault(n(362)),l=i.__importDefault(n(363));t.default=function(e){r.default(e),o.default(e),a.default(e),s.default(e),l.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=n(131),o=i.__importDefault(n(97));function a(e,t){if(function(e,t){for(var n,i=(null===(n=t.clipboardData)||void 0===n?void 0:n.types)||[],r=0;r<i.length;r++)if("Files"===i[r])return!0;return!1}(0,e)||!function(e,t){var n=e.config,i=n.pasteFilterStyle,o=n.pasteIgnoreImg;return!!r.getPasteHtml(t,i,o)||!!r.getPasteText(t)}(t,e)){var n=r.getPasteImgs(e);if(n.length)new o.default(t).uploadImg(n)}}t.default=function(e){e.txt.eventHooks.pasteEvents.unshift(function(t){a(t,e)})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(97));t.default=function(e){e.txt.eventHooks.dropEvents.push(function(t){var n=t.dataTransfer&&t.dataTransfer.files;n&&n.length&&new i.default(e).uploadImg(n)})}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(29)),a=i(n(355));(0,r.default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var s=n(2).__importDefault(n(3));n(360);var l=n(6);function u(e,t,n,i,r){e.attr("style","width:"+t+"px; height:"+n+"px; left:"+i+"px; top:"+r+"px;")}function c(e){var t,n=e.$textContainerElem,i=function(e,t){var n=s.default('<div class="w-e-img-drag-mask">\n <div class="w-e-img-drag-show-size"></div>\n <div class="w-e-img-drag-rb"></div>\n </div>');return n.hide(),t.append(n),n}(0,n);function r(){(0,o.default)(n).call(n,".w-e-img-drag-mask").hide()}return function(e,n){e.on("click",function(e){e.stopPropagation()}),e.on("mousedown",".w-e-img-drag-rb",function(i){if(i.preventDefault(),t){var r=i.clientX,l=i.clientY,c=n.getBoundingClientRect(),h=t.getBoundingClientRect(),d=h.width,f=h.height,p=h.left-c.left,A=h.top-c.top,g=d/f,v=d,m=f,y=s.default(document);y.on("mousemove",b),y.on("mouseup",w),y.on("mouseleave",_)}function _(){y.off("mousemove",b),y.off("mouseup",w)}function b(t){t.stopPropagation(),t.preventDefault(),v=d+(t.clientX-r),m=f+(t.clientY-l),v/m!=g&&(m=v/g),v=(0,a.default)(v.toFixed(2)),m=(0,a.default)(m.toFixed(2)),(0,o.default)(e).call(e,".w-e-img-drag-show-size").text(v.toFixed(2).replace(".00","")+"px * "+m.toFixed(2).replace(".00","")+"px"),u(e,v,m,p,A)}function w(){t.attr("width",v+""),t.attr("height",m+"");var n=t.getBoundingClientRect();u(e,v,m,n.left-c.left,n.top-c.top),_()}})}(i,n),s.default(document).on("click",r),e.beforeDestroy(function(){s.default(document).off("click",r)}),{showDrag:function(e){if(l.UA.isIE())return!1;e&&function(e,t,n){var i=e.getBoundingClientRect(),r=n.getBoundingClientRect(),s=r.width.toFixed(2),l=r.height.toFixed(2);(0,o.default)(t).call(t,".w-e-img-drag-show-size").text(s+"px * "+l+"px"),u(t,(0,a.default)(s),(0,a.default)(l),r.left-i.left,r.top-i.top),t.show()}(n,i,t=e)},hideDrag:r}}t.createShowHideFn=c,t.default=function(e){var t=c(e),n=t.showDrag,i=t.hideDrag;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.changeEvents.push(i)}},function(e,t,n){e.exports=n(356)},function(e,t,n){var i=n(357);e.exports=i},function(e,t,n){n(358);var i=n(9);e.exports=i.parseFloat},function(e,t,n){var i=n(5),r=n(359);i({global:!0,forced:parseFloat!=r},{parseFloat:r})},function(e,t,n){var i=n(8),r=n(90).trim,o=n(68),a=i.parseFloat,s=1/a(o+"-0")!=-1/0;e.exports=s?function(e){var t=r(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){var i=n(20),r=n(361);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o);e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-text-container {\n overflow: hidden;\n}\n.w-e-img-drag-mask {\n position: absolute;\n z-index: 1;\n border: 1px dashed #ccc;\n box-sizing: border-box;\n}\n.w-e-img-drag-mask .w-e-img-drag-rb {\n position: absolute;\n right: -5px;\n bottom: -5px;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: #ccc;\n cursor: se-resize;\n}\n.w-e-img-drag-mask .w-e-img-drag-show-size {\n min-width: 110px;\n height: 22px;\n line-height: 22px;\n font-size: 14px;\n color: #999;\n position: absolute;\n left: 0;\n top: 0;\n background-color: #999;\n color: #fff;\n border-radius: 2px;\n padding: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(39));function a(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};return{showImgTooltip:function(i){var a=[{$elem:r.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}},{$elem:r.default("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}}];a.push({$elem:r.default("<span>"+n("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}}),i.attr("data-href")&&a.push({$elem:r.default("<span>"+n("查看链接")+"</span>"),onClick:function(e,t){var n=t.attr("data-href");return n&&(n=decodeURIComponent(n),window.open(n,"_target")),!0}}),(t=new o.default(e,i,a)).create()},hideImgTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=a,t.default=function(e){var t=a(e),n=t.showImgTooltip,i=t.hideImgTooltip;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i),e.txt.eventHooks.imgDragBarMouseDownEvents.push(i),e.txt.eventHooks.changeEvents.push(i)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push(function(e){var t=n.getSelectionContainerElem(),i=n.getRange();if(i&&t&&8===e.keyCode&&n.isSelectionEmpty()){var r=i.startContainer,o=i.startOffset,a=null;if(0===o)for(;r!==t.elems[0]&&t.elems[0].contains(r)&&r.parentNode&&!a;){if(r.previousSibling){a=r.previousSibling;break}r=r.parentNode}else 3!==r.nodeType&&(a=r.childNodes[o-1]);if(a){for(var s=a;s.childNodes.length;)s=s.childNodes[s.childNodes.length-1];s instanceof HTMLElement&&"IMG"===s.tagName&&(s.remove(),e.preventDefault())}}})}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(26)),a=i(n(17));(0,r.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(3)),u=n(6),c=s.__importDefault(n(97));t.default=function(e){var t,n=e.config,i=new c.default(e),r=u.getRandom("up-trigger-id"),s=u.getRandom("up-file-id"),h=u.getRandom("input-link-url"),d=u.getRandom("input-link-url-alt"),f=u.getRandom("input-link-url-href"),p=u.getRandom("btn-link"),A=function(t,n){return void 0===n&&(n="menus.panelMenus.image."),e.i18next.t(n+t)},g=1===n.uploadImgMaxLength?"":'multiple="multiple"',v=(0,o.default)(t=n.uploadImgAccept).call(t,function(e){return"image/"+e}).join(","),m=function(e,t,n){return'<div class="'+e+'" data-title="'+n+'">\n <div id="'+r+'" class="w-e-up-btn">\n <i class="'+t+'"></i>\n </div>\n <div style="display:none;">\n <input id="'+s+'" type="file" '+g+' accept="'+v+'"/>\n </div>\n </div>'},y=[{selector:"#"+r,type:"click",fn:function(){var e=n.uploadImgFromMedia;if(e&&"function"==typeof e)return e(),!0;var t=l.default("#"+s).elems[0];if(!t)return!0;t.click()}},{selector:"#"+s,type:"change",fn:function(){var e=l.default("#"+s).elems[0];if(!e)return!0;var t=e.files;return(null===t||void 0===t?void 0:t.length)&&i.uploadImg(t),e&&(e.value=""),!0}}],_=['<input\n id="'+h+'"\n type="text"\n class="block"\n placeholder="'+A("图片地址")+'"/>'];n.showLinkImgAlt&&_.push('\n <input\n id="'+d+'"\n type="text"\n class="block"\n placeholder="'+A("图片文字说明")+'"/>'),n.showLinkImgHref&&_.push('\n <input\n id="'+f+'"\n type="text"\n class="block"\n placeholder="'+A("跳转链接")+'"/>');var b=[{title:A("上传图片"),tpl:m("w-e-up-img-container","w-e-icon-upload2",""),events:y},{title:A("网络图片"),tpl:"<div>\n "+_.join("")+'\n <div class="w-e-button-container">\n <button type="button" id="'+p+'" class="right">'+A("插入","")+"</button>\n </div>\n </div>",events:[{selector:"#"+p,type:"click",fn:function(){var e,t,r,o,s,u,c,p=l.default("#"+h),A=(0,a.default)(e=p.val()).call(e);if(A&&(n.showLinkImgAlt&&(t=(0,a.default)(r=l.default("#"+d).val()).call(r)),n.showLinkImgHref&&(o=(0,a.default)(s=l.default("#"+f).val()).call(s)),u=A,!0===(c=n.linkImgCheck(u))||("string"==typeof c&&n.customAlert(c,"error"),0)))return i.insertImg(A,t,o),!0},bindEnter:!0}]}],w={width:300,height:0,tabs:[],onlyUploadConf:{$elem:l.default(m("w-e-menu","w-e-icon-image","图片")),events:y}};return window.FileReader&&(n.uploadImgShowBase64||n.uploadImgServer||n.customUploadImg||n.uploadImgFromMedia)&&w.tabs.push(b[0]),n.showLinkImg&&(w.tabs.push(b[1]),w.onlyUploadConf=void 0),w}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),l=a.__importDefault(n(24)),u=a.__importDefault(n(366)),c=function(e){function t(t){var n=this,i=s.default('<div class="w-e-menu" data-title="缩进">\n <i class="w-e-icon-indent-increase"></i>\n </div>'),r={width:130,title:"设置缩进",type:"list",list:[{$elem:s.default('<p>\n <i class="w-e-icon-indent-increase w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.indent.增加缩进")+"\n <p>"),value:"increase"},{$elem:s.default('<p>\n <i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.indent.减少缩进")+"\n <p>"),value:"decrease"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this}return a.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n)){var i=t.selection.getSelectionRangeTopNodes();i.length>0&&(0,o.default)(i).call(i,function(n){u.default(s.default(n),e,t)})}else n&&n.length>0&&(0,o.default)(n).call(n,function(n){u.default(s.default(n),e,t)});t.selection.restoreSelection(),this.tryChangeActive()},t.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionStartElem(),n=s.default(t).getNodeTop(e);n.length<=0||(""!=n.elems[0].style.paddingLeft?this.active():this.unActive())},t}(l.default);t.default=c},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(45)),a=i(n(17));(0,r.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(367)),u=s.__importDefault(n(368)),c=/^(\d+)(\w+)$/,h=/^(\d+)%$/;function d(e){var t=e.config.indentation;if("string"==typeof t){if(c.test(t)){var n,i=(0,o.default)(n=(0,a.default)(t).call(t).match(c)).call(n,1,3),r=i[0],s=i[1];return{value:Number(r),unit:s}}if(h.test(t))return{value:Number((0,a.default)(t).call(t).match(h)[1]),unit:"%"}}else if(void 0!==t.value&&t.unit)return t;return{value:2,unit:"em"}}t.default=function(e,t,n){var i=e.getNodeTop(n);/^(P|H[0-9]*)$/.test(i.getNodeName())&&("increase"===t?l.default(i,d(n)):"decrease"===t&&u.default(i,d(n)))}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(45));(0,r.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];if(""===n.style.paddingLeft)e.css("padding-left",t.value+t.unit);else{var i=n.style.paddingLeft,r=(0,o.default)(i).call(i,0,i.length-t.unit.length),a=Number(r)+t.value;e.css("padding-left",""+a+t.unit)}}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(45));(0,r.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];if(""!==n.style.paddingLeft){var i=n.style.paddingLeft,r=(0,o.default)(i).call(i,0,i.length-t.unit.length),a=Number(r)-t.value;a>0?e.css("padding-left",""+a+t.unit):e.css("padding-left","")}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(38)),a=i.__importDefault(n(33)),s=i.__importDefault(n(370)),l=function(e){function t(t){var n=r.default('<div class="w-e-menu" data-title="表情">\n <i class="w-e-icon-happy"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.createPanel=function(){var e=s.default(this.editor);new a.default(this,e).create()},t.prototype.clickHandler=function(){this.createPanel()},t.prototype.tryChangeActive=function(){},t}(o.default);t.default=l},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(26)),a=i(n(70)),s=i(n(17));(0,r.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3));t.default=function(e){var t=e.config.emotions;return{width:300,height:230,tabs:(0,o.default)(t).call(t,function(t){return{title:e.i18next.t("menus.panelMenus.emoticon."+t.title),tpl:"<div>"+function(e){var t,n,i=[];return"image"==e.type?(i=(0,o.default)(t=e.content).call(t,function(e){return"string"==typeof e?"":'<span title="'+e.alt+'">\n <img class="eleImg" data-emoji="'+e.alt+'" style src="'+e.src+'" alt="['+e.alt+']">\n </span>'}),i=(0,a.default)(i).call(i,function(e){return""!==e})):i=(0,o.default)(n=e.content).call(n,function(e){return'<span class="eleImg" title="'+e+'">'+e+"</span>"}),i.join("").replace(/&nbsp;/g,"")}(t)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(t){var n,i,r=l.default(t.target);return n="IMG"===r.getNodeName()?(0,s.default)(i=r.parent().html()).call(i):"<span>"+r.html()+"</span>",e.cmd.do("insertHTML",n),!0}}]}})}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createListHandle=t.ClassType=void 0;var i,r=n(2),o=r.__importDefault(n(3)),a=r.__importDefault(n(372)),s=r.__importDefault(n(374)),l=r.__importDefault(n(375)),u=r.__importDefault(n(376)),c=r.__importDefault(n(377));!function(e){e.Wrap="WrapListHandle",e.Join="JoinListHandle",e.StartJoin="StartJoinListHandle",e.EndJoin="EndJoinListHandle",e.Other="OtherListHandle"}(i=t.ClassType||(t.ClassType={}));var h={WrapListHandle:a.default,JoinListHandle:s.default,StartJoinListHandle:l.default,EndJoinListHandle:u.default,OtherListHandle:c.default};t.createListHandle=function(e,t,n){if(e===i.Other&&void 0===n)throw new Error("other 类需要传入 range");return e!==i.Other?new h[e](t):new h[e](t,n)};var d=function(){function e(e){this.handle=e,this.handle.exec()}return e.prototype.getSelectionRangeElem=function(){return o.default(this.handle.selectionRangeElem.get())},e}();t.default=d},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),l=n(58),u=n(47),c=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t=this.options,n=t.listType,i=t.listTarget,r=t.$selectionElem,a=t.$startElem,l=t.$endElem,c=[],h=null===r||void 0===r?void 0:r.getNodeName(),d=a.prior,f=l.prior;if(!a.prior&&!l.prior||!(null===d||void 0===d?void 0:d.prev().length)&&!(null===f||void 0===f?void 0:f.next().length)){var p;(0,o.default)(p=null===r||void 0===r?void 0:r.children()).call(p,function(e){c.push(s.default(e))}),h===n?e=u.createElementFragment(c,u.createDocumentFragment(),"p"):(e=u.createElement(i),(0,o.default)(c).call(c,function(t){e.appendChild(t.elems[0])})),this.selectionRangeElem.set(e),u.insertBefore(r,e,r.elems[0]),r.remove()}else{for(var A=d;A.length;)c.push(A),A=(null===f||void 0===f?void 0:f.equal(A))?s.default(void 0):A.next();var g=d.prev(),v=f.next();if(h===n?e=u.createElementFragment(c,u.createDocumentFragment(),"p"):(e=u.createElement(i),(0,o.default)(c).call(c,function(t){e.append(t.elems[0])})),g.length&&v.length){for(var m=[];v.length;)m.push(v),v=v.next();var y=u.createElement(h);(0,o.default)(m).call(m,function(e){y.append(e.elems[0])}),s.default(y).insertAfter(r),this.selectionRangeElem.set(e),(_=r.next()).length?u.insertBefore(r,e,_.elems[0]):r.parent().elems[0].append(e)}else if(g.length){var _;this.selectionRangeElem.set(e),(_=r.next()).length?u.insertBefore(r,e,_.elems[0]):r.parent().elems[0].append(e)}else this.selectionRangeElem.set(e),u.insertBefore(r,e,r.elems[0])}},t}(l.ListHandle);t.default=c},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=function(){function e(){this._element=null}return e.prototype.set=function(e){if(e instanceof DocumentFragment){var t,n=[];(0,o.default)(t=e.childNodes).call(t,function(e){n.push(e)}),e=n}this._element=e},e.prototype.get=function(){return this._element},e.prototype.clear=function(){this._element=null},e}();t.default=a},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),l=n(58),u=n(47),c=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t,n,i,r,a,l,c,h=this.options,d=h.editor,f=h.listType,p=h.listTarget,A=h.$startElem,g=h.$endElem,v=d.selection.getSelectionRangeTopNodes(),m=null===A||void 0===A?void 0:A.getNodeName();if(m===(null===g||void 0===g?void 0:g.getNodeName()))if(v.length>2)if(v.shift(),v.pop(),c=u.createElementFragment(u.filterSelectionNodes(v),u.createDocumentFragment()),m===f)null===(e=g.children())||void 0===e||(0,o.default)(e).call(e,function(e){c.append(e)}),g.remove(),this.selectionRangeElem.set(c),A.elems[0].append(c);else{for(var y=document.createDocumentFragment(),_=document.createDocumentFragment(),b=u.getStartPoint(A);b.length;){var w=b.elems[0];b=b.next(),y.append(w)}for(var x=u.getEndPoint(g),C=[];x.length;)C.unshift(x.elems[0]),x=x.prev();(0,o.default)(C).call(C,function(e){_.append(e)});var S=u.createElement(p);S.append(y),S.append(c),S.append(_),c=S,this.selectionRangeElem.set(c),s.default(S).insertAfter(A),!(null===(t=A.children())||void 0===t?void 0:t.length)&&A.remove(),!(null===(n=g.children())||void 0===n?void 0:n.length)&&g.remove()}else{v.length=0;for(b=u.getStartPoint(A);b.length;)v.push(b),b=b.next();for(x=u.getEndPoint(g),C=[];x.length;)C.unshift(x),x=x.prev();v.push.apply(v,C),m===f?(c=u.createElementFragment(v,u.createDocumentFragment(),"p"),this.selectionRangeElem.set(c),u.insertBefore(A,c,g.elems[0])):(c=u.createElement(p),(0,o.default)(v).call(v,function(e){c.append(e.elems[0])}),this.selectionRangeElem.set(c),s.default(c).insertAfter(A)),!(null===(i=A.children())||void 0===i?void 0:i.length)&&g.remove(),!(null===(r=g.children())||void 0===r?void 0:r.length)&&g.remove()}else{var k=[];for(x=u.getEndPoint(g);x.length;)k.unshift(x),x=x.prev();var B=[];for(b=u.getStartPoint(A);b.length;)B.push(b),b=b.next();if(c=u.createDocumentFragment(),v.shift(),v.pop(),(0,o.default)(B).call(B,function(e){return c.append(e.elems[0])}),c=u.createElementFragment(u.filterSelectionNodes(v),c),(0,o.default)(k).call(k,function(e){return c.append(e.elems[0])}),this.selectionRangeElem.set(c),m===f)A.elems[0].append(c),!(null===(a=g.children())||void 0===a?void 0:a.length)&&g.remove();else if(null===(l=g.children())||void 0===l?void 0:l.length){var T=g.children();u.insertBefore(T,c,T.elems[0])}else g.elems[0].append(c)}},t}(l.ListHandle);t.default=c},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),l=n(58),u=n(47),c=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t,n=this.options,i=n.editor,r=n.listType,a=n.listTarget,l=n.$startElem,c=i.selection.getSelectionRangeTopNodes(),h=null===l||void 0===l?void 0:l.getNodeName();c.shift();for(var d=[],f=u.getStartPoint(l);f.length;)d.push(f),f=f.next();h===r?(t=u.createDocumentFragment(),(0,o.default)(d).call(d,function(e){return t.append(e.elems[0])}),t=u.createElementFragment(u.filterSelectionNodes(c),t),this.selectionRangeElem.set(t),l.elems[0].append(t)):(t=u.createElement(a),(0,o.default)(d).call(d,function(e){return t.append(e.elems[0])}),t=u.createElementFragment(u.filterSelectionNodes(c),t),this.selectionRangeElem.set(t),s.default(t).insertAfter(l),!(null===(e=l.children())||void 0===e?void 0:e.length)&&l.remove())},t}(l.ListHandle);t.default=c},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),l=n(58),u=n(47),c=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t,n,i=this.options,r=i.editor,a=i.listType,l=i.listTarget,c=i.$endElem,h=r.selection.getSelectionRangeTopNodes(),d=null===c||void 0===c?void 0:c.getNodeName();h.pop();for(var f=[],p=u.getEndPoint(c);p.length;)f.unshift(p),p=p.prev();if(d===a)if(n=u.createElementFragment(u.filterSelectionNodes(h),u.createDocumentFragment()),(0,o.default)(f).call(f,function(e){return n.append(e.elems[0])}),this.selectionRangeElem.set(n),null===(e=c.children())||void 0===e?void 0:e.length){var A=c.children();u.insertBefore(A,n,A.elems[0])}else c.elems[0].append(n);else{var g=u.filterSelectionNodes(h);g.push.apply(g,f),n=u.createElementFragment(g,u.createElement(l)),this.selectionRangeElem.set(n),s.default(n).insertBefore(c),!(null===(t=c.children())||void 0===t?void 0:t.length)&&c.remove()}},t}(l.ListHandle);t.default=c},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=n(58),o=n(47),a=function(e){function t(t,n){var i=e.call(this,t)||this;return i.range=n,i}return i.__extends(t,e),t.prototype.exec=function(){var e=this.options,t=e.editor,n=e.listTarget,i=t.selection.getSelectionRangeTopNodes(),r=o.createElementFragment(o.filterSelectionNodes(i),o.createElement(n));this.selectionRangeElem.set(r),this.range.insertNode(r)},t}(r.ListHandle);t.default=a},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(27));(0,r.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(24)),u=s.__importDefault(n(3)),c=s.__importDefault(n(379)),h=function(e){function t(t){var n=this,i=u.default('<div class="w-e-menu" data-title="行高">\n <i class="w-e-icon-row-height"></i>\n </div>'),r={width:100,title:"设置行高",type:"list",list:new c.default(t,t.config.lineHeights).getItemList(),clickHandler:function(e){t.selection.saveRange(),n.command(e)}};return n=e.call(this,i,t,r)||this}return s.__extends(t,e),t.prototype.command=function(e){var t=this.editor;t.selection.restoreSelection();var n=u.default(t.selection.getSelectionContainerElem());if(n.elems.length)if(n&&t.$textElem.equal(n)){for(var i=!1,r=u.default(t.selection.getSelectionStartElem()).elems[0],o=u.default(t.selection.getSelectionEndElem()).elems[0],a=this.getDom(r),s=this.getDom(o),l=n.elems[0].children,c=0;c<l.length;c++){var h=l[c];if("P"===u.default(h).getNodeName()&&(h===a&&(i=!0),i&&(u.default(h).css("line-height",e),h===s)))return void(i=!1)}t.selection.createRangeByElems(r,o)}else{var d=n.elems[0],f=this.getDom(d);"P"===u.default(f).getNodeName()&&(u.default(f).css("line-height",e),t.selection.createRangeByElems(f,f))}},t.prototype.getDom=function(e){var t=u.default(e).elems[0];if(!t.parentNode)return t;return t=function e(t,n){var i=u.default(t.parentNode);return n.$textElem.equal(i)?t:e(i.elems[0],n)}(t,this.editor)},t.prototype.styleProcessing=function(e){var t="";return(0,o.default)(e).call(e,function(e){""!==e&&-1===(0,a.default)(e).call(e,"line-height")&&(t=t+e+";")}),t},t.prototype.setRange=function(e,t){var n=this.editor,i=window.getSelection?window.getSelection():document.getSelection();null===i||void 0===i||i.removeAllRanges();var r=document.createRange(),o=e,a=t;r.setStart(o,0),r.setEnd(a,1),null===i||void 0===i||i.addRange(r),n.selection.saveRange(),null===i||void 0===i||i.removeAllRanges(),n.selection.restoreSelection()},t.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionContainerElem();if(!t||!e.$textElem.equal(t)){var n=u.default(e.selection.getSelectionStartElem());if(0!==n.length){var i=(n=this.getDom(n.elems[0])).getAttribute("style")?n.getAttribute("style"):"";i&&-1!==(0,a.default)(i).call(i,"line-height")?this.active():this.unActive()}}},t}(l.default);t.default=h},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),s=function(){function e(e,t){var n=this;this.itemList=[{$elem:a.default("<span>"+e.i18next.t("默认")+"</span>"),value:""}],(0,o.default)(t).call(t,function(e){n.itemList.push({$elem:a.default("<span>"+e+"</span>"),value:e})})}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=s},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),o=function(e){function t(t){var n=r.default('<div class="w-e-menu" data-title="撤销">\n <i class="w-e-icon-undo"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.revoke();var t=e.$textElem.children();if(null===t||void 0===t?void 0:t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},t}(i.__importDefault(n(23)).default);t.default=o},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),o=function(e){function t(t){var n=r.default('<div class="w-e-menu" data-title="恢复">\n <i class="w-e-icon-redo"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.restore();var t=e.$textElem.children();if(null===t||void 0===t?void 0:t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},t}(i.__importDefault(n(23)).default);t.default=o},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(38)),o=i.__importDefault(n(3)),a=i.__importDefault(n(383)),s=i.__importDefault(n(33)),l=i.__importDefault(n(392)),u=function(e){function t(t){var n,i=o.default('<div class="w-e-menu" data-title="表格"><i class="w-e-icon-table2"></i></div>');return n=e.call(this,i,t)||this,l.default(t),n}return i.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel()},t.prototype.createPanel=function(){var e=a.default(this.editor);new s.default(this,e).create()},t.prototype.tryChangeActive=function(){},t}(r.default);t.default=u},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(384));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=n(6),l=a.__importDefault(n(3));n(389);var u=a.__importDefault(n(391));function c(e){return e>0&&(0,o.default)(e)}t.default=function(e){var t=new u.default(e),n=s.getRandom("w-col-id"),i=s.getRandom("w-row-id"),r=s.getRandom("btn-link"),o="menus.panelMenus.table.",a=function(t){return e.i18next.t(t)},h=[{title:a(o+"插入表格"),tpl:'<div>\n <div class="w-e-table">\n <span>'+a("创建")+'</span>\n <input id="'+i+'" type="text" class="w-e-table-input" value="5"/></td>\n <span>'+a(o+"行")+'</span>\n <input id="'+n+'" type="text" class="w-e-table-input" value="5"/></td>\n <span>'+(a(o+"列")+a(o+"的")+a(o+"表格"))+'</span>\n </div>\n <div class="w-e-button-container">\n <button type="button" id="'+r+'" class="right">'+a("插入")+"</button>\n </div>\n </div>",events:[{selector:"#"+r,type:"click",fn:function(){var r=Number(l.default("#"+n).val()),o=Number(l.default("#"+i).val());return c(o)&&c(r)?(t.createAction(o,r),!0):(e.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}],d={width:330,height:0,tabs:[]};return d.tabs.push(h[0]),d}},function(e,t,n){e.exports=n(385)},function(e,t,n){var i=n(386);e.exports=i},function(e,t,n){n(387);var i=n(9);e.exports=i.Number.isInteger},function(e,t,n){n(5)({target:"Number",stat:!0},{isInteger:n(388)})},function(e,t,n){var i=n(13),r=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&r(e)===e}},function(e,t,n){var i=n(20),r=n(390);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o);e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-table {\n display: flex;\n}\n.w-e-table .w-e-table-input {\n width: 40px;\n text-align: center!important;\n margin: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=n(7),o=i.__importDefault(n(3)),a=function(){function e(e){this.editor=e}return e.prototype.createAction=function(e,t){var n=this.editor,i=o.default(n.selection.getSelectionContainerElem()),r=o.default(i.elems[0]).parentUntilEditor("UL",n),a=o.default(i.elems[0]).parentUntilEditor("OL",n);if(!r&&!a){var s=this.createTableHtml(e,t);n.cmd.do("insertHTML",s)}},e.prototype.createTableHtml=function(e,t){for(var n="",i="",o=0;o<e;o++){i="";for(var a=0;a<t;a++)i+=0===o?"<th></th>":"<td></td>";n=n+"<tr>"+i+"</tr>"}return'<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+n+"</tbody></table>"+r.EMPTY_P},e}();t.default=a},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(393)),r=n(400);t.default=function(e){i.default(e),r.bindEventKeyboardEvent(e),r.bindClickEvent(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(39)),a=i.__importDefault(n(394)),s=i.__importDefault(n(399)),l=n(7);function u(e){var t=e.selection.getSelectionStartElem(),n=e.selection.getSelectionEndElem();return(null===t||void 0===t?void 0:t.elems[0])!==(null===n||void 0===n?void 0:n.elems[0])}function c(e,t){var n=e.elems[0].nextSibling;return n&&"<br>"!==n.innerHTML||(t+=""+l.EMPTY_P),t}t.default=function(e){var t=function(e){var t;return{showTableTooltip:function(n){var i=new s.default(e),h=function(t,n){return void 0===n&&(n="menus.panelMenus.table."),e.i18next.t(n+t)},d=[{$elem:r.default("<span>"+h("删除表格")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",l.EMPTY_P),!0}},{$elem:r.default("<span>"+h("添加行")+"</span>"),onClick:function(e,t){if(u(e))return!0;var n=r.default(e.selection.getSelectionStartElem()),o=i.getRowNode(n.elems[0]);if(!o)return!0;var s=Number(i.getCurrentRowIndex(t.elems[0],o)),l=i.getTableHtml(t.elems[0]),h=i.getTableHtml(a.default.ProcessingRow(r.default(l),s).elems[0]);return h=c(t,h),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",h),!0}},{$elem:r.default("<span>"+h("删除行")+"</span>"),onClick:function(e,t){if(u(e))return!0;var n=r.default(e.selection.getSelectionStartElem()),o=i.getRowNode(n.elems[0]);if(!o)return!0;var s=Number(i.getCurrentRowIndex(t.elems[0],o)),h=i.getTableHtml(t.elems[0]),d=a.default.DeleteRow(r.default(h),s).elems[0].children[0].children.length,f="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),f=c(t,f=0===d?l.EMPTY_P:i.getTableHtml(a.default.DeleteRow(r.default(h),s).elems[0])),e.cmd.do("insertHTML",f),!0}},{$elem:r.default("<span>"+h("添加列")+"</span>"),onClick:function(e,t){if(u(e))return!0;var n=r.default(e.selection.getSelectionStartElem()),o=i.getCurrentColIndex(n.elems[0]),s=i.getTableHtml(t.elems[0]),l=i.getTableHtml(a.default.ProcessingCol(r.default(s),o).elems[0]);return l=c(t,l),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",l),!0}},{$elem:r.default("<span>"+h("删除列")+"</span>"),onClick:function(e,t){if(u(e))return!0;var n=r.default(e.selection.getSelectionStartElem()),o=i.getCurrentColIndex(n.elems[0]),s=i.getTableHtml(t.elems[0]),h=a.default.DeleteCol(r.default(s),o),d=h.elems[0].children[0].children[0].children.length,f="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),f=c(t,f=0===d?l.EMPTY_P:i.getTableHtml(h.elems[0])),e.cmd.do("insertHTML",f),!0}},{$elem:r.default("<span>"+h("设置表头")+"</span>"),onClick:function(e,t){if(u(e))return!0;var n=r.default(e.selection.getSelectionStartElem()),o=i.getRowNode(n.elems[0]);if(!o)return!0;var s=Number(i.getCurrentRowIndex(t.elems[0],o));0!==s&&(s=0);var l=i.getTableHtml(t.elems[0]),h=i.getTableHtml(a.default.setTheHeader(r.default(l),s,"th").elems[0]);return h=c(t,h),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",h),!0}},{$elem:r.default("<span>"+h("取消表头")+"</span>"),onClick:function(e,t){var n=r.default(e.selection.getSelectionStartElem()),o=i.getRowNode(n.elems[0]);if(!o)return!0;var s=Number(i.getCurrentRowIndex(t.elems[0],o));0!==s&&(s=0);var l=i.getTableHtml(t.elems[0]),u=i.getTableHtml(a.default.setTheHeader(r.default(l),s,"td").elems[0]);return u=c(t,u),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",u),!0}}];(t=new o.default(e,n,d)).create()},hideTableTooltip:function(){t&&(t.remove(),t=null)}}}(e),n=t.showTableTooltip,i=t.hideTableTooltip;e.txt.eventHooks.tableClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(45)),a=i(n(91)),s=i(n(4)),l=i(n(138));(0,r.default)(t,"__esModule",{value:!0});var u=n(2).__importDefault(n(3));function c(e,t){for(;0!==e.children.length;)e.removeChild(e.children[0]);for(var n=0;n<t.length;n++)e.appendChild(t[n])}function h(e){var t=e.elems[0].children[0];return"COLGROUP"===t.nodeName&&(t=e.elems[0].children[e.elems[0].children.length-1]),t}t.default={ProcessingRow:function(e,t){for(var n=h(e),i=(0,o.default)(Array.prototype).apply(n.children),r=i[0].children.length,s=document.createElement("tr"),l=0;l<r;l++){var d=document.createElement("td");s.appendChild(d)}return(0,a.default)(i).call(i,t+1,0,s),c(n,i),u.default(n.parentNode)},ProcessingCol:function(e,t){for(var n=h(e),i=(0,o.default)(Array.prototype).apply(n.children),r=function(e){var n,r=[];for((0,s.default)(n=(0,l.default)(i[e].children)).call(n,function(e){r.push(e)});0!==i[e].children.length;)i[e].removeChild(i[e].children[0]);var o="TH"!==u.default(r[0]).getNodeName()?document.createElement("td"):document.createElement("th");(0,a.default)(r).call(r,t+1,0,o);for(var c=0;c<r.length;c++)i[e].appendChild(r[c])},d=0;d<i.length;d++)r(d);return c(n,i),u.default(n.parentNode)},DeleteRow:function(e,t){var n=h(e),i=(0,o.default)(Array.prototype).apply(n.children);return(0,a.default)(i).call(i,t,1),c(n,i),u.default(n.parentNode)},DeleteCol:function(e,t){for(var n=h(e),i=(0,o.default)(Array.prototype).apply(n.children),r=function(e){var n,r=[];for((0,s.default)(n=(0,l.default)(i[e].children)).call(n,function(e){r.push(e)});0!==i[e].children.length;)i[e].removeChild(i[e].children[0]);(0,a.default)(r).call(r,t,1);for(var o=0;o<r.length;o++)i[e].appendChild(r[o])},d=0;d<i.length;d++)r(d);return c(n,i),u.default(n.parentNode)},setTheHeader:function(e,t,n){for(var i=h(e),r=(0,o.default)(Array.prototype).apply(i.children),d=r[t].children,f=document.createElement("tr"),p=function(e){var t,i=document.createElement(n),r=d[e];(0,s.default)(t=(0,l.default)(r.childNodes)).call(t,function(e){i.appendChild(e)}),f.appendChild(i)},A=0;A<d.length;A++)p(A);return(0,a.default)(r).call(r,t,1,f),c(i,r),u.default(i.parentNode)}}},function(e,t,n){var i=n(396);e.exports=i},function(e,t,n){n(50),n(397);var i=n(9);e.exports=i.Array.from},function(e,t,n){var i=n(5),r=n(398);i({target:"Array",stat:!0,forced:!n(115)(function(e){Array.from(e)})},{from:r})},function(e,t,n){"use strict";var i=n(40),r=n(31),o=n(114),a=n(112),s=n(35),l=n(69),u=n(113);e.exports=function(e){var t,n,c,h,d,f,p=r(e),A="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,m=void 0!==v,y=u(p),_=0;if(m&&(v=i(v,g>2?arguments[2]:void 0,2)),void 0==y||A==Array&&a(y))for(n=new A(t=s(p.length));t>_;_++)f=m?v(p[_],_):p[_],l(n,_,f);else for(d=(h=y.call(p)).next,n=new A;!(c=d.call(h)).done;_++)f=m?o(h,v,[c.value,_],!0):c.value,l(n,_,f);return n.length=_,n}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(138));(0,r.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3)),l=function(){function e(e){this.editor=e}return e.prototype.getRowNode=function(e){var t,n=s.default(e).elems[0];return n.parentNode?n=null===(t=s.default(n).parentUntil("TR",n))||void 0===t?void 0:t.elems[0]:n},e.prototype.getCurrentRowIndex=function(e,t){var n,i=0,r=e.children[0];return"COLGROUP"===r.nodeName&&(r=e.children[e.children.length-1]),(0,o.default)(n=(0,a.default)(r.children)).call(n,function(e,n){e===t&&(i=n)}),i},e.prototype.getCurrentColIndex=function(e){var t,n,i=0,r="TD"===s.default(e).getNodeName()||"TH"===s.default(e).getNodeName()?e:null===(n=s.default(e).parentUntil("TD",e))||void 0===n?void 0:n.elems[0],l=s.default(r).parent();return(0,o.default)(t=(0,a.default)(l.elems[0].children)).call(t,function(e,t){e===r&&(i=t)}),i},e.prototype.getTableHtml=function(e){return'<table border="0" width="100%" cellpadding="0" cellspacing="0">'+s.default(e).html()+"</table>"},e}();t.default=l},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.bindEventKeyboardEvent=t.bindClickEvent=void 0;var i=n(2).__importDefault(n(3));t.bindClickEvent=function(e){e.txt.eventHooks.tableClickEvents.push(function(t,n){if(n.detail>=3){var r=window.getSelection();if(r){var o=r.focusNode,a=r.anchorNode,s=i.default(null===a||void 0===a?void 0:a.parentElement);if(!t.isContain(i.default(o))){var l="TD"===s.elems[0].tagName?s:s.parentUntilEditor("td",e);if(l){var u=e.selection.getRange();null===u||void 0===u||u.setEnd(l.elems[0],l.elems[0].childNodes.length),e.selection.restoreSelection()}}}}})},t.bindEventKeyboardEvent=function(e){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push(function(t){e.selection.saveRange();var i=n.getSelectionContainerElem();if(i){var r=i.getNodeTop(e),o=r.length&&r.prev().length?r.prev():null;if(o&&"TABLE"===o.getNodeName()&&n.isSelectionEmpty()&&0===n.getCursorPos()&&8===t.keyCode){var a=r.next();!!a.length&&function(e){if(!e.length)return!1;var t=e.elems[0];return"P"===t.nodeName&&"<br>"===t.innerHTML}(r)&&(r.remove(),e.selection.setRangeToElem(a.elems[0])),t.preventDefault()}}})}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(26));(0,r.default)(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0;var a=n(2),s=a.__importDefault(n(38)),l=a.__importDefault(n(3)),u=n(6),c=a.__importDefault(n(402)),h=a.__importDefault(n(139)),d=a.__importDefault(n(33)),f=a.__importDefault(n(403));t.formatCodeHtml=function(e,t){return t?(t=function(e){var t=e.match(/<pre[\s|\S]+?\/pre>/g);return null===t?e:((0,o.default)(t).call(t,function(t){e=e.replace(t,t.replace(/<\/code><code>/g,"\n").replace(/<br>/g,""))}),e)}(t=function e(t){var n,i=t.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!i||!i.length)return t;for(var r=(0,o.default)(n=u.deepClone(i)).call(n,function(e){return(e=e.replace(/<span\sclass="hljs[^>]+>/,"")).replace(/<\/span>/,"")}),a=0;a<i.length;a++)t=t.replace(i[a],r[a]);return e(t)}(t)),t=u.replaceSpecialSymbol(t)):t};var p=function(e){function t(t){var n,i=l.default('<div class="w-e-menu" data-title="代码"><i class="w-e-icon-terminal"></i></div>');return n=e.call(this,i,t)||this,f.default(t),n}return a.__extends(t,e),t.prototype.insertLineCode=function(e){var t=this.editor,n=l.default("<code>"+e+"</code>");t.cmd.do("insertElem",n),t.selection.createRangeByElem(n,!1),t.selection.restoreSelection()},t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionText();this.isActive||(e.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(t))},t.prototype.createPanel=function(e,t){var n=c.default(this.editor,e,t);new d.default(this,n).create()},t.prototype.tryChangeActive=function(){var e=this.editor;h.default(e)?this.active():this.unActive()},t}(s.default);t.default=p},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(26));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=n(6),l=a.__importDefault(n(3)),u=a.__importDefault(n(139)),c=n(7);t.default=function(e,t,n){var i,r=s.getRandom("input-iframe"),a=s.getRandom("select"),h=s.getRandom("btn-ok");function d(t,n){var i;u.default(e)&&function(){if(u.default(e)){var t=e.selection.getSelectionStartElem(),n=null===t||void 0===t?void 0:t.getNodeTop(e);n&&(e.selection.createRangeByElem(n),e.selection.restoreSelection())}}(),(null===(i=e.selection.getSelectionStartElem())||void 0===i?void 0:i.elems[0].innerHTML)&&e.cmd.do("insertHTML",c.EMPTY_P);var r=n.replace(/</g,"&lt;").replace(/>/g,"&gt;");e.highlight&&(r=e.highlight.highlightAuto(r).value),e.cmd.do("insertHTML",'<pre><code class="'+t+'">'+r+"</code></pre>");var o=e.selection.getSelectionStartElem(),a=null===o||void 0===o?void 0:o.getNodeTop(e);0===(null===a||void 0===a?void 0:a.getNextSibling().elems.length)&&l.default(c.EMPTY_P).insertAfter(a)}var f=function(t){return e.i18next.t(t)};return{width:500,height:0,tabs:[{title:f("menus.panelMenus.code.插入代码"),tpl:'<div>\n <select name="" id="'+a+'">\n '+(0,o.default)(i=e.config.languageType).call(i,function(e){return"<option "+(n==e?"selected":"")+' value ="'+e+'">'+e+"</option>"})+'\n </select>\n <textarea id="'+r+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+t.replace(/&quot;/g,'"')+'</textarea>\n <div class="w-e-button-container">\n <button type="button" id="'+h+'" class="right">'+(u.default(e)?f("修改"):f("插入"))+"</button>\n </div>\n </div>",events:[{selector:"#"+h,type:"click",fn:function(){var t=document.getElementById(r),n=l.default("#"+a).val(),i=t.value;if(i)return!u.default(e)&&(d(n,i),!0)}}]}]}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(404)),o=i.__importDefault(n(405));t.default=function(e){r.default(e),o.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(39));function a(e){var t;return{showCodeTooltip:function(n){var i,a,s=[{$elem:r.default("<span>"+(i="删除代码",void 0===a&&(a="menus.panelMenus.code."),e.i18next.t(a+i))+"</span>"),onClick:function(e,t){return t.remove(),!0}}];(t=new o.default(e,n,s)).create()},hideCodeTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=a,t.default=function(e){var t=a(e),n=t.showCodeTooltip,i=t.hideCodeTooltip;e.txt.eventHooks.codeClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=n(7),o=i.__importDefault(n(3));t.default=function(e){var t=e.$textElem,n=e.selection,i=e.txt.eventHooks.keydownEvents;i.push(function(e){var i;if(40===e.keyCode){var a=n.getSelectionContainerElem(),s=null===(i=t.children())||void 0===i?void 0:i.last();if("XMP"===(null===a||void 0===a?void 0:a.elems[0].tagName)&&"PRE"===(null===s||void 0===s?void 0:s.elems[0].tagName)){var l=o.default(r.EMPTY_P);t.append(l)}}}),i.push(function(i){e.selection.saveRange();var a=n.getSelectionContainerElem();if(a){var s=a.getNodeTop(e),l=null===s||void 0===s?void 0:s.prev(),u=null===s||void 0===s?void 0:s.getNextSibling();if(l.length&&"PRE"===(null===l||void 0===l?void 0:l.getNodeName())&&0===u.length&&0===n.getCursorPos()&&8===i.keyCode){var c=o.default(r.EMPTY_P);t.append(c)}}})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(23)),o=i.__importDefault(n(3)),a=i.__importDefault(n(407)),s=n(6),l=n(7),u=function(e){function t(t){var n,i=o.default('<div class="w-e-menu" data-title="分割线"><i class="w-e-icon-split-line"></i></div>');return n=e.call(this,i,t)||this,a.default(t),n}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getRange(),n=e.selection.getSelectionContainerElem();if(null===n||void 0===n?void 0:n.length){var i=o.default(n.elems[0]),r=i.parentUntil("TABLE",n.elems[0]),a=i.children();"CODE"!==i.getNodeName()&&(r&&"TABLE"===o.default(r.elems[0]).getNodeName()||(!a||0===a.length||"IMG"!==o.default(a.elems[0]).getNodeName()||(null===t||void 0===t?void 0:t.collapsed))&&this.createSplitLine())}},t.prototype.createSplitLine=function(){var e="<hr/>"+l.EMPTY_P;s.UA.isFirefox&&(e="<hr/><p></p>"),this.editor.cmd.do("insertHTML",e)},t.prototype.tryChangeActive=function(){},t}(r.default);t.default=u},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(408));t.default=function(e){i.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(39));t.default=function(e){var t=function(e){var t;return{showSplitLineTooltip:function(n){var i=[{$elem:r.default("<span>"+e.i18next.t("menus.panelMenus.删除")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}}];(t=new o.default(e,n,i)).create()},hideSplitLineTooltip:function(){t&&(t.remove(),t=null)}}}(e),n=t.showSplitLineTooltip,i=t.hideSplitLineTooltip;e.txt.eventHooks.splitLineEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),l=a.__importDefault(n(23)),u=n(98),c=a.__importDefault(n(415)),h=a.__importDefault(n(140)),d=function(e){function t(t){var n,i=s.default('<div class="w-e-menu" data-title="待办事项">\n <i class="w-e-icon-checkbox-checked"></i>\n </div>');return n=e.call(this,i,t)||this,c.default(t),n}return a.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;u.isAllTodo(e)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},t.prototype.tryChangeActive=function(){u.isAllTodo(this.editor)?this.active():this.unActive()},t.prototype.setTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,o.default)(t).call(t,function(t){var n;if("P"===(null===t||void 0===t?void 0:t.getNodeName())){var i=h.default(t).getTodo(),r=null===(n=i.children())||void 0===n?void 0:n.getNode();i.insertAfter(t),e.selection.moveCursor(r),t.remove()}}),this.tryChangeActive()},t.prototype.cancelTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,o.default)(t).call(t,function(t){var n,i,r,o=null===(i=null===(n=t.childNodes())||void 0===n?void 0:n.childNodes())||void 0===i?void 0:i.clone(!0),a=s.default("<p></p>");a.append(o),a.insertAfter(t),null===(r=a.childNodes())||void 0===r||r.get(0).remove(),e.selection.moveCursor(a.getNode()),t.remove()})},t}(l.default);t.default=d},function(e,t,n){e.exports=n(411)},function(e,t,n){var i=n(412);e.exports=i},function(e,t,n){var i=n(413),r=Array.prototype;e.exports=function(e){var t=e.every;return e===r||e instanceof Array&&t===r.every?i:t}},function(e,t,n){n(414);var i=n(15);e.exports=i("Array").every},function(e,t,n){"use strict";var i=n(5),r=n(32).every,o=n(67),a=n(22),s=o("every"),l=a("every");i({target:"Array",proto:!0,forced:!s||!l},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),l=n(98),u=a.__importDefault(n(140)),c=n(98),h=n(7);t.default=function(e){e.txt.eventHooks.enterDownEvents.push(function(t){var n,i;if(l.isAllTodo(e)){t.preventDefault();var r=e.selection,a=r.getSelectionRangeTopNodes()[0],d=null===(n=a.childNodes())||void 0===n?void 0:n.get(0),f=null===(i=window.getSelection())||void 0===i?void 0:i.anchorNode,p=r.getRange();if(!(null===p||void 0===p?void 0:p.collapsed)){var A=null===p||void 0===p?void 0:p.commonAncestorContainer.childNodes,g=null===p||void 0===p?void 0:p.startContainer,v=null===p||void 0===p?void 0:p.endContainer,m=null===p||void 0===p?void 0:p.startOffset,y=null===p||void 0===p?void 0:p.endOffset,_=0,b=0,w=[];null===A||void 0===A||(0,o.default)(A).call(A,function(e,t){e.contains(g)&&(_=t),e.contains(v)&&(b=t)}),b-_>1&&(null===A||void 0===A||(0,o.default)(A).call(A,function(e,t){t<=_||t>=b||w.push(e)}),(0,o.default)(w).call(w,function(e){e.remove()})),c.dealTextNode(g,m),c.dealTextNode(v,y,!1),e.selection.moveCursor(v,0)}if(""===a.text()){var x=s.default(h.EMPTY_P);return x.insertAfter(a),r.moveCursor(x.getNode()),void a.remove()}var C=r.getCursorPos(),S=l.getCursorNextNode(null===d||void 0===d?void 0:d.getNode(),f,C),k=u.default(s.default(S)),B=k.getInputContainer(),T=B.parent().getNode(),E=k.getTodo(),I=B.getNode().nextSibling;""===(null===d||void 0===d?void 0:d.text())&&(null===d||void 0===d||d.append(s.default("<br>"))),E.insertAfter(a),I&&""!==(null===I||void 0===I?void 0:I.textContent)?r.moveCursor(T):("BR"!==(null===I||void 0===I?void 0:I.nodeName)&&s.default("<br>").insertAfter(B),r.moveCursor(T,1))}}),e.txt.eventHooks.deleteUpEvents.push(function(){var t=e.selection.getSelectionRangeTopNodes()[0];t&&c.isTodo(t)&&""===t.text()&&(s.default(h.EMPTY_P).insertAfter(t),t.remove())}),e.txt.eventHooks.deleteDownEvents.push(function(t){var n,i;if(l.isAllTodo(e)){var r,a=e.selection,u=a.getSelectionRangeTopNodes()[0],c=null===(n=u.childNodes())||void 0===n?void 0:n.getNode(),d=s.default("<p></p>"),f=d.getNode(),p=null===(i=window.getSelection())||void 0===i?void 0:i.anchorNode,A=a.getCursorPos(),g=p.previousSibling;if(""===u.text()){t.preventDefault();var v=s.default(h.EMPTY_P);return v.insertAfter(u),u.remove(),void a.moveCursor(v.getNode(),0)}"SPAN"===(null===g||void 0===g?void 0:g.nodeName)&&"INPUT"===g.childNodes[0].nodeName&&0===A&&(t.preventDefault(),null===c||void 0===c||(0,o.default)(r=c.childNodes).call(r,function(e,t){0!==t&&f.appendChild(e.cloneNode(!0))}),d.insertAfter(u),u.remove())}}),e.txt.eventHooks.clickEvents.push(function(e){e&&e.target instanceof HTMLInputElement&&"checkbox"===e.target.type&&(e.target.checked?e.target.setAttribute("checked","true"):e.target.removeAttribute("checked"))})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.selectorValidator=void 0;var i=n(2),r=i.__importDefault(n(3)),o=n(6),a=n(7),s=i.__importDefault(n(130)),l={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};t.default=function(e){var t,n,i,u=e.toolbarSelector,c=r.default(u),h=e.textSelector,d=e.config.height,f=e.i18next,p=r.default("<div></div>"),A=r.default("<div></div>"),g=null;null==h?(n=c.children(),c.append(p).append(A),p.css("background-color",l.toolbarBgColor).css("border",l.border).css("border-bottom",l.toolbarBottomBorder),A.css("border",l.border).css("border-top","none").css("height",d+"px")):(c.append(p),g=r.default(h).children(),r.default(h).append(A),n=A.children()),(t=r.default("<div></div>")).attr("contenteditable","true").css("width","100%").css("height","100%");var v=e.config.placeholder;(i=v!==s.default.placeholder?r.default("<div>"+v+"</div>"):r.default("<div>"+f.t(v)+"</div>")).addClass("placeholder"),n&&n.length?(t.append(n),i.hide()):t.append(r.default(a.EMPTY_P)),g&&g.length&&(t.append(g),i.hide()),A.append(t),A.append(i),p.addClass("w-e-toolbar").css("z-index",e.zIndex.get("toolbar")),A.addClass("w-e-text-container"),A.css("z-index",e.zIndex.get()),t.addClass("w-e-text");var m=o.getRandom("toolbar-elem");p.attr("id",m);var y=o.getRandom("text-elem");t.attr("id",y);var _=A.getBoundingClientRect().height;_!==t.getBoundingClientRect().height&&t.css("min-height",_+"px"),e.$toolbarElem=p,e.$textContainerElem=A,e.$textElem=t,e.toolbarElemId=m,e.textElemId=y},t.selectorValidator=function(e){var t="data-we-id",n=/^wangEditor-\d+$/,i=e.textSelector,o=e.toolbarSelector,a={bar:r.default("<div></div>"),text:r.default("<div></div>")};if(null==o)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");if(a.bar=r.default(o),!a.bar.elems.length)throw new Error("无效的节点选择器:"+o);if(n.test(a.bar.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器");if(i){if(a.text=r.default(i),!a.text.elems.length)throw new Error("无效的节点选择器:"+i);if(n.test(a.text.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器")}a.bar.attr(t,e.id),a.text.attr(t,e.id),e.beforeDestroy(function(){a.bar.removeAttr(t),a.text.removeAttr(t)})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(3)),r=n(7);t.default=function e(t,n){var o=t.$textElem,a=o.children();if(!a||!a.length)return o.append(i.default(r.EMPTY_P)),void e(t);var s=a.last();if(n){var l=s.html().toLowerCase(),u=s.getNodeName();if("<br>"!==l&&"<br/>"!==l||"P"!==u)return o.append(i.default(r.EMPTY_P)),void e(t)}t.selection.createRangeByElem(s,!1,!0),t.config.focus?t.selection.restoreSelection():t.selection.clearWindowSelectionRange()}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function s(e){(0,e.config.onfocus)(e.txt.html()||"")}t.default=function(e){!function(e){e.txt.eventHooks.changeEvents.push(function(){var t=e.config.onchange;if(t){var n=e.txt.html()||"";e.isFocus=!0,t(n)}e.txt.togglePlaceholder()})}(e),function(e){function t(t){var n=t.target,i=a.default(n),r=e.$textElem,l=e.$toolbarElem,u=r.isContain(i),c=l.isContain(i),h=l.elems[0]==t.target;if(u)e.isFocus||s(e),e.isFocus=!0;else{if(c&&!h||!e.isFocus)return;!function(e){var t,n=e.config.onblur,i=e.txt.html()||"";(0,o.default)(t=e.txt.eventHooks.onBlurEvents).call(t,function(e){return e()}),n(i)}(e),e.isFocus=!1}}e.isFocus=!1,document.activeElement===e.$textElem.elems[0]&&e.config.focus&&(s(e),e.isFocus=!0),a.default(document).on("click",t),e.beforeDestroy(function(){a.default(document).off("click",t)})}(e),function(e){e.$textElem.on("compositionstart",function(){e.isComposing=!0,e.txt.togglePlaceholder()}).on("compositionend",function(){e.isComposing=!1,e.txt.togglePlaceholder()})}(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.config,n=t.lang,i=t.languages;if(null==e.i18next)e.i18next={t:function(e){var t=e.split(".");return t[t.length-1]}};else try{e.i18next.init({ns:"wangEditor",lng:n,defaultNS:"wangEditor",resources:i})}catch(e){throw new Error("i18next:"+e)}}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(29));(0,r.default)(t,"__esModule",{value:!0}),t.setUnFullScreen=t.setFullScreen=void 0;var a=n(2).__importDefault(n(3));n(421);t.setFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,i=e.$toolbarElem,r=(0,o.default)(i).call(i,"i.w-e-icon-fullscreen"),s=e.config;r.removeClass("w-e-icon-fullscreen"),r.addClass("w-e-icon-fullscreen_exit"),t.addClass("w-e-full-screen-editor"),t.css("z-index",s.zIndexFullScreen);var l=i.getBoundingClientRect();n.css("height","calc(100% - "+l.height+"px)")},t.setUnFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,i=e.$toolbarElem,r=(0,o.default)(i).call(i,"i.w-e-icon-fullscreen_exit"),s=e.config;r.removeClass("w-e-icon-fullscreen_exit"),r.addClass("w-e-icon-fullscreen"),t.removeClass("w-e-full-screen-editor"),t.css("z-index","auto"),n.css("height",s.height+"px")};t.default=function(e){if(!e.textSelector&&e.config.showFullScreen){var n=e.$toolbarElem,i=a.default('<div class="w-e-menu" data-title="全屏">\n <i class="w-e-icon-fullscreen"></i>\n </div>');i.on("click",function(n){var r;(0,o.default)(r=a.default(n.currentTarget)).call(r,"i").hasClass("w-e-icon-fullscreen")?(i.attr("data-title","取消全屏"),t.setFullScreen(e)):(i.attr("data-title","全屏"),t.setUnFullScreen(e))}),n.append(i)}}},function(e,t,n){var i=n(20),r=n(422);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o);e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-full-screen-editor {\n position: fixed;\n width: 100%!important;\n height: 100%!important;\n left: 0;\n top: 0;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(29));(0,r.default)(t,"__esModule",{value:!0});t.default=function(e,t){var n,i=e.isEnable?e.$textElem:(0,o.default)(n=e.$textContainerElem).call(n,".w-e-content-mantle"),r=(0,o.default)(i).call(i,"[id='"+t+"']").getOffsetData().top;i.scrollTop(r)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(129)),r={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},o=function(){function e(){this.tier=r,this.baseZIndex=i.default.zIndex}return e.prototype.get=function(e){return e&&this.tier[e]?this.baseZIndex+this.tier[e]:this.baseZIndex},e.prototype.init=function(e){this.baseZIndex==i.default.zIndex&&(this.baseZIndex=e.config.zIndex)},e}();t.default=o},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(70)),a=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(426)),u=n(6),c=n(7);var h=function(e){function t(t){var n=e.call(this,function(e,i){var r;if(e=function(e,t){return(0,o.default)(e).call(e,function(e){var n=e.type,i=e.target,r=e.attributeName;return"attributes"!=n||"attributes"==n&&("contenteditable"==r||i!=t)})}(e,i.target),(r=n.data).push.apply(r,e),t.isCompatibleMode)n.asyncSave();else if(!t.isComposing)return n.asyncSave()})||this;return n.editor=t,n.data=[],n.asyncSave=c.EMPTY_FN,n}return s.__extends(t,e),t.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},t.prototype.emit=function(){var e;(0,a.default)(e=this.editor.txt.eventHooks.changeEvents).call(e,function(e){return e()})},t.prototype.observe=function(){var t=this;e.prototype.observe.call(this,this.editor.$textElem.elems[0]);var n=this.editor.config.onchangeTimeout;this.asyncSave=u.debounce(function(){t.save()},n),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){t.asyncSave()})},t}(l.default);t.default=h},function(e,t,n){"use strict";var i=n(0)(n(1));(0,i.default)(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(t){e(t,n)},this.observer=new MutationObserver(this.callback),t&&(this.options=t)}return(0,i.default)(e.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),e.prototype.observe=function(e){this.node instanceof Node||(this.node=e,this.connect())},e.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定,请您先绑定有效的 Node 节点")},e.prototype.disconnect=function(){var e=this.observer.takeRecords();e.length&&this.callback(e),this.observer.disconnect()},e}();t.default=r},function(e,t,n){"use strict";var i=n(0)(n(1));(0,i.default)(t,"__esModule",{value:!0});var r=n(2),o=r.__importDefault(n(428)),a=r.__importDefault(n(435)),s=r.__importDefault(n(436)),l=function(){function e(e){this.editor=e,this.content=new o.default(e),this.scroll=new a.default(e),this.range=new s.default(e)}return(0,i.default)(e.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),e.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},e.prototype.save=function(e){e.length&&(this.content.save(e),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},e.prototype.revoke=function(){this.editor.change.disconnect();var e=this.content.revoke();e&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e.prototype.restore=function(){this.editor.change.disconnect();var e=this.content.restore();e&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e}();t.default=l},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(429)),o=i.__importDefault(n(433)),a=function(){function e(e){this.editor=e}return e.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new o.default(this.editor):this.cache=new r.default(this.editor),this.cache.observe()},e.prototype.save=function(e){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(e)},e.prototype.revoke=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.revoke()},e.prototype.restore=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.restore()},e}();t.default=a},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(99)),o=i.__importDefault(n(431)),a=n(432),s=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n}return i.__extends(t,e),t.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.compile=function(e){return this.save(o.default(e)),this},t.prototype.revoke=function(){return e.prototype.revoke.call(this,function(e){a.revoke(e)})},t.prototype.restore=function(){return e.prototype.restore.call(this,function(e){a.restore(e)})},t}(r.default);t.default=s},function(e,t,n){"use strict";var i=n(0)(n(1));(0,i.default)(t,"__esModule",{value:!0}),t.CeilStack=void 0;var r=function(){function e(e){void 0===e&&(e=0),this.data=[],this.max=0,this.reset=!1,(e=Math.abs(e))&&(this.max=e)}return e.prototype.resetMax=function(e){e=Math.abs(e),this.reset||isNaN(e)||(this.max=e,this.reset=!0)},(0,i.default)(e.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),e.prototype.instack=function(e){return this.data.unshift(e),this.max&&this.size>this.max&&(this.data.length=this.max),this},e.prototype.outstack=function(){return this.data.shift()},e.prototype.clear=function(){return this.data.length=0,this},e}();t.CeilStack=r},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(27));(0,r.default)(t,"__esModule",{value:!0}),t.compliePosition=t.complieNodes=t.compileValue=t.compileType=void 0;var s=n(6);function l(e){switch(e){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function u(e){switch(e.type){case"attributes":return e.target.getAttribute(e.attributeName)||"";case"characterData":return e.target.textContent;default:return""}}function c(e){var t={};return e.addedNodes.length&&(t.add=s.toArray(e.addedNodes)),e.removedNodes.length&&(t.remove=s.toArray(e.removedNodes)),t}function h(e){return e.previousSibling?{type:"before",target:e.previousSibling}:e.nextSibling?{type:"after",target:e.nextSibling}:{type:"parent",target:e.target}}t.compileType=l,t.compileValue=u,t.complieNodes=c,t.compliePosition=h;var d=["UL","OL","H1","H2","H3","H4","H5","H6"];function f(e,t){for(var n=0,i=t.length-1;i>0&&e.contains(t[i]);i--)n++;return n}t.default=function(e){var t=[],n=!1,i=[];return(0,o.default)(e).call(e,function(e,r){var o={type:l(e.type),target:e.target,attr:e.attributeName||"",value:u(e)||"",oldValue:e.oldValue||"",nodes:c(e),position:h(e)};if(t.push(o),s.UA.isFirefox){if(n&&e.addedNodes.length&&1==e.addedNodes[0].nodeType){var p=e.addedNodes[0],A={type:"node",target:p,attr:"",value:"",oldValue:"",nodes:{add:[n]},position:{type:"parent",target:p}};-1!=(0,a.default)(d).call(d,p.nodeName)?(A.nodes.add=s.toArray(p.childNodes),t.push(A)):3==n.nodeType?(f(p,i)&&(A.nodes.add=s.toArray(p.childNodes)),t.push(A)):-1==(0,a.default)(d).call(d,e.target.nodeName)&&f(p,i)&&(A.nodes.add=s.toArray(p.childNodes),t.push(A))}"node"==o.type&&1==e.removedNodes.length?(n=e.removedNodes[0],i.push(n)):(n=!1,i.length=0)}}),t}},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(94));function s(e,t){var n=e.position.target;switch(e.position.type){case"before":n.nextSibling?(n=n.nextSibling,(0,o.default)(t).call(t,function(t){e.target.insertBefore(t,n)})):(0,o.default)(t).call(t,function(t){e.target.appendChild(t)});break;case"after":(0,o.default)(t).call(t,function(t){e.target.insertBefore(t,n)});break;default:(0,o.default)(t).call(t,function(e){n.appendChild(e)})}}(0,r.default)(t,"__esModule",{value:!0}),t.restore=t.revoke=void 0;var l={node:function(e){for(var t=0,n=(0,a.default)(e.nodes);t<n.length;t++){var i=n[t],r=i[0],l=i[1];switch(r){case"add":(0,o.default)(l).call(l,function(t){e.target.removeChild(t)});break;default:s(e,l)}}},text:function(e){e.target.textContent=e.oldValue},attr:function(e){var t=e.target;null==e.oldValue?t.removeAttribute(e.attr):t.setAttribute(e.attr,e.oldValue)}};t.revoke=function(e){for(var t=e.length-1;t>-1;t--){var n=e[t];l[n.type](n)}};var u={node:function(e){for(var t=0,n=(0,a.default)(e.nodes);t<n.length;t++){var i=n[t],r=i[0],l=i[1];switch(r){case"add":s(e,l);break;default:(0,o.default)(l).call(l,function(e){e.parentNode.removeChild(e)})}}},text:function(e){e.target.textContent=e.value},attr:function(e){e.target.setAttribute(e.attr,e.value)}};t.restore=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];u[i.type](i)}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(434),r=function(){function e(e){this.editor=e,this.data=new i.TailChain}return e.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},e.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},e.prototype.revoke=function(){var e=this.data.prev();return!!e&&(this.editor.$textElem.html(e),!0)},e.prototype.restore=function(){var e=this.data.next();return!!e&&(this.editor.$textElem.html(e),!0)},e}();t.default=r},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(91));(0,r.default)(t,"__esModule",{value:!0}),t.TailChain=void 0;var a=function(){function e(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return e.prototype.resetMax=function(e){(e=Math.abs(e))&&(this.max=e)},(0,r.default)(e.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),e.prototype.insertLast=function(e){var t;this.isRe&&((0,o.default)(t=this.data).call(t,this.point+1),this.isRe=!1);for(this.data.push(e);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},e.prototype.current=function(){return this.data[this.point]},e.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},e.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},e}();t.TailChain=a},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.last=0,n.target=t.$textElem.elems[0],n}return i.__extends(t,e),t.prototype.observe=function(){var e=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){e.last=e.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.save=function(){return e.prototype.save.call(this,[this.last,this.target.scrollTop]),this},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,function(e){t.target.scrollTop=e[0]})},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,function(e){t.target.scrollTop=e[1]})},t}(i.__importDefault(n(99)).default);t.default=r},function(e,t,n){"use strict";var i=n(0)(n(1));(0,i.default)(t,"__esModule",{value:!0});var r=n(2),o=r.__importDefault(n(99)),a=r.__importDefault(n(3)),s=n(6);function l(e){return{start:[e.startContainer,e.startOffset],end:[e.endContainer,e.endOffset],root:e.commonAncestorContainer,collapsed:e.collapsed}}var u=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.lastRange=l(document.createRange()),n.root=t.$textElem.elems[0],n.updateLastRange=s.debounce(function(){n.lastRange=l(n.rangeHandle)},t.config.onchangeTimeout),n}return r.__extends(t,e),(0,i.default)(t.prototype,"rangeHandle",{get:function(){var e=document.getSelection();return e&&e.rangeCount?e.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),t.prototype.observe=function(){var e=this;function t(){var t=e.rangeHandle;(e.root===t.commonAncestorContainer||e.root.contains(t.commonAncestorContainer))&&(e.editor.isComposing||e.updateLastRange())}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),a.default(document).on("selectionchange",t),this.editor.beforeDestroy(function(){a.default(document).off("selectionchange",t)}),e.editor.$textElem.on("keydown",function(t){"Backspace"!=t.key&&"Delete"!=t.key||e.updateLastRange()})},t.prototype.save=function(){var t=l(this.rangeHandle);return e.prototype.save.call(this,[this.lastRange,t]),this.lastRange=t,this},t.prototype.set=function(e){try{if(e){var t=this.rangeHandle;return t.setStart.apply(t,e.start),t.setEnd.apply(t,e.end),this.editor.menus.changeActive(),!0}}catch(e){return!1}return!1},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,function(e){t.set(e[0])})},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,function(e){t.set(e[1])})},t}(o.default);t.default=u},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(29));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));n(438),t.default=function(e){var t,n,i=!1;return e.txt.eventHooks.changeEvents.push(function(){i&&(0,o.default)(t).call(t,".w-e-content-preview").html(e.$textElem.html())}),{disable:function(){if(!i){e.$textElem.hide();var r=e.zIndex.get("textContainer"),o=e.txt.html();t=a.default('<div class="w-e-content-mantle" style="z-index:'+r+'">\n <div class="w-e-content-preview w-e-text">'+o+"</div>\n </div>"),e.$textContainerElem.append(t);var s=e.zIndex.get("menu");n=a.default('<div class="w-e-menue-mantle" style="z-index:'+s+'"></div>'),e.$toolbarElem.append(n),i=!0,e.isEnable=!1}},enable:function(){i&&(t.remove(),n.remove(),e.$textElem.show(),i=!1,e.isEnable=!0)}}}},function(e,t,n){var i=n(20),r=n(439);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o);e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-content-mantle {\n width: 100%;\n height: 100%;\n overflow-y: auto;\n}\n.w-e-content-mantle .w-e-content-preview {\n width: 100%;\n min-height: 100%;\n padding: 0 10px;\n line-height: 1.5;\n}\n.w-e-content-mantle .w-e-content-preview img {\n cursor: default;\n}\n.w-e-content-mantle .w-e-content-preview img:hover {\n box-shadow: none;\n}\n.w-e-menue-mantle {\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=function(){function e(e){var t=this;this.editor=e;var n=function(){document.activeElement===e.$textElem.elems[0]&&t.emit()};window.document.addEventListener("selectionchange",n),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",n)})}return e.prototype.emit=function(){var e,t=this.editor.config.onSelectionChange;if(t){var n=this.editor.selection;n.saveRange(),n.isSelectionEmpty()||t({text:n.getSelectionText(),html:null===(e=n.getSelectionContainerElem())||void 0===e?void 0:e.elems[0].innerHTML,selection:n})}},e}();t.default=i},function(e,t,n){"use strict";var i=n(0),r=i(n(1)),o=i(n(128)),a=i(n(94)),s=i(n(4));(0,r.default)(t,"__esModule",{value:!0}),t.registerPlugin=void 0;var l=n(2).__importDefault(n(87)),u=n(6);t.registerPlugin=function(e,t,n){if(!e)throw new TypeError("name is not define");if(!t)throw new TypeError("options is not define");if(!t.intention)throw new TypeError("options.intention is not define");if(t.intention&&"function"!=typeof t.intention)throw new TypeError("options.intention is not function");n[e]&&console.warn("plugin "+e+" 已存在,已覆盖。"),n[e]=t},t.default=function(e){var t=(0,o.default)({},u.deepClone(l.default.globalPluginsFunctionList),u.deepClone(e.pluginsFunctionList)),n=(0,a.default)(t);(0,s.default)(n).call(n,function(t){var n=t[0],i=t[1];console.info("plugin "+n+" initializing");var r=i.intention,o=i.config;r(e,o),console.info("plugin "+n+" initialization complete")})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0})}]).default},e.exports=i()},awF4:function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(t,n("DuR2"))},ax3d:function(e,t,n){var i=n("e8AB")("keys"),r=n("3Eo+");e.exports=function(e){return i[e]||(i[e]=r(e))}},bOdI:function(e,t,n){"use strict";t.__esModule=!0;var i,r=n("C4MV"),o=(i=r)&&i.__esModule?i:{default:i};t.default=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},bRrM:function(e,t,n){"use strict";var i=n("7KvD"),r=n("FeBl"),o=n("evD5"),a=n("+E39"),s=n("dSzd")("species");e.exports=function(e){var t="function"==typeof r[e]?r[e]:i[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},cGG2:function(e,t,n){"use strict";var i=n("JP+z"),r=Object.prototype.toString;function o(e){return"[object Array]"===r.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===r.call(e)}function c(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===r.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(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:s,isPlainObject:l,isUndefined:a,isDate:function(e){return"[object Date]"===r.call(e)},isFile:function(e){return"[object File]"===r.call(e)},isBlob:function(e){return"[object Blob]"===r.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(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:c,merge:function e(){var t={};function n(n,i){l(t[i])&&l(n)?t[i]=e(t[i],n):l(n)?t[i]=e({},n):o(n)?t[i]=n.slice():t[i]=n}for(var i=0,r=arguments.length;i<r;i++)c(arguments[i],n);return t},extend:function(e,t,n){return c(t,function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},cWxy:function(e,t,n){"use strict";var i=n("dVOP");function r(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 i(e),t(n.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},ciWi:function(e,t,n){var i=n("awF4"),r=e.exports={WebVTT:n("dlST"),VTTCue:n("aj7g"),VTTRegion:n("DvOw")};i.vttjs=r,i.WebVTT=r.WebVTT;var o=r.VTTCue,a=r.VTTRegion,s=i.VTTCue,l=i.VTTRegion;r.shim=function(){i.VTTCue=o,i.VTTRegion=a},r.restore=function(){i.VTTCue=s,i.VTTRegion=l},i.VTTCue||r.shim()},cnZr:function(e,t,n){var i=n("kM2E"),r=n("L42u");i(i.G+i.B,{setImmediate:r.set,clearImmediate:r.clear})},cnlX:function(e,t,n){n("iInB");var i=n("FeBl").Object;e.exports=function(e,t){return i.getOwnPropertyDescriptor(e,t)}},crlp:function(e,t,n){var i=n("7KvD"),r=n("FeBl"),o=n("O4g8"),a=n("Kh4W"),s=n("evD5").f;e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},d7EF:function(e,t,n){"use strict";t.__esModule=!0;var i=o(n("us/S")),r=o(n("BO1k"));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return function(e,t){if(Array.isArray(e))return e;if((0,i.default)(Object(e)))return function(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var s,l=(0,r.default)(e);!(i=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},dIwP:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},dNDb:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},dSzd:function(e,t,n){var i=n("e8AB")("wks"),r=n("3Eo+"),o=n("7KvD").Symbol,a="function"==typeof o;(e.exports=function(e){return i[e]||(i[e]=a&&o[e]||(a?o:r)("Symbol."+e))}).store=i},dVOP:function(e,t,n){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},dY0y:function(e,t,n){var i=n("dSzd")("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},e(o)}catch(e){}return n}},dlST:function(e,t){var n=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function i(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function r(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function o(){this.values=n(null)}function a(e,t,n,i){var r=i?e.split(i):[e];for(var o in r)if("string"==typeof r[o]){var a=r[o].split(n);if(2===a.length)t(a[0],a[1])}}function s(e,t,n){var s=e;function l(){var t=r(e);if(null===t)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+s);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=l(),u(),"--\x3e"!==e.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+s);e=e.substr(3),u(),t.endTime=l(),u(),function(e,t){var i=new o;a(e,function(e,t){switch(e){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var o=t.split(","),a=o[0];i.integer(e,a),i.percent(e,a)&&i.set("snapToLines",!1),i.alt(e,a,["auto"]),2===o.length&&i.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=t.split(","),i.percent(e,o[0]),2===o.length&&i.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical",""),t.line=i.get("line","auto"),t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100),t.align=i.get("align","middle"),t.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align),t.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}(e,t)}i.prototype=n(Error.prototype),i.prototype.constructor=i,i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var l={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},u={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},c={v:"title",lang:"lang"},h={rt:"ruby"};function d(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function i(e){return l[e]}function o(e){for(;m=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(m[0],i);return e}function a(e,t){return!h[t.localName]||h[t.localName]===e.localName}function s(t,n){var i=u[t];if(!i)return null;var r=e.document.createElement(i);r.localName=i;var o=c[t];return o&&n&&(r[o]=n.trim()),r}for(var d,f=e.document.createElement("div"),p=f,A=[];null!==(d=n());)if("<"!==d[0])p.appendChild(e.document.createTextNode(o(d)));else{if("/"===d[1]){A.length&&A[A.length-1]===d.substr(2).replace(">","")&&(A.pop(),p=p.parentNode);continue}var g,v=r(d.substr(1,d.length-2));if(v){g=e.document.createProcessingInstruction("timestamp",v),p.appendChild(g);continue}var m=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!m)continue;if(!(g=s(m[1],m[3])))continue;if(!a(p,g))continue;m[2]&&(g.className=m[2].substr(1).replace("."," ")),A.push(m[1]),p.appendChild(g),p=g}return f}var f=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function p(e){for(var t=0;t<f.length;t++){var n=f[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function A(){}function g(e,t,n){var i=/MSIE\s8\.0/.test(navigator.userAgent),r="rgba(255, 255, 255, 1)",o="rgba(0, 0, 0, 0.8)";i&&(r="rgb(255, 255, 255)",o="rgb(0, 0, 0)"),A.call(this),this.cue=t,this.cueDiv=d(e,t.text);var a={color:r,backgroundColor:o,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};i||(a.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",a.unicodeBidi="plaintext"),this.applyStyles(a,this.cueDiv),this.div=e.document.createElement("div"),a={textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},i||(a.direction=function(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function r(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(e.length=0,o[0]):n}return"ruby"===t.tagName?r(e):t.childNodes?(i(e,t),r(e)):void 0}for(i(t,e);n=r(t);)for(var o=0;o<n.length;o++)if(p(n.charCodeAt(o)))return"rtl";return"ltr"}(this.cueDiv),a.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(a),this.div.appendChild(this.cueDiv);var s=0;switch(t.positionAlign){case"start":s=t.position;break;case"middle":s=t.position-t.size/2;break;case"end":s=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(s,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(s,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function v(e){var t,n,i,r,o=/MSIE\s8\.0/.test(navigator.userAgent);if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||n,this.bottom=e.bottom||r+(e.height||n),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight,o&&!this.lineHeight&&(this.lineHeight=13)}function m(e,t,n,i){var r=new v(t),o=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;r<n.length&&n[r]!==t;r++)"showing"===n[r].mode&&i++;return-1*++i}(o),s=[];if(o.snapToLines){var l;switch(o.vertical){case"":s=["+y","-y"],l="height";break;case"rl":s=["+x","-x"],l="width";break;case"lr":s=["-x","+x"],l="width"}var u=r.lineHeight,c=u*Math.round(a),h=n[l]+u,d=s[0];Math.abs(c)>h&&(c=c<0?-1:1,c*=Math.ceil(h/u)*u),a<0&&(c+=""===o.vertical?n.height:n.width,s=s.reverse()),r.move(d,c)}else{var f=r.lineHeight/n.height*100;switch(o.lineAlign){case"middle":a-=f/2;break;case"end":a-=f}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],r=new v(t)}var p=function(e,t){for(var r,o=new v(e),a=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(i);)e.move(t[s]);if(e.within(n))return e;var l=e.intersectPercentage(n);a>l&&(r=new v(e),a=l),e=new v(o)}return r||o}(r,s);t.move(p.toCSSCompatValues(n))}function y(){}A.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},A.prototype.formatStyle=function(e,t){return 0===e?0:e+t},g.prototype=n(A.prototype),g.prototype.constructor=g,v.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},v.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},v.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},v.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},v.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},v.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},v.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},v.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n}},y.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},y.convertCueToDOMTree=function(e,t){return e&&t?d(e,t):null};y.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var r=[],o=v.getSimpleBoxPosition(i),a={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var n,s,l=0;l<t.length;l++)s=t[l],n=new g(e,s,a),i.appendChild(n.div),m(0,n,o,r),s.displayState=n.div,r.push(v.getSimpleBoxPosition(n))}()}else for(var s=0;s<t.length;s++)i.appendChild(t[s].displayState)},y.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},y.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof i))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var i=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),i}function l(e){e.match(/X-TIMESTAMP-MAP/)?a(e,function(e,n){switch(e){case"X-TIMESTAMP-MAP":i=n,s=new o,a(i,function(e,t){switch(e){case"MPEGT":s.integer(e+"S",t);break;case"LOCA":s.set(e+"L",r(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:s.get("MPEGTS"),LOCAL:s.get("LOCAL")})}var i,s},/=/):a(e,function(e,n){switch(e){case"Region":!function(e){var n=new o;if(a(e,function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var r=new o;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y"));break;case"scroll":n.alt(e,t,["up"])}},/=/,/\s/),n.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:n.get("id"),region:i})}}(n)}},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var u;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var c=(u=n()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}for(var h=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(h?h=!1:u=n(),t.state){case"HEADER":/:/.test(u)?l(u):u||(t.state="ID");continue;case"NOTE":u||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(u)){t.state="NOTE";break}if(!u)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",-1===u.indexOf("--\x3e")){t.cue.id=u;continue}case"CUE":try{s(u,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var d=-1!==u.indexOf("--\x3e");if(!u||d&&(h=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=u;continue;case"BADCUE":u||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new i(i.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=y},"dwO+":function(e,t,n){(function(t){var i,r=void 0!==t?t:"undefined"!=typeof window?window:{},o=n(6);"undefined"!=typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"])||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=i}).call(t,n("DuR2"))},e0Bm:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=61)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},10:function(e,t){e.exports=n("HJMx")},12:function(e,t){e.exports=n("ISYW")},15:function(e,t){e.exports=n("fEB+")},16:function(e,t){e.exports=n("02w1")},18:function(e,t){e.exports=n("ON3O")},21:function(e,t){e.exports=n("E/in")},22:function(e,t){e.exports=n("1oZe")},3:function(e,t){e.exports=n("ylDJ")},31:function(e,t){e.exports=n("zTCi")},33:function(e,t,n){"use strict";var i=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)};i._withStripped=!0;var r=n(4),o=n.n(r),a=n(3),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},l={mixins:[o.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,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===(void 0===e?"undefined":s(e))&&"object"===(void 0===t?"undefined":s(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(a.getValueByPath)(e,n)===Object(a.getValueByPath)(t,n)}return e===t},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(a.getValueByPath)(e,n)===Object(a.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(a.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,t=e.selected,n=e.multiple?t:[t],i=this.select.cachedOptions.indexOf(this),r=n.indexOf(this);i>-1&&r<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},u=n(0),c=Object(u.a)(l,i,[],!1,null,null,null);c.options.__file="packages/select/src/option.vue";t.a=c.exports},37:function(e,t){e.exports=n("orbS")},4:function(e,t){e.exports=n("fPll")},5:function(e,t){e.exports=n("fKx3")},6:function(e,t){e.exports=n("y+7x")},61:function(e,t,n){"use strict";n.r(t);var i=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},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")?(t.preventDefault(),e.selectOption(t)):null},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"])?e.deletePrevTag(t):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],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,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange},nativeOn:{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")?(t.preventDefault(),e.selectOption(t)):null},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}],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)};i._withStripped=!0;var r=n(4),o=n.n(r),a=n(22),s=n.n(a),l=n(6),u=n.n(l),c=n(10),h=n.n(c),d=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass],style:{minWidth:this.minWidth}},[this._t("default")],2)};d._withStripped=!0;var f=n(5),p={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[n.n(f).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)}},A=n(0),g=Object(A.a)(p,d,[],!1,null,null,null);g.options.__file="packages/select/src/select-dropdown.vue";var v=g.exports,m=n(33),y=n(37),_=n.n(y),b=n(15),w=n.n(b),x=n(18),C=n.n(x),S=n(12),k=n.n(S),B=n(16),T=n(31),E=n.n(T),I=n(3),M=n(21),D={mixins:[o.a,u.a,s()("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter(function(e){return e.visible}).every(function(e){return e.disabled})}},watch:{hoverIndex:function(e){var t=this;"number"==typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach(function(e){e.hover=t.hoverOption===e})}},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 n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.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(I.isIE)()&&!Object(I.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(e){return!e.created}).some(function(t){return t.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"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:h.a,ElSelectMenu:v,ElOption:m.a,ElTag:_.a,ElScrollbar:w.a},directives:{Clickoutside:k.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,required:!1},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()})},propPlaceholder: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(I.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,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick(function(e){return t.handleQueryChange(n)});else{var i=n[n.length-1]||"";this.isOnComposition=!Object(M.isKorean)(i)}},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(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");E()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick(function(){return e.scrollToOption(e.selected)})},emitChange:function(e){Object(I.valueEquals)(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o];if(n?Object(I.getValueByPath)(a.value,this.valueKey)===Object(I.getValueByPath)(e,this.valueKey):a.value===e){t=a;break}}if(t)return t;var s={value:e,currentLabel:n||i||r?"":String(e)};return this.multiple&&(s.hitState=!1),s},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach(function(t){n.push(e.getOption(t))}),this.selected=n,this.$nextTick(function(){e.resetInputHeight()})},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(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 t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.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,n=[].filter.call(t,function(e){return"INPUT"===e.tagName})[0],i=e.$refs.tags,r=i?Math.round(i.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(i?r+(r>o?6:0):0,o)+"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(e,t){var n=this;if(this.multiple){var i=(this.value||[]).slice(),r=this.getValueIndex(i,e.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length<this.multipleLimit)&&i.push(e.value),this.$emit("input",i),this.emitChange(i),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick(function(){n.scrollToOption(e)})},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if("[object object]"===Object.prototype.toString.call(t).toLowerCase()){var n=this.valueKey,i=-1;return e.some(function(e,r){return Object(I.getValueByPath)(e,n)===Object(I.getValueByPath)(t,n)&&(i=r,!0)}),i}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 i=this.value.slice();i.splice(n,1),this.$emit("input",i),this.emitChange(i),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,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(I.getValueByPath)(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=C()(this.debounce,function(){e.onInputChange()}),this.debouncedQueryChange=C()(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(B.addResizeListener)(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n=t.$el.querySelector("input");this.initialInputHeight=n.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(B.removeResizeListener)(this.$el,this.handleResize)}},P=Object(A.a)(D,i,[],!1,null,null,null);P.options.__file="packages/select/src/select.vue";var F=P.exports;F.install=function(e){e.component(F.name,F)};t.default=F}})},e6n0:function(e,t,n){var i=n("evD5").f,r=n("D2L2"),o=n("dSzd")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},e8AB:function(e,t,n){var i=n("FeBl"),r=n("7KvD"),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("O4g8")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},eMjc:function(e,t,n){
  99. /*!
  100. * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
  101. * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
  102. * Released under MIT License
  103. */var i;i=function(){"use strict";
  104. /*! *****************************************************************************
  105. Copyright (c) Microsoft Corporation.
  106. Permission to use, copy, modify, and/or distribute this software for any
  107. purpose with or without fee is hereby granted.
  108. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  109. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  110. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  111. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  112. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  113. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  114. PERFORMANCE OF THIS SOFTWARE.
  115. ***************************************************************************** */var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function i(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})}function r(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function o(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||t)}for(var a=function(){function e(e,t,n,i){this.left=e,this.top=t,this.width=n,this.height=i}return e.prototype.add=function(t,n,i,r){return new e(this.left+t,this.top+n,this.width+i,this.height+r)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var i=Array.from(n).find(function(e){return 0!==e.width});return i?new e(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),s=function(e,t){return a.fromClientRect(e,t.getBoundingClientRect())},l=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&r)<<10)+(1023&o)+65536):(t.push(r),n--)}else t.push(r)}return t},u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var i=[],r=-1,o="";++r<n;){var a=e[r];a<=65535?i.push(a):(a-=65536,i.push(55296+(a>>10),a%1024+56320)),(r+1===n||i.length>16384)&&(o+=String.fromCharCode.apply(String,i),i.length=0)}return o},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d<c.length;d++)h[c.charCodeAt(d)]=d;for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="undefined"==typeof Uint8Array?[]:new Uint8Array(256),A=0;A<f.length;A++)p[f.charCodeAt(A)]=A;for(var g=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},v=function(){function e(e,t,n,i,r,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=i,this.index=r,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="undefined"==typeof Uint8Array?[]:new Uint8Array(256),_=0;_<m.length;_++)y[m.charCodeAt(_)]=_;var b=10,w=13,x=15,C=17,S=18,k=19,B=20,T=21,E=22,I=24,M=25,D=26,P=27,F=28,O=30,L=32,N=33,R=34,U=35,Q=37,H=38,j=39,V=40,z=42,$=[9001,65288],G="!",W=function(e,t){var n,i,r,o=function(e){var t,n,i,r,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),c=Array.isArray(u)?u:new Uint8Array(u);for(t=0;t<s;t+=4)n=p[e.charCodeAt(t)],i=p[e.charCodeAt(t+1)],r=p[e.charCodeAt(t+2)],o=p[e.charCodeAt(t+3)],c[l++]=n<<2|i>>4,c[l++]=(15&i)<<4|r>>2,c[l++]=(3&r)<<6|63&o;return u}(e),a=Array.isArray(o)?function(e){for(var t=e.length,n=[],i=0;i<t;i+=4)n.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return n}(o):new Uint32Array(o),s=Array.isArray(o)?function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n.push(e[i+1]<<8|e[i]);return n}(o):new Uint16Array(o),l=g(s,12,a[4]/2),u=2===a[5]?g(s,(24+a[4])/2):(n=a,i=Math.ceil((24+a[4])/4),n.slice?n.slice(i,r):new Uint32Array(Array.prototype.slice.call(n,i,r)));return new v(a[0],a[1],a[2],a[3],l,u)}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),K=[O,36],Y=[1,2,3,5],q=[b,8],X=[P,D],J=Y.concat(q),Z=[H,j,V,R,U],ee=[x,w],te=function(e,t,n,i){var r=i[n];if(Array.isArray(e)?-1!==e.indexOf(r):e===r)for(var o=n;o<=i.length;){if((l=i[++o])===t)return!0;if(l!==b)break}if(r===b)for(o=n;o>0;){var a=i[--o];if(Array.isArray(e)?-1!==e.indexOf(a):e===a)for(var s=n;s<=i.length;){var l;if((l=i[++s])===t)return!0;if(l!==b)break}if(a!==b)break}return!1},ne=function(e,t){for(var n=e;n>=0;){var i=t[n];if(i!==b)return i;n--}return 0},ie=function(e,t,n,i,r){if(0===n[i])return"×";var o=i-1;if(Array.isArray(r)&&!0===r[o])return"×";var a=o-1,s=o+1,l=t[o],u=a>=0?t[a]:0,c=t[s];if(2===l&&3===c)return"×";if(-1!==Y.indexOf(l))return G;if(-1!==Y.indexOf(c))return"×";if(-1!==q.indexOf(c))return"×";if(8===ne(o,t))return"÷";if(11===W.get(e[o]))return"×";if((l===L||l===N)&&11===W.get(e[s]))return"×";if(7===l||7===c)return"×";if(9===l)return"×";if(-1===[b,w,x].indexOf(l)&&9===c)return"×";if(-1!==[C,S,k,I,F].indexOf(c))return"×";if(ne(o,t)===E)return"×";if(te(23,E,o,t))return"×";if(te([C,S],T,o,t))return"×";if(te(12,12,o,t))return"×";if(l===b)return"÷";if(23===l||23===c)return"×";if(16===c||16===l)return"÷";if(-1!==[w,x,T].indexOf(c)||14===l)return"×";if(36===u&&-1!==ee.indexOf(l))return"×";if(l===F&&36===c)return"×";if(c===B)return"×";if(-1!==K.indexOf(c)&&l===M||-1!==K.indexOf(l)&&c===M)return"×";if(l===P&&-1!==[Q,L,N].indexOf(c)||-1!==[Q,L,N].indexOf(l)&&c===D)return"×";if(-1!==K.indexOf(l)&&-1!==X.indexOf(c)||-1!==X.indexOf(l)&&-1!==K.indexOf(c))return"×";if(-1!==[P,D].indexOf(l)&&(c===M||-1!==[E,x].indexOf(c)&&t[s+1]===M)||-1!==[E,x].indexOf(l)&&c===M||l===M&&-1!==[M,F,I].indexOf(c))return"×";if(-1!==[M,F,I,C,S].indexOf(c))for(var h=o;h>=0;){if((d=t[h])===M)return"×";if(-1===[F,I].indexOf(d))break;h--}if(-1!==[P,D].indexOf(c))for(h=-1!==[C,S].indexOf(l)?a:o;h>=0;){var d;if((d=t[h])===M)return"×";if(-1===[F,I].indexOf(d))break;h--}if(H===l&&-1!==[H,j,R,U].indexOf(c)||-1!==[j,R].indexOf(l)&&-1!==[j,V].indexOf(c)||-1!==[V,U].indexOf(l)&&c===V)return"×";if(-1!==Z.indexOf(l)&&-1!==[B,D].indexOf(c)||-1!==Z.indexOf(c)&&l===P)return"×";if(-1!==K.indexOf(l)&&-1!==K.indexOf(c))return"×";if(l===I&&-1!==K.indexOf(c))return"×";if(-1!==K.concat(M).indexOf(l)&&c===E&&-1===$.indexOf(e[s])||-1!==K.concat(M).indexOf(c)&&l===S)return"×";if(41===l&&41===c){for(var f=n[o],p=1;f>0&&41===t[--f];)p++;if(p%2!=0)return"×"}return l===L&&c===N?"×":"÷"},re=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],i=[],r=[];return e.forEach(function(e,o){var a=W.get(e);if(a>50?(r.push(!0),a-=50):r.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return i.push(o),n.push(16);if(4===a||11===a){if(0===o)return i.push(o),n.push(O);var s=n[o-1];return-1===J.indexOf(s)?(i.push(i[o-1]),n.push(s)):(i.push(o),n.push(O))}return i.push(o),31===a?n.push("strict"===t?T:Q):a===z?n.push(O):29===a?n.push(O):43===a?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(Q):n.push(O):void n.push(a)}),[i,n,r]}(e,t.lineBreak),i=n[0],r=n[1],o=n[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(r=r.map(function(e){return-1!==[M,O,z].indexOf(e)?Q:e})),[i,r,"keep-all"===t.wordBreak?o.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0]},oe=function(){function e(e,t,n,i){this.codePoints=e,this.required=t===G,this.start=n,this.end=i}return e.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),ae=function(e){return e>=48&&e<=57},se=function(e){return ae(e)||e>=65&&e<=70||e>=97&&e<=102},le=function(e){return 10===e||9===e||32===e},ue=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},ce=function(e){return ue(e)||ae(e)||45===e},he=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},de=function(e,t){return 92===e&&10!==t},fe=function(e,t,n){return 45===e?ue(t)||de(t,n):!!ue(e)||!(92!==e||!de(e,t))},pe=function(e,t,n){return 43===e||45===e?!!ae(t)||46===t&&ae(n):ae(46===e?t:e)},Ae={type:2},ge={type:3},ve={type:4},me={type:13},ye={type:8},_e={type:21},be={type:9},we={type:10},xe={type:11},Ce={type:12},Se={type:14},ke={type:23},Be={type:1},Te={type:25},Ee={type:24},Ie={type:26},Me={type:27},De={type:28},Pe={type:29},Fe={type:31},Oe={type:32},Le=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Oe;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(ce(t)||de(n,i)){var r=fe(t,n,i)?2:1;return{type:5,value:this.consumeName(),flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),me;break;case 39:return this.consumeStringToken(39);case 40:return Ae;case 41:return ge;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Se;break;case 43:if(pe(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return ve;case 45:var o=e,a=this.peekCodePoint(0),s=this.peekCodePoint(1);if(pe(o,a,s))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(fe(o,a,s))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(45===a&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),Ee;break;case 46:if(pe(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(42===l&&47===(l=this.consumeCodePoint()))return this.consumeToken();if(-1===l)return this.consumeToken()}break;case 58:return Ie;case 59:return Me;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),Te;break;case 64:var c=this.peekCodePoint(0),h=this.peekCodePoint(1),d=this.peekCodePoint(2);if(fe(c,h,d))return{type:7,value:this.consumeName()};break;case 91:return De;case 92:if(de(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Pe;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ye;break;case 123:return xe;case 125:return Ce;case 117:case 85:var f=this.peekCodePoint(0),p=this.peekCodePoint(1);return 43!==f||!se(p)&&63!==p||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),be;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),_e;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),we;break;case-1:return Oe}return le(e)?(this.consumeWhiteSpace(),Fe):ae(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):ue(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:u(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();se(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(u.apply(void 0,e.map(function(e){return 63===e?48:e})),16),end:parseInt(u.apply(void 0,e.map(function(e){return 63===e?70:e})),16)};var i=parseInt(u.apply(void 0,e),16);if(45===this.peekCodePoint(0)&&se(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var r=[];se(t)&&r.length<6;)r.push(t),t=this.consumeCodePoint();return{type:30,start:i,end:parseInt(u.apply(void 0,r),16)}}return{type:30,start:i,end:i}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),ke)}for(;;){var i=this.consumeCodePoint();if(-1===i||41===i)return{type:22,value:u.apply(void 0,e)};if(le(i))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,e)}):(this.consumeBadUrlRemnants(),ke);if(34===i||39===i||40===i||he(i))return this.consumeBadUrlRemnants(),ke;if(92===i){if(!de(i,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),ke;e.push(this.consumeEscapedCodePoint())}else e.push(i)}},e.prototype.consumeWhiteSpace=function(){for(;le(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||-1===e)return;de(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(5e4,e);t+=u.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var i=this._value[n];if(-1===i||void 0===i||i===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(10===i)return this._value.splice(0,n),Be;if(92===i){var r=this._value[n+1];-1!==r&&void 0!==r&&(10===r?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):de(i,r)&&(t+=this.consumeStringSlice(n),t+=u(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(43!==n&&45!==n||e.push(this.consumeCodePoint());ae(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(46===n&&ae(i))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ae(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),i=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((69===n||101===n)&&((43===i||45===i)&&ae(r)||ae(i)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ae(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[function(e){var t=0,n=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(n=-1),t++);for(var i=[];ae(e[t]);)i.push(e[t++]);var r=i.length?parseInt(u.apply(void 0,i),10):0;46===e[t]&&t++;for(var o=[];ae(e[t]);)o.push(e[t++]);var a=o.length,s=a?parseInt(u.apply(void 0,o),10):0;69!==e[t]&&101!==e[t]||t++;var l=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(l=-1),t++);for(var c=[];ae(e[t]);)c.push(e[t++]);var h=c.length?parseInt(u.apply(void 0,c),10):0;return n*(r+s*Math.pow(10,-a))*Math.pow(10,l*h)}(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],i=this.peekCodePoint(0),r=this.peekCodePoint(1),o=this.peekCodePoint(2);return fe(i,r,o)?{type:15,number:t,flags:n,unit:this.consumeName()}:37===i?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(se(e)){for(var t=u(e);se(this.peekCodePoint(0))&&t.length<6;)t+=u(this.consumeCodePoint());le(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return-1===e?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(ce(t))e+=u(t);else{if(!de(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=u(this.consumeEscapedCodePoint())}}},e}(),Ne=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Le;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||Ge(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Oe:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Re=function(e){return 15===e.type},Ue=function(e){return 17===e.type},Qe=function(e){return 20===e.type},He=function(e){return 0===e.type},je=function(e,t){return Qe(e)&&e.value===t},Ve=function(e){return 31!==e.type},ze=function(e){return 31!==e.type&&4!==e.type},$e=function(e){var t=[],n=[];return e.forEach(function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)}),n.length&&t.push(n),t},Ge=function(e,t){return 11===t&&12===e.type||(28===t&&29===e.type||2===t&&3===e.type)},We=function(e){return 17===e.type||15===e.type},Ke=function(e){return 16===e.type||We(e)},Ye=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},qe={type:17,number:0,flags:4},Xe={type:16,number:50,flags:4},Je={type:16,number:100,flags:4},Ze=function(e,t,n){var i=e[0],r=e[1];return[et(i,t),et(void 0!==r?r:i,n)]},et=function(e,t){if(16===e.type)return e.number/100*t;if(Re(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},tt=function(e,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case"grad":return Math.PI/200*t.number;case"rad":return t.number;case"turn":return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},nt=function(e){return 15===e.type&&("deg"===e.unit||"grad"===e.unit||"rad"===e.unit||"turn"===e.unit)},it=function(e){switch(e.filter(Qe).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[qe,qe];case"to top":case"bottom":return rt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[qe,Je];case"to right":case"left":return rt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Je,Je];case"to bottom":case"top":return rt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Je,qe];case"to left":case"right":return rt(270)}return 0},rt=function(e){return Math.PI*e/180},ot=function(e,t){if(18===t.type){var n=ft[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var i=t.value.substring(0,1),r=t.value.substring(1,2),o=t.value.substring(2,3);return lt(parseInt(i+i,16),parseInt(r+r,16),parseInt(o+o,16),1)}if(4===t.value.length){i=t.value.substring(0,1),r=t.value.substring(1,2),o=t.value.substring(2,3);var a=t.value.substring(3,4);return lt(parseInt(i+i,16),parseInt(r+r,16),parseInt(o+o,16),parseInt(a+a,16)/255)}if(6===t.value.length){i=t.value.substring(0,2),r=t.value.substring(2,4),o=t.value.substring(4,6);return lt(parseInt(i,16),parseInt(r,16),parseInt(o,16),1)}if(8===t.value.length){i=t.value.substring(0,2),r=t.value.substring(2,4),o=t.value.substring(4,6),a=t.value.substring(6,8);return lt(parseInt(i,16),parseInt(r,16),parseInt(o,16),parseInt(a,16)/255)}}if(20===t.type){var s=At[t.value.toUpperCase()];if(void 0!==s)return s}return At.TRANSPARENT},at=function(e){return 0==(255&e)},st=function(e){var t=255&e,n=255&e>>8,i=255&e>>16,r=255&e>>24;return t<255?"rgba("+r+","+i+","+n+","+t/255+")":"rgb("+r+","+i+","+n+")"},lt=function(e,t,n,i){return(e<<24|t<<16|n<<8|Math.round(255*i)<<0)>>>0},ut=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},ct=function(e,t){var n=t.filter(ze);if(3===n.length){var i=n.map(ut),r=i[0],o=i[1],a=i[2];return lt(r,o,a,1)}if(4===n.length){var s=n.map(ut),l=(r=s[0],o=s[1],a=s[2],s[3]);return lt(r,o,a,l)}return 0};function ht(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var dt=function(e,t){var n=t.filter(ze),i=n[0],r=n[1],o=n[2],a=n[3],s=(17===i.type?rt(i.number):tt(e,i))/(2*Math.PI),l=Ke(r)?r.number/100:0,u=Ke(o)?o.number/100:0,c=void 0!==a&&Ke(a)?et(a,1):1;if(0===l)return lt(255*u,255*u,255*u,1);var h=u<=.5?u*(l+1):u+l-u*l,d=2*u-h,f=ht(d,h,s+1/3),p=ht(d,h,s),A=ht(d,h,s-1/3);return lt(255*f,255*p,255*A,c)},ft={hsl:dt,hsla:dt,rgb:ct,rgba:ct},pt=function(e,t){return ot(e,Ne.create(t).parseComponentValue())},At={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},gt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Qe(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},vt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},mt=function(e,t){var n=ot(e,t[0]),i=t[1];return i&&Ke(i)?{color:n,stop:i}:{color:n,stop:null}},yt=function(e,t){var n=e[0],i=e[e.length-1];null===n.stop&&(n.stop=qe),null===i.stop&&(i.stop=Je);for(var r=[],o=0,a=0;a<e.length;a++){var s=e[a].stop;if(null!==s){var l=et(s,t);l>o?r.push(l):r.push(o),o=l}else r.push(null)}var u=null;for(a=0;a<r.length;a++){var c=r[a];if(null===c)null===u&&(u=a);else if(null!==u){for(var h=a-u,d=(c-r[u-1])/(h+1),f=1;f<=h;f++)r[u+f-1]=d*f;u=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,r[n]/t),0)}})},_t=function(e,t,n){var i="number"==typeof e?e:function(e,t,n){var i=t/2,r=n/2,o=et(e[0],t)-i,a=r-et(e[1],n);return(Math.atan2(a,o)+2*Math.PI)%(2*Math.PI)}(e,t,n),r=Math.abs(t*Math.sin(i))+Math.abs(n*Math.cos(i)),o=t/2,a=n/2,s=r/2,l=Math.sin(i-Math.PI/2)*s,u=Math.cos(i-Math.PI/2)*s;return[r,o-u,o+u,a-l,a+l]},bt=function(e,t){return Math.sqrt(e*e+t*t)},wt=function(e,t,n,i,r){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var o=t[0],a=t[1],s=bt(n-o,i-a);return(r?s<e.optimumDistance:s>e.optimumDistance)?{optimumCorner:t,optimumDistance:s}:e},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},xt=function(e,t){var n=rt(180),i=[];return $e(t).forEach(function(t,r){if(0===r){var o=t[0];if(20===o.type&&-1!==["top","left","right","bottom"].indexOf(o.value))return void(n=it(t));if(nt(o))return void(n=(tt(e,o)+rt(270))%rt(360))}var a=mt(e,t);i.push(a)}),{angle:n,stops:i,type:1}},Ct=function(e,t){var n=0,i=3,r=[],o=[];return $e(t).forEach(function(t,a){var s=!0;if(0===a?s=t.reduce(function(e,t){if(Qe(t))switch(t.value){case"center":return o.push(Xe),!1;case"top":case"left":return o.push(qe),!1;case"right":case"bottom":return o.push(Je),!1}else if(Ke(t)||We(t))return o.push(t),!1;return e},s):1===a&&(s=t.reduce(function(e,t){if(Qe(t))switch(t.value){case"circle":return n=0,!1;case"ellipse":return n=1,!1;case"contain":case"closest-side":return i=0,!1;case"farthest-side":return i=1,!1;case"closest-corner":return i=2,!1;case"cover":case"farthest-corner":return i=3,!1}else if(We(t)||Ke(t))return Array.isArray(i)||(i=[]),i.push(t),!1;return e},s)),s){var l=mt(e,t);r.push(l)}}),{size:i,shape:n,stops:r,position:o,type:2}},St=function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var i=Bt[t.name];if(void 0===i)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return i(e,t.values)}throw new Error("Unsupported image type "+t.type)};var kt,Bt={"linear-gradient":function(e,t){var n=rt(180),i=[];return $e(t).forEach(function(t,r){if(0===r){var o=t[0];if(20===o.type&&"to"===o.value)return void(n=it(t));if(nt(o))return void(n=tt(e,o))}var a=mt(e,t);i.push(a)}),{angle:n,stops:i,type:1}},"-moz-linear-gradient":xt,"-ms-linear-gradient":xt,"-o-linear-gradient":xt,"-webkit-linear-gradient":xt,"radial-gradient":function(e,t){var n=0,i=3,r=[],o=[];return $e(t).forEach(function(t,a){var s=!0;if(0===a){var l=!1;s=t.reduce(function(e,t){if(l)if(Qe(t))switch(t.value){case"center":return o.push(Xe),e;case"top":case"left":return o.push(qe),e;case"right":case"bottom":return o.push(Je),e}else(Ke(t)||We(t))&&o.push(t);else if(Qe(t))switch(t.value){case"circle":return n=0,!1;case"ellipse":return n=1,!1;case"at":return l=!0,!1;case"closest-side":return i=0,!1;case"cover":case"farthest-side":return i=1,!1;case"contain":case"closest-corner":return i=2,!1;case"farthest-corner":return i=3,!1}else if(We(t)||Ke(t))return Array.isArray(i)||(i=[]),i.push(t),!1;return e},s)}if(s){var u=mt(e,t);r.push(u)}}),{size:i,shape:n,stops:r,position:o,type:2}},"-moz-radial-gradient":Ct,"-ms-radial-gradient":Ct,"-o-radial-gradient":Ct,"-webkit-radial-gradient":Ct,"-webkit-gradient":function(e,t){var n=rt(180),i=[],r=1;return $e(t).forEach(function(t,n){var o=t[0];if(0===n){if(Qe(o)&&"linear"===o.value)return void(r=1);if(Qe(o)&&"radial"===o.value)return void(r=2)}if(18===o.type)if("from"===o.name){var a=ot(e,o.values[0]);i.push({stop:qe,color:a})}else if("to"===o.name)a=ot(e,o.values[0]),i.push({stop:Je,color:a});else if("color-stop"===o.name){var s=o.values.filter(ze);if(2===s.length){a=ot(e,s[1]);var l=s[0];Ue(l)&&i.push({stop:{type:16,number:100*l.number,flags:l.flags},color:a})}}}),1===r?{angle:(n+rt(180))%rt(360),stops:i,type:r}:{size:3,shape:0,stops:i,position:[],type:r}}},Tt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter(function(e){return ze(e)&&function(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Bt[e.name])}(e)}).map(function(t){return St(e,t)})}},Et={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Qe(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},It={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return $e(t).map(function(e){return e.filter(Ke)}).map(Ye)}},Mt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return $e(t).map(function(e){return e.filter(Qe).map(function(e){return e.value}).join(" ")}).map(Dt)}},Dt=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(kt||(kt={}));var Pt,Ft={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return $e(t).map(function(e){return e.filter(Ot)})}},Ot=function(e){return Qe(e)||Ke(e)},Lt=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Nt=Lt("top"),Rt=Lt("right"),Ut=Lt("bottom"),Qt=Lt("left"),Ht=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Ye(t.filter(Ke))}}},jt=Ht("top-left"),Vt=Ht("top-right"),zt=Ht("bottom-right"),$t=Ht("bottom-left"),Gt=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Wt=Gt("top"),Kt=Gt("right"),Yt=Gt("bottom"),qt=Gt("left"),Xt=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Re(t)?t.number:0}}},Jt=Xt("top"),Zt=Xt("right"),en=Xt("bottom"),tn=Xt("left"),nn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},on={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Qe).reduce(function(e,t){return e|an(t.value)},0)}},an=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},sn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},ln={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type?t.number:15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Pt||(Pt={}));var un,cn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return Pt.STRICT;case"normal":default:return Pt.NORMAL}}},hn={name:"line-height",initialValue:"normal",prefix:!1,type:4},dn=function(e,t){return Qe(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Ke(e)?et(e,t):t},fn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:St(e,t)}},pn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},An={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},gn=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},vn=gn("top"),mn=gn("right"),yn=gn("bottom"),_n=gn("left"),bn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Qe).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},wn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},xn=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Cn=xn("top"),Sn=xn("right"),kn=xn("bottom"),Bn=xn("left"),Tn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},En={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},In={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&je(t[0],"none")?[]:$e(t).map(function(t){for(var n={color:At.TRANSPARENT,offsetX:qe,offsetY:qe,blur:qe},i=0,r=0;r<t.length;r++){var o=t[r];We(o)?(0===i?n.offsetX=o:1===i?n.offsetY=o:n.blur=o,i++):n.color=ot(e,o)}return n})}},Mn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Dn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var n=Pn[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},Pn={matrix:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number}),n=t[0],i=t[1];t[2],t[3];var r=t[4],o=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var a=t[12],s=t[13];return t[14],t[15],16===t.length?[n,i,r,o,a,s]:null}},Fn={type:16,number:50,flags:4},On=[Fn,Fn],Ln={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(Ke);return 2!==n.length?On:[n[0],n[1]]}},Nn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(un||(un={}));for(var Rn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return un.BREAK_ALL;case"keep-all":return un.KEEP_ALL;case"normal":default:return un.NORMAL}}},Un={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(Ue(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Qn=function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")},Hn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Ue(t)?t.number:1}},jn={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Vn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Qe).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},zn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],i=[];return t.forEach(function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:i.push(n.join(" ")),n.length=0}}),n.length&&i.push(n.join(" ")),i.map(function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"})}},$n={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Gn={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Ue(t))return t.number;if(Qe(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Wn={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Qe).map(function(e){return e.value})}},Kn={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Yn=function(e,t){return 0!=(e&t)},qn={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t}},Xn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;for(var i=[],r=t.filter(Ve),o=0;o<r.length;o++){var a=r[o],s=r[o+1];if(20===a.type){var l=s&&Ue(s)?s.number:1;i.push({counter:a.value,increment:l})}}return i}},Jn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],i=t.filter(Ve),r=0;r<i.length;r++){var o=i[r],a=i[r+1];if(Qe(o)&&"none"!==o.value){var s=a&&Ue(a)?a.number:0;n.push({counter:o.value,reset:s})}}return n}},Zn={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Re).map(function(t){return Qn(e,t)})}},ei={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;var i=[],r=t.filter(He);if(r.length%2!=0)return null;for(var o=0;o<r.length;o+=2){var a=r[o].value,s=r[o+1].value;i.push({open:a,close:s})}return i}},ti=function(e,t,n){if(!e)return"";var i=e[Math.min(t,e.length-1)];return i?n?i.open:i.close:""},ni={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&je(t[0],"none")?[]:$e(t).map(function(t){for(var n={color:255,offsetX:qe,offsetY:qe,blur:qe,spread:qe,inset:!1},i=0,r=0;r<t.length;r++){var o=t[r];je(o,"inset")?n.inset=!0:We(o)?(0===i?n.offsetX=o:1===i?n.offsetY=o:2===i?n.blur=o:n.spread=o,i++):n.color=ot(e,o)}return n})}},ii={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[];return t.filter(Qe).forEach(function(e){switch(e.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2)}}),[0,1,2].forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),n}},ri={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},oi={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Re(t)?t.number:0}},ai=function(){function e(e,t){var n,i;this.animationDuration=ui(e,Zn,t.animationDuration),this.backgroundClip=ui(e,gt,t.backgroundClip),this.backgroundColor=ui(e,vt,t.backgroundColor),this.backgroundImage=ui(e,Tt,t.backgroundImage),this.backgroundOrigin=ui(e,Et,t.backgroundOrigin),this.backgroundPosition=ui(e,It,t.backgroundPosition),this.backgroundRepeat=ui(e,Mt,t.backgroundRepeat),this.backgroundSize=ui(e,Ft,t.backgroundSize),this.borderTopColor=ui(e,Nt,t.borderTopColor),this.borderRightColor=ui(e,Rt,t.borderRightColor),this.borderBottomColor=ui(e,Ut,t.borderBottomColor),this.borderLeftColor=ui(e,Qt,t.borderLeftColor),this.borderTopLeftRadius=ui(e,jt,t.borderTopLeftRadius),this.borderTopRightRadius=ui(e,Vt,t.borderTopRightRadius),this.borderBottomRightRadius=ui(e,zt,t.borderBottomRightRadius),this.borderBottomLeftRadius=ui(e,$t,t.borderBottomLeftRadius),this.borderTopStyle=ui(e,Wt,t.borderTopStyle),this.borderRightStyle=ui(e,Kt,t.borderRightStyle),this.borderBottomStyle=ui(e,Yt,t.borderBottomStyle),this.borderLeftStyle=ui(e,qt,t.borderLeftStyle),this.borderTopWidth=ui(e,Jt,t.borderTopWidth),this.borderRightWidth=ui(e,Zt,t.borderRightWidth),this.borderBottomWidth=ui(e,en,t.borderBottomWidth),this.borderLeftWidth=ui(e,tn,t.borderLeftWidth),this.boxShadow=ui(e,ni,t.boxShadow),this.color=ui(e,nn,t.color),this.direction=ui(e,rn,t.direction),this.display=ui(e,on,t.display),this.float=ui(e,sn,t.cssFloat),this.fontFamily=ui(e,zn,t.fontFamily),this.fontSize=ui(e,$n,t.fontSize),this.fontStyle=ui(e,Kn,t.fontStyle),this.fontVariant=ui(e,Wn,t.fontVariant),this.fontWeight=ui(e,Gn,t.fontWeight),this.letterSpacing=ui(e,ln,t.letterSpacing),this.lineBreak=ui(e,cn,t.lineBreak),this.lineHeight=ui(e,hn,t.lineHeight),this.listStyleImage=ui(e,fn,t.listStyleImage),this.listStylePosition=ui(e,pn,t.listStylePosition),this.listStyleType=ui(e,An,t.listStyleType),this.marginTop=ui(e,vn,t.marginTop),this.marginRight=ui(e,mn,t.marginRight),this.marginBottom=ui(e,yn,t.marginBottom),this.marginLeft=ui(e,_n,t.marginLeft),this.opacity=ui(e,Hn,t.opacity);var r=ui(e,bn,t.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0],this.overflowWrap=ui(e,wn,t.overflowWrap),this.paddingTop=ui(e,Cn,t.paddingTop),this.paddingRight=ui(e,Sn,t.paddingRight),this.paddingBottom=ui(e,kn,t.paddingBottom),this.paddingLeft=ui(e,Bn,t.paddingLeft),this.paintOrder=ui(e,ii,t.paintOrder),this.position=ui(e,En,t.position),this.textAlign=ui(e,Tn,t.textAlign),this.textDecorationColor=ui(e,jn,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=ui(e,Vn,null!==(i=t.textDecorationLine)&&void 0!==i?i:t.textDecoration),this.textShadow=ui(e,In,t.textShadow),this.textTransform=ui(e,Mn,t.textTransform),this.transform=ui(e,Dn,t.transform),this.transformOrigin=ui(e,Ln,t.transformOrigin),this.visibility=ui(e,Nn,t.visibility),this.webkitTextStrokeColor=ui(e,ri,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=ui(e,oi,t.webkitTextStrokeWidth),this.wordBreak=ui(e,Rn,t.wordBreak),this.zIndex=ui(e,Un,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return at(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return Yn(this.display,4)||Yn(this.display,33554432)||Yn(this.display,268435456)||Yn(this.display,536870912)||Yn(this.display,67108864)||Yn(this.display,134217728)},e}(),si=function(){return function(e,t){this.content=ui(e,qn,t.content),this.quotes=ui(e,ei,t.quotes)}}(),li=function(){return function(e,t){this.counterIncrement=ui(e,Xn,t.counterIncrement),this.counterReset=ui(e,Jn,t.counterReset)}}(),ui=function(e,t,n){var i=new Le,r=null!==n&&void 0!==n?n.toString():t.initialValue;i.write(r);var o=new Ne(i.read());switch(t.type){case 2:var a=o.parseComponentValue();return t.parse(e,Qe(a)?a.value:t.initialValue);case 0:return t.parse(e,o.parseComponentValue());case 1:return t.parse(e,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(t.format){case"angle":return tt(e,o.parseComponentValue());case"color":return ot(e,o.parseComponentValue());case"image":return St(e,o.parseComponentValue());case"length":var s=o.parseComponentValue();return We(s)?s:qe;case"length-percentage":var l=o.parseComponentValue();return Ke(l)?l:qe;case"time":return Qn(e,o.parseComponentValue())}}},ci=function(e,t){var n=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===n||t===n},hi=function(){return function(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,ci(t,3),this.styles=new ai(e,window.getComputedStyle(t,null)),Ar(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=s(this.context,t),ci(t,4)&&(this.flags|=16)}}(),di="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fi="undefined"==typeof Uint8Array?[]:new Uint8Array(256),pi=0;pi<di.length;pi++)fi[di.charCodeAt(pi)]=pi;for(var Ai=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},gi=function(){function e(e,t,n,i,r,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=i,this.index=r,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),vi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mi="undefined"==typeof Uint8Array?[]:new Uint8Array(256),yi=0;yi<vi.length;yi++)mi[vi.charCodeAt(yi)]=yi;var _i,bi=8,wi=9,xi=11,Ci=12,Si=function(e,t){var n,i,r,o=function(e){var t,n,i,r,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),c=Array.isArray(u)?u:new Uint8Array(u);for(t=0;t<s;t+=4)n=fi[e.charCodeAt(t)],i=fi[e.charCodeAt(t+1)],r=fi[e.charCodeAt(t+2)],o=fi[e.charCodeAt(t+3)],c[l++]=n<<2|i>>4,c[l++]=(15&i)<<4|r>>2,c[l++]=(3&r)<<6|63&o;return u}(e),a=Array.isArray(o)?function(e){for(var t=e.length,n=[],i=0;i<t;i+=4)n.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return n}(o):new Uint32Array(o),s=Array.isArray(o)?function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n.push(e[i+1]<<8|e[i]);return n}(o):new Uint16Array(o),l=Ai(s,12,a[4]/2),u=2===a[5]?Ai(s,(24+a[4])/2):(n=a,i=Math.ceil((24+a[4])/4),n.slice?n.slice(i,r):new Uint32Array(Array.prototype.slice.call(n,i,r)));return new gi(a[0],a[1],a[2],a[3],l,u)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),ki=function(e){return Si.get(e)},Bi=function(e,t,n){var i=n-2,r=t[i],o=t[n-1],a=t[n];if(2===o&&3===a)return"×";if(2===o||3===o||4===o)return"÷";if(2===a||3===a||4===a)return"÷";if(o===bi&&-1!==[bi,wi,xi,Ci].indexOf(a))return"×";if(!(o!==xi&&o!==wi||a!==wi&&10!==a))return"×";if((o===Ci||10===o)&&10===a)return"×";if(13===a||5===a)return"×";if(7===a)return"×";if(1===o)return"×";if(13===o&&14===a){for(;5===r;)r=t[--i];if(14===r)return"×"}if(15===o&&15===a){for(var s=0;15===r;)s++,r=t[--i];if(s%2==0)return"×"}return"÷"},Ti=function(e){var t=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&r)<<10)+(1023&o)+65536):(t.push(r),n--)}else t.push(r)}return t}(e),n=t.length,i=0,r=0,o=t.map(ki);return{next:function(){if(i>=n)return{done:!0,value:null};for(var e="×";i<n&&"×"===(e=Bi(0,o,++i)););if("×"!==e||i===n){var a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var i=[],r=-1,o="";++r<n;){var a=e[r];a<=65535?i.push(a):(a-=65536,i.push(55296+(a>>10),a%1024+56320)),(r+1===n||i.length>16384)&&(o+=String.fromCharCode.apply(String,i),i.length=0)}return o}.apply(null,t.slice(r,i));return r=i,{value:a,done:!1}}return{done:!0,value:null}}}},Ei=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Ii=function(e,t,n,i,r){var o="http://www.w3.org/2000/svg",a=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",i.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(r),a},Mi=function(e){return new Promise(function(t,n){var i=new Image;i.onload=function(){return t(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},Di={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var i=t.getBoundingClientRect(),r=Math.round(i.height);if(e.body.removeChild(n),123===r)return!0}}return!1}(document);return Object.defineProperty(Di,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Di.SUPPORT_RANGE_BOUNDS&&function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var i=t.firstChild,r=0,o={},a=l(i.data).map(function(e){return u(e)}).every(function(e,t){n.setStart(i,r),n.setEnd(i,r+e.length);var a=n.getBoundingClientRect();r+=e.length;var s=a.x>o.x||a.y>o.y;return o=a,0===t||s});return e.body.removeChild(t),a}(document);return Object.defineProperty(Di,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,n=e.createElement("canvas"),i=n.getContext("2d");if(!i)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(t,0,0),n.toDataURL()}catch(e){return!1}return!0}(document);return Object.defineProperty(Di,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas");t.width=100,t.height=100;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,100,100);var i=new Image,r=t.toDataURL();i.src=r;var o=Ii(100,100,0,0,i);return n.fillStyle="red",n.fillRect(0,0,100,100),Mi(o).then(function(t){n.drawImage(t,0,0);var i=n.getImageData(0,0,100,100).data;n.fillStyle="red",n.fillRect(0,0,100,100);var o=e.createElement("div");return o.style.backgroundImage="url("+r+")",o.style.height="100px",Ei(i)?Mi(Ii(100,100,0,0,o)):Promise.reject(!1)}).then(function(e){return n.drawImage(e,0,0),Ei(n.getImageData(0,0,100,100).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Di,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(Di,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Di,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Di,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Di,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Pi=function(){return function(e,t){this.text=e,this.bounds=t}}(),Fi=function(e,t,n,i){var r=[],o=0;return Ri(t,n).forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Di.SUPPORT_RANGE_BOUNDS){var s=Li(i,o,t.length).getClientRects();if(s.length>1){var l=0;Ni(t).forEach(function(t){r.push(new Pi(t,a.fromDOMRectList(e,Li(i,l+o,t.length).getClientRects()))),l+=t.length})}else r.push(new Pi(t,a.fromDOMRectList(e,s)))}else{var u=i.splitText(t.length);r.push(new Pi(t,Oi(e,i))),i=u}else Di.SUPPORT_RANGE_BOUNDS||(i=i.splitText(t.length));o+=t.length}),r},Oi=function(e,t){var n=t.ownerDocument;if(n){var i=n.createElement("html2canvaswrapper");i.appendChild(t.cloneNode(!0));var r=t.parentNode;if(r){r.replaceChild(i,t);var o=s(e,i);return i.firstChild&&r.replaceChild(i.firstChild,i),o}}return a.EMPTY},Li=function(e,t,n){var i=e.ownerDocument;if(!i)throw new Error("Node has no owner document");var r=i.createRange();return r.setStart(e,t),r.setEnd(e,t+n),r},Ni=function(e){if(Di.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(e){return e.segment})}return function(e){for(var t,n=Ti(e),i=[];!(t=n.next()).done;)t.value&&i.push(t.value.slice());return i}(e)},Ri=function(e,t){return 0!==t.letterSpacing?Ni(e):function(e,t){if(Di.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map(function(e){return e.segment})}return Qi(e,t)}(e,t)},Ui=[32,160,4961,65792,65793,4153,4241],Qi=function(e,t){for(var n,i=function(e,t){var n=l(e),i=re(n,t),r=i[0],o=i[1],a=i[2],s=n.length,u=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};for(var e="×";c<s&&"×"===(e=ie(n,o,r,++c,a)););if("×"!==e||c===s){var t=new oe(n,e,u,c);return u=c,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),r=[],o=function(){if(n.value){var e=n.value.slice(),t="";l(e).forEach(function(e){-1===Ui.indexOf(e)?t+=u(e):(t.length&&r.push(t),r.push(u(e)),t="")}),t.length&&r.push(t)}};!(n=i.next()).done;)o();return r},Hi=function(){return function(e,t,n){this.text=ji(t.data,n.textTransform),this.textBounds=Fi(e,this.text,n,t)}}(),ji=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(Vi,zi);case 2:return e.toUpperCase();default:return e}},Vi=/(^|\s|:|-|\(|\))([a-z])/g,zi=function(e,t,n){return e.length>0?t+n.toUpperCase():e},$i=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.src=n.currentSrc||n.src,i.intrinsicWidth=n.naturalWidth,i.intrinsicHeight=n.naturalHeight,i.context.cache.addImage(i.src),i}return t(n,e),n}(hi),Gi=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.canvas=n,i.intrinsicWidth=n.width,i.intrinsicHeight=n.height,i}return t(n,e),n}(hi),Wi=function(e){function n(t,n){var i=e.call(this,t,n)||this,r=new XMLSerializer,o=s(t,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(n)),i.intrinsicWidth=n.width.baseVal.value,i.intrinsicHeight=n.height.baseVal.value,i.context.cache.addImage(i.svg),i}return t(n,e),n}(hi),Ki=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.value=n.value,i}return t(n,e),n}(hi),Yi=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.start=n.start,i.reversed="boolean"==typeof n.reversed&&!0===n.reversed,i}return t(n,e),n}(hi),qi=[{type:15,flags:0,unit:"px",number:3}],Xi=[{type:16,flags:0,number:50}],Ji=function(e){return e.width>e.height?new a(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new a(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},Zi=function(e){var t=e.type===nr?new Array(e.value.length+1).join("•"):e.value;return 0===t.length?e.placeholder||"":t},er="checkbox",tr="radio",nr="password",ir=function(e){function n(t,n){var i=e.call(this,t,n)||this;switch(i.type=n.type.toLowerCase(),i.checked=n.checked,i.value=Zi(n),i.type!==er&&i.type!==tr||(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=Ji(i.bounds)),i.type){case er:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=qi;break;case tr:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=Xi}return i}return t(n,e),n}(hi),rr=function(e){function n(t,n){var i=e.call(this,t,n)||this,r=n.options[n.selectedIndex||0];return i.value=r&&r.text||"",i}return t(n,e),n}(hi),or=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.value=n.value,i}return t(n,e),n}(hi),ar=function(e){function n(t,n){var i=e.call(this,t,n)||this;i.src=n.src,i.width=parseInt(n.width,10)||0,i.height=parseInt(n.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){i.tree=cr(t,n.contentWindow.document.documentElement);var r=n.contentWindow.document.documentElement?pt(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):At.TRANSPARENT,o=n.contentWindow.document.body?pt(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):At.TRANSPARENT;i.backgroundColor=at(r)?at(o)?i.styles.backgroundColor:o:r}}catch(e){}return i}return t(n,e),n}(hi),sr=["OL","UL","MENU"],lr=function(e,t,n,i){for(var r=t.firstChild,o=void 0;r;r=o)if(o=r.nextSibling,fr(r)&&r.data.trim().length>0)n.textNodes.push(new Hi(e,r,n.styles));else if(pr(r))if(Er(r)&&r.assignedNodes)r.assignedNodes().forEach(function(t){return lr(e,t,n,i)});else{var a=ur(e,r);a.styles.isVisible()&&(hr(r,a,i)?a.flags|=4:dr(a.styles)&&(a.flags|=2),-1!==sr.indexOf(r.tagName)&&(a.flags|=8),n.elements.push(a),r.slot,r.shadowRoot?lr(e,r.shadowRoot,a,i):Br(r)||_r(r)||Tr(r)||lr(e,r,a,i))}},ur=function(e,t){return Cr(t)?new $i(e,t):wr(t)?new Gi(e,t):_r(t)?new Wi(e,t):vr(t)?new Ki(e,t):mr(t)?new Yi(e,t):yr(t)?new ir(e,t):Tr(t)?new rr(e,t):Br(t)?new or(e,t):Sr(t)?new ar(e,t):new hi(e,t)},cr=function(e,t){var n=ur(e,t);return n.flags|=4,lr(e,t,n,n),n},hr=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||br(e)&&n.styles.isTransparent()},dr=function(e){return e.isPositioned()||e.isFloating()},fr=function(e){return e.nodeType===Node.TEXT_NODE},pr=function(e){return e.nodeType===Node.ELEMENT_NODE},Ar=function(e){return pr(e)&&void 0!==e.style&&!gr(e)},gr=function(e){return"object"==typeof e.className},vr=function(e){return"LI"===e.tagName},mr=function(e){return"OL"===e.tagName},yr=function(e){return"INPUT"===e.tagName},_r=function(e){return"svg"===e.tagName},br=function(e){return"BODY"===e.tagName},wr=function(e){return"CANVAS"===e.tagName},xr=function(e){return"VIDEO"===e.tagName},Cr=function(e){return"IMG"===e.tagName},Sr=function(e){return"IFRAME"===e.tagName},kr=function(e){return"STYLE"===e.tagName},Br=function(e){return"TEXTAREA"===e.tagName},Tr=function(e){return"SELECT"===e.tagName},Er=function(e){return"SLOT"===e.tagName},Ir=function(e){return e.tagName.indexOf("-")>0},Mr=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,i=e.counterReset,r=!0;null!==n&&n.forEach(function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(r=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)});var o=[];return r&&i.forEach(function(e){var n=t.counters[e.counter];o.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)}),o},e}(),Dr={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Pr={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Fr={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Or={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Lr=function(e,t,n,i,r,o){return e<t||e>n?Hr(e,r,o.length>0):i.integers.reduce(function(t,n,r){for(;e>=n;)e-=n,t+=i.values[r];return t},"")+o},Nr=function(e,t,n,i){var r="";do{n||e--,r=i(e)+r,e/=t}while(e*t>=t);return r},Rr=function(e,t,n,i,r){var o=n-t+1;return(e<0?"-":"")+(Nr(Math.abs(e),o,i,function(e){return u(Math.floor(e%o)+t)})+r)},Ur=function(e,t,n){void 0===n&&(n=". ");var i=t.length;return Nr(Math.abs(e),i,!1,function(e){return t[Math.floor(e%i)]})+n},Qr=function(e,t,n,i,r,o){if(e<-9999||e>9999)return Hr(e,4,r.length>0);var a=Math.abs(e),s=r;if(0===a)return t[0]+s;for(var l=0;a>0&&l<=4;l++){var u=a%10;0===u&&Yn(o,1)&&""!==s?s=t[u]+s:u>1||1===u&&0===l||1===u&&1===l&&Yn(o,2)||1===u&&1===l&&Yn(o,4)&&e>100||1===u&&l>1&&Yn(o,8)?s=t[u]+(l>0?n[l-1]:"")+s:1===u&&l>0&&(s=n[l-1]+s),a=Math.floor(a/10)}return(e<0?i:"")+s},Hr=function(e,t,n){var i=n?". ":"",r=n?"、":"",o=n?", ":"",a=n?" ":"";switch(t){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=Rr(e,48,57,!0,i);return s.length<4?"0"+s:s;case 4:return Ur(e,"〇一二三四五六七八九",r);case 6:return Lr(e,1,3999,Dr,3,i).toLowerCase();case 7:return Lr(e,1,3999,Dr,3,i);case 8:return Rr(e,945,969,!1,i);case 9:return Rr(e,97,122,!1,i);case 10:return Rr(e,65,90,!1,i);case 11:return Rr(e,1632,1641,!0,i);case 12:case 49:return Lr(e,1,9999,Pr,3,i);case 35:return Lr(e,1,9999,Pr,3,i).toLowerCase();case 13:return Rr(e,2534,2543,!0,i);case 14:case 30:return Rr(e,6112,6121,!0,i);case 15:return Ur(e,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return Ur(e,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Qr(e,"零一二三四五六七八九","十百千萬","負",r,14);case 47:return Qr(e,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",r,15);case 42:return Qr(e,"零一二三四五六七八九","十百千萬","负",r,14);case 41:return Qr(e,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",r,15);case 26:return Qr(e,"〇一二三四五六七八九","十百千万","マイナス",r,0);case 25:return Qr(e,"零壱弐参四伍六七八九","拾百千万","マイナス",r,7);case 31:return Qr(e,"영일이삼사오육칠팔구","십백천만","마이너스",o,7);case 33:return Qr(e,"零一二三四五六七八九","十百千萬","마이너스",o,0);case 32:return Qr(e,"零壹貳參四五六七八九","拾百千","마이너스",o,7);case 18:return Rr(e,2406,2415,!0,i);case 20:return Lr(e,1,19999,Or,3,i);case 21:return Rr(e,2790,2799,!0,i);case 22:return Rr(e,2662,2671,!0,i);case 22:return Lr(e,1,10999,Fr,3,i);case 23:return Ur(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ur(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Rr(e,3302,3311,!0,i);case 28:return Ur(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return Ur(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return Rr(e,3792,3801,!0,i);case 37:return Rr(e,6160,6169,!0,i);case 38:return Rr(e,4160,4169,!0,i);case 39:return Rr(e,2918,2927,!0,i);case 40:return Rr(e,1776,1785,!0,i);case 43:return Rr(e,3046,3055,!0,i);case 44:return Rr(e,3174,3183,!0,i);case 45:return Rr(e,3664,3673,!0,i);case 46:return Rr(e,3872,3881,!0,i);case 3:default:return Rr(e,48,57,!0,i)}},jr=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new Mr,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,o=zr(e,t);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,l=o.contentWindow,u=l.document,c=Wr(o).then(function(){return i(n,void 0,void 0,function(){var e,n;return r(this,function(i){switch(i.label){case 0:return this.scrolledElements.forEach(Jr),l&&(l.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.scrollY===t.top&&l.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:u.fonts&&u.fonts.ready?[4,u.fonts.ready]:[3,2];case 1:i.sent(),i.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Gr(u)]:[3,4];case 3:i.sent(),i.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(u,n)}).then(function(){return o})]:[2,o]}})})});return u.open(),u.write(qr(document.doctype)+"<html></html>"),Xr(this.referenceElement.ownerDocument,a,s),u.replaceChild(u.adoptNode(this.documentElement),u.documentElement),u.close(),c},e.prototype.createElementClone=function(e){if(ci(e,2),wr(e))return this.createCanvasClone(e);if(xr(e))return this.createVideoClone(e);if(kr(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Cr(t)&&(Cr(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Ir(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return Yr(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),i=e.cloneNode(!1);return i.textContent=n,i}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var i=e.cloneNode(!1);try{i.width=e.width,i.height=e.height;var r=e.getContext("2d"),o=i.getContext("2d");if(o)if(!this.options.allowTaint&&r)o.putImageData(r.getImageData(0,0,e.width,e.height),0,0);else{var a=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(a){var s=a.getContextAttributes();!1===(null===s||void 0===s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return i}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return i},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",e)}var i=e.ownerDocument.createElement("canvas");return i.width=e.offsetWidth,i.height=e.offsetHeight,i},e.prototype.appendChildNode=function(e,t,n){pr(t)&&("SCRIPT"===t.tagName||t.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&pr(t)&&kr(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var i=this,r=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;r;r=r.nextSibling)if(pr(r)&&Er(r)&&"function"==typeof r.assignedNodes){var o=r.assignedNodes();o.length&&o.forEach(function(e){return i.appendChildNode(t,e,n)})}else this.appendChildNode(t,r,n)},e.prototype.cloneNode=function(e,t){if(fr(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&pr(e)&&(Ar(e)||gr(e))){var i=this.createElementClone(e);i.style.transitionProperty="none";var r=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),a=n.getComputedStyle(e,":after");this.referenceElement===e&&Ar(i)&&(this.clonedReferenceElement=i),br(i)&&to(i);var s=this.counters.parse(new li(this.context,r)),l=this.resolvePseudoContent(e,i,o,_i.BEFORE);Ir(e)&&(t=!0),xr(e)||this.cloneChildNodes(e,i,t),l&&i.insertBefore(l,i.firstChild);var u=this.resolvePseudoContent(e,i,a,_i.AFTER);return u&&i.appendChild(u),this.counters.pop(s),(r&&(this.options.copyStyles||gr(e))&&!Sr(e)||t)&&Yr(r,i),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([i,e.scrollLeft,e.scrollTop]),(Br(e)||Tr(e))&&(Br(i)||Tr(i))&&(i.value=e.value),i}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,i){var r=this;if(n){var o=n.content,a=t.ownerDocument;if(a&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new li(this.context,n));var s=new si(this.context,n),l=a.createElement("html2canvaspseudoelement");Yr(n,l),s.content.forEach(function(t){if(0===t.type)l.appendChild(a.createTextNode(t.value));else if(22===t.type){var n=a.createElement("img");n.src=t.value,n.style.opacity="1",l.appendChild(n)}else if(18===t.type){if("attr"===t.name){var i=t.values.filter(Qe);i.length&&l.appendChild(a.createTextNode(e.getAttribute(i[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(ze),u=o[0],c=o[1];if(u&&Qe(u)){var h=r.counters.getCounterValue(u.value),d=c&&Qe(c)?An.parse(r.context,c.value):3;l.appendChild(a.createTextNode(Hr(h,d,!1)))}}else if("counters"===t.name){var f=t.values.filter(ze),p=(u=f[0],f[1]);c=f[2];if(u&&Qe(u)){var A=r.counters.getCounterValues(u.value),g=c&&Qe(c)?An.parse(r.context,c.value):3,v=p&&0===p.type?p.value:"",m=A.map(function(e){return Hr(e,g,!1)}).join(v);l.appendChild(a.createTextNode(m))}}}else if(20===t.type)switch(t.value){case"open-quote":l.appendChild(a.createTextNode(ti(s.quotes,r.quoteDepth++,!0)));break;case"close-quote":l.appendChild(a.createTextNode(ti(s.quotes,--r.quoteDepth,!1)));break;default:l.appendChild(a.createTextNode(t.value))}}),l.className=Zr+" "+eo;var u=i===_i.BEFORE?" "+Zr:" "+eo;return gr(t)?t.className.baseValue+=u:t.className+=u,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(_i||(_i={}));var Vr,zr=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute("data-html2canvas-ignore","true"),e.body.appendChild(n),n},$r=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},Gr=function(e){return Promise.all([].slice.call(e.images,0).map($r))},Wr=function(e){return new Promise(function(t,n){var i=e.contentWindow;if(!i)return n("No window assigned for iframe");var r=i.document;i.onload=e.onload=function(){i.onload=e.onload=null;var n=setInterval(function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(n),t(e))},50)}})},Kr=["all","d","content"],Yr=function(e,t){for(var n=e.length-1;n>=0;n--){var i=e.item(n);-1===Kr.indexOf(i)&&t.style.setProperty(i,e.getPropertyValue(i))}return t},qr=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},Xr=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},Jr=function(e){var t=e[0],n=e[1],i=e[2];t.scrollLeft=n,t.scrollTop=i},Zr="___html2canvas___pseudoelement_before",eo="___html2canvas___pseudoelement_after",to=function(e){no(e,"."+Zr+':before{\n content: "" !important;\n display: none !important;\n}\n .'+eo+':after{\n content: "" !important;\n display: none !important;\n}')},no=function(e,t){var n=e.ownerDocument;if(n){var i=n.createElement("style");i.textContent=t,e.appendChild(i)}},io=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),ro=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:ho(e)||lo(e)?((this._cache[e]=this.loadImage(e)).catch(function(){}),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return i(this,void 0,void 0,function(){var t,n,i,o,a=this;return r(this,function(r){switch(r.label){case 0:return t=io.isSameOrigin(e),n=!uo(e)&&!0===this._options.useCORS&&Di.SUPPORT_CORS_IMAGES&&!t,i=!uo(e)&&!t&&!ho(e)&&"string"==typeof this._options.proxy&&Di.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||uo(e)||ho(e)||i||n?(o=e,i?[4,this.proxy(o)]:[3,2]):[2];case 1:o=r.sent(),r.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var i=new Image;i.onload=function(){return e(i)},i.onerror=t,(co(o)||n)&&(i.crossOrigin="anonymous"),i.src=o,!0===i.complete&&setTimeout(function(){return e(i)},500),a._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,r.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=e.substring(0,256);return new Promise(function(r,o){var a=Di.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===a)r(s.response);else{var e=new FileReader;e.addEventListener("load",function(){return r(e.result)},!1),e.addEventListener("error",function(e){return o(e)},!1),e.readAsDataURL(s.response)}else o("Failed to proxy resource "+i+" with status code "+s.status)},s.onerror=o;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+a),"text"!==a&&s instanceof XMLHttpRequest&&(s.responseType=a),t._options.imageTimeout){var u=t._options.imageTimeout;s.timeout=u,s.ontimeout=function(){return o("Timed out ("+u+"ms) proxying "+i)}}s.send()})},e}(),oo=/^data:image\/svg\+xml/i,ao=/^data:image\/.*;base64,/i,so=/^data:image\/.*/i,lo=function(e){return Di.SUPPORT_SVG_DRAWING||!fo(e)},uo=function(e){return so.test(e)},co=function(e){return ao.test(e)},ho=function(e){return"blob"===e.substr(0,4)},fo=function(e){return"svg"===e.substr(-3).toLowerCase()||oo.test(e)},po=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),Ao=function(e,t,n){return new po(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},go=function(){function e(e,t,n,i){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=i}return e.prototype.subdivide=function(t,n){var i=Ao(this.start,this.startControl,t),r=Ao(this.startControl,this.endControl,t),o=Ao(this.endControl,this.end,t),a=Ao(i,r,t),s=Ao(r,o,t),l=Ao(a,s,t);return n?new e(this.start,i,a,l):new e(l,s,o,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),vo=function(e){return 1===e.type},mo=function(){return function(e){var t=e.styles,n=e.bounds,i=Ze(t.borderTopLeftRadius,n.width,n.height),r=i[0],o=i[1],a=Ze(t.borderTopRightRadius,n.width,n.height),s=a[0],l=a[1],u=Ze(t.borderBottomRightRadius,n.width,n.height),c=u[0],h=u[1],d=Ze(t.borderBottomLeftRadius,n.width,n.height),f=d[0],p=d[1],A=[];A.push((r+s)/n.width),A.push((f+c)/n.width),A.push((o+p)/n.height),A.push((l+h)/n.height);var g=Math.max.apply(Math,A);g>1&&(r/=g,o/=g,s/=g,l/=g,c/=g,h/=g,f/=g,p/=g);var v=n.width-s,m=n.height-h,y=n.width-c,_=n.height-p,b=t.borderTopWidth,w=t.borderRightWidth,x=t.borderBottomWidth,C=t.borderLeftWidth,S=et(t.paddingTop,e.bounds.width),k=et(t.paddingRight,e.bounds.width),B=et(t.paddingBottom,e.bounds.width),T=et(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=r>0||o>0?yo(n.left+C/3,n.top+b/3,r-C/3,o-b/3,Vr.TOP_LEFT):new po(n.left+C/3,n.top+b/3),this.topRightBorderDoubleOuterBox=r>0||o>0?yo(n.left+v,n.top+b/3,s-w/3,l-b/3,Vr.TOP_RIGHT):new po(n.left+n.width-w/3,n.top+b/3),this.bottomRightBorderDoubleOuterBox=c>0||h>0?yo(n.left+y,n.top+m,c-w/3,h-x/3,Vr.BOTTOM_RIGHT):new po(n.left+n.width-w/3,n.top+n.height-x/3),this.bottomLeftBorderDoubleOuterBox=f>0||p>0?yo(n.left+C/3,n.top+_,f-C/3,p-x/3,Vr.BOTTOM_LEFT):new po(n.left+C/3,n.top+n.height-x/3),this.topLeftBorderDoubleInnerBox=r>0||o>0?yo(n.left+2*C/3,n.top+2*b/3,r-2*C/3,o-2*b/3,Vr.TOP_LEFT):new po(n.left+2*C/3,n.top+2*b/3),this.topRightBorderDoubleInnerBox=r>0||o>0?yo(n.left+v,n.top+2*b/3,s-2*w/3,l-2*b/3,Vr.TOP_RIGHT):new po(n.left+n.width-2*w/3,n.top+2*b/3),this.bottomRightBorderDoubleInnerBox=c>0||h>0?yo(n.left+y,n.top+m,c-2*w/3,h-2*x/3,Vr.BOTTOM_RIGHT):new po(n.left+n.width-2*w/3,n.top+n.height-2*x/3),this.bottomLeftBorderDoubleInnerBox=f>0||p>0?yo(n.left+2*C/3,n.top+_,f-2*C/3,p-2*x/3,Vr.BOTTOM_LEFT):new po(n.left+2*C/3,n.top+n.height-2*x/3),this.topLeftBorderStroke=r>0||o>0?yo(n.left+C/2,n.top+b/2,r-C/2,o-b/2,Vr.TOP_LEFT):new po(n.left+C/2,n.top+b/2),this.topRightBorderStroke=r>0||o>0?yo(n.left+v,n.top+b/2,s-w/2,l-b/2,Vr.TOP_RIGHT):new po(n.left+n.width-w/2,n.top+b/2),this.bottomRightBorderStroke=c>0||h>0?yo(n.left+y,n.top+m,c-w/2,h-x/2,Vr.BOTTOM_RIGHT):new po(n.left+n.width-w/2,n.top+n.height-x/2),this.bottomLeftBorderStroke=f>0||p>0?yo(n.left+C/2,n.top+_,f-C/2,p-x/2,Vr.BOTTOM_LEFT):new po(n.left+C/2,n.top+n.height-x/2),this.topLeftBorderBox=r>0||o>0?yo(n.left,n.top,r,o,Vr.TOP_LEFT):new po(n.left,n.top),this.topRightBorderBox=s>0||l>0?yo(n.left+v,n.top,s,l,Vr.TOP_RIGHT):new po(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||h>0?yo(n.left+y,n.top+m,c,h,Vr.BOTTOM_RIGHT):new po(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=f>0||p>0?yo(n.left,n.top+_,f,p,Vr.BOTTOM_LEFT):new po(n.left,n.top+n.height),this.topLeftPaddingBox=r>0||o>0?yo(n.left+C,n.top+b,Math.max(0,r-C),Math.max(0,o-b),Vr.TOP_LEFT):new po(n.left+C,n.top+b),this.topRightPaddingBox=s>0||l>0?yo(n.left+Math.min(v,n.width-w),n.top+b,v>n.width+w?0:Math.max(0,s-w),Math.max(0,l-b),Vr.TOP_RIGHT):new po(n.left+n.width-w,n.top+b),this.bottomRightPaddingBox=c>0||h>0?yo(n.left+Math.min(y,n.width-C),n.top+Math.min(m,n.height-x),Math.max(0,c-w),Math.max(0,h-x),Vr.BOTTOM_RIGHT):new po(n.left+n.width-w,n.top+n.height-x),this.bottomLeftPaddingBox=f>0||p>0?yo(n.left+C,n.top+Math.min(_,n.height-x),Math.max(0,f-C),Math.max(0,p-x),Vr.BOTTOM_LEFT):new po(n.left+C,n.top+n.height-x),this.topLeftContentBox=r>0||o>0?yo(n.left+C+T,n.top+b+S,Math.max(0,r-(C+T)),Math.max(0,o-(b+S)),Vr.TOP_LEFT):new po(n.left+C+T,n.top+b+S),this.topRightContentBox=s>0||l>0?yo(n.left+Math.min(v,n.width+C+T),n.top+b+S,v>n.width+C+T?0:s-C+T,l-(b+S),Vr.TOP_RIGHT):new po(n.left+n.width-(w+k),n.top+b+S),this.bottomRightContentBox=c>0||h>0?yo(n.left+Math.min(y,n.width-(C+T)),n.top+Math.min(m,n.height+b+S),Math.max(0,c-(w+k)),h-(x+B),Vr.BOTTOM_RIGHT):new po(n.left+n.width-(w+k),n.top+n.height-(x+B)),this.bottomLeftContentBox=f>0||p>0?yo(n.left+C+T,n.top+_,Math.max(0,f-(C+T)),p-(x+B),Vr.BOTTOM_LEFT):new po(n.left+C+T,n.top+n.height-(x+B))}}();!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Vr||(Vr={}));var yo=function(e,t,n,i,r){var o=(Math.sqrt(2)-1)/3*4,a=n*o,s=i*o,l=e+n,u=t+i;switch(r){case Vr.TOP_LEFT:return new go(new po(e,u),new po(e,u-s),new po(l-a,t),new po(l,t));case Vr.TOP_RIGHT:return new go(new po(e,t),new po(e+a,t),new po(l,u-s),new po(l,u));case Vr.BOTTOM_RIGHT:return new go(new po(l,t),new po(l,t+s),new po(e+a,u),new po(e,u));case Vr.BOTTOM_LEFT:default:return new go(new po(l,u),new po(l-a,u),new po(e,t+s),new po(e,t))}},_o=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},bo=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},wo=function(){return function(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}}(),xo=function(){return function(e,t){this.path=e,this.target=t,this.type=1}}(),Co=function(){return function(e){this.opacity=e,this.type=2,this.target=6}}(),So=function(e){return 1===e.type},ko=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},Bo=function(){return function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}(),To=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new mo(this.container),this.container.styles.opacity<1&&this.effects.push(new Co(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,r=this.container.styles.transform;this.effects.push(new wo(n,i,r))}if(0!==this.container.styles.overflowX){var o=_o(this.curves),a=bo(this.curves);ko(o,a)?this.effects.push(new xo(o,6)):(this.effects.push(new xo(o,2)),this.effects.push(new xo(a,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,i=this.effects.slice(0);n;){var r=n.effects.filter(function(e){return!So(e)});if(t||0!==n.container.styles.position||!n.parent){if(i.unshift.apply(i,r),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var o=_o(n.curves),a=bo(n.curves);ko(o,a)||i.unshift(new xo(a,6))}}else i.unshift.apply(i,r);n=n.parent}return i.filter(function(t){return Yn(t.target,e)})},e}(),Eo=function(e,t,n,i){e.container.elements.forEach(function(r){var o=Yn(r.flags,4),a=Yn(r.flags,2),s=new To(r,e);Yn(r.styles.display,2048)&&i.push(s);var l=Yn(r.flags,8)?[]:i;if(o||a){var u=o||r.styles.isPositioned()?n:t,c=new Bo(s);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var h=r.styles.zIndex.order;if(h<0){var d=0;u.negativeZIndex.some(function(e,t){return h>e.element.container.styles.zIndex.order?(d=t,!1):d>0}),u.negativeZIndex.splice(d,0,c)}else if(h>0){var f=0;u.positiveZIndex.some(function(e,t){return h>=e.element.container.styles.zIndex.order?(f=t+1,!1):f>0}),u.positiveZIndex.splice(f,0,c)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else r.styles.isFloating()?u.nonPositionedFloats.push(c):u.nonPositionedInlineLevel.push(c);Eo(s,c,o?c:n,l)}else r.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),Eo(s,t,n,l);Yn(r.flags,8)&&Io(r,l)})},Io=function(e,t){for(var n=e instanceof Yi?e.start:1,i=e instanceof Yi&&e.reversed,r=0;r<t.length;r++){var o=t[r];o.container instanceof Ki&&"number"==typeof o.container.value&&0!==o.container.value&&(n=o.container.value),o.listValue=Hr(n,o.container.styles.listStyleType,!0),n+=i?-1:1}},Mo=function(e,t){switch(t){case 0:return Po(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Po(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Po(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Po(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Do=function(e,t){var n=[];return vo(e)?n.push(e.subdivide(.5,!1)):n.push(e),vo(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Po=function(e,t,n,i){var r=[];return vo(e)?r.push(e.subdivide(.5,!1)):r.push(e),vo(n)?r.push(n.subdivide(.5,!0)):r.push(n),vo(i)?r.push(i.subdivide(.5,!0).reverse()):r.push(i),vo(t)?r.push(t.subdivide(.5,!1).reverse()):r.push(t),r},Fo=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Oo=function(e){var t=e.styles,n=e.bounds,i=et(t.paddingLeft,n.width),r=et(t.paddingRight,n.width),o=et(t.paddingTop,n.width),a=et(t.paddingBottom,n.width);return n.add(i+t.borderLeftWidth,o+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+i+r),-(t.borderTopWidth+t.borderBottomWidth+o+a))},Lo=function(e,t,n){var i,r,o=(i=Qo(e.styles.backgroundOrigin,t),r=e,0===i?r.bounds:2===i?Oo(r):Fo(r)),a=function(e,t){return 0===e?t.bounds:2===e?Oo(t):Fo(t)}(Qo(e.styles.backgroundClip,t),e),s=Uo(Qo(e.styles.backgroundSize,t),n,o),l=s[0],u=s[1],c=Ze(Qo(e.styles.backgroundPosition,t),o.width-l,o.height-u);return[Ho(Qo(e.styles.backgroundRepeat,t),c,s,o,a),Math.round(o.left+c[0]),Math.round(o.top+c[1]),l,u]},No=function(e){return Qe(e)&&e.value===kt.AUTO},Ro=function(e){return"number"==typeof e},Uo=function(e,t,n){var i=t[0],r=t[1],o=t[2],a=e[0],s=e[1];if(!a)return[0,0];if(Ke(a)&&s&&Ke(s))return[et(a,n.width),et(s,n.height)];var l=Ro(o);if(Qe(a)&&(a.value===kt.CONTAIN||a.value===kt.COVER))return Ro(o)?n.width/n.height<o!=(a.value===kt.COVER)?[n.width,n.width/o]:[n.height*o,n.height]:[n.width,n.height];var u=Ro(i),c=Ro(r),h=u||c;if(No(a)&&(!s||No(s)))return u&&c?[i,r]:l||h?h&&l?[u?i:r*o,c?r:i/o]:[u?i:n.width,c?r:n.height]:[n.width,n.height];if(l){var d=0,f=0;return Ke(a)?d=et(a,n.width):Ke(s)&&(f=et(s,n.height)),No(a)?d=f*o:s&&!No(s)||(f=d/o),[d,f]}var p=null,A=null;if(Ke(a)?p=et(a,n.width):s&&Ke(s)&&(A=et(s,n.height)),null===p||s&&!No(s)||(A=u&&c?p/i*r:n.height),null!==A&&No(a)&&(p=u&&c?A/r*i:n.width),null!==p&&null!==A)return[p,A];throw new Error("Unable to calculate background-size for element")},Qo=function(e,t){var n=e[t];return void 0===n?e[0]:n},Ho=function(e,t,n,i,r){var o=t[0],a=t[1],s=n[0],l=n[1];switch(e){case 2:return[new po(Math.round(i.left),Math.round(i.top+a)),new po(Math.round(i.left+i.width),Math.round(i.top+a)),new po(Math.round(i.left+i.width),Math.round(l+i.top+a)),new po(Math.round(i.left),Math.round(l+i.top+a))];case 3:return[new po(Math.round(i.left+o),Math.round(i.top)),new po(Math.round(i.left+o+s),Math.round(i.top)),new po(Math.round(i.left+o+s),Math.round(i.height+i.top)),new po(Math.round(i.left+o),Math.round(i.height+i.top))];case 1:return[new po(Math.round(i.left+o),Math.round(i.top+a)),new po(Math.round(i.left+o+s),Math.round(i.top+a)),new po(Math.round(i.left+o+s),Math.round(i.top+a+l)),new po(Math.round(i.left+o),Math.round(i.top+a+l))];default:return[new po(Math.round(r.left),Math.round(r.top)),new po(Math.round(r.left+r.width),Math.round(r.top)),new po(Math.round(r.left+r.width),Math.round(r.height+r.top)),new po(Math.round(r.left),Math.round(r.height+r.top))]}},jo=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),i=this._document.createElement("img"),r=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",o.appendChild(n),i.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode("Hidden Text")),n.appendChild(r),n.appendChild(i);var a=i.offsetTop-r.offsetTop+2;n.removeChild(r),n.appendChild(this._document.createTextNode("Hidden Text")),n.style.lineHeight="normal",i.style.verticalAlign="super";var s=i.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:a,middle:s}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),Vo=function(){return function(e,t){this.context=e,this.options=t}}(),zo=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i._activeEffects=[],i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),n.canvas||(i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px"),i.fontMetrics=new jo(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),i}return t(n,e),n.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(e){return t.applyEffect(e)})},n.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 2===e.type}(e)&&(this.ctx.globalAlpha=e.opacity),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),So(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return i(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(e){return i(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return Yn(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var i=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):Ni(e.text).reduce(function(t,r){return i.ctx.fillText(r,t,e.bounds.top+n),t+i.ctx.measureText(r).width},e.bounds.left)},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=Yo(e.fontFamily).join(", "),i=Re(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,i,n].join(" "),n,i]},n.prototype.renderTextNode=function(e,t){return i(this,void 0,void 0,function(){var n,i,o,a,s,l,u,c,h=this;return r(this,function(r){return n=this.createFontStyle(t),i=n[0],o=n[1],a=n[2],this.ctx.font=i,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(o,a),l=s.baseline,u=s.middle,c=t.paintOrder,e.textBounds.forEach(function(e){c.forEach(function(n){switch(n){case 0:h.ctx.fillStyle=st(t.color),h.renderTextWithLetterSpacing(e,t.letterSpacing,l);var i=t.textShadow;i.length&&e.text.trim().length&&(i.slice(0).reverse().forEach(function(n){h.ctx.shadowColor=st(n.color),h.ctx.shadowOffsetX=n.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=n.offsetY.number*h.options.scale,h.ctx.shadowBlur=n.blur.number,h.renderTextWithLetterSpacing(e,t.letterSpacing,l)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),t.textDecorationLine.length&&(h.ctx.fillStyle=st(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:h.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+l),e.bounds.width,1);break;case 2:h.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:h.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+u),e.bounds.width,1)}}));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(h.ctx.strokeStyle=st(t.webkitTextStrokeColor),h.ctx.lineWidth=t.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+l)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter"}})}),[2]})})},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=Oo(e),r=bo(t);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return i(this,void 0,void 0,function(){var t,i,o,s,l,u,c,h,d,f,p,A,g,v,m,y,_,b;return r(this,function(r){switch(r.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,i=e.curves,o=t.styles,s=0,l=t.textNodes,r.label=1;case 1:return s<l.length?(u=l[s],[4,this.renderTextNode(u,o)]):[3,4];case 2:r.sent(),r.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof $i))return[3,8];r.label=5;case 5:return r.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return m=r.sent(),this.renderReplacedElement(t,i,m),[3,8];case 7:return r.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Gi&&this.renderReplacedElement(t,i,t.canvas),!(t instanceof Wi))return[3,12];r.label=9;case 9:return r.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return m=r.sent(),this.renderReplacedElement(t,i,m),[3,12];case 11:return r.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof ar&&t.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:c=r.sent(),t.width&&t.height&&this.ctx.drawImage(c,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),r.label=14;case 14:if(t instanceof ir&&(h=Math.min(t.bounds.width,t.bounds.height),t.type===er?t.checked&&(this.ctx.save(),this.path([new po(t.bounds.left+.39363*h,t.bounds.top+.79*h),new po(t.bounds.left+.16*h,t.bounds.top+.5549*h),new po(t.bounds.left+.27347*h,t.bounds.top+.44071*h),new po(t.bounds.left+.39694*h,t.bounds.top+.5649*h),new po(t.bounds.left+.72983*h,t.bounds.top+.23*h),new po(t.bounds.left+.84*h,t.bounds.top+.34085*h),new po(t.bounds.left+.39363*h,t.bounds.top+.79*h)]),this.ctx.fillStyle=st(707406591),this.ctx.fill(),this.ctx.restore()):t.type===tr&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+h/2,t.bounds.top+h/2,h/4,0,2*Math.PI,!0),this.ctx.fillStyle=st(707406591),this.ctx.fill(),this.ctx.restore())),$o(t)&&t.value.length){switch(d=this.createFontStyle(o),_=d[0],f=d[1],p=this.fontMetrics.getMetrics(_,f).baseline,this.ctx.font=_,this.ctx.fillStyle=st(o.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Wo(t.styles.textAlign),b=Oo(t),A=0,t.styles.textAlign){case 1:A+=b.width/2;break;case 2:A+=b.width}g=b.add(A,0,0,-b.height/2+1),this.ctx.save(),this.path([new po(b.left,b.top),new po(b.left+b.width,b.top),new po(b.left+b.width,b.top+b.height),new po(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Pi(t.value,g),o.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Yn(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(v=t.styles.listStyleImage).type)return[3,18];m=void 0,y=v.url,r.label=15;case 15:return r.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return m=r.sent(),this.ctx.drawImage(m,t.bounds.left-(m.width+10),t.bounds.top),[3,18];case 17:return r.sent(),this.context.logger.error("Error loading list-style-image "+y),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(_=this.createFontStyle(o)[0],this.ctx.font=_,this.ctx.fillStyle=st(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",b=new a(t.bounds.left,t.bounds.top+et(t.styles.paddingTop,t.bounds.width),t.bounds.width,dn(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Pi(e.listValue,b),o.letterSpacing,dn(o.lineHeight,o.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),r.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(e){return i(this,void 0,void 0,function(){var t,n,i,o,a,s,l,u,c,h,d,f,p,A,g;return r(this,function(r){switch(r.label){case 0:return Yn(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:r.sent(),t=0,n=e.negativeZIndex,r.label=2;case 2:return t<n.length?(g=n[t],[4,this.renderStack(g)]):[3,5];case 3:r.sent(),r.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:r.sent(),i=0,o=e.nonInlineLevel,r.label=7;case 7:return i<o.length?(g=o[i],[4,this.renderNode(g)]):[3,10];case 8:r.sent(),r.label=9;case 9:return i++,[3,7];case 10:a=0,s=e.nonPositionedFloats,r.label=11;case 11:return a<s.length?(g=s[a],[4,this.renderStack(g)]):[3,14];case 12:r.sent(),r.label=13;case 13:return a++,[3,11];case 14:l=0,u=e.nonPositionedInlineLevel,r.label=15;case 15:return l<u.length?(g=u[l],[4,this.renderStack(g)]):[3,18];case 16:r.sent(),r.label=17;case 17:return l++,[3,15];case 18:c=0,h=e.inlineLevel,r.label=19;case 19:return c<h.length?(g=h[c],[4,this.renderNode(g)]):[3,22];case 20:r.sent(),r.label=21;case 21:return c++,[3,19];case 22:d=0,f=e.zeroOrAutoZIndexOrTransformedOrOpacity,r.label=23;case 23:return d<f.length?(g=f[d],[4,this.renderStack(g)]):[3,26];case 24:r.sent(),r.label=25;case 25:return d++,[3,23];case 26:p=0,A=e.positiveZIndex,r.label=27;case 27:return p<A.length?(g=A[p],[4,this.renderStack(g)]):[3,30];case 28:r.sent(),r.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var i=vo(e)?e.start:e;0===n?t.ctx.moveTo(i.x,i.y):t.ctx.lineTo(i.x,i.y),vo(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},n.prototype.renderRepeat=function(e,t,n,i){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},n.prototype.resizeImage=function(e,t,n){var i;if(e.width===t&&e.height===n)return e;var r=(null!==(i=this.canvas.ownerDocument)&&void 0!==i?i:document).createElement("canvas");return r.width=Math.max(1,t),r.height=Math.max(1,n),r.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),r},n.prototype.renderBackgroundImage=function(e){return i(this,void 0,void 0,function(){var t,n,i,o,a,s;return r(this,function(l){switch(l.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var o,a,s,l,u,c,h,d,f,p,A,g,v,m,y,_,b,w,x,C,S,k,B,T,E,I,M,D,P,F,O;return r(this,function(r){switch(r.label){case 0:if(0!==n.type)return[3,5];o=void 0,a=n.url,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.context.cache.match(a)];case 2:return o=r.sent(),[3,4];case 3:return r.sent(),i.context.logger.error("Error loading background-image "+a),[3,4];case 4:return o&&(s=Lo(e,t,[o.width,o.height,o.width/o.height]),_=s[0],k=s[1],B=s[2],x=s[3],C=s[4],m=i.ctx.createPattern(i.resizeImage(o,x,C),"repeat"),i.renderRepeat(_,m,k,B)),[3,6];case 5:1===n.type?(l=Lo(e,t,[null,null,null]),_=l[0],k=l[1],B=l[2],x=l[3],C=l[4],u=_t(n.angle,x,C),c=u[0],h=u[1],d=u[2],f=u[3],p=u[4],(A=document.createElement("canvas")).width=x,A.height=C,g=A.getContext("2d"),v=g.createLinearGradient(h,f,d,p),yt(n.stops,c).forEach(function(e){return v.addColorStop(e.stop,st(e.color))}),g.fillStyle=v,g.fillRect(0,0,x,C),x>0&&C>0&&(m=i.ctx.createPattern(A,"repeat"),i.renderRepeat(_,m,k,B))):function(e){return 2===e.type}(n)&&(y=Lo(e,t,[null,null,null]),_=y[0],b=y[1],w=y[2],x=y[3],C=y[4],S=0===n.position.length?[Xe]:n.position,k=et(S[0],x),B=et(S[S.length-1],C),T=function(e,t,n,i,r){var o=0,a=0;switch(e.size){case 0:0===e.shape?o=a=Math.min(Math.abs(t),Math.abs(t-i),Math.abs(n),Math.abs(n-r)):1===e.shape&&(o=Math.min(Math.abs(t),Math.abs(t-i)),a=Math.min(Math.abs(n),Math.abs(n-r)));break;case 2:if(0===e.shape)o=a=Math.min(bt(t,n),bt(t,n-r),bt(t-i,n),bt(t-i,n-r));else if(1===e.shape){var s=Math.min(Math.abs(n),Math.abs(n-r))/Math.min(Math.abs(t),Math.abs(t-i)),l=wt(i,r,t,n,!0),u=l[0],c=l[1];a=s*(o=bt(u-t,(c-n)/s))}break;case 1:0===e.shape?o=a=Math.max(Math.abs(t),Math.abs(t-i),Math.abs(n),Math.abs(n-r)):1===e.shape&&(o=Math.max(Math.abs(t),Math.abs(t-i)),a=Math.max(Math.abs(n),Math.abs(n-r)));break;case 3:if(0===e.shape)o=a=Math.max(bt(t,n),bt(t,n-r),bt(t-i,n),bt(t-i,n-r));else if(1===e.shape){s=Math.max(Math.abs(n),Math.abs(n-r))/Math.max(Math.abs(t),Math.abs(t-i));var h=wt(i,r,t,n,!1);u=h[0],c=h[1],a=s*(o=bt(u-t,(c-n)/s))}}return Array.isArray(e.size)&&(o=et(e.size[0],i),a=2===e.size.length?et(e.size[1],r):o),[o,a]}(n,k,B,x,C),E=T[0],I=T[1],E>0&&I>0&&(M=i.ctx.createRadialGradient(b+k,w+B,0,b+k,w+B,E),yt(n.stops,2*E).forEach(function(e){return M.addColorStop(e.stop,st(e.color))}),i.path(_),i.ctx.fillStyle=M,E!==I?(D=e.bounds.left+.5*e.bounds.width,P=e.bounds.top+.5*e.bounds.height,O=1/(F=I/E),i.ctx.save(),i.ctx.translate(D,P),i.ctx.transform(1,0,0,F,0,0),i.ctx.translate(-D,-P),i.ctx.fillRect(b,O*(w-P)+P,x,C*O),i.ctx.restore()):i.ctx.fill())),r.label=6;case 6:return t--,[2]}})},i=this,o=0,a=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return o<a.length?(s=a[o],[5,n(s)]):[3,4];case 2:l.sent(),l.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(e,t,n){return i(this,void 0,void 0,function(){return r(this,function(i){return this.path(Mo(n,t)),this.ctx.fillStyle=st(e),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(e,t,n,o){return i(this,void 0,void 0,function(){var i,a;return r(this,function(r){switch(r.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,o)]:[3,2];case 1:return r.sent(),[2];case 2:return i=function(e,t){switch(t){case 0:return Po(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Po(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Po(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Po(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}}(o,n),this.path(i),this.ctx.fillStyle=st(e),this.ctx.fill(),a=function(e,t){switch(t){case 0:return Po(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Po(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Po(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Po(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}}(o,n),this.path(a),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(e){return i(this,void 0,void 0,function(){var t,n,i,o,a,s,l,u,c=this;return r(this,function(r){switch(r.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!at(t.backgroundColor)||t.backgroundImage.length,i=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],o=Go(Qo(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),at(t.backgroundColor)||(this.ctx.fillStyle=st(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:r.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){c.ctx.save();var n,i,r,o,a,s=_o(e.curves),l=t.inset?0:1e4,u=(n=s,i=-l+(t.inset?1:-1)*t.spread.number,r=(t.inset?1:-1)*t.spread.number,o=t.spread.number*(t.inset?-2:2),a=t.spread.number*(t.inset?-2:2),n.map(function(e,t){switch(t){case 0:return e.add(i,r);case 1:return e.add(i+o,r);case 2:return e.add(i+o,r+a);case 3:return e.add(i,r+a)}return e}));t.inset?(c.path(s),c.ctx.clip(),c.mask(u)):(c.mask(s),c.ctx.clip(),c.path(u)),c.ctx.shadowOffsetX=t.offsetX.number+l,c.ctx.shadowOffsetY=t.offsetY.number,c.ctx.shadowColor=st(t.color),c.ctx.shadowBlur=t.blur.number,c.ctx.fillStyle=t.inset?st(t.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()}),r.label=2;case 2:a=0,s=0,l=i,r.label=3;case 3:return s<l.length?0!==(u=l[s]).style&&!at(u.color)&&u.width>0?2!==u.style?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,a,e.curves,2)]:[3,11]:[3,13];case 4:return r.sent(),[3,11];case 5:return 3!==u.style?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,a,e.curves,3)];case 6:return r.sent(),[3,11];case 7:return 4!==u.style?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,a,e.curves)];case 8:return r.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,a,e.curves)];case 10:r.sent(),r.label=11;case 11:a++,r.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,o,a){return i(this,void 0,void 0,function(){var i,s,l,u,c,h,d,f,p,A,g,v,m,y,_,b;return r(this,function(r){return this.ctx.save(),i=function(e,t){switch(t){case 0:return Do(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Do(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Do(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Do(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(o,n),s=Mo(o,n),2===a&&(this.path(s),this.ctx.clip()),vo(s[0])?(l=s[0].start.x,u=s[0].start.y):(l=s[0].x,u=s[0].y),vo(s[1])?(c=s[1].end.x,h=s[1].end.y):(c=s[1].x,h=s[1].y),d=0===n||2===n?Math.abs(l-c):Math.abs(u-h),this.ctx.beginPath(),3===a?this.formatPath(i):this.formatPath(s.slice(0,2)),f=t<3?3*t:2*t,p=t<3?2*t:t,3===a&&(f=t,p=t),A=!0,d<=2*f?A=!1:d<=2*f+p?(f*=g=d/(2*f+p),p*=g):(v=Math.floor((d+p)/(f+p)),m=(d-v*f)/(v-1),p=(y=(d-(v+1)*f)/v)<=0||Math.abs(p-m)<Math.abs(p-y)?m:y),A&&(3===a?this.ctx.setLineDash([0,f+p]):this.ctx.setLineDash([f,p])),3===a?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=st(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===a&&(vo(s[0])&&(_=s[3],b=s[0],this.ctx.beginPath(),this.formatPath([new po(_.end.x,_.end.y),new po(b.start.x,b.start.y)]),this.ctx.stroke()),vo(s[1])&&(_=s[1],b=s[2],this.ctx.beginPath(),this.formatPath([new po(_.end.x,_.end.y),new po(b.start.x,b.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(e){return i(this,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=st(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),i=new To(e,null),r=new Bo(i),Eo(i,r,r,o=[]),Io(i.container,o),t=r,[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}var i,r,o})})},n}(Vo),$o=function(e){return e instanceof or||(e instanceof rr||e instanceof ir&&e.type!==tr&&e.type!==er)},Go=function(e,t){switch(e){case 0:return _o(t);case 2:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);case 1:default:return bo(t)}},Wo=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ko=["-apple-system","system-ui"],Yo=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return-1===Ko.indexOf(e)}):e},qo=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=n,i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),i}return t(n,e),n.prototype.render=function(e){return i(this,void 0,void 0,function(){var t,n;return r(this,function(i){switch(i.label){case 0:return t=Ii(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Xo(t)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=st(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(Vo),Xo=function(e){return new Promise(function(t,n){var i=new Image;i.onload=function(){t(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},Jo=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,o([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),Zo=function(){function e(t,n){var i;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new Jo({id:this.instanceName,enabled:t.logging}),this.cache=null!==(i=t.cache)&&void 0!==i?i:new ro(this,t)}return e.instanceCount=1,e}();"undefined"!=typeof window&&io.setContext(window);var ea=function(e,t){return i(void 0,void 0,void 0,function(){var i,o,l,u,c,h,d,f,p,A,g,v,m,y,_,b,w,x,C,S,k,B,T,E,I,M,D,P,F,O,L,N,R,U,Q,H,j,V;return r(this,function(r){switch(r.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(i=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(o=i.defaultView))throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(B=t.allowTaint)&&void 0!==B&&B,imageTimeout:null!==(T=t.imageTimeout)&&void 0!==T?T:15e3,proxy:t.proxy,useCORS:null!==(E=t.useCORS)&&void 0!==E&&E},u=n({logging:null===(I=t.logging)||void 0===I||I,cache:t.cache},l),c={windowWidth:null!==(M=t.windowWidth)&&void 0!==M?M:o.innerWidth,windowHeight:null!==(D=t.windowHeight)&&void 0!==D?D:o.innerHeight,scrollX:null!==(P=t.scrollX)&&void 0!==P?P:o.pageXOffset,scrollY:null!==(F=t.scrollY)&&void 0!==F?F:o.pageYOffset},h=new a(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),d=new Zo(u,h),f=null!==(O=t.foreignObjectRendering)&&void 0!==O&&O,p={allowTaint:null!==(L=t.allowTaint)&&void 0!==L&&L,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:f,copyStyles:f},d.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),A=new jr(d,e,p),(g=A.clonedReferenceElement)?[4,A.toIFrame(i,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return v=r.sent(),m=br(g)||"HTML"===g.tagName?function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var i=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),r=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new a(0,0,i,r)}(g.ownerDocument):s(d,g),y=m.width,_=m.height,b=m.left,w=m.top,x=ta(d,g,t.backgroundColor),C={canvas:t.canvas,backgroundColor:x,scale:null!==(R=null!==(N=t.scale)&&void 0!==N?N:o.devicePixelRatio)&&void 0!==R?R:1,x:(null!==(U=t.x)&&void 0!==U?U:0)+b,y:(null!==(Q=t.y)&&void 0!==Q?Q:0)+w,width:null!==(H=t.width)&&void 0!==H?H:Math.ceil(y),height:null!==(j=t.height)&&void 0!==j?j:Math.ceil(_)},f?(d.logger.debug("Document cloned, using foreign object rendering"),[4,new qo(d,C).render(g)]):[3,3];case 2:return S=r.sent(),[3,5];case 3:return d.logger.debug("Document cloned, element located at "+b+","+w+" with size "+y+"x"+_+" using computed rendering"),d.logger.debug("Starting DOM parsing"),k=cr(d,g),x===k.styles.backgroundColor&&(k.styles.backgroundColor=At.TRANSPARENT),d.logger.debug("Starting renderer for element at "+C.x+","+C.y+" with size "+C.width+"x"+C.height),[4,new zo(d,C).render(k)];case 4:S=r.sent(),r.label=5;case 5:return(null===(V=t.removeContainer)||void 0===V||V)&&(jr.destroy(v)||d.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),d.logger.debug("Finished rendering"),[2,S]}})})},ta=function(e,t,n){var i=t.ownerDocument,r=i.documentElement?pt(e,getComputedStyle(i.documentElement).backgroundColor):At.TRANSPARENT,o=i.body?pt(e,getComputedStyle(i.body).backgroundColor):At.TRANSPARENT,a="string"==typeof n?pt(e,n):null===n?At.TRANSPARENT:4294967295;return t===i.documentElement?at(r)?at(o)?a:o:r:a};return function(e,t){return void 0===t&&(t={}),ea(e,t)}},e.exports=i()},eNfa:function(e,t,n){"use strict";var i;!function(r){var o={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="[^\\s]+",l=/\[([^]*?)\]/gm,u=function(){};function c(e,t){for(var n=[],i=0,r=e.length;i<r;i++)n.push(e[i].substr(0,t));return n}function h(e){return function(t,n,i){var r=i[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(t.month=r)}}function d(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],p=["January","February","March","April","May","June","July","August","September","October","November","December"],A=c(p,3),g=c(f,3);o.i18n={dayNamesShort:g,dayNames:f,monthNamesShort:A,monthNames:p,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var v={D:function(e){return e.getDay()},DD:function(e){return d(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return d(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 d(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 d(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return d(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return d(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return d(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return d(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return d(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return d(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return d(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?"-":"+")+d(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},m={d:["\\d\\d?",function(e,t){e.day=t}],Do:["\\d\\d?"+s,function(e,t){e.day=parseInt(t,10)}],M:["\\d\\d?",function(e,t){e.month=t-1}],yy:["\\d\\d?",function(e,t){var n=+(""+(new Date).getFullYear()).substr(0,2);e.year=""+(t>68?n-1:n)+t}],h:["\\d\\d?",function(e,t){e.hour=t}],m:["\\d\\d?",function(e,t){e.minute=t}],s:["\\d\\d?",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:["\\d\\d?",u],ddd:[s,u],MMM:[s,h("monthNamesShort")],MMMM:[s,h("monthNames")],a:[s,function(e,t,n){var i=t.toLowerCase();i===n.amPm[0]?e.isPm=!1:i===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,i=(t+"").match(/([+-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),e.timezoneOffset="+"===i[0]?n:-n)}]};m.dd=m.d,m.dddd=m.ddd,m.DD=m.D,m.mm=m.m,m.hh=m.H=m.HH=m.h,m.MM=m.M,m.ss=m.s,m.A=m.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,t,n){var i=n||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");var r=[];return(t=(t=(t=o.masks[t]||t||o.masks.default).replace(l,function(e,t){return r.push(t),"@@@"})).replace(a,function(t){return t in v?v[t](e,i):t.slice(1,t.length-1)})).replace(/@@@/g,function(){return r.shift()})},o.parse=function(e,t,n){var i=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 r={},s=[],u=[];t=t.replace(l,function(e,t){return u.push(t),"@@@"});var c,h=(c=t,c.replace(/[|\\{()[^$+*?.-]/g,"\\$&")).replace(a,function(e){if(m[e]){var t=m[e];return s.push(t[1]),"("+t[0]+")"}return e});h=h.replace(/@@@/g,function(){return u.shift()});var d=e.match(new RegExp(h,"i"));if(!d)return null;for(var f=1;f<d.length;f++)s[f-1](r,d[f],i);var p,A=new Date;return!0===r.isPm&&null!=r.hour&&12!=+r.hour?r.hour=+r.hour+12:!1===r.isPm&&12==+r.hour&&(r.hour=0),null!=r.timezoneOffset?(r.minute=+(r.minute||0)-+r.timezoneOffset,p=new Date(Date.UTC(r.year||A.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0))):p=new Date(r.year||A.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0),p},void 0!==e&&e.exports?e.exports=o:void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}()},evD5:function(e,t,n){var i=n("77Pl"),r=n("SfB7"),o=n("MmMw"),a=Object.defineProperty;t.f=n("+E39")?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(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}},"fEB+":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=132)}({132:function(e,t,n){"use strict";n.r(t);var i=n(16),r=n(38),o=n.n(r),a=n(3),s=n(2),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"}};var u={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,i=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:function(e){var t=e.move,n=e.size,i=e.bar,r={},o="translate"+i.axis+"("+t+"%)";return r[i.size]=n,r.transform=o,r.msTransform=o,r.webkitTransform=o,r}({size:t,move:n,bar:i})})])},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(s.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(s.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(s.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s.off)(document,"mouseup",this.mouseUpDocumentHandler)}},c={name:"ElScrollbar",components:{Bar:u},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=o()(),n=this.wrapStyle;if(t){var i="-"+t+"px",r="margin-bottom: "+i+"; margin-right: "+i+";";Array.isArray(this.wrapStyle)?(n=Object(a.toObject)(this.wrapStyle)).marginRight=n.marginBottom=i:"string"==typeof this.wrapStyle?n+=r:n=r}var s=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),l=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[s]]);return e("div",{class:"el-scrollbar"},this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,e(u,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(u,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})])},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(i.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(i.removeResizeListener)(this.$refs.resize,this.update)},install:function(e){e.component(c.name,c)}};t.default=c},16:function(e,t){e.exports=n("02w1")},2:function(e,t){e.exports=n("2kvA")},3:function(e,t){e.exports=n("ylDJ")},38:function(e,t){e.exports=n("6Twh")}})},fJUb:function(e,t,n){var i=n("77Pl"),r=n("EqjI"),o=n("qARP");e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},fKx3:function(e,t,n){"use strict";t.__esModule=!0;var i,r=n("7+uW"),o=(i=r)&&i.__esModule?i:{default:i},a=n("7J9s");var s=o.default.prototype.$isServer?function(){}:n("NMof"),l=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,i=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!i&&this.$slots.reference&&this.$slots.reference[0]&&(i=this.referenceElm=this.$slots.reference[0].elm),n&&i&&(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 s(i,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=a.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",l))}},updatePopper:function(){var e=this.popperJS;e?(e.update(),e._popper&&(e._popper.style.zIndex=a.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(e){var t=void 0;if(!this.appended){for(var n in this.appended=!0,e.attributes)if(/^_v-/.test(e.attributes[n].name)){t=e.attributes[n].name;break}var i=document.createElement("div");t&&i.setAttribute(t,""),i.setAttribute("x-arrow",""),i.className="popper__arrow",e.appendChild(i)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",l),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},fPll:function(e,t,n){"use strict";t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){for(var i=this.$parent||this.$root,r=i.$options.componentName;i&&(!r||r!==e);)(i=i.$parent)&&(r=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(n))},broadcast:function(e,t,n){(function e(t,n,i){this.$children.forEach(function(r){r.$options.componentName===t?r.$emit.apply(r,[n].concat(i)):e.apply(r,[t,n].concat([i]))})}).call(this,e,t,n)}}}},fUqW:function(e,t,n){"use strict";t.__esModule=!0;var i="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":i(e))&&(0,r.hasOwn)(e,"componentOptions")};var r=n("ylDJ")},fWfb:function(e,t,n){"use strict";var i=n("7KvD"),r=n("D2L2"),o=n("+E39"),a=n("kM2E"),s=n("880/"),l=n("06OY").KEY,u=n("S82l"),c=n("e8AB"),h=n("e6n0"),d=n("3Eo+"),f=n("dSzd"),p=n("Kh4W"),A=n("crlp"),g=n("Xc4G"),v=n("7UMu"),m=n("77Pl"),y=n("EqjI"),_=n("sB3e"),b=n("TcQ7"),w=n("MmMw"),x=n("X8DO"),C=n("Yobk"),S=n("Rrel"),k=n("LKZe"),B=n("1kS7"),T=n("evD5"),E=n("lktj"),I=k.f,M=T.f,D=S.f,P=i.Symbol,F=i.JSON,O=F&&F.stringify,L=f("_hidden"),N=f("toPrimitive"),R={}.propertyIsEnumerable,U=c("symbol-registry"),Q=c("symbols"),H=c("op-symbols"),j=Object.prototype,V="function"==typeof P&&!!B.f,z=i.QObject,$=!z||!z.prototype||!z.prototype.findChild,G=o&&u(function(){return 7!=C(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=I(j,t);i&&delete j[t],M(e,t,n),i&&e!==j&&M(j,t,i)}:M,W=function(e){var t=Q[e]=C(P.prototype);return t._k=e,t},K=V&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===j&&Y(H,t,n),m(e),t=w(t,!0),m(n),r(Q,t)?(n.enumerable?(r(e,L)&&e[L][t]&&(e[L][t]=!1),n=C(n,{enumerable:x(0,!1)})):(r(e,L)||M(e,L,x(1,{})),e[L][t]=!0),G(e,t,n)):M(e,t,n)},q=function(e,t){m(e);for(var n,i=g(t=b(t)),r=0,o=i.length;o>r;)Y(e,n=i[r++],t[n]);return e},X=function(e){var t=R.call(this,e=w(e,!0));return!(this===j&&r(Q,e)&&!r(H,e))&&(!(t||!r(this,e)||!r(Q,e)||r(this,L)&&this[L][e])||t)},J=function(e,t){if(e=b(e),t=w(t,!0),e!==j||!r(Q,t)||r(H,t)){var n=I(e,t);return!n||!r(Q,t)||r(e,L)&&e[L][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=D(b(e)),i=[],o=0;n.length>o;)r(Q,t=n[o++])||t==L||t==l||i.push(t);return i},ee=function(e){for(var t,n=e===j,i=D(n?H:b(e)),o=[],a=0;i.length>a;)!r(Q,t=i[a++])||n&&!r(j,t)||o.push(Q[t]);return o};V||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===j&&t.call(H,n),r(this,L)&&r(this[L],e)&&(this[L][e]=!1),G(this,e,x(1,n))};return o&&$&&G(j,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),k.f=J,T.f=Y,n("n0T6").f=S.f=Z,n("NpIQ").f=X,B.f=ee,o&&!n("O4g8")&&s(j,"propertyIsEnumerable",X,!0),p.f=function(e){return W(f(e))}),a(a.G+a.W+a.F*!V,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var ie=E(f.store),re=0;ie.length>re;)A(ie[re++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in U)if(U[t]===e)return t},useSetter:function(){$=!0},useSimple:function(){$=!1}}),a(a.S+a.F*!V,"Object",{create:function(e,t){return void 0===t?C(e):q(C(e),t)},defineProperty:Y,defineProperties:q,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var oe=u(function(){B.f(1)});a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return B.f(_(e))}}),F&&a(a.S+a.F*(!V||u(function(){var e=P();return"[null]"!=O([e])||"{}"!=O({a:e})||"{}"!=O(Object(e))})),"JSON",{stringify:function(e){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=t=i[1],(y(t)||void 0!==e)&&!K(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),i[1]=t,O.apply(F,i)}}),P.prototype[N]||n("hJx8")(P.prototype,N,P.prototype.valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},fZjL:function(e,t,n){e.exports={default:n("jFbC"),__esModule:!0}},fkB2:function(e,t,n){var i=n("UuGF"),r=Math.max,o=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):o(e,t)}},fuGk:function(e,t,n){"use strict";var i=n("cGG2");function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},fxRn:function(e,t,n){n("+tPU"),n("zQR9"),e.exports=n("g8Ux")},g8Ux:function(e,t,n){var i=n("77Pl"),r=n("3fs2");e.exports=n("FeBl").getIterator=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}},gAsd:function(e,t,n){n("G5/o");var i=n("FeBl").Object;e.exports=function(e){return i.getOwnPropertyNames(e)}},h65t:function(e,t,n){var i=n("UuGF"),r=n("52gC");e.exports=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},hJx8:function(e,t,n){var i=n("evD5"),r=n("X8DO");e.exports=n("+E39")?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},hM5s:function(e,t,n){n("cnZr"),e.exports=n("FeBl").setImmediate},hyEB:function(e,t,n){"use strict";t.__esModule=!0;var i=i||{};i.Utils=i.Utils||{},i.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(i.Utils.attemptFocus(n)||i.Utils.focusFirstDescendant(n))return!0}return!1},i.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(i.Utils.attemptFocus(n)||i.Utils.focusLastDescendant(n))return!0}return!1},i.Utils.attemptFocus=function(e){if(!i.Utils.isFocusable(e))return!1;i.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(e){}return i.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},i.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},i.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var i=document.createEvent(n),r=arguments.length,o=Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];return i.initEvent.apply(i,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent("on"+t,i),e},i.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t.default=i.Utils},i3rX:function(e,t,n){"use strict";var i=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===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){var n;return t&&!0===t.clone&&i(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e}function a(e,t,n){var r=e.slice();return t.forEach(function(t,a){void 0===r[a]?r[a]=o(t,n):i(t)?r[a]=s(e[a],t,n):-1===e.indexOf(t)&&r.push(o(t,n))}),r}function s(e,t,n){var r=Array.isArray(t);return r===Array.isArray(e)?r?((n||{arrayMerge:a}).arrayMerge||a)(e,t,n):function(e,t,n){var r={};return i(e)&&Object.keys(e).forEach(function(t){r[t]=o(e[t],n)}),Object.keys(t).forEach(function(a){i(t[a])&&e[a]?r[a]=s(e[a],t[a],n):r[a]=o(t[a],n)}),r}(e,t,n):o(t,n)}s.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 s(e,n,t)})};var l=s;e.exports=l},iInB:function(e,t,n){var i=n("TcQ7"),r=n("LKZe").f;n("uqUo")("getOwnPropertyDescriptor",function(){return function(e,t){return r(i(e),t)}})},iUbK:function(e,t,n){var i=n("7KvD").navigator;e.exports=i&&i.userAgent||""},iqGf:function(e,t,n){var i;i=function(e){return 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=3)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),r=window.videojs||i.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});var o=["loadeddata","canplay","canplaythrough","play","pause","waiting","playing","ended","error"];t.default={name:"video-player",props:{start:{type:Number,default:0},crossOrigin:{type:String,default:""},playsinline:{type:Boolean,default:!1},customEventName:{type:String,default:"statechanged"},options:{type:Object,required:!0},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{controls:!0,controlBar:{remainingTimeDisplay:!1,playToggle:{},progressControl:{},fullscreenToggle:{},volumeMenuButton:{inline:!1,vertical:!0}},techOrder:["html5"],plugins:{}}}},globalEvents:{type:Array,default:function(){return[]}}},data:function(){return{player:null,reseted:!0}},mounted:function(){this.player||this.initialize()},beforeDestroy:function(){this.player&&this.dispose()},methods:{initialize:function(){var e=this,t=Object.assign({},this.globalOptions,this.options);this.playsinline&&(this.$refs.video.setAttribute("playsinline",this.playsinline),this.$refs.video.setAttribute("webkit-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-video-player-type","h5"),this.$refs.video.setAttribute("x5-video-player-fullscreen",!1)),""!==this.crossOrigin&&(this.$refs.video.crossOrigin=this.crossOrigin,this.$refs.video.setAttribute("crossOrigin",this.crossOrigin));var n=function(t,n){t&&e.$emit(t,e.player),n&&e.$emit(e.customEventName,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,n))};t.plugins&&delete t.plugins.__ob__;var i=this;this.player=r(this.$refs.video,t,function(){for(var e=this,t=o.concat(i.events).concat(i.globalEvents),r={},a=0;a<t.length;a++)"string"==typeof t[a]&&void 0===r[t[a]]&&function(t){r[t]=null,e.on(t,function(){n(t,!0)})}(t[a]);this.on("timeupdate",function(){n("timeupdate",this.currentTime())}),i.$emit("ready",this)})},dispose:function(e){var t=this;this.player&&this.player.dispose&&("Flash"!==this.player.techName_&&this.player.pause&&this.player.pause(),this.player.dispose(),this.player=null,this.$nextTick(function(){t.reseted=!1,t.$nextTick(function(){t.reseted=!0,t.$nextTick(function(){e&&e()})})}))}},watch:{options:{deep:!0,handler:function(e,t){var n=this;this.dispose(function(){e&&e.sources&&e.sources.length&&n.initialize()})}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n.n(i);for(var o in i)["default","default"].indexOf(o)<0&&function(e){n.d(t,e,function(){return i[e]})}(o);var a=n(5),s=n(4)(r.a,a.a,!1,null,null,null);t.default=s.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.videoPlayer=t.videojs=void 0;var r=i(n(0)),o=i(n(2)),a=window.videojs||r.default,s=function(e,t){t&&(t.options&&(o.default.props.globalOptions.default=function(){return t.options}),t.events&&(o.default.props.globalEvents.default=function(){return t.events})),e.component(o.default.name,o.default)},l={videojs:a,videoPlayer:o.default,install:s};t.default=l,t.videojs=a,t.videoPlayer=o.default,t.install=s},function(e,t){e.exports=function(e,t,n,i,r,o){var a,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(a=e,s=e.default);var u,c="function"==typeof s?s.options:s;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r),o?(u=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)},c._ssrRegister=u):i&&(u=i),u){var h=c.functional,d=h?c.render:c.beforeCreate;h?(c._injectStyles=u,c.render=function(e,t){return u.call(t),d(e,t)}):c.beforeCreate=d?[].concat(d,u):[u]}return{esModule:a,exports:s,options:c}}},function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.reseted?n("div",{staticClass:"video-player"},[n("video",{ref:"video",staticClass:"video-js"})]):e._e()},staticRenderFns:[]};t.a=i}])},e.exports=i(n("Dia2"))},iwQb:function(e,t,n){"use strict";var i=n("POKh");t.a=function(e){var t=e.createLoadingTask,n=e.PDFJSWrapper;return{createLoadingTask:t,render:function(e){return e("span",{attrs:{style:"position: relative; display: block"}},[e("canvas",{attrs:{style:"display: inline-block; width: 100%; height: 100%; vertical-align: top"},ref:"canvas"}),e("span",{style:"display: inline-block; width: 100%; height: 100%",class:"annotationLayer",ref:"annotationLayer"}),e(i.a,{props:{initial:!0},on:{resize:this.resize}})])},props:{src:{type:[String,Object,Uint8Array],default:""},page:{type:Number,default:1},rotate:{type:Number}},watch:{src:function(){this.pdf.loadDocument(this.src)},page:function(){this.pdf.loadPage(this.page,this.rotate)},rotate:function(){this.pdf.renderPage(this.rotate)}},methods:{resize:function(e){if(null!==this.$el.parentNode&&(0!==e.width||0!==e.height)){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(this.$refs.canvas.height/this.$refs.canvas.width)+"px";var t=this.pdf.getResolutionScale();(t<.85||t>1.15)&&this.pdf.renderPage(this.rotate)}},print:function(e,t){this.pdf.printPage(e,t)}},mounted:function(){this.pdf=new n(this.$refs.canvas,this.$refs.annotationLayer,this.$emit.bind(this)),this.$on("loaded",function(){this.pdf.loadPage(this.page,this.rotate)}),this.$on("page-size",function(e,t){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(t/e)+"px"}),this.pdf.loadDocument(this.src)},destroyed:function(){this.pdf.destroy()}}}},jFbC:function(e,t,n){n("Cdx3"),e.exports=n("FeBl").Object.keys},"jKW+":function(e,t,n){"use strict";var i=n("kM2E"),r=n("qARP"),o=n("dNDb");i(i.S,"Promise",{try:function(e){var t=r.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},jmaC:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=1,n=arguments.length;t<n;t++){var i=arguments[t]||{};for(var r in i)if(i.hasOwnProperty(r)){var o=i[r];void 0!==o&&(e[r]=o)}}return e}},jwfv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("Dd8w"),r=n.n(i),o=n("pFYg"),a=n.n(o),s=/%[sdj%]/g,l=function(){};function u(){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 a=String(r).replace(s,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}}),l=t[i];i<o;l=t[++i])a+=" "+l;return a}return r}function c(e,t){return void 0===e||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 h(e,t,n){var i=0,r=e.length;!function o(a){if(a&&a.length)n(a);else{var s=i;i+=1,s<r?t(e[s],o):n([])}}([])}function d(e,t,n,i){if(t.first)return h(function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}(e),n,i);var r=t.firstFields||[];!0===r&&(r=Object.keys(e));var o=Object.keys(e),a=o.length,s=0,l=[],u=function(e){l.push.apply(l,e),++s===a&&i(l)};o.forEach(function(t){var i=e[t];-1!==r.indexOf(t)?h(i,n,u):function(e,t,n){var i=[],r=0,o=e.length;function a(e){i.push.apply(i,e),++r===o&&n(i)}e.forEach(function(e){t(e,a)})}(i,n,u)})}function f(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function p(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];"object"===(void 0===i?"undefined":a()(i))&&"object"===a()(e[n])?e[n]=r()({},e[n],i):e[n]=i}return e}var A=function(e,t,n,i,r,o){!e.required||n.hasOwnProperty(e.field)&&!c(t,o||e.type)||i.push(u(r.messages.required,e.fullField))};var g=function(e,t,n,i,r){(/^\s+$/.test(t)||""===t)&&i.push(u(r.messages.whitespace,e.fullField))},v={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},m={integer:function(e){return m.number(e)&&parseInt(e,10)===e},float:function(e){return m.number(e)&&!m.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":a()(e))&&!m.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(v.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(v.url)},hex:function(e){return"string"==typeof e&&!!e.match(v.hex)}};var y="enum";var _={required:A,whitespace:g,type:function(e,t,n,i,r){if(e.required&&void 0===t)A(e,t,n,i,r);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?m[o](t)||i.push(u(r.messages.types[o],e.fullField,e.type)):o&&(void 0===t?"undefined":a()(t))!==e.type&&i.push(u(r.messages.types[o],e.fullField,e.type))}},range:function(e,t,n,i,r){var o="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,h="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(h?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==e.len&&i.push(u(r.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?i.push(u(r.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?i.push(u(r.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&i.push(u(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,i,r){e[y]=Array.isArray(e[y])?e[y]:[],-1===e[y].indexOf(t)&&i.push(u(r.messages[y],e.fullField,e[y].join(", ")))},pattern:function(e,t,n,i,r){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||i.push(u(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||i.push(u(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))}};var b="enum";var w=function(e,t,n,i,r){var o=e.type,a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(c(t,o)&&!e.required)return n();_.required(e,t,i,a,r,o),c(t,o)||_.type(e,t,i,a,r)}n(a)},x={string:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(c(t,"string")&&!e.required)return n();_.required(e,t,i,o,r,"string"),c(t,"string")||(_.type(e,t,i,o,r),_.range(e,t,i,o,r),_.pattern(e,t,i,o,r),!0===e.whitespace&&_.whitespace(e,t,i,o,r))}n(o)},method:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(c(t)&&!e.required)return n();_.required(e,t,i,o,r),void 0!==t&&_.type(e,t,i,o,r)}n(o)},number:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(c(t)&&!e.required)return n();_.required(e,t,i,o,r),void 0!==t&&(_.type(e,t,i,o,r),_.range(e,t,i,o,r))}n(o)},boolean:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(c(t)&&!e.required)return n();_.required(e,t,i,o,r),void 0!==t&&_.type(e,t,i,o,r)}n(o)},regexp:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(c(t)&&!e.required)return n();_.required(e,t,i,o,r),c(t)||_.type(e,t,i,o,r)}n(o)},integer:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(c(t)&&!e.required)return n();_.required(e,t,i,o,r),void 0!==t&&(_.type(e,t,i,o,r),_.range(e,t,i,o,r))}n(o)},float:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(c(t)&&!e.required)return n();_.required(e,t,i,o,r),void 0!==t&&(_.type(e,t,i,o,r),_.range(e,t,i,o,r))}n(o)},array:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(c(t,"array")&&!e.required)return n();_.required(e,t,i,o,r,"array"),c(t,"array")||(_.type(e,t,i,o,r),_.range(e,t,i,o,r))}n(o)},object:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(c(t)&&!e.required)return n();_.required(e,t,i,o,r),void 0!==t&&_.type(e,t,i,o,r)}n(o)},enum:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(c(t)&&!e.required)return n();_.required(e,t,i,o,r),t&&_[b](e,t,i,o,r)}n(o)},pattern:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(c(t,"string")&&!e.required)return n();_.required(e,t,i,o,r),c(t,"string")||_.pattern(e,t,i,o,r)}n(o)},date:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(c(t)&&!e.required)return n();if(_.required(e,t,i,o,r),!c(t)){var a=void 0;a="number"==typeof t?new Date(t):t,_.type(e,a,i,o,r),a&&_.range(e,a.getTime(),i,o,r)}}n(o)},url:w,hex:w,email:w,required:function(e,t,n,i,r){var o=[],s=Array.isArray(t)?"array":void 0===t?"undefined":a()(t);_.required(e,t,i,o,r,s),n(o)}};function C(){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 S=C();function k(e){this.rules=null,this._messages=S,this.define(e)}k.prototype={messages:function(e){return e&&(this._messages=p(C(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===e?"undefined":a()(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]:{},i=arguments[2],o=e,s=n,c=i;if("function"==typeof s&&(c=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var h=this.messages();h===S&&(h=C()),p(h,s.messages),s.messages=h}else s.messages=this.messages();var A=void 0,g=void 0,v={};(s.keys||Object.keys(this.rules)).forEach(function(n){A=t.rules[n],g=o[n],A.forEach(function(i){var a=i;"function"==typeof a.transform&&(o===e&&(o=r()({},o)),g=o[n]=a.transform(g)),(a="function"==typeof a?{validator:a}:r()({},a)).validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(v[n]=v[n]||[],v[n].push({rule:a,value:g,source:o,field:n}))})});var m={};d(v,s,function(e,t){var n=e.rule,i=!("object"!==n.type&&"array"!==n.type||"object"!==a()(n.fields)&&"object"!==a()(n.defaultField));function o(e,t){return r()({},t,{fullField:n.fullField+"."+e})}function c(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(Array.isArray(a)||(a=[a]),a.length&&l("async-validator:",a),a.length&&n.message&&(a=[].concat(n.message)),a=a.map(f(n)),s.first&&a.length)return m[n.field]=1,t(a);if(i){if(n.required&&!e.value)return a=n.message?[].concat(n.message).map(f(n)):s.error?[s.error(n,u(s.messages.required,n.field))]:[],t(a);var c={};if(n.defaultField)for(var h in e.value)e.value.hasOwnProperty(h)&&(c[h]=n.defaultField);for(var d in c=r()({},c,e.rule.fields))if(c.hasOwnProperty(d)){var p=Array.isArray(c[d])?c[d]:[c[d]];c[d]=p.map(o.bind(null,d))}var A=new k(c);A.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),A.validate(e.value,e.rule.options||s,function(e){t(e&&e.length?a.concat(e):e)})}else t(a)}i=i&&(n.required||!n.required&&e.value),n.field=e.field;var h=n.validator(n,e.value,c,e.source,s);h&&h.then&&h.then(function(){return c()},function(e){return c(e)})},function(e){!function(e){var t,n=void 0,i=void 0,r=[],o={};for(n=0;n<e.length;n++)t=e[n],Array.isArray(t)?r=r.concat.apply(r,t):r.push(t);if(r.length)for(n=0;n<r.length;n++)o[i=r[n].field]=o[i]||[],o[i].push(r[n]);else r=null,o=null;c(r,o)}(e)})}else c&&c()},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!x.hasOwnProperty(e.type))throw new Error(u("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]?x.required:x[this.getType(e)]||!1}},k.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");x[e]=t},k.messages=S;t.default=k},kM2E:function(e,t,n){var i=n("7KvD"),r=n("FeBl"),o=n("+ZMJ"),a=n("hJx8"),s=n("D2L2"),l=function(e,t,n){var u,c,h,d=e&l.F,f=e&l.G,p=e&l.S,A=e&l.P,g=e&l.B,v=e&l.W,m=f?r:r[t]||(r[t]={}),y=m.prototype,_=f?i:p?i[t]:(i[t]||{}).prototype;for(u in f&&(n=t),n)(c=!d&&_&&void 0!==_[u])&&s(m,u)||(h=c?_[u]:n[u],m[u]=f&&"function"!=typeof _[u]?n[u]:g&&c?o(h,i):v&&_[u]==h?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(h):A&&"function"==typeof h?o(Function.call,h):h,A&&((m.virtual||(m.virtual={}))[u]=h,e&l.R&&y&&!y[u]&&a(y,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},kNJA:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=59)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},15:function(e,t){e.exports=n("fEB+")},19:function(e,t){e.exports=n("EKTV")},21:function(e,t){e.exports=n("E/in")},26:function(e,t){e.exports=n("nvbp")},3:function(e,t){e.exports=n("ylDJ")},31:function(e,t){e.exports=n("zTCi")},40:function(e,t){e.exports=n("hyEB")},51:function(e,t){e.exports=n("RDoK")},59:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:["el-cascader-panel",this.border&&"is-bordered"],on:{keydown:this.handleKeyDown}},this._l(this.menus,function(e,n){return t("cascader-menu",{key:n,ref:"menu",refInFor:!0,attrs:{index:n,nodes:e}})}),1)};i._withStripped=!0;var r=n(26),o=n.n(r),a=n(15),s=n.n(a),l=n(19),u=n.n(l),c=n(51),h=n.n(c),d=n(3),f=function(e){return e.stopPropagation()},p={inject:["panel"],components:{ElCheckbox:u.a,ElRadio:h.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,i=this.isDisabled,r=this.config,o=r.multiple;!r.checkStrictly&&i||n.loading||(r.lazy&&!n.loaded?t.lazyLoad(n,function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var i=!!t&&n.checked;e.handleMultiCheckChange(i)}}):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,i=this.config,r=i.checkStrictly;return i.multiple?this.renderCheckbox(e):r?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,i=this.isDisabled,r={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(r.nativeOn.click=f),e("el-checkbox",o()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:i}},r]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,i=this.isDisabled;return Object(d.isEqual)(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:i},on:{change:this.handleCheckChange},nativeOn:{click:f}},[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,i=t.renderLabelFn;return e("span",{class:"el-cascader-node__label"},[(i?i({node:n,data:n.data}):null)||n.label])}},render:function(e){var t=this,n=this.inActivePath,i=this.inCheckedPath,r=this.isChecked,a=this.isLeaf,s=this.isDisabled,l=this.config,u=this.nodeId,c=l.expandTrigger,h=l.checkStrictly,d=l.multiple,f=!h&&s,p={on:{}};return"click"===c?p.on.click=this.handleExpand:(p.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},p.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!a||s||h||d||(p.on.click=this.handleCheckChange),e("li",o()([{attrs:{role:"menuitem",id:u,"aria-expanded":n,tabindex:f?null:-1},class:{"el-cascader-node":!0,"is-selectable":h,"in-active-path":n,"in-checked-path":i,"is-active":r,"is-disabled":f}},p]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},A=n(0),g=Object(A.a)(p,void 0,void 0,!1,null,null,null);g.options.__file="packages/cascader-panel/src/cascader-node.vue";var v=g.exports,m=n(6),y={name:"ElCascaderMenu",mixins:[n.n(m).a],inject:["panel"],components:{ElScrollbar:s.a,CascaderNode:v},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(d.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,i=this.$refs.hoverZone;if(t&&i)if(t.contains(e.target)){clearTimeout(n);var r=this.$el.getBoundingClientRect().left,o=e.clientX-r,a=this.$el,s=a.offsetWidth,l=a.offsetHeight,u=t.offsetTop,c=u+t.offsetHeight;i.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+u+" L"+s+" 0 V"+u+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+c+" L"+s+" "+l+" V"+c+' 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,i={on:{}};n&&(i.on.expand=this.handleExpand);var r=this.nodes.map(function(n,r){var a=n.hasChildren;return e("cascader-node",o()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":a,"aria-owns":a?t:null}},i]))});return[].concat(r,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",o()([{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"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},_=Object(A.a)(y,void 0,void 0,!1,null,null,null);_.options.__file="packages/cascader-panel/src/cascader-menu.vue";var b=_.exports,w=n(21),x=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var C=0,S=function(){function e(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.config=n,this.parent=i||null,this.level=this.parent?this.parent.level+1:1,this.uid=C++,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,i=n.children,r=this.data[i];this.hasChildren=Array.isArray(r),this.children=(r||[]).map(function(i){return new e(i,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(d.isEqual)(e,t)}):Object(d.isEqual)(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r="onParent"+Object(d.capitalize)(e);this.children.forEach(function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[r]&&t[r].apply(t,n))})},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(d.capitalize)(e);if(t){for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];t[n]&&t[n].apply(t,r),t.emit.apply(t,[e].concat(r))}},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,t){return e+(t.checked?1:t.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")))},x(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,r=n.checkStrictly;return e[i]||!r&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,o=r.lazy,a=r.leaf;if(o){var s=Object(w.isDef)(e[a])?e[a]:!!t&&!i.length;return this.hasChildren=!s,s}return!n}}]),e}();var k=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.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(d.coerceTruthyValueToArray)(e),this.nodes=e.map(function(e){return new S(e,t.config)}),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new S(e,this.config,t);(t?t.children:this.nodes).push(n)},e.prototype.appendNodes=function(e,t){var n=this;(e=Object(d.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:function e(t,n){return t.reduce(function(t,i){return i.isLeaf?t.push(i):(!n&&t.push(i),t=t.concat(e(i.children,n))),t},[])}(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter(function(t){return Object(d.valueEquals)(t.path,e)||t.value===e});return t&&t.length?t[0]:null},e}(),B=n(9),T=n.n(B),E=n(40),I=n.n(E),M=n(31),D=n.n(M),P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},F=I.a.keys,O={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:d.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},L=function(e){return!e.getAttribute("aria-owns")},N=function(e,t){var n=e.parentNode;if(n){var i=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return i[Array.prototype.indexOf.call(i,e)+t]||null}return null},R=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},U=function(e){e&&(e.focus(),!L(e)&&e.click())},Q={name:"ElCascaderPanel",components:{CascaderMenu:b},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 T()(P({},O),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(d.isEqual)(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(d.isEmpty)(t)?this.lazyLoad():(this.store=new k(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(d.isEqual)(e,t)||(this.activePath=[],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)})},isEmptyValue:function(e){var t=this.multiple,n=this.config.emitPath;return!(!t&&!n)&&Object(d.isEmpty)(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,i=this.activePath,r=this.checkedValue;if(Object(d.isEmpty)(i))if(this.isEmptyValue(r))this.activePath=[],this.menus=[t.getNodes()];else{var o=n?r[0]:r,a=((this.getNodeByValue(o)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(a)}else{var s=i.map(function(t){return e.getNodeByValue(t.getValue())});this.expandNodes(s)}},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(d.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 F.up:var n=N(t,-1);U(n);break;case F.down:var i=N(t,1);U(i);break;case F.left:var r=this.$refs.menu[R(t)-1];if(r){var o=r.$el.querySelector('.el-cascader-node[aria-expanded="true"]');U(o)}break;case F.right:var a=this.$refs.menu[R(t)+1];if(a){var s=a.$el.querySelector('.el-cascader-node[tabindex="-1"]');U(s)}break;case F.enter:!function(e){if(e){var t=e.querySelector("input");t?t.click():L(e)&&e.click()}}(t);break;case F.esc:case F.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,i=e.level,r=n.slice(0,i-1),o=this.menus.slice(0,i);if(e.isLeaf||(r.push(e),o.push(e.children)),this.activePath=r,this.menus=o,!t){var a=r.map(function(e){return e.getValue()}),s=n.map(function(e){return e.getValue()});Object(d.valueEquals)(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,i=this.config;e||(e=e||{root:!0,level:0},this.store=new k([],i),this.menus=[this.store.getNodes()]),e.loading=!0;i.lazyLoad(e,function(i){var r=e.root?null:e;if(i&&i.length&&n.store.appendNodes(i,r),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(i)&&i.filter(function(e){return e[a]===o}).length>0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,function(){n.handleExpand(l)}),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(i)})},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map(function(e){return e.getValueByOption()})},scrollIntoView:function(){this.$isServer||(this.$refs.menu||[]).forEach(function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),i=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");D()(n,i)}})},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}):this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,i=e.emitPath;n?(this.getCheckedNodes(t).filter(function(e){return!e.isDisabled}).forEach(function(e){return e.doCheck(!1)}),this.calculateMultiCheckedValue()):this.checkedValue=i?[]:null}}},H=Object(A.a)(Q,i,[],!1,null,null,null);H.options.__file="packages/cascader-panel/src/cascader-panel.vue";var j=H.exports;j.install=function(e){e.component(j.name,j)};t.default=j},6:function(e,t){e.exports=n("y+7x")},9:function(e,t){e.exports=n("jmaC")}})},knuC:function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?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)}},lFkc:function(e,t,n){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};e.exports=r},lNQ5:function(e,t){var n,i,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!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:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var l,u=[],c=!1,h=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):h=-1,u.length&&f())}function f(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++h<t;)l&&l[h].run();h=-1,t=u.length}l=null,c=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function A(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=A,r.addListener=A,r.once=A,r.off=A,r.removeListener=A,r.removeAllListeners=A,r.emit=A,r.prependListener=A,r.prependOnceListener=A,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},lOnJ:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},lktj:function(e,t,n){var i=n("Ibhu"),r=n("xnc9");e.exports=Object.keys||function(e){return i(e,r)}},mClu:function(e,t,n){var i=n("kM2E");i(i.S+i.F*!n("+E39"),"Object",{defineProperty:n("evD5").f})},msXi:function(e,t,n){var i=n("77Pl");e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&i(o.call(e)),t}}},mtWM:function(e,t,n){e.exports=n("tIFN")},mtrD:function(e,t){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=86)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},86:function(e,t,n){"use strict";n.r(t);var i=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()])};i._withStripped=!0;var r={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)}}},o=n(0),a=Object(o.a)(r,i,[],!1,null,null,null);a.options.__file="packages/button/src/button.vue";var s=a.exports;s.install=function(e){e.component(s.name,s)};t.default=s}})},mvHQ:function(e,t,n){e.exports={default:n("qkKv"),__esModule:!0}},mw3O:function(e,t,n){"use strict";var i=n("CwSZ"),r=n("DDCP"),o=n("XgCd");e.exports={formats:o,parse:r,stringify:i}},n0T6:function(e,t,n){var i=n("Ibhu"),r=n("xnc9").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},nErl:function(e,t){(function(t){e.exports=t}).call(t,{})},nvbp:function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function i(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce(function(e,t){var r,o,a,s,l;for(a in t)if(r=e[a],o=t[a],r&&n.test(a))if("class"===a&&("string"==typeof r&&(l=r,e[a]=r={},r[l]=!0),"string"==typeof o&&(l=o,t[a]=o={},o[l]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)r[s]=i(r[s],o[s]);else if(Array.isArray(r))e[a]=r.concat(o);else if(Array.isArray(o))e[a]=[r].concat(o);else for(s in o)r[s]=o[s];else e[a]=t[a];return e},{})}},oJlt:function(e,t,n){"use strict";var i=n("cGG2"),r=["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,o,a={};return e?(i.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=i.trim(e.substr(0,o)).toLowerCase(),n=i.trim(e.substr(o+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},oM7Q:function(e,t,n){n("sF+V");var i=n("FeBl").Object;e.exports=function(e,t){return i.create(e,t)}},orbS:function(e,t){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=130)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},130:function(e,t,n){"use strict";n.r(t);var i={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,i=this.hit,r=this.effect,o=e("span",{class:["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",r?"el-tag--"+r:"",i&&"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?o:e("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},r=n(0),o=Object(r.a)(i,void 0,void 0,!1,null,null,null);o.options.__file="packages/tag/src/tag.vue";var a=o.exports;a.install=function(e){e.component(a.name,a)};t.default=a}})},p1b6:function(e,t,n){"use strict";var i=n("cGG2");e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.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(){}}},p8xL:function(e,t,n){"use strict";var i=Object.prototype.hasOwnProperty,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)void 0!==e[i]&&(n[i]=e[i]);return n};e.exports={arrayToObject:o,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var r=t[i],o=r.obj[r.prop],a=Object.keys(o),s=0;s<a.length;++s){var l=a[s],u=o[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:o,prop:l}),n.push(u))}return function(e){for(var t;e.length;){var n=e.pop();if(t=n.obj[n.prop],Array.isArray(t)){for(var i=[],r=0;r<t.length;++r)void 0!==t[r]&&i.push(t[r]);n.obj[n.prop]=i}}return t}(t)},decode:function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},encode:function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),n="",i=0;i<t.length;++i){var o=t.charCodeAt(i);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=t.charAt(i):o<128?n+=r[o]:o<2048?n+=r[192|o>>6]+r[128|63&o]:o<55296||o>=57344?n+=r[224|o>>12]+r[128|o>>6&63]+r[128|63&o]:(i+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(i)),n+=r[240|o>>18]+r[128|o>>12&63]+r[128|o>>6&63]+r[128|63&o])}return n},isBuffer:function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(Array.isArray(t))t.push(n);else{if("object"!=typeof t)return[t,n];(r.plainObjects||r.allowPrototypes||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if("object"!=typeof t)return[t].concat(n);var a=t;return Array.isArray(t)&&!Array.isArray(n)&&(a=o(t,r)),Array.isArray(t)&&Array.isArray(n)?(n.forEach(function(n,o){i.call(t,o)?t[o]&&"object"==typeof t[o]?t[o]=e(t[o],n,r):t.push(n):t[o]=n}),t):Object.keys(n).reduce(function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t},a)}}},pBtG:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},pFYg:function(e,t,n){"use strict";t.__esModule=!0;var i=a(n("Zzip")),r=a(n("5QVw")),o="function"==typeof r.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof r.default&&"symbol"===o(i.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":o(e)}},ppUw:function(e,t,n){var i,r;i={expires:"1d",path:"; path=/",domain:"",secure:"",sameSite:"; SameSite=Lax"},r={install:function(e){e.prototype.$cookies=this,e.$cookies=this},config:function(e,t,n,r,o){i.expires=e||"1d",i.path=t?"; path="+t:"; path=/",i.domain=n?"; domain="+n:"",i.secure=r?"; Secure":"",i.sameSite=o?"; SameSite="+o:"; SameSite=Lax"},get:function(e){var t=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(t&&"{"===t.substring(0,1)&&"}"===t.substring(t.length-1,t.length))try{t=JSON.parse(t)}catch(e){return t}return t},set:function(e,t,n,r,o,a,s){if(!e)throw new Error("Cookie name is not find in first argument.");if(/^(?:expires|max\-age|path|domain|secure|SameSite)$/i.test(e))throw new Error('Cookie key name illegality, Cannot be set to ["expires","max-age","path","domain","secure","SameSite"]\t current key name: '+e);t&&t.constructor===Object&&(t=JSON.stringify(t));var l="";if((n=void 0==n?i.expires:n)&&0!=n)switch(n.constructor){case Number:l=n===1/0||-1===n?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(n)){var u=n.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(n.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":l="; max-age="+2592e3*+u;break;case"d":l="; max-age="+86400*+u;break;case"h":l="; max-age="+3600*+u;break;case"min":l="; max-age="+60*+u;break;case"s":l="; max-age="+u;break;case"y":l="; max-age="+31104e3*+u;break;default:new Error('unknown exception of "set operation"')}}else l="; expires="+n;break;case Date:l="; expires="+n.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+l+(o?"; domain="+o:i.domain)+(r?"; path="+r:i.path)+(void 0==a?i.secure:a?"; Secure":"")+(void 0==s?i.sameSite:s?"; SameSite="+s:""),this},remove:function(e,t,n){return!(!e||!this.isKey(e))&&(document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:i.domain)+(t?"; path="+t:i.path)+"; SameSite=Lax",this)},isKey:function(e){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){if(!document.cookie)return[];for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=0;t<e.length;t++)e[t]=decodeURIComponent(e[t]);return e}},e.exports=r,"undefined"!=typeof window&&(window.$cookies=r)},pxG4:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"q+vg":function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var i=arguments[t];for(var r in i)n.call(i,r)&&(e[r]=i[r])}return e};var n=Object.prototype.hasOwnProperty},qARP:function(e,t,n){"use strict";var i=n("lOnJ");e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i}),this.resolve=i(t),this.reject=i(n)}(e)}},qRfI:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},qio6:function(e,t,n){var i=n("evD5"),r=n("77Pl"),o=n("lktj");e.exports=n("+E39")?Object.defineProperties:function(e,t){r(e);for(var n,a=o(t),s=a.length,l=0;s>l;)i.f(e,n=a[l++],t[n]);return e}},qkKv:function(e,t,n){var i=n("FeBl"),r=i.JSON||(i.JSON={stringify:JSON.stringify});e.exports=function(e){return r.stringify.apply(r,arguments)}},s3ue:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=126)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},126:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[this._t("default")],2)};i._withStripped=!0;var r=n(4),o={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[n.n(r).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])}}},a=n(0),s=Object(a.a)(o,i,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox-group.vue";var l=s.exports;l.install=function(e){e.component(l.name,l)};t.default=l},4:function(e,t){e.exports=n("fPll")}})},sB3e:function(e,t,n){var i=n("52gC");e.exports=function(e){return Object(i(e))}},sD9O:function(e,t){var n=function(e){return e.replace(/^\s+|\s+$/g,"")};e.exports=function(e){if(!e)return{};for(var t,i={},r=n(e).split("\n"),o=0;o<r.length;o++){var a=r[o],s=a.indexOf(":"),l=n(a.slice(0,s)).toLowerCase(),u=n(a.slice(s+1));void 0===i[l]?i[l]=u:(t=i[l],"[object Array]"===Object.prototype.toString.call(t)?i[l].push(u):i[l]=[i[l],u])}return i}},"sF+V":function(e,t,n){var i=n("kM2E");i(i.S,"Object",{create:n("Yobk")})},sN1u:function(e,t){function n(e){return e.replace(/\n\r?\s*/g,"")}e.exports=function(e){for(var t="",i=0;i<arguments.length;i++)t+=n(e[i])+(arguments[i+1]||"");return t}},sOR5:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},t8qj:function(e,t,n){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,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}},t8x9:function(e,t,n){var i=n("77Pl"),r=n("lOnJ"),o=n("dSzd")("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||void 0==(n=i(a)[o])?t:r(n)}},tIFN:function(e,t,n){"use strict";var i=n("cGG2"),r=n("JP+z"),o=n("XmWM"),a=n("DUeU");function s(e){var t=new o(e),n=r(o.prototype.request,t);return i.extend(n,o.prototype,t),i.extend(n,t),n}var l=s(n("KCLY"));l.Axios=o,l.create=function(e){return s(a(l.defaults,e))},l.Cancel=n("dVOP"),l.CancelToken=n("cWxy"),l.isCancel=n("pBtG"),l.all=function(e){return Promise.all(e)},l.spread=n("pxG4"),l.isAxiosError=n("SLDG"),e.exports=l,e.exports.default=l},"u/Zb":function(e,t,n){e.exports=n("Kh4W").f("species")},uY1a:function(e,t){e.exports=function(e,t,n,i){var r,o=0;return"boolean"!=typeof t&&(i=n,n=t,t=void 0),function(){var a=this,s=Number(new Date)-o,l=arguments;function u(){o=Number(new Date),n.apply(a,l)}i&&!r&&u(),r&&clearTimeout(r),void 0===i&&s>e?u():!0!==t&&(r=setTimeout(i?function(){r=void 0}:u,void 0===i?e-s:e))}}},ujcs:function(e,t){
  116. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  117. t.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?r-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=i;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=u}return(f?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var a,s,l,u=8*o-r-1,c=(1<<u)-1,h=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,A=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*l-1)*Math.pow(2,r),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;e[n+f]=255&s,f+=p,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;e[n+f]=255&a,f+=p,a/=256,u-=8);e[n+f-p]|=128*A}},uqUo:function(e,t,n){var i=n("kM2E"),r=n("FeBl"),o=n("S82l");e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},urW8:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var i=a(n("Vi3T")),r=a(n("7+uW")),o=a(n("i3rX"));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,a(n("SvnF")).default)(r.default),l=i.default,u=!1,c=function(){var e=Object.getPrototypeOf(this||r.default).$t;if("function"==typeof e&&r.default.locale)return u||(u=!0,r.default.locale(r.default.config.lang,(0,o.default)(l,r.default.locale(r.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},h=t.t=function(e,t){var n=c.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var i=e.split("."),r=l,o=0,a=i.length;o<a;o++){if(n=r[i[o]],o===a-1)return s(n,t);if(!n)return"";r=n}return""},d=t.use=function(e){l=e||l},f=t.i18n=function(e){c=e||c};t.default={use:d,t:h,i18n:f}},"us/S":function(e,t,n){e.exports={default:n("Xd32"),__esModule:!0}},"vFc/":function(e,t,n){var i=n("TcQ7"),r=n("QRG4"),o=n("fkB2");e.exports=function(e){return function(t,n,a){var s,l=i(t),u=r(l.length),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},"vIB/":function(e,t,n){"use strict";var i=n("O4g8"),r=n("kM2E"),o=n("880/"),a=n("hJx8"),s=n("/bQp"),l=n("94VQ"),u=n("e6n0"),c=n("PzxK"),h=n("dSzd")("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,A,g,v){l(n,t,p);var m,y,_,b=function(e){if(!d&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",x="values"==A,C=!1,S=e.prototype,k=S[h]||S["@@iterator"]||A&&S[A],B=k||b(A),T=A?x?b("entries"):B:void 0,E="Array"==t&&S.entries||k;if(E&&(_=c(E.call(new e)))!==Object.prototype&&_.next&&(u(_,w,!0),i||"function"==typeof _[h]||a(_,h,f)),x&&k&&"values"!==k.name&&(C=!0,B=function(){return k.call(this)}),i&&!v||!d&&!C&&S[h]||a(S,h,B),s[t]=B,s[w]=f,A)if(m={values:x?B:b("values"),keys:g?B:b("keys"),entries:T},v)for(y in m)y in S||o(S,y,m[y]);else r(r.P+r.F*(d||C),t,m);return m}},woOf:function(e,t,n){e.exports={default:n("V3tA"),__esModule:!0}},xGkn:function(e,t,n){"use strict";var i=n("4mcu"),r=n("EGZi"),o=n("/bQp"),a=n("TcQ7");e.exports=n("vIB/")(Array,"Array",function(e,t){this._t=a(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,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},"xH/j":function(e,t,n){var i=n("hJx8");e.exports=function(e,t,n){for(var r in t)n&&e[r]?e[r]=t[r]:i(e,r,t[r]);return e}},xLtR:function(e,t,n){"use strict";var i=n("cGG2"),r=n("TNV1"),o=n("pBtG"),a=n("KCLY");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},xnc9:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"y+7x":function(e,t,n){"use strict";t.__esModule=!0;var i=n("urW8");t.default={methods:{t:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.t.apply(this,t)}}}},yQBj:function(e,t,n){e.exports=function(){return new Worker(n.p+"bc2d9c19be0f1f086759.worker.js")}},ylDJ: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 i="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 l.call(e,t)},t.toObject=function(e){for(var t={},n=0;n<e.length;n++)e[n]&&u(t,e[n]);return t},t.getPropByPath=function(e,t,n){for(var i=e,r=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),o=0,a=r.length;o<a-1&&(i||n);++o){var s=r[o];if(!(s in i)){if(n)throw new Error("please transfer a valid prop path to form item!");break}i=i[s]}return{o:i,k:r[o],v:i?i[r[o]]:null}},t.rafThrottle=function(e){var t=!1;return function(){for(var n=this,i=arguments.length,r=Array(i),o=0;o<i;o++)r[o]=arguments[o];t||(t=!0,window.requestAnimationFrame(function(i){e.apply(n,r),t=!1}))}},t.objToArray=function(e){if(Array.isArray(e))return e;return f(e)?[]:[e]};var r,o=n("7+uW"),a=(r=o)&&r.__esModule?r:{default:r},s=n("835U");var l=Object.prototype.hasOwnProperty;function u(e,t){for(var n in t)e[n]=t[n];return e}t.getValueByPath=function(e,t){for(var n=(t=t||"").split("."),i=e,r=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!i)break;if(o===a-1){r=i[s];break}i=i[s]}return r};t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var c=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},h=(t.arrayFind=function(e,t){var n=c(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!a.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!a.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!a.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==(void 0===e?"undefined":i(e)))return e;var t=["ms-","webkit-"];return["transform","transition","animation"].forEach(function(n){var i=e[n];n&&i&&t.forEach(function(t){e[t+n]=i})}),e},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,s.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,s.isObject)(e),i=(0,s.isObject)(t);return n&&i?JSON.stringify(e)===JSON.stringify(t):!n&&!i&&String(e)===String(t)}),d=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!h(e[n],t[n]))return!1;return!0},f=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?d(e,t):h(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})},ytml:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("Kv9K"),r=(n.n(i),Promise.resolve());t.default=function(e){function t(t,n){var i;if("string"==typeof t)i={url:t};else if(t instanceof Uint8Array)i={data:t};else{if("object"!=typeof t||null===t)throw new TypeError("invalid src type");i=Object.assign({},t)}n&&n.withCredentials&&(i.withCredentials=n.withCredentials);var r=e.getDocument(i);return r.__PDFDocumentLoadingTask=!0,n&&n.onPassword&&(r.onPassword=n.onPassword),n&&n.onProgress&&(r.onProgress=n.onProgress),r}return{createLoadingTask:t,PDFJSWrapper:function(n,o,a){var s=null,l=null,u=null,c=!1;function h(){n.getContext("2d").clearRect(0,0,n.width,n.height)}function d(){for(;o.firstChild;)o.removeChild(o.firstChild)}n.getContext("2d").save(),this.destroy=function(){null!==s&&(r=s.destroy(),s=null)},this.getResolutionScale=function(){return n.offsetWidth/n.width},this.printPage=function(e,t){if(null!==l){var n=(void 0===e?150:e)/72,i=document.createElement("iframe");new Promise(function(e,t){i.frameBorder="0",i.scrolling="no",i.width="0px;",i.height="0px;",i.style.cssText="position: absolute; top: 0; left: 0",i.onload=function(){e(this.contentWindow)},window.document.body.appendChild(i)}).then(function(e){return e.document.title="",s.getPage(1).then(function(t){var i=t.getViewport({scale:1});return e.document.head.appendChild(e.document.createElement("style")).textContent="@supports ((size:A4) and (size:1pt 1pt)) {@page { margin: 1pt; size: "+i.width*n/(96/72)+"pt "+i.height*n/(96/72)+"pt; }}@media print {body { margin: 0 }canvas { page-break-before: avoid; page-break-after: always; page-break-inside: avoid }}@media screen {body { margin: 0 }}",e})}).then(function(e){for(var i=[],o=1;o<=s.numPages;++o)void 0!==t&&-1===t.indexOf(o)||i.push(s.getPage(o).then(function(t){var i=t.getViewport({scale:1}),r=e.document.body.appendChild(e.document.createElement("canvas"));return r.width=i.width*n,r.height=i.height*n,t.render({canvasContext:r.getContext("2d"),transform:[n,0,0,n,0,0],viewport:i,intent:"print"}).promise}));Promise.all(i).then(function(){e.focus(),e.document.queryCommandSupported("print")?e.document.execCommand("print",!1,null):e.print(),r()}).catch(function(e){r(),a("error",e)})})}function r(){i.parentNode.removeChild(i)}},this.renderPage=function(t){if(null!==u){if(c)return;return c=!0,void u.cancel().catch(function(e){a("error",e)})}if(null!==l){var h=(void 0===l.rotate?0:l.rotate)+(void 0===t?0:t),f=n.offsetWidth/l.getViewport({scale:1}).width*(window.devicePixelRatio||1),p=l.getViewport({scale:f,rotation:h});a("page-size",p.width,p.height,f),n.width=p.width,n.height=p.height,u=l.render({canvasContext:n.getContext("2d"),viewport:p}),o.style.visibility="hidden",d();var A={scrollPageIntoView:function(e){a("link-clicked",e.pageNumber)}},g=new i.PDFLinkService;g.setDocument(s),g.setViewer(A),r=r.then(function(){var n=l.getAnnotations({intent:"display"}).then(function(t){e.AnnotationLayer.render({viewport:p.clone({dontFlip:!0}),div:o,annotations:t,page:l,linkService:g,renderInteractiveForms:!1})}),i=u.promise.then(function(){o.style.visibility="",c=!1,u=null}).catch(function(n){if(u=null,n instanceof e.RenderingCancelledException)return c=!1,void this.renderPage(t);a("error",n)}.bind(this));return Promise.all([n,i])}.bind(this))}},this.forEachPage=function(e){var t=s.numPages;!function n(i){s.getPage(i).then(e).then(function(){++i<=t&&n(i)})}(1)},this.loadPage=function(e,t){l=null,null!==s&&(r=r.then(function(){return s.getPage(e)}).then(function(e){l=e,this.renderPage(t),a("page-loaded",e.pageNumber)}.bind(this)).catch(function(e){h(),d(),a("error",e)}))},this.loadDocument=function(i){if(s=null,l=null,a("num-pages",void 0),!i)return n.removeAttribute("width"),n.removeAttribute("height"),void d();r=r.then(function(){var n,r;if("object"==typeof(r=i)&&null!==r&&!0===r.__PDFDocumentLoadingTask){if(i.destroyed)return void a("error",new Error("loadingTask has been destroyed"));n=i}else n=t(i,{onPassword:function(t,n){var i;switch(n){case e.PasswordResponses.NEED_PASSWORD:i="NEED_PASSWORD";break;case e.PasswordResponses.INCORRECT_PASSWORD:i="INCORRECT_PASSWORD"}a("password",t,i)},onProgress:function(e){var t=e.loaded/e.total;a("progress",Math.min(t,1))}});return n.promise}).then(function(e){s=e,a("num-pages",e.numPages),a("loaded")}).catch(function(e){h(),d(),a("error",e)})},o.style.transformOrigin="0 0"}}}},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,i){return e[0]===t&&(n=i,!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),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,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,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},a=2;var s=20,l=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,c=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,i=!1,r=0;function s(){n&&(n=!1,e()),i&&u()}function l(){o(s)}function u(){var e=Date.now();if(n){if(e-r<a)return;i=!0}else n=!0,i=!1,setTimeout(l,t);r=e}return u}(this.refresh.bind(this),s)}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(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(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(){i&&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;l.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}(),h=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||r},f=y(0,0,0,0);function p(e){return parseFloat(e)||0}function A(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+p(e["border-"+n+"-width"])},0)}function g(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var i=d(e).getComputedStyle(e),r=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],o=e["padding-"+r];t[r]=p(o)}return t}(i),o=r.left+r.right,a=r.top+r.bottom,s=p(i.width),l=p(i.height);if("border-box"===i.boxSizing&&(Math.round(s+o)!==t&&(s-=A(i,"left","right")+o),Math.round(l+a)!==n&&(l-=A(i,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var u=Math.round(s+o)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return y(r.left,r.top,s,l)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return i?v(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):g(e):f}function y(e,t,n,i){return{x:e,y:t,width:n,height:i}}var _=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(){return function(e,t){var n,i,r,o,a,s,l,u=(i=(n=t).x,r=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),h(l,{x:i,y:r,width:o,height:a,top:r,right:i+o,bottom:a+r,left:i}),l);h(this,{target:e,contentRect:u})}}(),w=function(){function e(e,t,i){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_=i}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 d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _(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 d(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 b(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}(),x="undefined"!=typeof WeakMap?new WeakMap:new n,C=function(){return 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=c.getInstance(),i=new w(t,n,this);x.set(this,i)}}();["observe","unobserve","disconnect"].forEach(function(e){C.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}});var S=void 0!==r.ResizeObserver?r.ResizeObserver:C;t.default=S}.call(t,n("DuR2"))},"zAL+":function(e,t){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=87)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},87:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-button-group"},[this._t("default")],2)};i._withStripped=!0;var r={name:"ElButtonGroup"},o=n(0),a=Object(o.a)(r,i,[],!1,null,null,null);a.options.__file="packages/button/src/button-group.vue";var s=a.exports;s.install=function(e){e.component(s.name,s)};t.default=s}})},zL8q:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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="/dist/",n(n.s=45)}([function(e,t){e.exports=n("AMCD")},function(e,t){e.exports=n("2kvA")},function(e,t){e.exports=n("ylDJ")},function(e,t){e.exports=n("fPll")},function(e,t){e.exports=n("y+7x")},function(e,t){e.exports=n("fKx3")},function(e,t){e.exports=n("7+uW")},function(e,t){e.exports=n("jmaC")},function(e,t){e.exports=n("HJMx")},function(e,t){e.exports=n("aW5l")},function(e,t){e.exports=n("ISYW")},function(e,t){e.exports=n("7J9s")},function(e,t){e.exports=n("urW8")},function(e,t){e.exports=n("mtrD")},function(e,t){e.exports=n("02w1")},function(e,t){e.exports=n("835U")},function(e,t){e.exports=n("ON3O")},function(e,t){e.exports=n("EKTV")},function(e,t){e.exports=n("fEB+")},function(e,t){e.exports=n("E/in")},function(e,t){e.exports=n("eNfa")},function(e,t){e.exports=n("Zcwg")},function(e,t){e.exports=n("fUqW")},function(e,t){e.exports=n("1oZe")},function(e,t){e.exports=n("nvbp")},function(e,t){e.exports=n("uY1a")},function(e,t){e.exports=n("aMwW")},function(e,t){e.exports=n("zTCi")},function(e,t){e.exports=n("zAL+")},function(e,t){e.exports=n("orbS")},function(e,t){e.exports=n("6Twh")},function(e,t){e.exports=n("s3ue")},function(e,t){e.exports=n("H8dH")},function(e,t){e.exports=n("GegP")},function(e,t){e.exports=n("hyEB")},function(e,t){e.exports=n("HzcN")},function(e,t){e.exports=n("e0Bm")},function(e,t){e.exports=n("STLj")},function(e,t){e.exports=n("3fo+")},function(e,t){e.exports=n("DQJY")},function(e,t){e.exports=n("jwfv")},function(e,t){e.exports=n("0kY3")},function(e,t){e.exports=n("kNJA")},function(e,t){e.exports=n("RDoK")},function(e,t){e.exports=n("SXzR")},function(e,t,n){e.exports=n(46)},function(e,t,n){"use strict";n.r(t);var i=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 r(e,t,n,i,r,o,a,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}i._withStripped=!0;var o=r({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),i=this.pageCount,r=this.currentPage,o=this.pagerCount-2;-1!==t.className.indexOf("more")&&(-1!==t.className.indexOf("quickprev")?n=r-o:-1!==t.className.indexOf("quicknext")&&(n=r+o)),isNaN(n)||(n<1&&(n=1),n>i&&(n=i)),n!==r&&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),i=Number(this.pageCount),r=!1,o=!1;i>e&&(n>e-t&&(r=!0),n<i-t&&(o=!0));var a=[];if(r&&!o)for(var s=i-(e-2);s<i;s++)a.push(s);else if(!r&&o)for(var l=2;l<e;l++)a.push(l);else if(r&&o)for(var u=Math.floor(e/2)-1,c=n-u;c<=n+u;c++)a.push(c);else for(var h=2;h<i;h++)a.push(h);return this.showPrevMore=r,this.showNextMore=o,a}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},i,[],!1,null,null,null);o.options.__file="packages/pagination/src/pager.vue";var a=o.exports,s=n(36),l=n.n(s),u=n(37),c=n.n(u),h=n(8),d=n.n(h),f=n(4),p=n.n(f),A=n(2),g={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 n=e("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),i={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"}),a=!1;return n.children=n.children||[],o.children=o.children||[],r.forEach(function(e){"->"!==e?a?o.children.push(i[e]):n.children.push(i[e]):a=!0}),a&&n.children.unshift(o),n},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:[p.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(e,t){Object(A.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:l.a,ElOption:c.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:[p.a],components:{ElInput:d.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:[p.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:a},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)?t=1: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(g.name,g)}},v=g,m=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()])])])};m._withStripped=!0;var y=n(11),_=n.n(y),b=n(9),w=n.n(b),x=n(3),C=n.n(x),S=r({name:"ElDialog",mixins:[_.a,C.a,w.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 e={};return this.fullscreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},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)}},m,[],!1,null,null,null);S.options.__file="packages/dialog/src/component.vue";var k=S.exports;k.install=function(e){e.component(k.name,k)};var B=k,T=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.handleInput,change: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")?e.handleKeyEnter(t):null},function(t){return"button"in t||!e._k(t.keyCode,"tab",9,t.key,"Tab")?e.close(t):null}]}},"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,i){return n("li",{key:i,class:{highlighted:e.highlightedIndex===i},attrs:{id:e.id+"-item-"+i,role:"option","aria-selected":e.highlightedIndex===i},on:{click:function(n){e.select(t)}}},[e._t("default",[e._v("\n "+e._s(t[e.valueKey])+"\n ")],{item:t})],2)}),0)],1)};T._withStripped=!0;var E=n(16),I=n.n(E),M=n(10),D=n.n(M),P=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)])};P._withStripped=!0;var F=n(5),O=n.n(F),L=n(18),N=n.n(L),R=r({components:{ElScrollbar:N.a},mixins:[O.a,C.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.$parent.$refs.input.$refs.textarea,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})}},P,[],!1,null,null,null);R.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var U=R.exports,Q=n(23),H=n.n(Q),j=r({name:"ElAutocomplete",mixins:[C.a,H()("input"),w.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:d.a,ElAutocompleteSuggestions:U},directives:{Clickoutside:D.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(A.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"))}))},handleInput:function(e){if(this.$emit("input",e),this.suggestionDisabled=!1,!this.triggerOnFocus&&!e)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(e)},handleChange:function(e){this.$emit("change",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],i=t.scrollTop,r=n.offsetTop;r+n.scrollHeight>i+t.clientHeight&&(t.scrollTop+=n.scrollHeight),r<i&&(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=I()(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()}},T,[],!1,null,null,null);j.options.__file="packages/autocomplete/src/autocomplete.vue";var V=j.exports;V.install=function(e){e.component(V.name,V)};var z=V,$=n(13),G=n.n($),W=n(28),K=n.n(W),Y=r({name:"ElDropdown",componentName:"ElDropdown",mixins:[C.a,w.a],directives:{Clickoutside:D.a},components:{ElButton:G.a,ElButtonGroup:K.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},disabled:{type:Boolean,default:!1}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(A.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.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.visible=!0},"click"===this.trigger?0:this.showTimeout))},hide:function(){var e=this;this.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.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,i=this.menuItemsArray.indexOf(n),r=this.menuItemsArray.length-1,o=void 0;[38,40].indexOf(t)>-1?(o=38===t?0!==i?i-1:0:i<r?i+1:r,this.removeTabindex(),this.resetTabindex(this.menuItems[o]),this.menuItems[o].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,i=this.hide,r=this.handleClick,o=this.splitButton,a=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=o?this.$refs.trigger.$el:this.$slots.default[0].elm;var l=this.dropdownElm;this.triggerElm.addEventListener("keydown",a),l.addEventListener("keydown",s,!0),o||(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",i),l.addEventListener("mouseenter",n),l.addEventListener("mouseleave",i)):"click"===t&&this.triggerElm.addEventListener("click",r)},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,i=this.splitButton,r=this.type,o=this.dropdownSize,a=this.disabled,s=null;if(i)s=e("el-button-group",[e("el-button",{attrs:{type:r,size:o,disabled:a},nativeOn:{click:function(e){t.$emit("click",e),n()}}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:r,size:o,disabled:a},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]);else{var l=(s=this.$slots.default)[0].data||{},u=l.attrs,c=void 0===u?{}:u;a&&!c.disabled&&(c.disabled=!0,l.attrs=c)}var h=a?null:this.$slots.dropdown;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}],attrs:{"aria-disabled":a}},[s,h])}},void 0,void 0,!1,null,null,null);Y.options.__file="packages/dropdown/src/dropdown.vue";var q=Y.exports;q.install=function(e){e.component(q.name,q)};var X=q,J=function(){var e=this.$createElement,t=this._self._c||e;return t("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":this.doDestroy}},[t("ul",{directives:[{name:"show",rawName:"v-show",value:this.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[this.size&&"el-dropdown-menu--"+this.size]},[this._t("default")],2)])};J._withStripped=!0;var Z=r({name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[O.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}}}},J,[],!1,null,null,null);Z.options.__file="packages/dropdown/src/dropdown-menu.vue";var ee=Z.exports;ee.install=function(e){e.component(ee.name,ee)};var te=ee,ne=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)};ne._withStripped=!0;var ie=r({name:"ElDropdownItem",mixins:[C.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},ne,[],!1,null,null,null);ie.options.__file="packages/dropdown/src/dropdown-item.vue";var re=ie.exports;re.install=function(e){e.component(re.name,re)};var oe=re,ae=ae||{};ae.Utils=ae.Utils||{},ae.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(ae.Utils.attemptFocus(n)||ae.Utils.focusFirstDescendant(n))return!0}return!1},ae.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(ae.Utils.attemptFocus(n)||ae.Utils.focusLastDescendant(n))return!0}return!1},ae.Utils.attemptFocus=function(e){if(!ae.Utils.isFocusable(e))return!1;ae.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(e){}return ae.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},ae.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},ae.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var i=document.createEvent(n),r=arguments.length,o=Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];return i.initEvent.apply(i,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent("on"+t,i),e},ae.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var se=ae.Utils,le=function(e,t){this.domNode=t,this.parent=e,this.subMenuItems=[],this.subIndex=0,this.init()};le.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},le.prototype.gotoSubIndex=function(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e},le.prototype.addListeners=function(){var e=this,t=se.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,function(i){i.addEventListener("keydown",function(i){var r=!1;switch(i.keyCode){case t.down:e.gotoSubIndex(e.subIndex+1),r=!0;break;case t.up:e.gotoSubIndex(e.subIndex-1),r=!0;break;case t.tab:se.triggerEvent(n,"mouseleave");break;case t.enter:case t.space:r=!0,i.currentTarget.click()}return r&&(i.preventDefault(),i.stopPropagation()),!1})})};var ue=le,ce=function(e){this.domNode=e,this.submenu=null,this.init()};ce.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var e=this.domNode.querySelector(".el-menu");e&&(this.submenu=new ue(this,e)),this.addListeners()},ce.prototype.addListeners=function(){var e=this,t=se.keys;this.domNode.addEventListener("keydown",function(n){var i=!1;switch(n.keyCode){case t.down:se.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(0),i=!0;break;case t.up:se.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(e.submenu.subMenuItems.length-1),i=!0;break;case t.tab:se.triggerEvent(n.currentTarget,"mouseleave");break;case t.enter:case t.space:i=!0,n.currentTarget.click()}i&&n.preventDefault()})};var he=ce,de=function(e){this.domNode=e,this.init()};de.prototype.init=function(){var e=this.domNode.childNodes;[].filter.call(e,function(e){return 1===e.nodeType}).forEach(function(e){new he(e)})};var fe=de,pe=n(1),Ae=r({name:"ElMenu",render:function(e){var t=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",[t]):t},componentName:"ElMenu",mixins:[C.a,w.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(pe.addClass)(e,"el-opacity-transition"),e.style.opacity=1},afterEnter:function(e){Object(pe.removeClass)(e,"el-opacity-transition"),e.style.opacity=""},beforeLeave:function(e){e.dataset||(e.dataset={}),Object(pe.hasClass)(e,"el-menu--collapse")?(Object(pe.removeClass)(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(pe.addClass)(e,"el-menu--collapse")):(Object(pe.addClass)(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(pe.removeClass)(e,"el-menu--collapse")),e.style.width=e.scrollWidth+"px",e.style.overflow="hidden"},leave:function(e){Object(pe.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 t=2;t>=0;t--)e.splice(t,0,e[t]);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),i=n.red,r=n.green,o=n.blue;return t>0?(i*=1-t,r*=1-t,o*=1-t):(i+=(255-i)*t,r+=(255-r)*t,o+=(255-o)*t),"rgb("+Math.round(i)+", "+Math.round(r)+", "+Math.round(o)+")"},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 t=this.openedMenus.indexOf(e);-1!==t&&this.openedMenus.splice(t,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,i=e.indexPath,r=this.activeIndex,o=null!==e.index;o&&(this.activeIndex=e.index),this.$emit("select",n,i,e),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&o&&this.routeToItem(e,function(e){if(t.activeIndex=r,e){if("NavigationDuplicated"===e.name)return;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(e){return t.openMenu(e,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 fe(this.$el),this.$watch("items",this.updateActiveIndex)}},void 0,void 0,!1,null,null,null);Ae.options.__file="packages/menu/src/menu.vue";var ge=Ae.exports;ge.install=function(e){e.component(ge.name,ge)};var ve=ge,me=n(21),ye=n.n(me),_e={inject:["rootMenu"],computed:{indexPath:function(){for(var e=[this.index],t=this.$parent;"ElMenu"!==t.$options.componentName;)t.index&&e.unshift(t.index),t=t.$parent;return e},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"}}}},be={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:O.a.props.offset,boundariesPadding:O.a.props.boundariesPadding,popperOptions:O.a.props.popperOptions},data:O.a.data,methods:O.a.methods,beforeDestroy:O.a.beforeDestroy,deactivated:O.a.deactivated},we=r({name:"ElSubmenu",componentName:"ElSubmenu",mixins:[_e,C.a,be],components:{ElCollapseTransition:ye.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 i=this.rootMenu,r=this.disabled;"click"===i.menuTrigger&&"horizontal"===i.mode||!i.collapse&&"vertical"===i.mode||r||(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 e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.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,i=this.opened,r=this.paddingStyle,o=this.titleStyle,a=this.backgroundColor,s=this.rootMenu,l=this.currentPlacement,u=this.menuTransitionName,c=this.mode,h=this.disabled,d=this.popperClass,f=this.$slots,p=this.isFirstLevel,A=e("transition",{attrs:{name:u}},[e("div",{ref:"menu",directives:[{name:"show",value:i}],class:["el-menu--"+c,d],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-"+l],style:{backgroundColor:s.backgroundColor||""}},[f.default])])]),g=e("el-collapse-transition",[e("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:i}],style:{backgroundColor:s.backgroundColor||""}},[f.default])]),v="horizontal"===s.mode&&p||"vertical"===s.mode&&!s.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return e("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":i,"is-disabled":h},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":i},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:[r,o,{backgroundColor:a}]},[f.title,e("i",{class:["el-submenu__icon-arrow",v]})]),this.isMenuPopup?A:g])}},void 0,void 0,!1,null,null,null);we.options.__file="packages/menu/src/submenu.vue";var xe=we.exports;xe.install=function(e){e.component(xe.name,xe)};var Ce=xe,Se=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)};Se._withStripped=!0;var ke=n(26),Be=n.n(ke),Te=r({name:"ElMenuItem",componentName:"ElMenuItem",mixins:[_e,C.a],components:{ElTooltip:Be.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 e={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(e.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),e},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)}},Se,[],!1,null,null,null);Te.options.__file="packages/menu/src/menu-item.vue";var Ee=Te.exports;Ee.install=function(e){e.component(Ee.name,Ee)};var Ie=Ee,Me=function(){var e=this.$createElement,t=this._self._c||e;return t("li",{staticClass:"el-menu-item-group"},[t("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:this.levelPadding+"px"}},[this.$slots.title?this._t("title"):[this._v(this._s(this.title))]],2),t("ul",[this._t("default")],2)])};Me._withStripped=!0;var De=r({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}}},Me,[],!1,null,null,null);De.options.__file="packages/menu/src/menu-item-group.vue";var Pe=De.exports;Pe.install=function(e){e.component(Pe.name,Pe)};var Fe=Pe,Oe=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,compositionupdate:e.handleCompositionUpdate,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:{mousedown:function(e){e.preventDefault()},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,compositionupdate:e.handleCompositionUpdate,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)};Oe._withStripped=!0;var Le=void 0,Ne="\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",Re=["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 Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Le||(Le=document.createElement("textarea"),document.body.appendChild(Le));var i=function(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),r=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Re.map(function(e){return e+":"+t.getPropertyValue(e)}).join(";"),paddingSize:i,borderSize:r,boxSizing:n}}(e),r=i.paddingSize,o=i.borderSize,a=i.boxSizing,s=i.contextStyle;Le.setAttribute("style",s+";"+Ne),Le.value=e.value||e.placeholder||"";var l=Le.scrollHeight,u={};"border-box"===a?l+=o:"content-box"===a&&(l-=r),Le.value="";var c=Le.scrollHeight-r;if(null!==t){var h=c*t;"border-box"===a&&(h=h+r+o),l=Math.max(h,l),u.minHeight=h+"px"}if(null!==n){var d=c*n;"border-box"===a&&(d=d+r+o),l=Math.min(d,l)}return u.height=l+"px",Le.parentNode&&Le.parentNode.removeChild(Le),Le=null,u}var Qe=n(7),He=n.n(Qe),je=n(19),Ve=r({name:"ElInput",componentName:"ElInput",mixins:[C.a,w.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 He()({},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=Ue(this.$refs.textarea,t,n)}else this.textareaCalcStyle={minHeight:Ue(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(je.isKorean)(n)},handleCompositionEnd:function(e){this.isComposing&&(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(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick(function(){e.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)}},Oe,[],!1,null,null,null);Ve.options.__file="packages/input/src/input.vue";var ze=Ve.exports;ze.install=function(e){e.component(ze.name,ze)};var $e=ze,Ge=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")?e.decrease(t):null}}},[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")?e.increase(t):null}}},[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"])?(t.preventDefault(),e.increase(t)):null},function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?(t.preventDefault(),e.decrease(t)):null}]}})],1)};Ge._withStripped=!0;var We={bind:function(e,t,n){var i=null,r=void 0,o=function(){return n.context[t.expression].apply()},a=function(){Date.now()-r<100&&o(),clearInterval(i),i=null};Object(pe.on)(e,"mousedown",function(e){0===e.button&&(r=Date.now(),Object(pe.once)(document,"mouseup",a),clearInterval(i),i=setInterval(o,100))})}},Ke=r({name:"ElInputNumber",mixins:[H()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:We},components:{ElInput:d.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),i=Math.pow(10,n);t=Math.round(t/this.step)*i*this.step/i}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,i=this.precision,r=n(t);return void 0!==i?(r>i&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),i):Math.max(n(e),r)},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("."),i=0;return-1!==n&&(i=t.length-n-1),i},_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)}},Ge,[],!1,null,null,null);Ke.options.__file="packages/input-number/src/input-number.vue";var Ye=Ke.exports;Ye.install=function(e){e.component(Ye.name,Ye)};var qe=Ye,Xe=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",autocomplete:"off"},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)])};Xe._withStripped=!0;var Je=r({name:"ElRadio",mixins:[C.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)})}}},Xe,[],!1,null,null,null);Je.options.__file="packages/radio/src/radio.vue";var Ze=Je.exports;Ze.install=function(e){e.component(Ze.name,Ze)};var et=Ze,tt=function(){var e=this.$createElement;return(this._self._c||e)(this._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:this.handleKeydown}},[this._t("default")],2)};tt._withStripped=!0;var nt=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),it=r({name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[C.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){var e=(this.$vnode.data||{}).tag;return e&&"component"!==e||(e="div"),e},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]",i=this.$el.querySelectorAll(n),r=i.length,o=[].indexOf.call(i,t),a=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case nt.LEFT:case nt.UP:e.stopPropagation(),e.preventDefault(),0===o?(a[r-1].click(),a[r-1].focus()):(a[o-1].click(),a[o-1].focus());break;case nt.RIGHT:case nt.DOWN:o===r-1?(e.stopPropagation(),e.preventDefault(),a[0].click(),a[0].focus()):(a[o+1].click(),a[o+1].focus())}}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[this.value])}}},tt,[],!1,null,null,null);it.options.__file="packages/radio/src/radio-group.vue";var rt=it.exports;rt.install=function(e){e.component(rt.name,rt)};var ot=rt,at=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",autocomplete:"off"},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)])};at._withStripped=!0;var st=r({name:"ElRadioButton",mixins:[C.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)})}}},at,[],!1,null,null,null);st.options.__file="packages/radio/src/radio-button.vue";var lt=st.exports;lt.install=function(e){e.component(lt.name,lt)};var ut=lt,ct=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:{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:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"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":e.indeterminate?"true":"false",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,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=e._i(n,null);i.checked?o<0&&(e.model=n.concat([null])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=r},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":e.indeterminate?"true":"false",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,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},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()])};ct._withStripped=!0;var ht=r({name:"ElCheckbox",mixins:[C.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)}}},ct,[],!1,null,null,null);ht.options.__file="packages/checkbox/src/checkbox.vue";var dt=ht.exports;dt.install=function(e){e.component(dt.name,dt)};var ft=dt,pt=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,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=e._i(n,null);i.checked?o<0&&(e.model=n.concat([null])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=r},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,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},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()])};pt._withStripped=!0;var At=r({name:"ElCheckboxButton",mixins:[C.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()}},pt,[],!1,null,null,null);At.options.__file="packages/checkbox/src/checkbox-button.vue";var gt=At.exports;gt.install=function(e){e.component(gt.name,gt)};var vt=gt,mt=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[this._t("default")],2)};mt._withStripped=!0;var yt=r({name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[C.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);yt.options.__file="packages/checkbox/src/checkbox-group.vue";var _t=yt.exports;_t.install=function(e){e.component(_t.name,_t)};var bt=_t,wt=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")?e.switchValue(t):null}}}),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()])};wt._withStripped=!0;var xt=r({name:"ElSwitch",mixins:[H()("input"),w.a,C.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}},wt,[],!1,null,null,null);xt.options.__file="packages/switch/src/component.vue";var Ct=xt.exports;Ct.install=function(e){e.component(Ct.name,Ct)};var St=Ct,kt=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},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")?(t.preventDefault(),e.selectOption(t)):null},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"])?e.deletePrevTag(t):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],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,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange},nativeOn:{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")?(t.preventDefault(),e.selectOption(t)):null},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}],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)};kt._withStripped=!0;var Bt=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass],style:{minWidth:this.minWidth}},[this._t("default")],2)};Bt._withStripped=!0;var Tt=r({name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[O.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);Tt.options.__file="packages/select/src/select-dropdown.vue";var Et=Tt.exports,It=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)};It._withStripped=!0;var Mt="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},Dt=r({mixins:[C.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,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===(void 0===e?"undefined":Mt(e))&&"object"===(void 0===t?"undefined":Mt(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(A.getValueByPath)(e,n)===Object(A.getValueByPath)(t,n)}return e===t},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(A.getValueByPath)(e,n)===Object(A.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(A.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,t=e.selected,n=e.multiple?t:[t],i=this.select.cachedOptions.indexOf(this),r=n.indexOf(this);i>-1&&r<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},It,[],!1,null,null,null);Dt.options.__file="packages/select/src/option.vue";var Pt=Dt.exports,Ft=n(29),Ot=n.n(Ft),Lt=n(14),Nt=n(27),Rt=n.n(Nt),Ut=r({mixins:[C.a,p.a,H()("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter(function(e){return e.visible}).every(function(e){return e.disabled})}},watch:{hoverIndex:function(e){var t=this;"number"==typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach(function(e){e.hover=t.hoverOption===e})}},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 n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.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(A.isIE)()&&!Object(A.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(e){return!e.created}).some(function(t){return t.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"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:d.a,ElSelectMenu:Et,ElOption:Pt,ElTag:Ot.a,ElScrollbar:N.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,required:!1},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()})},propPlaceholder: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(A.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,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick(function(e){return t.handleQueryChange(n)});else{var i=n[n.length-1]||"";this.isOnComposition=!Object(je.isKorean)(i)}},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(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");Rt()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick(function(){return e.scrollToOption(e.selected)})},emitChange:function(e){Object(A.valueEquals)(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o];if(n?Object(A.getValueByPath)(a.value,this.valueKey)===Object(A.getValueByPath)(e,this.valueKey):a.value===e){t=a;break}}if(t)return t;var s={value:e,currentLabel:n||i||r?"":String(e)};return this.multiple&&(s.hitState=!1),s},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach(function(t){n.push(e.getOption(t))}),this.selected=n,this.$nextTick(function(){e.resetInputHeight()})},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(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 t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.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,n=[].filter.call(t,function(e){return"INPUT"===e.tagName})[0],i=e.$refs.tags,r=i?Math.round(i.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(i?r+(r>o?6:0):0,o)+"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(e,t){var n=this;if(this.multiple){var i=(this.value||[]).slice(),r=this.getValueIndex(i,e.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length<this.multipleLimit)&&i.push(e.value),this.$emit("input",i),this.emitChange(i),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick(function(){n.scrollToOption(e)})},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if("[object object]"===Object.prototype.toString.call(t).toLowerCase()){var n=this.valueKey,i=-1;return e.some(function(e,r){return Object(A.getValueByPath)(e,n)===Object(A.getValueByPath)(t,n)&&(i=r,!0)}),i}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 i=this.value.slice();i.splice(n,1),this.$emit("input",i),this.emitChange(i),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,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(A.getValueByPath)(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=I()(this.debounce,function(){e.onInputChange()}),this.debouncedQueryChange=I()(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(Lt.addResizeListener)(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n=t.$el.querySelector("input");this.initialInputHeight=n.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(Lt.removeResizeListener)(this.$el,this.handleResize)}},kt,[],!1,null,null,null);Ut.options.__file="packages/select/src/select.vue";var Qt=Ut.exports;Qt.install=function(e){e.component(Qt.name,Qt)};var Ht=Qt;Pt.install=function(e){e.component(Pt.name,Pt)};var jt=Pt,Vt=function(){var e=this.$createElement,t=this._self._c||e;return t("ul",{directives:[{name:"show",rawName:"v-show",value:this.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[t("li",{staticClass:"el-select-group__title"},[this._v(this._s(this.label))]),t("li",[t("ul",{staticClass:"el-select-group"},[this._t("default")],2)])])};Vt._withStripped=!0;var zt=r({mixins:[C.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(e){return!0===e.visible})}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},Vt,[],!1,null,null,null);zt.options.__file="packages/select/src/option-group.vue";var $t=zt.exports;$t.install=function(e){e.component($t.name,$t)};var Gt=$t,Wt=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()])};Wt._withStripped=!0;var Kt=r({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)}}},Wt,[],!1,null,null,null);Kt.options.__file="packages/button/src/button.vue";var Yt=Kt.exports;Yt.install=function(e){e.component(Yt.name,Yt)};var qt=Yt,Xt=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-button-group"},[this._t("default")],2)};Xt._withStripped=!0;var Jt=r({name:"ElButtonGroup"},Xt,[],!1,null,null,null);Jt.options.__file="packages/button/src/button-group.vue";var Zt=Jt.exports;Zt.install=function(e){e.component(Zt.name,Zt)};var en=Zt,tn=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:e.emptyBlockStyle},[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"})])};tn._withStripped=!0;var nn=n(17),rn=n.n(nn),on=n(35),an=n(38),sn=n.n(an),ln="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,un={bind:function(e,t){var n,i;n=e,i=t.value,n&&n.addEventListener&&n.addEventListener(ln?"DOMMouseScroll":"mousewheel",function(e){var t=sn()(e);i&&i.apply(this,[e,t])})}},cn=n(6),hn=n.n(cn),dn="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},fn=function(e){for(var t=e.target;t&&"HTML"!==t.tagName.toUpperCase();){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},pn=function(e){return null!==e&&"object"===(void 0===e?"undefined":dn(e))},An=function(e,t,n,i,r){if(!t&&!i&&(!r||Array.isArray(r)&&!r.length))return e;n="string"==typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var o=i?null:function(n,i){return r?(Array.isArray(r)||(r=[r]),r.map(function(t){return"string"==typeof t?Object(A.getValueByPath)(n,t):t(n,i,e)})):("$key"!==t&&pn(n)&&"$value"in n&&(n=n.$value),[pn(n)?Object(A.getValueByPath)(n,t):n])};return e.map(function(e,t){return{value:e,index:t,key:o?o(e,t):null}}).sort(function(e,t){var r=function(e,t){if(i)return i(e.value,t.value);for(var n=0,r=e.key.length;n<r;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0}(e,t);return r||(r=e.index-t.index),r*n}).map(function(e){return e.value})},gn=function(e,t){var n=null;return e.columns.forEach(function(e){e.id===t&&(n=e)}),n},vn=function(e,t){var n=(t.className||"").match(/el-table_[^\s]+/gm);return n?gn(e,n[0]):null},mn=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("."),i=e,r=0;r<n.length;r++)i=i[n[r]];return i}if("function"==typeof t)return t.call(null,e)},yn=function(e,t){var n={};return(e||[]).forEach(function(e,i){n[mn(e,t)]={row:e,index:i}}),n};function _n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function bn(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}function wn(e){return"number"==typeof e?e:"string"==typeof e?/^\d+(?:px)?$/.test(e)?parseInt(e,10):e:null}function xn(e,t,n){var i=!1,r=e.indexOf(t),o=-1!==r,a=function(){e.push(t),i=!0},s=function(){e.splice(r,1),i=!0};return"boolean"==typeof n?n&&!o?a():!n&&o&&s():o?s():a(),i}function Cn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",r=function(e){return!(Array.isArray(e)&&e.length)};e.forEach(function(e){if(e[i])t(e,null,0);else{var o=e[n];r(o)||function e(o,a,s){t(o,a,s),a.forEach(function(o){if(o[i])t(o,null,s+1);else{var a=o[n];r(a)||e(o,a,s+1)}})}(e,o,0)}})}var Sn={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,i=e.rowKey,r=e.defaultExpandAll,o=e.expandRows;if(r)this.states.expandRows=n.slice();else if(i){var a=yn(o,i);this.states.expandRows=n.reduce(function(e,t){var n=mn(t,i);return a[n]&&e.push(t),e},[])}else this.states.expandRows=[]},toggleRowExpansion:function(e,t){xn(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,n=t.data,i=t.rowKey,r=yn(n,i);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,i=void 0===n?[]:n,r=t.rowKey;return r?!!yn(i,r)[mn(e,r)]:-1!==i.indexOf(e)}}},kn={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,i=void 0===n?[]:n,r=t.rowKey,o=null;r&&(o=Object(A.arrayFind)(i,function(t){return mn(t,r)===e})),t.currentRow=o},updateCurrentRow:function(e){var t=this.states,n=this.table,i=t.currentRow;if(e&&e!==i)return t.currentRow=e,void n.$emit("current-change",e,i);!e&&i&&(t.currentRow=null,n.$emit("current-change",null,i))},updateCurrentRowData:function(){var e=this.states,t=this.table,n=e.rowKey,i=e._currentRowKey,r=e.data||[],o=e.currentRow;if(-1===r.indexOf(o)&&o){if(n){var a=mn(o,n);this.setCurrentRowByKey(a)}else e.currentRow=null;null===e.currentRow&&t.$emit("current-change",null,o)}else i&&(this.setCurrentRowByKey(i),this.restoreCurrentRowKey())}}},Bn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Tn={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var e=this.states.data||[];return this.normalize(e)},normalizedLazyNode:function(){var e=this.states,t=e.rowKey,n=e.lazyTreeNodeMap,i=e.lazyColumnIdentifier,r=Object.keys(n),o={};return r.length?(r.forEach(function(e){if(n[e].length){var r={children:[]};n[e].forEach(function(e){var n=mn(e,t);r.children.push(n),e[i]&&!o[n]&&(o[n]={children:[]})}),o[e]=r}}),o):o}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(e){var t=this.states,n=t.childrenColumnName,i=t.lazyColumnIdentifier,r=t.rowKey,o=t.lazy,a={};return Cn(e,function(e,t,n){var i=mn(e,r);Array.isArray(t)?a[i]={children:t.map(function(e){return mn(e,r)}),level:n}:o&&(a[i]={children:[],lazy:!0,level:n})},n,i),a},updateTreeData:function(){var e=this.normalizedData,t=this.normalizedLazyNode,n=Object.keys(e),i={};if(n.length){var r=this.states,o=r.treeData,a=r.defaultExpandAll,s=r.expandRowKeys,l=r.lazy,u=[],c=function(e,t){var n=a||s&&-1!==s.indexOf(t);return!!(e&&e.expanded||n)};n.forEach(function(t){var n=o[t],r=Bn({},e[t]);if(r.expanded=c(n,t),r.lazy){var a=n||{},s=a.loaded,l=void 0!==s&&s,h=a.loading,d=void 0!==h&&h;r.loaded=!!l,r.loading=!!d,u.push(t)}i[t]=r});var h=Object.keys(t);l&&h.length&&u.length&&h.forEach(function(e){var n=o[e],r=t[e].children;if(-1!==u.indexOf(e)){if(0!==i[e].children.length)throw new Error("[ElTable]children must be an empty array.");i[e].children=r}else{var a=n||{},s=a.loaded,l=void 0!==s&&s,h=a.loading,d=void 0!==h&&h;i[e]={lazy:!0,loaded:!!l,loading:!!d,expanded:c(n,e),children:r,level:""}}})}this.states.treeData=i,this.updateTableScrollY()},updateTreeExpandKeys:function(e){this.states.expandRowKeys=e,this.updateTreeData()},toggleTreeExpansion:function(e,t){this.assertRowKey();var n=this.states,i=n.rowKey,r=n.treeData,o=mn(e,i),a=o&&r[o];if(o&&a&&"expanded"in a){var s=a.expanded;t=void 0===t?!a.expanded:t,r[o].expanded=t,s!==t&&this.table.$emit("expand-change",e,t),this.updateTableScrollY()}},loadOrToggle:function(e){this.assertRowKey();var t=this.states,n=t.lazy,i=t.treeData,r=t.rowKey,o=mn(e,r),a=i[o];n&&a&&"loaded"in a&&!a.loaded?this.loadData(e,o,a):this.toggleTreeExpansion(e)},loadData:function(e,t,n){var i=this,r=this.table.load,o=this.states.treeData;r&&!o[t].loaded&&(o[t].loading=!0,r(e,n,function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");var r=i.states,o=r.lazyTreeNodeMap,a=r.treeData;a[t].loading=!1,a[t].loaded=!0,a[t].expanded=!0,n.length&&i.$set(o,t,n),i.table.$emit("expand-change",e,!0)}))}}},En=function e(t){var n=[];return t.forEach(function(t){t.children?n.push.apply(n,e(t.children)):n.push(t)}),n},In=hn.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:[Sn,kn,Tn],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 i=En(n),r=En(e.fixedColumns),o=En(e.rightFixedColumns);e.leafColumnsLength=i.length,e.fixedLeafColumnsLength=r.length,e.rightFixedLeafColumnsLength=o.length,e.columns=[].concat(r).concat(i).concat(o),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,t=e.data,n=e.rowKey,i=e.selection,r=void 0;if(n){r=[];var o=yn(i,n),a=yn(t,n);for(var s in o)o.hasOwnProperty(s)&&!a[s]&&r.push(o[s].row)}else r=i.filter(function(e){return-1===t.indexOf(e)});if(r.length){var l=i.filter(function(e){return-1===r.indexOf(e)});e.selection=l,this.table.$emit("selection-change",l.slice())}},toggleRowSelection:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(xn(this.states.selection,e,t)){var i=(this.states.selection||[]).slice();n&&this.table.$emit("select",i,e),this.table.$emit("selection-change",i)}},_toggleAllSelection:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,i=e.selection,r=e.selectOnIndeterminate?!e.isAllSelected:!(e.isAllSelected||i.length);e.isAllSelected=r;var o=!1;n.forEach(function(t,n){e.selectable?e.selectable.call(null,t,n)&&xn(i,t,r)&&(o=!0):xn(i,t,r)&&(o=!0)}),o&&this.table.$emit("selection-change",i?i.slice():[]),this.table.$emit("select-all",i)},updateSelectionByRowKey:function(){var e=this.states,t=e.selection,n=e.rowKey,i=e.data,r=yn(t,n);i.forEach(function(e){var i=mn(e,n),o=r[i];o&&(t[o.index]=e)})},updateAllSelected:function(){var e=this.states,t=e.selection,n=e.rowKey,i=e.selectable,r=e.data||[];if(0!==r.length){var o=void 0;n&&(o=yn(t,n));for(var a,s=!0,l=0,u=0,c=r.length;u<c;u++){var h=r[u],d=i&&i.call(null,h,u);if(a=h,o?o[mn(a,n)]:-1!==t.indexOf(a))l++;else if(!i||d){s=!1;break}}0===l&&(s=!1),e.isAllSelected=s}else e.isAllSelected=!1},updateFilters:function(e,t){Array.isArray(e)||(e=[e]);var n=this.states,i={};return e.forEach(function(e){n.filters[e.id]=t,i[e.columnKey||e.id]=t}),i},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,i=t.filters,r=n;Object.keys(i).forEach(function(n){var i=t.filters[n];if(i&&0!==i.length){var o=gn(e.states,n);o&&o.filterMethod&&(r=r.filter(function(e){return i.some(function(t){return o.filterMethod.call(null,t,e,o)})}))}}),t.filteredData=r},execSort:function(){var e=this.states;e.data=function(e,t){var n=t.sortingColumn;return n&&"string"!=typeof n.sortable?An(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e}(e.filteredData,e)},execQuery:function(e){e&&e.filter||this.execFilter(),this.execSort()},clearFilter:function(e){var t=this.states,n=this.table.$refs,i=n.tableHeader,r=n.fixedTableHeader,o=n.rightFixedTableHeader,a={};i&&(a=He()(a,i.filterPanels)),r&&(a=He()(a,r.filterPanels)),o&&(a=He()(a,o.filterPanels));var s=Object.keys(a);if(s.length)if("string"==typeof e&&(e=[e]),Array.isArray(e)){var l=e.map(function(e){return function(e,t){for(var n=null,i=0;i<e.columns.length;i++){var r=e.columns[i];if(r.columnKey===t){n=r;break}}return n}(t,e)});s.forEach(function(e){l.find(function(t){return t.id===e})&&(a[e].filteredValue=[])}),this.commit("filterChange",{column:l,values:[],silent:!0,multi:!0})}else s.forEach(function(e){a[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)}}});In.prototype.mutations={setData:function(e,t){var n=e._data!==t;e._data=t,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),e.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(e,t,n,i){var r=e._columns;i&&((r=i.children)||(r=i.children=[])),void 0!==n?r.splice(n,0,t):r.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 i=e._columns;n&&((i=n.children)||(i=n.children=[])),i&&i.splice(i.indexOf(t),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(e,t){var n=t.prop,i=t.order,r=t.init;if(n){var o=Object(A.arrayFind)(e.columns,function(e){return e.property===n});o&&(o.order=i,this.updateSort(o,n,i),this.commit("changeSortCondition",{init:r}))}},changeSortCondition:function(e,t){var n=e.sortingColumn,i=e.sortProp,r=e.sortOrder;null===r&&(e.sortingColumn=null,e.sortProp=null);this.execQuery({filter:!0}),t&&(t.silent||t.init)||this.table.$emit("sort-change",{column:n,prop:i,order:r}),this.updateTableScrollY()},filterChange:function(e,t){var n=t.column,i=t.values,r=t.silent,o=this.updateFilters(n,i);this.execQuery(),r||this.table.$emit("filter-change",o),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)}},In.prototype.commit=function(e){var t=this.mutations;if(!t[e])throw new Error("Action not found: "+e);for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t[e].apply(this,[this.states].concat(i))},In.prototype.updateTableScrollY=function(){hn.a.nextTick(this.table.updateScrollY)};var Mn=In;function Dn(e){var t={};return Object.keys(e).forEach(function(n){var i=e[n],r=void 0;"string"==typeof i?r=function(){return this.store.states[i]}:"function"==typeof i?r=function(){return i.call(this,this.store.states)}:console.error("invalid value type"),r&&(t[n]=r)}),t}var Pn=n(30),Fn=n.n(Pn);var On=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=Fn()(),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 t=e.querySelector(".el-table__body"),n=this.scrollY,i=t.offsetHeight>this.bodyHeight;return this.scrollY=i,n!==i}return!1},e.prototype.setHeight=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!hn.a.prototype.$isServer){var i=this.table.$el;if(e=wn(e),this.height=e,!i&&(e||0===e))return hn.a.nextTick(function(){return t.setHeight(e,n)});"number"==typeof e?(i.style[n]=e+"px",this.updateElsHeight()):"string"==typeof e&&(i.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 hn.a.nextTick(function(){return e.updateElsHeight()});var t=this.table.$refs,n=t.headerWrapper,i=t.appendWrapper,r=t.footerWrapper;if(this.appendHeight=i?i.offsetHeight:0,!this.showHeader||n){var o=n?n.querySelector(".el-table__header tr"):null,a=this.headerDisplayNone(o),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!a&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return hn.a.nextTick(function(){return e.updateElsHeight()});var l=this.tableHeight=this.table.$el.clientHeight,u=this.footerHeight=r?r.offsetHeight:0;null!==this.height&&(this.bodyHeight=l-s-u+(r?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var c=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?l-(c?0:this.gutterWidth):l,this.updateScrollY(),this.notifyObservers("scrollable")}},e.prototype.headerDisplayNone=function(e){if(!e)return!0;for(var t=e;"DIV"!==t.tagName;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},e.prototype.updateColumnsWidth=function(){if(!hn.a.prototype.$isServer){var e=this.fit,t=this.table.$el.clientWidth,n=0,i=this.getFlattenColumns(),r=i.filter(function(e){return"number"!=typeof e.width});if(i.forEach(function(e){"number"==typeof e.width&&e.realWidth&&(e.realWidth=null)}),r.length>0&&e){i.forEach(function(e){n+=e.width||e.minWidth||80});var o=this.scrollY?this.gutterWidth:0;if(n<=t-o){this.scrollX=!1;var a=t-o-n;if(1===r.length)r[0].realWidth=(r[0].minWidth||80)+a;else{var s=a/r.reduce(function(e,t){return e+(t.minWidth||80)},0),l=0;r.forEach(function(e,t){if(0!==t){var n=Math.floor((e.minWidth||80)*s);l+=n,e.realWidth=(e.minWidth||80)+n}}),r[0].realWidth=(r[0].minWidth||80)+a-l}}else this.scrollX=!0,r.forEach(function(e){e.realWidth=e.minWidth});this.bodyWidth=Math.max(n,t),this.table.resizeState.width=this.bodyWidth}else i.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 u=this.store.states.fixedColumns;if(u.length>0){var c=0;u.forEach(function(e){c+=e.realWidth||e.width}),this.fixedWidth=c}var h=this.store.states.rightFixedColumns;if(h.length>0){var d=0;h.forEach(function(e){d+=e.realWidth||e.width}),this.rightFixedWidth=d}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}(),Ln={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(e){var t=this.$el.querySelectorAll("colgroup > col");if(t.length){var n={};e.getFlattenColumns().forEach(function(e){n[e.id]=e});for(var i=0,r=t.length;i<r;i++){var o=t[i],a=o.getAttribute("name"),s=n[a];s&&o.setAttribute("width",s.realWidth||s.width)}}},onScrollableChange:function(e){for(var t=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,i=t.length;n<i;n++){t[n].setAttribute("width",e.scrollY?e.gutterWidth:"0")}for(var r=this.$el.querySelectorAll("th.gutter"),o=0,a=r.length;o<a;o++){var s=r[o];s.style.width=e.scrollY?e.gutterWidth+"px":"0",s.style.display=e.scrollY?"":"none"}}}},Nn="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},Rn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Un={name:"ElTableBody",mixins:[Ln],components:{ElCheckbox:rn.a,ElTooltip:Be.a},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(e){var t=this,n=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",[n.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:Rn({table:function(){return this.$parent}},Dn({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(A.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 i=window.requestAnimationFrame;i||(i=function(e){return setTimeout(e,16)}),i(function(){var i=n.$el.querySelectorAll(".el-table__row"),r=i[t],o=i[e];r&&Object(pe.removeClass)(r,"hover-row"),o&&Object(pe.addClass)(o,"hover-row")})}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=I()(50,function(e){return e.handleShowPopper()})},methods:{getKeyOfRow:function(e,t){var n=this.table.rowKey;return n?mn(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,i){var r=1,o=1,a=this.table.spanMethod;if("function"==typeof a){var s=a({row:e,column:t,rowIndex:n,columnIndex:i});Array.isArray(s)?(r=s[0],o=s[1]):"object"===(void 0===s?"undefined":Nn(s))&&(r=s.rowspan,o=s.colspan)}return{rowspan:r,colspan:o}},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 i=this.table.rowClassName;return"string"==typeof i?n.push(i):"function"==typeof i&&n.push(i.call(null,{row:e,rowIndex:t})),this.store.states.expandRows.indexOf(e)>-1&&n.push("expanded"),n},getCellStyle:function(e,t,n,i){var r=this.table.cellStyle;return"function"==typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getCellClass:function(e,t,n,i){var r=[i.id,i.align,i.className];this.isColumnHidden(t)&&r.push("is-hidden");var o=this.table.cellClassName;return"string"==typeof o?r.push(o):"function"==typeof o&&r.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.push("el-table__cell"),r.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 n=this.table,i=fn(e);if(i){var r=vn(n,i),o=n.hoverState={cell:i,column:r,row:t};n.$emit("cell-mouse-enter",o.row,o.column,o.cell,e)}var a=e.target.querySelector(".cell");if(Object(pe.hasClass)(a,"el-tooltip")&&a.childNodes.length){var s=document.createRange();if(s.setStart(a,0),s.setEnd(a,a.childNodes.length),(s.getBoundingClientRect().width+((parseInt(Object(pe.getStyle)(a,"paddingLeft"),10)||0)+(parseInt(Object(pe.getStyle)(a,"paddingRight"),10)||0))>a.offsetWidth||a.scrollWidth>a.offsetWidth)&&this.$refs.tooltip){var l=this.$refs.tooltip;this.tooltipContent=i.innerText||i.textContent,l.referenceElm=i,l.$refs.popper&&(l.$refs.popper.style.display="none"),l.doDestroy(),l.setExpectedState(!0),this.activateTooltip(l)}}},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;if(t&&(t.setExpectedState(!1),t.handleClosePopper()),fn(e)){var n=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",n.row,n.column,n.cell,e)}},handleMouseEnter:I()(30,function(e){this.store.commit("setHoverRow",e)}),handleMouseLeave:I()(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 i=this.table,r=fn(e),o=void 0;r&&(o=vn(i,r))&&i.$emit("cell-"+n,t,o,r,e),i.$emit("row-"+n,t,o,e)},rowRender:function(e,t,n){var i=this,r=this.$createElement,o=this.treeIndent,a=this.columns,s=this.firstDefaultColumnIndex,l=a.map(function(e,t){return i.isColumnHidden(t)}),u=this.getRowClass(e,t),c=!0;return n&&(u.push("el-table__row--level-"+n.level),c=n.display),r("tr",{style:[c?null:{display:"none"},this.getRowStyle(e,t)],class:u,key:this.getKeyOfRow(e,t),on:{dblclick:function(t){return i.handleDoubleClick(t,e)},click:function(t){return i.handleClick(t,e)},contextmenu:function(t){return i.handleContextMenu(t,e)},mouseenter:function(e){return i.handleMouseEnter(t)},mouseleave:this.handleMouseLeave}},[a.map(function(u,c){var h=i.getSpan(e,u,t,c),d=h.rowspan,f=h.colspan;if(!d||!f)return null;var p=Rn({},u);p.realWidth=i.getColspanRealWidth(a,f,c);var A={store:i.store,_self:i.context||i.table.$vnode.context,column:p,row:e,$index:t};return c===s&&n&&(A.treeNode={indent:n.level*o,level:n.level},"boolean"==typeof n.expanded&&(A.treeNode.expanded=n.expanded,"loading"in n&&(A.treeNode.loading=n.loading),"noLazyChildren"in n&&(A.treeNode.noLazyChildren=n.noLazyChildren))),r("td",{style:i.getCellStyle(t,c,e,u),class:i.getCellClass(t,c,e,u),attrs:{rowspan:d,colspan:f},on:{mouseenter:function(t){return i.handleCellMouseEnter(t,e)},mouseleave:i.handleCellMouseLeave}},[u.renderCell.call(i._renderProxy,i.$createElement,A,l[c])])})])},wrappedRowRender:function(e,t){var n=this,i=this.$createElement,r=this.store,o=r.isRowExpanded,a=r.assertRowKey,s=r.states,l=s.treeData,u=s.lazyTreeNodeMap,c=s.childrenColumnName,h=s.rowKey;if(this.hasExpandColumn&&o(e)){var d=this.table.renderExpanded,f=this.rowRender(e,t);return d?[[f,i("tr",{key:"expanded-row__"+f.key},[i("td",{attrs:{colspan:this.columnsCount},class:"el-table__cell el-table__expanded-cell"},[d(this.$createElement,{row:e,$index:t,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),f)}if(Object.keys(l).length){a();var p=mn(e,h),A=l[p],g=null;A&&(g={expanded:A.expanded,level:A.level,display:!0},"boolean"==typeof A.lazy&&("boolean"==typeof A.loaded&&A.loaded&&(g.noLazyChildren=!(A.children&&A.children.length)),g.loading=A.loading));var v=[this.rowRender(e,t,g)];if(A){var m=0;A.display=!0,function e(i,r){i&&i.length&&r&&i.forEach(function(i){var o={display:r.display&&r.expanded,level:r.level+1},a=mn(i,h);if(void 0===a||null===a)throw new Error("for nested data item, row-key is required.");if((A=Rn({},l[a]))&&(o.expanded=A.expanded,A.level=A.level||o.level,A.display=!(!A.expanded||!o.display),"boolean"==typeof A.lazy&&("boolean"==typeof A.loaded&&A.loaded&&(o.noLazyChildren=!(A.children&&A.children.length)),o.loading=A.loading)),m++,v.push(n.rowRender(i,t+m,o)),A){var s=u[a]||i[c];e(s,A)}})}(u[p]||e[c],A)}return v}return this.rowRender(e,t)}}},Qn=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(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.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(t){return n("li",{key:t.value,staticClass:"el-table-filter__list-item",class:{"is-active":e.isActive(t)},attrs:{label:t.value},on:{click:function(n){e.handleSelect(t.value)}}},[e._v(e._s(t.text))])})],2)])])};Qn._withStripped=!0;var Hn=[];!hn.a.prototype.$isServer&&document.addEventListener("click",function(e){Hn.forEach(function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))})});var jn=function(e){e&&Hn.push(e)},Vn=function(e){-1!==Hn.indexOf(e)&&Hn.splice(e,1)},zn=n(31),$n=n.n(zn),Gn=r({name:"ElTableFilterPanel",mixins:[O.a,p.a],directives:{Clickoutside:D.a},components:{ElCheckbox:rn.a,ElCheckboxGroup:$n.a,ElScrollbar:N.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(e){return e.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,void 0!==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&&(void 0!==e&&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?jn(e):Vn(e)})},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)<y.PopupManager.zIndex&&(this.popperJS._popper.style.zIndex=y.PopupManager.nextZIndex())}}},Qn,[],!1,null,null,null);Gn.options.__file="packages/table/src/filter-panel.vue";var Wn=Gn.exports,Kn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Yn=function(e){var t=1;e.forEach(function(e){e.level=1,function e(n,i){if(i&&(n.level=i.level+1,t<n.level&&(t=n.level)),n.children){var r=0;n.children.forEach(function(t){e(t,n),r+=t.colSpan}),n.colSpan=r}else n.colSpan=1}(e)});for(var n=[],i=0;i<t;i++)n.push([]);return 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}(e).forEach(function(e){e.children?e.rowSpan=1:e.rowSpan=t-e.level+1,n[e.level-1].push(e)}),n},qn={name:"ElTableHeader",mixins:[Ln],render:function(e){var t=this,n=this.store.states.originColumns,i=Yn(n,this.columns),r=i.length>1;return r&&(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":r,"has-gutter":this.hasGutter}]},[this._l(i,function(n,i){return e("tr",{style:t.getHeaderRowStyle(i),class:t.getHeaderRowClass(i)},[n.map(function(r,o){return e("th",{attrs:{colspan:r.colSpan,rowspan:r.rowSpan},on:{mousemove:function(e){return t.handleMouseMove(e,r)},mouseout:t.handleMouseOut,mousedown:function(e){return t.handleMouseDown(e,r)},click:function(e){return t.handleHeaderClick(e,r)},contextmenu:function(e){return t.handleHeaderContextMenu(e,r)}},style:t.getHeaderCellStyle(i,o,n,r),class:t.getHeaderCellClass(i,o,n,r),key:r.id},[e("div",{class:["cell",r.filteredValue&&r.filteredValue.length>0?"highlight":"",r.labelClassName]},[r.renderHeader?r.renderHeader.call(t._renderProxy,e,{column:r,$index:o,store:t.store,_self:t.$parent.$vnode.context}):r.label,r.sortable?e("span",{class:"caret-wrapper",on:{click:function(e){return t.handleSortClick(e,r)}}},[e("i",{class:"sort-caret ascending",on:{click:function(e){return t.handleSortClick(e,r,"ascending")}}}),e("i",{class:"sort-caret descending",on:{click:function(e){return t.handleSortClick(e,r,"descending")}}})]):"",r.filterable?e("span",{class:"el-table__column-filter-trigger",on:{click:function(e){return t.handleFilterClick(e,r)}}},[e("i",{class:["el-icon-arrow-down",r.filterOpened?"el-icon-arrow-up":""]})]):""])])}),t.hasGutter?e("th",{class:"el-table__cell gutter"}):""])})])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:rn.a},computed:Kn({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},Dn({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,i=t.order;e.store.commit("sort",{prop:n,order:i,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,i){var r=this.table.headerCellStyle;return"function"==typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getHeaderCellClass:function(e,t,n,i){var r=[i.id,i.order,i.headerAlign,i.className,i.labelClassName];0===e&&this.isCellHidden(t,n)&&r.push("is-hidden"),i.children||r.push("is-leaf"),i.sortable&&r.push("is-sortable");var o=this.table.headerCellClassName;return"string"==typeof o?r.push(o):"function"==typeof o&&r.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.push("el-table__cell"),r.join(" ")},toggleAllSelection:function(e){e.stopPropagation(),this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n=e.target,i="TH"===n.tagName?n:n.parentNode;if(!Object(pe.hasClass)(i,"noclick")){i=i.querySelector(".el-table__column-filter-trigger")||i;var r=this.$parent,o=this.filterPanels[t.id];o&&t.filterOpened?o.showPopper=!1:(o||(o=new hn.a(Wn),this.filterPanels[t.id]=o,t.filterPlacement&&(o.placement=t.filterPlacement),o.table=r,o.cell=i,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 i=this.$parent,r=i.$el.getBoundingClientRect().left,o=this.$el.querySelector("th."+t.id),a=o.getBoundingClientRect(),s=a.left-r+30;Object(pe.addClass)(o,"noclick"),this.dragState={startMouseLeft:e.clientX,startLeft:a.right-r,startColumnLeft:a.left-r,tableLeft:r};var l=i.$refs.resizeProxy;l.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var u=function(e){var t=e.clientX-n.dragState.startMouseLeft,i=n.dragState.startLeft+t;l.style.left=Math.max(s,i)+"px"};document.addEventListener("mousemove",u),document.addEventListener("mouseup",function r(){if(n.dragging){var a=n.dragState,s=a.startColumnLeft,c=a.startLeft,h=parseInt(l.style.left,10)-s;t.width=t.realWidth=h,i.$emit("header-dragend",t.width,c-s,t,e),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},i.resizeProxyVisible=!1}document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",r),document.onselectstart=null,document.ondragstart=null,setTimeout(function(){Object(pe.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 i=n.getBoundingClientRect(),r=document.body.style;i.width>12&&i.right-e.pageX<8?(r.cursor="col-resize",Object(pe.hasClass)(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=t):this.dragging||(r.cursor="",Object(pe.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 i=n.indexOf(t||null);return n[i>n.length-2?0:i+1]},handleSortClick:function(e,t,n){e.stopPropagation();for(var i=t.order===n?null:n||this.toggleOrder(t),r=e.target;r&&"TH"!==r.tagName;)r=r.parentNode;if(r&&"TH"===r.tagName&&Object(pe.hasClass)(r,"noclick"))Object(pe.removeClass)(r,"noclick");else if(t.sortable){var o=this.store.states,a=o.sortProp,s=void 0,l=o.sortingColumn;(l!==t||l===t&&null===l.order)&&(l&&(l.order=null),o.sortingColumn=t,a=t.property),s=t.order=i||null,o.sortProp=a,o.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},Xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Jn={name:"ElTableFooter",mixins:[Ln],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,i){if(0!==i){var r=t.store.states.data.map(function(t){return Number(t[e.property])}),o=[],a=!0;r.forEach(function(e){if(!isNaN(e)){a=!1;var t=(""+e).split(".")[1];o.push(t?t.length:0)}});var s=Math.max.apply(null,o);n[i]=a?"":r.reduce(function(e,t){var n=Number(t);return isNaN(n)?e:parseFloat((e+t).toFixed(Math.min(s,20)))},0)}else n[i]=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(i,r){return e("td",{key:r,attrs:{colspan:i.colSpan,rowspan:i.rowSpan},class:[].concat(t.getRowClasses(i,r),["el-table__cell"])},[e("div",{class:["cell",i.labelClassName]},[n[r]])])}),this.hasGutter?e("th",{class:"el-table__cell gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:Xn({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},Dn({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 i=0,r=0;r<e;r++)i+=t[r].colSpan;return i<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}}},Zn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ei=1,ti=r({name:"ElTable",mixins:[p.a,w.a],directives:{Mousewheel:un},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:qn,TableFooter:Jn,TableBody:Un,ElCheckbox:rn.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.notifyObservers("scrollable"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(e,t){var n=this.bodyWrapper;if(Math.abs(t.spinY)>0){var i=n.scrollTop;t.pixelY<0&&0!==i&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>i&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,i=t.pixelY;Math.abs(n)>=Math.abs(i)&&(this.bodyWrapper.scrollLeft+=t.pixelX/5)},syncPostion:Object(on.throttle)(20,function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,i=e.offsetWidth,r=e.scrollWidth,o=this.$refs,a=o.headerWrapper,s=o.footerWrapper,l=o.fixedBodyWrapper,u=o.rightFixedBodyWrapper;a&&(a.scrollLeft=t),s&&(s.scrollLeft=t),l&&(l.scrollTop=n),u&&(u.scrollTop=n);var c=r-i-1;this.scrollPosition=t>=c?"right":0===t?"left":"middle"}),bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(Lt.addResizeListener)(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(Lt.removeResizeListener)(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var e=!1,t=this.$el,n=this.resizeState,i=n.width,r=n.height,o=t.offsetWidth;i!==o&&(e=!0);var a=t.offsetHeight;(this.height||this.shouldUpdateHeight)&&r!==a&&(e=!0),e&&(this.resizeState.width=o,this.resizeState.height=a,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:Zn({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,i=e.gutterWidth;return t?t-(n?i:0)+"px":""},bodyHeight:function(){var e=this.layout,t=e.headerHeight,n=void 0===t?0:t,i=e.bodyHeight,r=e.footerHeight,o=void 0===r?0:r;if(this.height)return{height:i?i+"px":""};if(this.maxHeight){var a=wn(this.maxHeight);if("number"==typeof a)return{"max-height":a-o-(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=wn(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":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var e="100%";return this.layout.appendHeight&&(e="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:e}}},Dn({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_"+ei++,this.debouncedUpdateLayout=Object(on.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,i=e.children,r=void 0===i?"children":i;return this.store=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Table is required.");var n=new Mn;return n.table=e,n.toggleAllSelection=I()(10,n._toggleAllSelection),Object.keys(t).forEach(function(e){n.states[e]=t[e]}),n}(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:r}),{layout:new On({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"}}},tn,[],!1,null,null,null);ti.options.__file="packages/table/src/table.vue";var ni=ti.exports;ni.install=function(e){e.component(ni.name,ni)};var ii=ni,ri={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:""}},oi={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,i=t.column,r=t.store,o=t.$index;return e("el-checkbox",{nativeOn:{click:function(e){return e.stopPropagation()}},attrs:{value:r.isSelected(n),disabled:!!i.selectable&&!i.selectable.call(null,n,o)},on:{input:function(){r.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,i=t.store,r=["el-table__expand-icon"];i.states.expandRows.indexOf(n)>-1&&r.push("el-table__expand-icon--expanded");return e("div",{class:r,on:{click:function(e){e.stopPropagation(),i.toggleRowExpansion(n)}}},[e("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function ai(e,t){var n=t.row,i=t.column,r=t.$index,o=i.property,a=o&&Object(A.getPropByPath)(n,o).v;return i&&i.formatter?i.formatter(n,i,a,r):a}var si=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},li=1,ui={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 bn(this.width)},realMinWidth:function(){return void 0!==(e=this.minWidth)&&(e=bn(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),i=0;i<t;i++)n[i]=arguments[i];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,n=oi[t]||{};return Object.keys(n).forEach(function(t){var i=n[t];void 0!==i&&(e[t]="className"===t?e[t]+" "+i:i)}),e},setColumnRenders:function(e){var t=this;this.$createElement;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."):"selection"!==e.type&&(e.renderHeader=function(n,i){var r=t.$scopedSlots.header;return r?r(i):e.label});var n=e.renderCell;return"expand"===e.type?(e.renderCell=function(e,t){return e("div",{class:"cell"},[n(e,t)])},this.owner.renderExpanded=function(e,n){return t.$scopedSlots.default?t.$scopedSlots.default(n):t.$slots.default}):(n=n||ai,e.renderCell=function(i,r){var o=null;o=t.$scopedSlots.default?t.$scopedSlots.default(r):n(i,r);var a=function(e,t){var n=t.row,i=t.treeNode,r=t.store;if(!i)return null;var o=[];if(i.indent&&o.push(e("span",{class:"el-table__indent",style:{"padding-left":i.indent+"px"}})),"boolean"!=typeof i.expanded||i.noLazyChildren)o.push(e("span",{class:"el-table__placeholder"}));else{var a=["el-table__expand-icon",i.expanded?"el-table__expand-icon--expanded":""],s=["el-icon-arrow-right"];i.loading&&(s=["el-icon-loading"]),o.push(e("div",{class:a,on:{click:function(e){e.stopPropagation(),r.loadOrToggle(n)}}},[e("i",{class:s})]))}return o}(i,r),s={class:"cell",style:{}};return e.showOverflowTooltip&&(s.class+=" el-tooltip",s.style={width:(r.column.realWidth||r.column.width)-1+"px"}),i("div",s,[a,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 i=t[n];e.$watch(n,function(t){e.columnConfig[i]=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 i=t[n];e.$watch(n,function(t){e.columnConfig[i]=t;var n="fixed"===i;e.owner.store.scheduleLayout(n)})})}},components:{ElCheckbox:rn.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_"+li++;var t=this.type||"default",n=""===this.sortable||this.sortable,i=si({},ri[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}),r=this.getPropsData(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);r=function(e,t){var n={},i=void 0;for(i in e)n[i]=e[i];for(i in t)if(_n(t,i)){var r=t[i];void 0!==r&&(n[i]=r)}return n}(i,r),r=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(e,t){return function(){return e(t.apply(void 0,arguments))}})}(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps)(r),this.columnConfig=r,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var e=this.owner,t=this.columnOrTableParent,n=this.isSubColumn?t.$el.children:t.$refs.hiddenColumns.children,i=this.getColumnElIndex(n,this.$el);e.store.commit("insertColumn",this.columnConfig,i,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(ui.name,ui)}},ci=ui,hi=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()])};hi._withStripped=!0;var di=n(0),fi={props:{appendToBody:O.a.props.appendToBody,offset:O.a.props.offset,boundariesPadding:O.a.props.boundariesPadding,arrowOffset:O.a.props.arrowOffset},methods:O.a.methods,data:function(){return He()({visibleArrow:!0},O.a.data)},beforeDestroy:O.a.beforeDestroy},pi={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"},Ai=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates"],gi=function(e,t){return"timestamp"===t?e.getTime():Object(di.formatDate)(e,t)},vi=function(e,t){return"timestamp"===t?new Date(Number(e)):Object(di.parseDate)(e,t)},mi=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],i=e[1];if(n&&i)return[gi(n,t),gi(i,t)]}return""},yi=function(e,t,n){if(Array.isArray(e)||(e=e.split(n)),2===e.length){var i=e[0],r=e[1];return[vi(i,t),vi(r,t)]}return[]},_i={default:{formatter:function(e){return e?""+e:""},parser:function(e){return void 0===e||""===e?null:e}},week:{formatter:function(e,t){var n=Object(di.getWeekNumber)(e),i=e.getMonth(),r=new Date(e);1===n&&11===i&&(r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7));var o=Object(di.formatDate)(r,t);return o=/WW/.test(o)?o.replace(/WW/,n<10?"0"+n:n):o.replace(/W/,n)},parser:function(e,t){return _i.date.parser(e,t)}},date:{formatter:gi,parser:vi},datetime:{formatter:gi,parser:vi},daterange:{formatter:mi,parser:yi},monthrange:{formatter:mi,parser:yi},datetimerange:{formatter:mi,parser:yi},timerange:{formatter:mi,parser:yi},time:{formatter:gi,parser:vi},month:{formatter:gi,parser:vi},year:{formatter:gi,parser:vi},number:{formatter:function(e){return e?""+e:""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}},dates:{formatter:function(e,t){return e.map(function(e){return gi(e,t)})},parser:function(e,t){return("string"==typeof e?e.split(", "):e).map(function(e){return e instanceof Date?e:vi(e,t)})}}},bi={left:"bottom-start",center:"bottom",right:"bottom-end"},wi=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";return e?(0,(_i[n]||_i.default).parser)(e,t||pi[n],i):null},xi=function(e,t,n){return e?(0,(_i[n]||_i.default).formatter)(e,t||pi[n]):null},Ci=function(e,t){var n=function(e,t){var n=e instanceof Date,i=t instanceof Date;return n&&i?e.getTime()===t.getTime():!n&&!i&&e===t},i=e instanceof Array,r=t instanceof Array;return i&&r?e.length===t.length&&e.every(function(e,i){return n(e,t[i])}):!i&&!r&&n(e,t)},Si=function(e){return"string"==typeof e||e instanceof String},ki=function(e){return null===e||void 0===e||Si(e)||Array.isArray(e)&&2===e.length&&e.every(Si)},Bi=r({mixins:[C.a,fi],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:ki},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:ki},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:d.a},directives:{Clickoutside:D.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){Ci(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 t=0,n=e.length;t<n;t++)if(e[t])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!==Ai.indexOf(this.type)},displayValue:function(){var e=xi(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?this.value:Object(di.isDateObject)(this.value)||Array.isArray(this.value)&&this.value.every(di.isDateObject)?this.value:this.valueFormat?wi(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=bi[this.align]||bi.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach(function(e){return e.blur()})},parseValue:function(e){var t=Object(di.isDateObject)(e)||Array.isArray(e)&&e.every(di.isDateObject);return this.valueFormat&&!t&&wi(e,this.valueFormat,this.type,this.rangeSeparator)||e},formatToValue:function(e){var t=Object(di.isDateObject)(e)||Array.isArray(e)&&e.every(di.isDateObject);return this.valueFormat&&t?xi(e,this.valueFormat,this.type,this.rangeSeparator):e},parseString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return wi(e,this.format,t)},formatToString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return xi(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=wi(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===Ai.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===Ai.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 hn.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,i=_i.datetimerange.parser,r=pi.timerange;n=Array.isArray(n)?n:[n],e.picker.selectableRange=n.map(function(t){return i(t,r,e.rangeSeparator)})}for(var o in t)t.hasOwnProperty(o)&&"selectableRange"!==o&&(e.picker[o]=t[o]);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,i){0!==e.refInput.length&&(i&&"min"!==i?"max"===i&&(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){Ci(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);Ci(this.value,t)||this.$emit("input",t)},isValidValue:function(e){return this.picker||this.mountPicker(),!this.picker.isValidValue||e&&this.picker.isValidValue(e)}}},hi,[],!1,null,null,null);Bi.options.__file="packages/date-picker/src/picker.vue";var Ti=Bi.exports,Ei=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,i){return n("button",{key:i,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,"cell-class-name":e.cellClassName,"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)])])};Ei._withStripped=!0;var Ii=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")))])])])])};Ii._withStripped=!0;var Mi=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,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.hours,disabled:t},on:{click:function(n){e.handleClick("hours",{value:i,disabled:t})}}},[e._v(e._s(("0"+(e.amPmMode?i%12||12:i)).slice(-2))+e._s(e.amPm(i)))])}),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,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.minutes,disabled:!t},on:{click:function(t){e.handleClick("minutes",{value:i,disabled:!1})}}},[e._v(e._s(("0"+i).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,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.seconds},on:{click:function(t){e.handleClick("seconds",{value:i,disabled:!1})}}},[e._v(e._s(("0"+i).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,i){return n("li",{key:i,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,i){return n("li",{key:i,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,i){return n("li",{key:i,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)};Mi._withStripped=!0;var Di=r({components:{ElScrollbar:N.a},directives:{repeatClick:We},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(di.getRangeHours)(this.selectableRange)},minutesList:function(){return Object(di.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(di.modifyTime)(this.date,t,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(di.modifyTime)(this.date,this.hours,t,this.seconds));break;case"seconds":this.$emit("change",Object(di.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.round((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){var t=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,i=this.hoursList,r=this[n];if("hours"===this.currentScrollbar){var o=Math.abs(e);e=e>0?1:-1;for(var a=i.length;a--&&o;)i[r=(r+e+i.length)%i.length]||o--;if(i[r])return}else r=(r+e+60)%60;this.modifyDateField(n,r),this.adjustSpinner(n,r),this.$nextTick(function(){return t.emitSelectRange(t.currentScrollbar)})},amPm:function(e){if(!("a"===this.amPmMode.toLowerCase()))return"";var t="A"===this.amPmMode,n=e<12?" am":" pm";return t&&(n=n.toUpperCase()),n},typeItemHeight:function(e){return this.$refs[e].$el.querySelector("li").offsetHeight},scrollBarHeight:function(e){return this.$refs[e].$el.offsetHeight}}},Mi,[],!1,null,null,null);Di.options.__file="packages/date-picker/src/basic/time-spinner.vue";var Pi=Di.exports,Fi=r({mixins:[p.a],components:{TimeSpinner:Pi},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(di.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(di.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(di.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(di.clearMilliseconds)(Object(di.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 i=n[t];return this.changeSelectionRange(i),void e.preventDefault()}if(38===t||40===t){var r=n[t];return this.$refs.spinner.scrollDown(r),void e.preventDefault()}},isValidValue:function(e){return Object(di.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"]:[]),i=(t.indexOf(this.selectionRange[0])+e+t.length)%t.length;this.$refs.spinner.emitSelectRange(n[i])}},mounted:function(){var e=this;this.$nextTick(function(){return e.handleConfirm(!0,!0)}),this.$emit("mounted")}},Ii,[],!1,null,null,null);Fi.options.__file="packages/date-picker/src/panel/time.vue";var Oi=Fi.exports,Li=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")])])])};Li._withStripped=!0;var Ni=r({props:{disabledDate:{},value:{},defaultValue:{validator:function(e){return null===e||e instanceof Date&&Object(di.isDate)(e)}},date:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(e){var t={},n=new Date;return t.disabled="function"==typeof this.disabledDate&&function(e){var t=Object(di.getDayCountOfYear)(e),n=new Date(e,0,1);return Object(di.range)(t).map(function(e){return Object(di.nextDate)(n,e)})}(e).every(this.disabledDate),t.current=Object(A.arrayFindIndex)(Object(A.coerceTruthyValueToArray)(this.value),function(t){return t.getFullYear()===e})>=0,t.today=n.getFullYear()===e,t.default=this.defaultValue&&this.defaultValue.getFullYear()===e,t},handleYearTableClick:function(e){var t=e.target;if("A"===t.tagName){if(Object(pe.hasClass)(t.parentNode,"disabled"))return;var n=t.textContent||t.innerText;this.$emit("pick",Number(n))}}}},Li,[],!1,null,null,null);Ni.options.__file="packages/date-picker/src/basic/year-table.vue";var Ri=Ni.exports,Ui=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,i){return n("tr",{key:i},e._l(t,function(t,i){return n("td",{key:i,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)])};Ui._withStripped=!0;var Qi=function(e){return new Date(e.getFullYear(),e.getMonth())},Hi=function(e){return"number"==typeof e||"string"==typeof e?Qi(new Date(e)).getTime():e instanceof Date?Qi(e).getTime():NaN},ji=r({props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(e){return null===e||Object(di.isDate)(e)||Array.isArray(e)&&e.every(di.isDate)}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[p.a],watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){Hi(e)!==Hi(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){Hi(e)!==Hi(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,n={},i=this.date.getFullYear(),r=new Date,o=e.text,a=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"==typeof this.disabledDate&&function(e,t){var n=Object(di.getDayCountOfMonth)(e,t),i=new Date(e,t,1);return Object(di.range)(n).map(function(e){return Object(di.nextDate)(i,e)})}(i,o).every(this.disabledDate),n.current=Object(A.arrayFindIndex)(Object(A.coerceTruthyValueToArray)(this.value),function(e){return e.getFullYear()===i&&e.getMonth()===o})>=0,n.today=r.getFullYear()===i&&r.getMonth()===o,n.default=a.some(function(n){return t.cellMatchesDate(e,n)}),e.inRange&&(n["in-range"]=!0,e.start&&(n["start-date"]=!0),e.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(e){var t=this.date.getFullYear();return new Date(t,e,1)},markRange:function(e,t){e=Hi(e),t=Hi(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.rows,r=0,o=i.length;r<o;r++)for(var a=i[r],s=0,l=a.length;s<l;s++){var u=a[s],c=4*r+s,h=new Date(this.date.getFullYear(),c).getTime();u.inRange=e&&h>=e&&h<=t,u.start=e&&h===e,u.end=t&&h===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,i=t.cellIndex;this.rows[n][i].disabled||n===this.lastRow&&i===this.lastColumn||(this.lastRow=n,this.lastColumn=i,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+i)}}))}}},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(pe.hasClass)(t,"disabled")){var n=t.cellIndex,i=4*t.parentNode.rowIndex+n,r=this.getMonthOfCell(i);"range"===this.selectionMode?this.rangeState.selecting?(r>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:r}):this.$emit("pick",{minDate:r,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:r,maxDate:null}),this.rangeState.selecting=!0):this.$emit("pick",i)}}},computed:{rows:function(){for(var e=this,t=this.tableRows,n=this.disabledDate,i=[],r=Hi(new Date),o=0;o<3;o++)for(var a=t[o],s=function(t){var s=a[t];s||(s={row:o,column:t,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var l=4*o+t,u=new Date(e.date.getFullYear(),l).getTime();s.inRange=u>=Hi(e.minDate)&&u<=Hi(e.maxDate),s.start=e.minDate&&u===Hi(e.minDate),s.end=e.maxDate&&u===Hi(e.maxDate),u===r&&(s.type="today"),s.text=l;var c=new Date(u);s.disabled="function"==typeof n&&n(c),s.selected=Object(A.arrayFind)(i,function(e){return e.getTime()===c.getTime()}),e.$set(a,t,s)},l=0;l<4;l++)s(l);return t}}},Ui,[],!1,null,null,null);ji.options.__file="packages/date-picker/src/basic/month-table.vue";var Vi=ji.exports,zi=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,i){return n("th",{key:i},[e._v(e._s(e.t("el.datepicker.weeks."+t)))])})],2),e._l(e.rows,function(t,i){return n("tr",{key:i,staticClass:"el-date-table__row",class:{current:e.isWeekActive(t[1])}},e._l(t,function(t,i){return n("td",{key:i,class:e.getCellClasses(t)},[n("div",[n("span",[e._v("\n "+e._s(t.text)+"\n ")])])])}),0)})],2)])};zi._withStripped=!0;var $i=["sun","mon","tue","wed","thu","fri","sat"],Gi=function(e){return"number"==typeof e||"string"==typeof e?Object(di.clearTime)(new Date(e)).getTime():e instanceof Date?Object(di.clearTime)(e).getTime():NaN},Wi=r({mixins:[p.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},value:{},defaultValue:{validator:function(e){return null===e||Object(di.isDate)(e)||Array.isArray(e)&&e.every(di.isDate)}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},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 $i.concat($i).slice(e,e+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(di.getStartDateOfMonth)(this.year,this.month)},rows:function(){var e=this,t=new Date(this.year,this.month,1),n=Object(di.getFirstDayOfMonth)(t),i=Object(di.getDayCountOfMonth)(t.getFullYear(),t.getMonth()),r=Object(di.getDayCountOfMonth)(t.getFullYear(),0===t.getMonth()?11:t.getMonth()-1);n=0===n?7:n;for(var o=this.offsetDay,a=this.tableRows,s=1,l=this.startDate,u=this.disabledDate,c=this.cellClassName,h="dates"===this.selectionMode?Object(A.coerceTruthyValueToArray)(this.value):[],d=Gi(new Date),f=0;f<6;f++){var p=a[f];this.showWeekNumber&&(p[0]||(p[0]={type:"week",text:Object(di.getWeekNumber)(Object(di.nextDate)(l,7*f+1))}));for(var g=function(t){var a=p[e.showWeekNumber?t+1:t];a||(a={row:f,column:t,type:"normal",inRange:!1,start:!1,end:!1}),a.type="normal";var g=7*f+t,v=Object(di.nextDate)(l,g-o).getTime();if(a.inRange=v>=Gi(e.minDate)&&v<=Gi(e.maxDate),a.start=e.minDate&&v===Gi(e.minDate),a.end=e.maxDate&&v===Gi(e.maxDate),v===d&&(a.type="today"),f>=0&&f<=1){var m=n+o<0?7+n+o:n+o;t+7*f>=m?a.text=s++:(a.text=r-(m-t%7)+1+7*f,a.type="prev-month")}else s<=i?a.text=s++:(a.text=s++-i,a.type="next-month");var y=new Date(v);a.disabled="function"==typeof u&&u(y),a.selected=Object(A.arrayFind)(h,function(e){return e.getTime()===y.getTime()}),a.customClass="function"==typeof c&&c(y),e.$set(p,e.showWeekNumber?t+1:t,a)},v=0;v<7;v++)g(v);if("week"===this.selectionMode){var m=this.showWeekNumber?1:0,y=this.showWeekNumber?7:6,_=this.isWeekActive(p[m+1]);p[m].inRange=_,p[m].start=_,p[y].inRange=_,p[y].end=_}}return a}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){Gi(e)!==Gi(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){Gi(e)!==Gi(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,i=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],r=[];return"normal"!==e.type&&"today"!==e.type||e.disabled?r.push(e.type):(r.push("available"),"today"===e.type&&r.push("today")),"normal"===e.type&&i.some(function(n){return t.cellMatchesDate(e,n)})&&r.push("default"),"day"!==n||"normal"!==e.type&&"today"!==e.type||!this.cellMatchesDate(e,this.value)||r.push("current"),!e.inRange||"normal"!==e.type&&"today"!==e.type&&"week"!==this.selectionMode||(r.push("in-range"),e.start&&r.push("start-date"),e.end&&r.push("end-date")),e.disabled&&r.push("disabled"),e.selected&&r.push("selected"),e.customClass&&r.push(e.customClass),r.join(" ")},getDateOfCell:function(e,t){var n=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay;return Object(di.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(),i=t.getMonth();if("prev-month"===e.type&&(t.setMonth(0===i?11:i-1),t.setFullYear(0===i?n-1:n)),"next-month"===e.type&&(t.setMonth(11===i?0:i+1),t.setFullYear(11===i?n+1:n)),t.setDate(parseInt(e.text,10)),Object(di.isDate)(this.value)){var r=(this.value.getDay()-this.firstDayOfWeek+7)%7-1;return Object(di.prevDate)(this.value,r).getTime()===t.getTime()}return!1},markRange:function(e,t){e=Gi(e),t=Gi(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.startDate,r=this.rows,o=0,a=r.length;o<a;o++)for(var s=r[o],l=0,u=s.length;l<u;l++)if(!this.showWeekNumber||0!==l){var c=s[l],h=7*o+l+(this.showWeekNumber?-1:0),d=Object(di.nextDate)(i,h-this.offsetDay).getTime();c.inRange=e&&d>=e&&d<=t,c.start=e&&d===e,c.end=t&&d===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,i=t.cellIndex;this.rows[n][i].disabled||n===this.lastRow&&i===this.lastColumn||(this.lastRow=n,this.lastColumn=i,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,i)}}))}}},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,i="week"===this.selectionMode?1:t.cellIndex,r=this.rows[n][i];if(!r.disabled&&"week"!==r.type){var o,a,s,l=this.getDateOfCell(n,i);if("range"===this.selectionMode)this.rangeState.selecting?(l>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:l}):this.$emit("pick",{minDate:l,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:l,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",l);else if("week"===this.selectionMode){var u=Object(di.getWeekNumber)(l),c=l.getFullYear()+"w"+u;this.$emit("pick",{year:l.getFullYear(),week:u,value:c,date:l})}else if("dates"===this.selectionMode){var h=this.value||[],d=r.selected?(o=h,(s="function"==typeof(a=function(e){return e.getTime()===l.getTime()})?Object(A.arrayFindIndex)(o,a):o.indexOf(a))>=0?[].concat(o.slice(0,s),o.slice(s+1)):o):[].concat(h,[l]);this.$emit("pick",d)}}}}}},zi,[],!1,null,null,null);Wi.options.__file="packages/date-picker/src/basic/date-table.vue";var Ki=Wi.exports,Yi=r({mixins:[p.a],directives:{Clickoutside:D.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(di.isDate)(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){Object(di.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},i=function(e){t.$refs.timepicker.date=e},r=function(e){t.$refs.timepicker.selectableRange=e};this.$watch("value",n),this.$watch("date",i),this.$watch("selectableRange",r),e=this.timeFormat,t.$refs.timepicker.format=e,n(this.value),i(this.date),r(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t=this,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if(e)if(Array.isArray(e)){var o=e.map(function(e){return t.showTime?Object(di.clearMilliseconds)(e):Object(di.clearTime)(e)});this.$emit.apply(this,["pick",o].concat(i))}else this.$emit.apply(this,["pick",this.showTime?Object(di.clearMilliseconds)(e):Object(di.clearTime)(e)].concat(i));else this.$emit.apply(this,["pick",e].concat(i));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(di.prevMonth)(this.date)},nextMonth:function(){this.date=Object(di.nextMonth)(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(di.prevYear)(this.date,10):this.date=Object(di.prevYear)(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(di.nextYear)(this.date,10):this.date=Object(di.nextYear)(this.date)},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleTimePick:function(e,t,n){if(Object(di.isDate)(e)){var i=this.value?Object(di.modifyTime)(this.value,e.getHours(),e.getMinutes(),e.getSeconds()):Object(di.modifyWithTimeString)(this.getDefaultValue(),this.defaultTime);this.date=i,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(di.modifyDate)(this.date,this.year,e,1),this.emit(this.date)):(this.date=Object(di.changeYearMonthAndClampDate)(this.date,this.year,e),this.currentView="date")},handleDatePick:function(e){if("day"===this.selectionMode){var t=this.value?Object(di.modifyDate)(this.value,e.getFullYear(),e.getMonth(),e.getDate()):Object(di.modifyWithTimeString)(e,this.defaultTime);this.checkDateWithinRange(t)||(t=Object(di.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(di.modifyDate)(this.date,e,0,1),this.emit(this.date)):(this.date=Object(di.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(di.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,i=this.date.getTime(),r=new Date(this.date.getTime());Math.abs(i-r.getTime())<=31536e6;){var o=t[n];if(o.offset(r,o[e]),"function"!=typeof this.disabledDate||!this.disabledDate(r)){this.date=r,this.$emit("pick",r,!0);break}}},handleVisibleTimeChange:function(e){var t=Object(di.parseDate)(e,this.timeFormat);t&&this.checkDateWithinRange(t)&&(this.date=Object(di.modifyDate)(t,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(di.parseDate)(e,this.dateFormat);if(t){if("function"==typeof this.disabledDate&&this.disabledDate(t))return;this.date=Object(di.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(di.timeWithinRange)(e,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:Oi,YearTable:Ri,MonthTable:Vi,DateTable:Ki,ElInput:d.a,ElButton:G.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",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(di.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(di.formatDate)(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(di.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(di.extractTimeFormat)(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(di.extractDateFormat)(this.format):"yyyy-MM-dd"}}},Ei,[],!1,null,null,null);Yi.options.__file="packages/date-picker/src/panel/date.vue";var qi=Yi.exports,Xi=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,i){return n("button",{key:i,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,"cell-class-name":e.cellClassName,"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,"cell-class-name":e.cellClassName,"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()])])};Xi._withStripped=!0;var Ji=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(di.nextDate)(new Date(e),1)]:[new Date,Object(di.nextDate)(new Date,1)]},Zi=r({mixins:[p.a],directives:{Clickoutside:D.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(di.formatDate)(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(di.formatDate)(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(di.formatDate)(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(di.formatDate)(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(di.extractTimeFormat)(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(di.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(di.nextMonth)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",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){t.$refs.maxTimePicker.selectableRange=[[Object(di.parseDate)(Object(di.formatDate)(t.minDate,"HH:mm:ss"),"HH:mm:ss"),Object(di.parseDate)("23:59:59","HH:mm:ss")]]}}),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(di.isDate)(e[0])?new Date(e[0]):null,this.maxDate=Object(di.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(),i=this.maxDate.getFullYear(),r=this.maxDate.getMonth();this.rightDate=t===i&&n===r?Object(di.nextMonth)(this.maxDate):this.maxDate}else this.rightDate=Object(di.nextMonth)(this.leftDate);else this.leftDate=Ji(this.defaultValue)[0],this.rightDate=Object(di.nextMonth)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=Ji(e),n=t[0],i=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&this.unlinkPanels?i:Object(di.nextMonth)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=Ji(this.defaultValue)[0],this.rightDate=Object(di.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(di.parseDate)(e,this.dateFormat);if(n){if("function"==typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===t?(this.minDate=Object(di.modifyDate)(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(di.nextMonth)(this.leftDate))):(this.maxDate=Object(di.modifyDate)(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(di.prevMonth)(n)))}}},handleDateChange:function(e,t){var n=Object(di.parseDate)(e,this.dateFormat);n&&("min"===t?(this.minDate=Object(di.modifyDate)(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(di.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 i=Object(di.parseDate)(e,this.timeFormat);i&&("min"===t?(this.minDate=Object(di.modifyTime)(this.minDate,i.getHours(),i.getMinutes(),i.getSeconds()),this.$nextTick(function(e){return n.$refs.minTimePicker.adjustSpinners()})):(this.maxDate=Object(di.modifyTime)(this.maxDate,i.getHours(),i.getMinutes(),i.getSeconds()),this.$nextTick(function(e){return n.$refs.maxTimePicker.adjustSpinners()})))}},handleTimeChange:function(e,t){var n=Object(di.parseDate)(e,this.timeFormat);n&&("min"===t?(this.minDate=Object(di.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(di.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],i=this.defaultTime||[],r=Object(di.modifyWithTimeString)(e.minDate,i[0]),o=Object(di.modifyWithTimeString)(e.maxDate,i[1]);this.maxDate===o&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=r,setTimeout(function(){t.maxDate=o,t.minDate=r},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(di.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(di.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(di.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(di.nextMonth)(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(di.prevMonth)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(di.nextMonth)(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(di.nextYear)(this.rightDate):(this.leftDate=Object(di.nextYear)(this.leftDate),this.rightDate=Object(di.nextMonth)(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(di.nextMonth)(this.rightDate):(this.leftDate=Object(di.nextMonth)(this.leftDate),this.rightDate=Object(di.nextMonth)(this.leftDate))},leftNextYear:function(){this.leftDate=Object(di.nextYear)(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(di.nextMonth)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(di.prevYear)(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(di.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(di.isDate)(e[0])&&Object(di.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&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(di.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(di.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:Oi,DateTable:Ki,ElInput:d.a,ElButton:G.a}},Xi,[],!1,null,null,null);Zi.options.__file="packages/date-picker/src/panel/date-range.vue";var er=Zi.exports,tr=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,i){return n("button",{key:i,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)])])};tr._withStripped=!0;var nr=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(di.nextMonth)(new Date(e))]:[new Date,Object(di.nextMonth)(new Date)]},ir=r({mixins:[p.a],directives:{Clickoutside:D.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(di.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(di.isDate)(e[0])?new Date(e[0]):null,this.maxDate=Object(di.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(di.nextYear)(this.maxDate):this.maxDate}else this.rightDate=Object(di.nextYear)(this.leftDate);else this.leftDate=nr(this.defaultValue)[0],this.rightDate=Object(di.nextYear)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=nr(e),n=t[0],i=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&n.getFullYear()!==i.getFullYear()&&this.unlinkPanels?i:Object(di.nextYear)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=nr(this.defaultValue)[0],this.rightDate=Object(di.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],i=this.defaultTime||[],r=Object(di.modifyWithTimeString)(e.minDate,i[0]),o=Object(di.modifyWithTimeString)(e.maxDate,i[1]);this.maxDate===o&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=r,setTimeout(function(){t.maxDate=o,t.minDate=r},10),n&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},leftPrevYear:function(){this.leftDate=Object(di.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(di.prevYear)(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(di.nextYear)(this.leftDate)),this.rightDate=Object(di.nextYear)(this.rightDate)},leftNextYear:function(){this.leftDate=Object(di.nextYear)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(di.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(di.isDate)(e[0])&&Object(di.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(di.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(di.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:Vi,ElInput:d.a,ElButton:G.a}},tr,[],!1,null,null,null);ir.options.__file="packages/date-picker/src/panel/month-range.vue";var rr=ir.exports,or=function(e){return"daterange"===e||"datetimerange"===e?er:"monthrange"===e?rr:qi},ar={mixins:[Ti],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(e){this.picker?(this.unmountPicker(),this.panel=or(e),this.mountPicker()):this.panel=or(e)}},created:function(){this.panel=or(this.type)},install:function(e){e.component(ar.name,ar)}},sr=ar,lr=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)])};lr._withStripped=!0;var ur=function(e){var t=(e||"").split(":");return t.length>=2?{hours:parseInt(t[0],10),minutes:parseInt(t[1],10)}:null},cr=function(e,t){var n=ur(e),i=ur(t),r=n.minutes+60*n.hours,o=i.minutes+60*i.hours;return r===o?0:r>o?1:-1},hr=function(e,t){var n=ur(e),i=ur(t),r={hours:n.hours,minutes:n.minutes};return r.minutes+=i.minutes,r.hours+=i.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,function(e){return(e.hours<10?"0"+e.hours:e.hours)+":"+(e.minutes<10?"0"+e.minutes:e.minutes)}(r)},dr=r({components:{ElScrollbar:N.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",t=this.$refs.popper.querySelector(".el-picker-panel__content");Rt()(t,t.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),i=(t?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick(function(){return e.scrollToOption(i)})},scrollDown:function(e){for(var t=this.items,n=t.length,i=t.length,r=t.map(function(e){return e.value}).indexOf(this.value);i--;)if(!t[r=(r+e+n)%n].disabled)return void this.$emit("pick",t[r].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,i=[];if(e&&t&&n)for(var r=e;cr(r,t)<=0;)i.push({value:r,disabled:cr(r,this.minTime||"-1:-1")<=0||cr(r,this.maxTime||"100:100")>=0}),r=hr(r,n);return i}}},lr,[],!1,null,null,null);dr.options.__file="packages/date-picker/src/panel/time-select.vue";var fr=dr.exports,pr={mixins:[Ti],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=fr},install:function(e){e.component(pr.name,pr)}},Ar=pr,gr=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")))])])])])};gr._withStripped=!0;var vr=Object(di.parseDate)("00:00:00","HH:mm:ss"),mr=Object(di.parseDate)("23:59:59","HH:mm:ss"),yr=function(e){return Object(di.modifyDate)(mr,e.getFullYear(),e.getMonth(),e.getDate())},_r=function(e,t){return new Date(Math.min(e.getTime()+t,yr(e).getTime()))},br=r({mixins:[p.a],components:{TimeSpinner:Pi},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=_r(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=_r(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(di.clearMilliseconds)(e),this.handleChange()},handleMaxChange:function(e){this.maxDate=Object(di.clearMilliseconds)(e),this.handleChange()},handleChange:function(){var e;this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[(e=this.minDate,Object(di.modifyDate)(vr,e.getFullYear(),e.getMonth(),e.getDate())),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,yr(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(di.limitTimeRange)(this.minDate,t,this.format),this.maxDate=Object(di.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"]:[]),i=(t.indexOf(this.selectionRange[0])+e+t.length)%t.length,r=t.length/2;i<r?this.$refs.minSpinner.emitSelectRange(n[i]):this.$refs.maxSpinner.emitSelectRange(n[i-r])},isValidValue:function(e){return Array.isArray(e)&&Object(di.timeWithinRange)(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(di.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 i=n[t];return this.changeSelectionRange(i),void e.preventDefault()}if(38===t||40===t){var r=n[t];return this.spinner.scrollDown(r),void e.preventDefault()}}}},gr,[],!1,null,null,null);br.options.__file="packages/date-picker/src/panel/time-range.vue";var wr=br.exports,xr={mixins:[Ti],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?wr:Oi,this.mountPicker()):(this.type=e?"timerange":"time",this.panel=e?wr:Oi)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?wr:Oi},install:function(e){e.component(xr.name,xr)}},Cr=xr,Sr=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)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)};Sr._withStripped=!0;var kr=r({name:"ElPopover",mixins:[O.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},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(A.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.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(pe.addClass)(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(pe.on)(t,"focusin",function(){e.handleFocus();var n=t.__vue__;n&&"function"==typeof n.focus&&n.focus()}),Object(pe.on)(n,"focusin",this.handleFocus),Object(pe.on)(t,"focusout",this.handleBlur),Object(pe.on)(n,"focusout",this.handleBlur)),Object(pe.on)(t,"keydown",this.handleKeydown),Object(pe.on)(t,"click",this.handleClick)),"click"===this.trigger?(Object(pe.on)(t,"click",this.doToggle),Object(pe.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(pe.on)(t,"mouseenter",this.handleMouseEnter),Object(pe.on)(n,"mouseenter",this.handleMouseEnter),Object(pe.on)(t,"mouseleave",this.handleMouseLeave),Object(pe.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(pe.on)(t,"focusin",this.doShow),Object(pe.on)(t,"focusout",this.doClose)):(Object(pe.on)(t,"mousedown",this.doShow),Object(pe.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(pe.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(pe.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(pe.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.closeDelay?this._timer=setTimeout(function(){e.showPopper=!1},this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),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||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(pe.off)(e,"click",this.doToggle),Object(pe.off)(e,"mouseup",this.doClose),Object(pe.off)(e,"mousedown",this.doShow),Object(pe.off)(e,"focusin",this.doShow),Object(pe.off)(e,"focusout",this.doClose),Object(pe.off)(e,"mousedown",this.doShow),Object(pe.off)(e,"mouseup",this.doClose),Object(pe.off)(e,"mouseleave",this.handleMouseLeave),Object(pe.off)(e,"mouseenter",this.handleMouseEnter),Object(pe.off)(document,"click",this.handleDocumentClick)}},Sr,[],!1,null,null,null);kr.options.__file="packages/popover/src/main.vue";var Br=kr.exports,Tr=function(e,t,n){var i=t.expression?t.value:t.arg,r=n.context.$refs[i];r&&(Array.isArray(r)?r[0].$refs.reference=e:r.$refs.reference=e)},Er={bind:function(e,t,n){Tr(e,t,n)},inserted:function(e,t,n){Tr(e,t,n)}};hn.a.directive("popover",Er),Br.install=function(e){e.directive("popover",Er),e.component(Br.name,Br)},Br.directive=Er;var Ir=Br,Mr={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(A.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new hn.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=I()(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 i=n.data=n.data||{};return i.staticClass=this.addTooltipClass(i.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(pe.on)(this.referenceElm,"mouseenter",this.show),Object(pe.on)(this.referenceElm,"mouseleave",this.hide),Object(pe.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(pe.on)(this.referenceElm,"blur",this.handleBlur),Object(pe.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick(function(){e.value&&e.updatePopper()})},watch:{focusing:function(e){e?Object(pe.addClass)(this.referenceElm,"focusing"):Object(pe.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 t=null,n=0;n<e.length;n++)e[n]&&e[n].tag&&(t=e[n]);return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(pe.off)(e,"mouseenter",this.show),Object(pe.off)(e,"mouseleave",this.hide),Object(pe.off)(e,"focus",this.handleFocus),Object(pe.off)(e,"blur",this.handleBlur),Object(pe.off)(e,"click",this.removeFocusing))},install:function(e){e.component(Mr.name,Mr)}},Dr=Mr,Pr=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"},[n("div",{staticClass:"el-message-box__container"},[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")?e.handleInputEnter(t):null}},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)])])])};Pr._withStripped=!0;var Fr=n(12),Or=n.n(Fr),Lr=n(39),Nr=n.n(Lr),Rr=void 0,Ur={success:"success",info:"info",warning:"warning",error:"error"},Qr=r({mixins:[_.a,p.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:d.a,ElButton:G.a},computed:{icon:function(){var e=this.type;return this.iconClass||(e&&Ur[e]?"el-icon-"+Ur[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(),Rr.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(Fr.t)("el.messagebox.error"),Object(pe.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(Fr.t)("el.messagebox.error"),Object(pe.addClass)(this.getInputElement(),"invalid"),!1;if("string"==typeof n)return this.editorErrorMessage=n,Object(pe.addClass)(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(pe.removeClass)(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var e=this.$el.querySelector(".el-message-box__btns .el-button"),t=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return e||t},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,Rr=new Nr.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(pe.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(){Rr.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}}},Pr,[],!1,null,null,null);Qr.options.__file="packages/message-box/src/main.vue";var Hr=Qr.exports,jr=n(22),Vr="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},zr={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},$r=hn.a.extend(Hr),Gr=void 0,Wr=void 0,Kr=[],Yr=function(e){if(Gr){var t=Gr.callback;"function"==typeof t&&(Wr.showInput?t(Wr.inputValue,e):t(e)),Gr.resolve&&("confirm"===e?Wr.showInput?Gr.resolve({value:Wr.inputValue,action:e}):Gr.resolve(e):!Gr.reject||"cancel"!==e&&"close"!==e||Gr.reject(e))}},qr=function e(){if(Wr||((Wr=new $r({el:document.createElement("div")})).callback=Yr),Wr.action="",(!Wr.visible||Wr.closeTimer)&&Kr.length>0){var t=(Gr=Kr.shift()).options;for(var n in t)t.hasOwnProperty(n)&&(Wr[n]=t[n]);void 0===t.callback&&(Wr.callback=Yr);var i=Wr.callback;Wr.callback=function(t,n){i(t,n),e()},Object(jr.isVNode)(Wr.message)?(Wr.$slots.default=[Wr.message],Wr.message=null):delete Wr.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach(function(e){void 0===Wr[e]&&(Wr[e]=!0)}),document.body.appendChild(Wr.$el),hn.a.nextTick(function(){Wr.visible=!0})}},Xr=function e(t,n){if(!hn.a.prototype.$isServer){if("string"==typeof t||Object(jr.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(i,r){Kr.push({options:He()({},zr,e.defaults,t),callback:n,resolve:i,reject:r}),qr()});Kr.push({options:He()({},zr,e.defaults,t),callback:n}),qr()}};Xr.setDefaults=function(e){Xr.defaults=e},Xr.alert=function(e,t,n){return"object"===(void 0===t?"undefined":Vr(t))?(n=t,t=""):void 0===t&&(t=""),Xr(He()({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},Xr.confirm=function(e,t,n){return"object"===(void 0===t?"undefined":Vr(t))?(n=t,t=""):void 0===t&&(t=""),Xr(He()({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},Xr.prompt=function(e,t,n){return"object"===(void 0===t?"undefined":Vr(t))?(n=t,t=""):void 0===t&&(t=""),Xr(He()({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},Xr.close=function(){Wr.doClose(),Wr.visible=!1,Kr=[],Gr=null};var Jr=Xr,Zr=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[this._t("default")],2)};Zr._withStripped=!0;var eo=r({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")}},Zr,[],!1,null,null,null);eo.options.__file="packages/breadcrumb/src/breadcrumb.vue";var to=eo.exports;to.install=function(e){e.component(to.name,to)};var no=to,io=function(){var e=this.$createElement,t=this._self._c||e;return t("span",{staticClass:"el-breadcrumb__item"},[t("span",{ref:"link",class:["el-breadcrumb__inner",this.to?"is-link":""],attrs:{role:"link"}},[this._t("default")],2),this.separatorClass?t("i",{staticClass:"el-breadcrumb__separator",class:this.separatorClass}):t("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[this._v(this._s(this.separator))])])};io._withStripped=!0;var ro=r({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 t=this.$refs.link;t.setAttribute("role","link"),t.addEventListener("click",function(t){var n=e.to,i=e.$router;n&&i&&(e.replace?i.replace(n):i.push(n))})}},io,[],!1,null,null,null);ro.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var oo=ro.exports;oo.install=function(e){e.component(oo.name,oo)};var ao=oo,so=function(){var e=this.$createElement;return(this._self._c||e)("form",{staticClass:"el-form",class:[this.labelPosition?"el-form--label-"+this.labelPosition:"",{"el-form--inline":this.inline}]},[this._t("default")],2)};so._withStripped=!0;var lo=r({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]:[];(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).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 i=!0,r=0;0===this.fields.length&&e&&e(!0);var o={};return this.fields.forEach(function(n){n.validate("",function(n,a){n&&(i=!1),o=He()({},o,a),"function"==typeof e&&++r===t.fields.length&&e(i,o)})}),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)}}},so,[],!1,null,null,null);lo.options.__file="packages/form/src/form.vue";var uo=lo.exports;uo.install=function(e){e.component(uo.name,uo)};var co=uo,ho=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)};ho._withStripped=!0;var fo=n(40),po=n.n(fo),Ao=r({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,i={};if(n&&"auto"!==n){var r=parseInt(n,10)-this.computedWidth;r&&(i.marginLeft=r+"px")}return e("div",{class:"el-form-item__label-wrap",style:i},[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")}},void 0,void 0,!1,null,null,null);Ao.options.__file="packages/form/src/label-wrap.vue";var go=Ao.exports,vo=r({name:"ElFormItem",componentName:"ElFormItem",mixins:[C.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:go},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={},t=this.label;if("top"===this.form.labelPosition||this.form.inline)return e;if(!t&&!this.labelWidth&&this.isNested)return e;var n=this.labelWidth||this.form.labelWidth;return"auto"===n?"auto"===this.labelWidth?e.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(e.marginLeft=this.elForm.autoLabelWidth):e.marginLeft=n,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 t=this.prop;return-1!==t.indexOf(":")&&(t=t.replace(/:/,".")),Object(A.getPropByPath)(e,t,!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]:A.noop;this.validateDisabled=!1;var i=this.getFilteredRule(e);if((!i||0===i.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var r={};i&&i.length>0&&i.forEach(function(e){delete e.trigger}),r[this.prop]=i;var o=new po.a(r),a={};a[this.prop]=this.fieldValue,o.validate(a,{firstFields:!0},function(e,i){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",n(t.validateMessage,i),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,i=this.prop;-1!==i.indexOf(":")&&(i=i.replace(/:/,"."));var r=Object(A.getPropByPath)(t,i,!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}:[],i=Object(A.getPropByPath)(e,this.prop||"");return e=e?i.o[this.prop||""]||i.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 He()({},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])}},ho,[],!1,null,null,null);vo.options.__file="packages/form/src/form-item.vue";var mo=vo.exports;mo.install=function(e){e.component(mo.name,mo)};var yo=mo,_o=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-tabs__active-bar",class:"is-"+this.rootTabs.tabPosition,style:this.barStyle})};_o._withStripped=!0;var bo=r({name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var e=this,t={},n=0,i=0,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",o="width"===r?"x":"y",a=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,function(e){return e.toUpperCase()})};this.tabs.every(function(t,o){var s=Object(A.arrayFind)(e.$parent.$refs.tabs||[],function(e){return e.id.replace("tab-","")===t.paneName});if(!s)return!1;if(t.active){i=s["client"+a(r)];var l=window.getComputedStyle(s);return"width"===r&&e.tabs.length>1&&(i-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),"width"===r&&(n+=parseFloat(l.paddingLeft)),!1}return n+=s["client"+a(r)],!0});var s="translate"+a(o)+"("+n+"px)";return t[r]=i+"px",t.transform=s,t.msTransform=s,t.webkitTransform=s,t}}}},_o,[],!1,null,null,null);function wo(){}bo.options.__file="packages/tabs/src/tab-bar.vue";var xo=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,function(e){return e.toUpperCase()})},Co=r({name:"TabNav",components:{TabBar:bo.exports},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:wo},onTabRemove:{type:Function,default:wo},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"+xo(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"+xo(this.sizeName)],t=this.$refs.navScroll["offset"+xo(this.sizeName)],n=this.navOffset;if(!(e-n<=t)){var i=e-n>2*t?n+t:e-t;this.navOffset=i}},scrollToActiveTab:function(){if(this.scrollable){var e=this.$refs.nav,t=this.$el.querySelector(".is-active");if(t){var n=this.$refs.navScroll,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=i?e.offsetWidth-o.width:e.offsetHeight-o.height,s=this.navOffset,l=s;i?(r.left<o.left&&(l=s-(o.left-r.left)),r.right>o.right&&(l=s+r.right-o.right)):(r.top<o.top&&(l=s-(o.top-r.top)),r.bottom>o.bottom&&(l=s+(r.bottom-o.bottom))),l=Math.max(l,0),this.navOffset=Math.min(l,a)}}},update:function(){if(this.$refs.nav){var e=this.sizeName,t=this.$refs.nav["offset"+xo(e)],n=this.$refs.navScroll["offset"+xo(e)],i=this.navOffset;if(n<t){var r=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=r,this.scrollable.next=r+n<t,t-r<n&&(this.navOffset=t-n)}else this.scrollable=!1,i>0&&(this.navOffset=0)}},changeTab:function(e){var t=e.keyCode,n=void 0,i=void 0,r=void 0;-1!==[37,38,39,40].indexOf(t)&&(r=e.currentTarget.querySelectorAll("[role=tab]"),i=Array.prototype.indexOf.call(r,e.target),r[n=37===t||38===t?0===i?r.length-1:i-1:i<r.length-1?i+1:0].focus(),r[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,i=this.panes,r=this.editable,o=this.stretch,a=this.onTabClick,s=this.onTabRemove,l=this.navStyle,u=this.scrollable,c=this.scrollNext,h=this.scrollPrev,d=this.changeTab,f=this.setFocus,p=this.removeFocus,A=u?[e("span",{class:["el-tabs__nav-prev",u.prev?"":"is-disabled"],on:{click:h}},[e("i",{class:"el-icon-arrow-left"})]),e("span",{class:["el-tabs__nav-next",u.next?"":"is-disabled"],on:{click:c}},[e("i",{class:"el-icon-arrow-right"})])]:null,g=this._l(i,function(n,i){var o,l=n.name||n.index||i,u=n.isClosable||r;n.index=""+i;var c=u?e("span",{class:"el-icon-close",on:{click:function(e){s(n,e)}}}):null,h=n.$slots.label||n.label,d=n.active?0:-1;return e("div",{class:(o={"el-tabs__item":!0},o["is-"+t.rootTabs.tabPosition]=!0,o["is-active"]=n.active,o["is-disabled"]=n.disabled,o["is-closable"]=u,o["is-focus"]=t.isFocus,o),attrs:{id:"tab-"+l,"aria-controls":"pane-"+l,role:"tab","aria-selected":n.active,tabindex:d},key:"tab-"+l,ref:"tabs",refInFor:!0,on:{focus:function(){f()},blur:function(){p()},click:function(e){p(),a(n,l,e)},keydown:function(e){!u||46!==e.keyCode&&8!==e.keyCode||s(n,e)}}},[h,c])});return e("div",{class:["el-tabs__nav-wrap",u?"is-scrollable":"","is-"+this.rootTabs.tabPosition]},[A,e("div",{class:["el-tabs__nav-scroll"],ref:"navScroll"},[e("div",{class:["el-tabs__nav","is-"+this.rootTabs.tabPosition,o&&-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"is-stretch":""],ref:"nav",style:l,attrs:{role:"tablist"},on:{keydown:d}},[n?null:e("tab-bar",{attrs:{tabs:i}}),g])])])},mounted:function(){var e=this;Object(Lt.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(Lt.removeResizeListener)(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},void 0,void 0,!1,null,null,null);Co.options.__file="packages/tabs/src/tab-nav.vue";var So=r({name:"ElTabs",components:{TabNav:Co.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}).map(function(e){return e.componentInstance}),i=!(n.length===this.panes.length&&n.every(function(t,n){return t===e.panes[n]}));(t||i)&&(this.panes=n)}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 i=this.beforeLeave(e,this.currentName);i&&i.then?i.then(function(){n(),t.$refs.nav&&t.$refs.nav.removeFocus()},function(){}):!1!==i&&n()}else n()}},render:function(e){var t,n=this.type,i=this.handleTabClick,r=this.handleTabRemove,o=this.handleTabAdd,a=this.currentName,s=this.panes,l=this.editable,u=this.addable,c=this.tabPosition,h=this.stretch,d=e("div",{class:["el-tabs__header","is-"+c]},[l||u?e("span",{class:"el-tabs__new-tab",on:{click:o,keydown:function(e){13===e.keyCode&&o()}},attrs:{tabindex:"0"}},[e("i",{class:"el-icon-plus"})]):null,e("tab-nav",{props:{currentName:a,onTabClick:i,onTabRemove:r,editable:l,type:n,panes:s,stretch:h},ref:"nav"})]),f=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--"+c]=!0,t["el-tabs--border-card"]="border-card"===n,t)},["bottom"!==c?[d,f]:[f,d]])},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()}},void 0,void 0,!1,null,null,null);So.options.__file="packages/tabs/src/tabs.vue";var ko=So.exports;ko.install=function(e){e.component(ko.name,ko)};var Bo=ko,To=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()};To._withStripped=!0;var Eo=r({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")}},To,[],!1,null,null,null);Eo.options.__file="packages/tabs/src/tab-pane.vue";var Io=Eo.exports;Io.install=function(e){e.component(Io.name,Io)};var Mo=Io,Do=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,i=this.hit,r=this.effect,o=e("span",{class:["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",r?"el-tag--"+r:"",i&&"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?o:e("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},void 0,void 0,!1,null,null,null);Do.options.__file="packages/tag/src/tag.vue";var Po=Do.exports;Po.install=function(e){e.component(Po.name,Po)};var Fo=Po,Oo=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)};Oo._withStripped=!0;var Lo="$treeNodeId",No=function(e,t){t&&!t[Lo]&&Object.defineProperty(t,Lo,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Ro=function(e,t){return e?t[e]:t[Lo]},Uo=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var Qo=function(e){for(var t=!0,n=!0,i=!0,r=0,o=e.length;r<o;r++){var a=e[r];(!0!==a.checked||a.indeterminate)&&(t=!1,a.disabled||(i=!1)),(!1!==a.checked||a.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:i,half:!t&&!n}},Ho=function e(t){if(0!==t.childNodes.length){var n=Qo(t.childNodes),i=n.all,r=n.none,o=n.half;i?(t.checked=!0,t.indeterminate=!1):o?(t.checked=!1,t.indeterminate=!0):r&&(t.checked=!1,t.indeterminate=!1);var a=t.parent;a&&0!==a.level&&(t.store.checkStrictly||e(a))}},jo=function(e,t){var n=e.store.props,i=e.data||{},r=n[t];if("function"==typeof r)return r(i,e);if("string"==typeof r)return i[r];if(void 0===r){var o=i[t];return void 0===o?"":o}},Vo=0,zo=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=Vo++,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 i=this.store;if(!i)throw new Error("[Node]store is required!");i.registerNode(this);var r=i.props;if(r&&void 0!==r.isLeaf){var o=jo(this,"isLeaf");"boolean"==typeof o&&(this.isLeafByUser=o)}if(!0!==i.lazy&&this.data?(this.setData(this.data),i.defaultExpandAll&&(this.expanded=!0)):this.level>0&&i.lazy&&i.defaultExpandAll&&this.expand(),Array.isArray(this.data)||No(this,this.data),this.data){var a=i.defaultExpandedKeys,s=i.key;s&&a&&-1!==a.indexOf(this.key)&&this.expand(null,i.autoExpandParent),s&&void 0!==i.currentNodeKey&&this.key===i.currentNodeKey&&(i.currentNode=this,i.currentNode.isCurrent=!0),i.lazy&&i._initDefaultCheckedNode(this),this.updateLeafState()}}return e.prototype.setData=function(e){Array.isArray(e)||No(this,e),this.data=e,this.childNodes=[];for(var t=void 0,n=0,i=(t=0===this.level&&this.data instanceof Array?this.data:jo(this,"children")||[]).length;n<i;n++)this.insertChild({data:t[n]})},e.prototype.contains=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function n(i){for(var r=i.childNodes||[],o=!1,a=0,s=r.length;a<s;a++){var l=r[a];if(l===e||t&&n(l)){o=!0;break}}return o}(this)},e.prototype.remove=function(){var e=this.parent;e&&e.removeChild(this)},e.prototype.insertChild=function(t,n,i){if(!t)throw new Error("insertChild error: child is required.");if(!(t instanceof e)){if(!i){var r=this.getChildren(!0)||[];-1===r.indexOf(t.data)&&(void 0===n||n<0?r.push(t.data):r.splice(n,0,t.data))}He()(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 i=this.childNodes.indexOf(e);i>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(i,1)),this.updateLeafState()},e.prototype.removeChildByData=function(e){for(var t=null,n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===e){t=this.childNodes[n];break}t&&this.removeChild(t)},e.prototype.expand=function(e,t){var n=this,i=function(){if(t)for(var i=n.parent;i.level>0;)i.expanded=!0,i=i.parent;n.expanded=!0,e&&e()};this.shouldLoadData()?this.loadData(function(e){e instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||Ho(n),i())}):i()},e.prototype.doCreateChildren=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach(function(e){t.insertChild(He()({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,i){var r=this;if(this.indeterminate="half"===e,this.checked=!0===e,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var o=Qo(this.childNodes),a=o.all,s=o.allWithoutDisable;this.isLeaf||a||!s||(this.checked=!1,e=!1);var l=function(){if(t){for(var n=r.childNodes,o=0,a=n.length;o<a;o++){var s=n[o];i=i||!1!==e;var l=s.disabled?s.checked:i;s.setChecked(l,t,!0,i)}var u=Qo(n),c=u.half,h=u.all;h||(r.checked=h,r.indeterminate=c)}};if(this.shouldLoadData())return void this.loadData(function(){l(),Ho(r)},{checked:!1!==e});l()}var u=this.parent;u&&0!==u.level&&(n||Ho(u))}},e.prototype.getChildren=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var t=this.data;if(!t)return null;var n=this.store.props,i="children";return n&&(i=n.children||"children"),void 0===t[i]&&(t[i]=null),e&&!t[i]&&(t[i]=[]),t[i]},e.prototype.updateChildren=function(){var e=this,t=this.getChildren()||[],n=this.childNodes.map(function(e){return e.data}),i={},r=[];t.forEach(function(e,t){var o=e[Lo];!!o&&Object(A.arrayFindIndex)(n,function(e){return e[Lo]===o})>=0?i[o]={index:t,data:e}:r.push({index:t,data:e})}),this.store.lazy||n.forEach(function(t){i[t[Lo]]||e.removeChildByData(t)}),r.forEach(function(t){var n=t.index,i=t.data;e.insertChild({data:i},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;this.store.load(this,function(i){t.loaded=!0,t.loading=!1,t.childNodes=[],t.doCreateChildren(i,n),t.updateLeafState(),e&&e.call(t,i)})}},Uo(e,[{key:"label",get:function(){return jo(this,"label")}},{key:"key",get:function(){var e=this.store.key;return this.data?this.data[e]:null}},{key:"disabled",get:function(){return jo(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}(),$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};var Go=function(){function e(t){var n=this;for(var i 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(i)&&(this[i]=t[i]);(this.nodesMap={},this.root=new zo({data:this.data,store:this}),this.lazy&&this.load)?(0,this.load)(this.root,function(e){n.root.doCreateChildren(e),n._initDefaultCheckedNodes()}):this._initDefaultCheckedNodes()}return e.prototype.filter=function(e){var t=this.filterNodeMethod,n=this.lazy;!function i(r){var o=r.root?r.root.childNodes:r.childNodes;if(o.forEach(function(n){n.visible=t.call(n,e,n.data,n),i(n)}),!r.visible&&o.length){var a;a=!o.some(function(e){return e.visible}),r.root?r.root.visible=!1===a:r.visible=!1===a}e&&(!r.visible||r.isLeaf||n||r.expand())}(this)},e.prototype.setData=function(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()},e.prototype.getNode=function(e){if(e instanceof zo)return e;var t="object"!==(void 0===e?"undefined":$o(e))?e:Ro(this.key,e);return this.nodesMap[t]||null},e.prototype.insertBefore=function(e,t){var n=this.getNode(t);n.parent.insertBefore({data:e},n)},e.prototype.insertAfter=function(e,t){var n=this.getNode(t);n.parent.insertAfter({data:e},n)},e.prototype.remove=function(e){var t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))},e.prototype.append=function(e,t){var n=t?this.getNode(t):this.root;n&&n.insertChild({data:e})},e.prototype._initDefaultCheckedNodes=function(){var e=this,t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(function(t){var i=n[t];i&&i.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=[];return function i(r){(r.root?r.root.childNodes:r.childNodes).forEach(function(r){(r.checked||t&&r.indeterminate)&&(!e||e&&r.isLeaf)&&n.push(r.data),i(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(t){return(t||{})[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(t){return(t||{})[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,t){var n=this.nodesMap[e];if(n){for(var i=n.childNodes,r=i.length-1;r>=0;r--){var o=i[r];this.remove(o.data)}for(var a=0,s=t.length;a<s;a++){var l=t[a];this.append(l,n.data)}}},e.prototype._setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=this._getAllNodes().sort(function(e,t){return t.level-e.level}),r=Object.create(null),o=Object.keys(n);i.forEach(function(e){return e.setChecked(!1,!1)});for(var a=0,s=i.length;a<s;a++){var l=i[a],u=l.data[e].toString();if(o.indexOf(u)>-1){for(var c=l.parent;c&&c.level>0;)r[c.data[e]]=!0,c=c.parent;l.isLeaf||this.checkStrictly?l.setChecked(!0,!1):(l.setChecked(!0,!0),t&&function(){l.setChecked(!1,!1);!function e(t){t.childNodes.forEach(function(t){t.isLeaf||t.setChecked(!1,!1),e(t)})}(l)}())}else l.checked&&!r[u]&&l.setChecked(!1,!1)}},e.prototype.setCheckedNodes=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,i={};e.forEach(function(e){i[(e||{})[n]]=!0}),this._setCheckedKeys(n,t,i)},e.prototype.setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,i={};e.forEach(function(e){i[e]=!0}),this._setCheckedKeys(n,t,i)},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(e,t,n){var i=this.getNode(e);i&&i.setChecked(!!t,n)},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||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var t=this.getNode(e);t&&this.setCurrentNode(t)},e}(),Wo=function(){var e=this,t=this,n=t.$createElement,i=t._self._c||n;return i("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)}}},[i("div",{staticClass:"el-tree-node__content",style:{"padding-left":(t.node.level-1)*t.tree.indent+"px"}},[i("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?i("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?i("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):t._e(),i("node-content",{attrs:{node:t.node}})],1),i("el-collapse-transition",[!t.renderAfterExpand||t.childNodeRendered?i("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 i("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)};Wo._withStripped=!0;var Ko=r({name:"ElTreeNode",componentName:"ElTreeNode",mixins:[C.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:ye.a,ElCheckbox:rn.a,NodeContent:{props:{node:{required:!0}},render:function(e){var t=this.$parent,n=t.tree,i=this.node,r=i.data,o=i.store;return t.renderContent?t.renderContent.call(t._renderProxy,e,{_self:n.$vnode.context,node:i,data:r,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:i,data:r}):e("span",{class:"el-tree-node__label"},[i.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 Ro(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 i=(n.props||{}).children||"children";this.$watch("node.data."+i,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()})}},Wo,[],!1,null,null,null);Ko.options.__file="packages/tree/src/tree-node.vue";var Yo=Ko.exports,qo=r({name:"ElTree",mixins:[C.a],components:{ElTreeNode:Yo},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(Fr.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 Ro(this.nodeKey,e.data)},getNodePath:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var t=this.store.getNode(e);if(!t)return[];for(var n=[t.data],i=t.parent;i&&i!==this.root;)n.push(i.data),i=i.parent;return n.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(e,t,n){this.store.setChecked(e,t,n)},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(e){return this.store.getNode(e)},remove:function(e){this.store.remove(e)},append:function(e,t){this.store.append(e,t)},insertBefore:function(e,t){this.store.insertBefore(e,t)},insertAfter:function(e,t){this.store.insertAfter(e,t)},handleNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.$emit("node-expand",e,t,n)},updateKeyChildren:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(e,t)},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 i=this.treeItemArray.indexOf(t),r=void 0;[38,40].indexOf(n)>-1&&(e.preventDefault(),r=38===n?0!==i?i-1:0:i<this.treeItemArray.length-1?i+1:0,this.treeItemArray[r].focus()),[37,39].indexOf(n)>-1&&(e.preventDefault(),t.click());var o=t.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&o&&(e.preventDefault(),o.click())}}},created:function(){var e=this;this.isTree=!0,this.store=new Go({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,i){if("function"==typeof e.allowDrag&&!e.allowDrag(i.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(e){}t.draggingNode=i,e.$emit("node-drag-start",i.node,n)}),this.$on("tree-node-drag-over",function(n,i){var r=function(e,t){for(var n=e;n&&"BODY"!==n.tagName;){if(n.__vue__&&n.__vue__.$options.name===t)return n.__vue__;n=n.parentNode}return null}(n.target,"ElTreeNode"),o=t.dropNode;o&&o!==r&&Object(pe.removeClass)(o.$el,"is-drop-inner");var a=t.draggingNode;if(a&&r){var s=!0,l=!0,u=!0,c=!0;"function"==typeof e.allowDrop&&(s=e.allowDrop(a.node,r.node,"prev"),c=l=e.allowDrop(a.node,r.node,"inner"),u=e.allowDrop(a.node,r.node,"next")),n.dataTransfer.dropEffect=l?"move":"none",(s||l||u)&&o!==r&&(o&&e.$emit("node-drag-leave",a.node,o.node,n),e.$emit("node-drag-enter",a.node,r.node,n)),(s||l||u)&&(t.dropNode=r),r.node.nextSibling===a.node&&(u=!1),r.node.previousSibling===a.node&&(s=!1),r.node.contains(a.node,!1)&&(l=!1),(a.node===r.node||a.node.contains(r.node))&&(s=!1,l=!1,u=!1);var h=r.$el.getBoundingClientRect(),d=e.$el.getBoundingClientRect(),f=void 0,p=s?l?.25:u?.45:1:-1,A=u?l?.75:s?.55:0:1,g=-9999,v=n.clientY-h.top;f=v<h.height*p?"before":v>h.height*A?"after":l?"inner":"none";var m=r.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),y=e.$refs.dropIndicator;"before"===f?g=m.top-d.top:"after"===f&&(g=m.bottom-d.top),y.style.top=g+"px",y.style.left=m.right-d.left+"px","inner"===f?Object(pe.addClass)(r.$el,"is-drop-inner"):Object(pe.removeClass)(r.$el,"is-drop-inner"),t.showDropIndicator="before"===f||"after"===f,t.allowDrop=t.showDropIndicator||c,t.dropType=f,e.$emit("node-drag-over",a.node,r.node,n)}}),this.$on("tree-node-drag-end",function(n){var i=t.draggingNode,r=t.dropType,o=t.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",i&&o){var a={data:i.node.data};"none"!==r&&i.node.remove(),"before"===r?o.node.parent.insertBefore(a,o.node):"after"===r?o.node.parent.insertAfter(a,o.node):"inner"===r&&o.node.insertChild(a),"none"!==r&&e.store.registerNode(a),Object(pe.removeClass)(o.$el,"is-drop-inner"),e.$emit("node-drag-end",i.node,o.node,r,n),"none"!==r&&e.$emit("node-drop",i.node,o.node,r,n)}i&&!o&&e.$emit("node-drag-end",i.node,null,r,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]")}},Oo,[],!1,null,null,null);qo.options.__file="packages/tree/src/tree.vue";var Xo=qo.exports;Xo.install=function(e){e.component(Xo.name,Xo)};var Jo=Xo,Zo=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))])])])])};Zo._withStripped=!0;var ea={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},ta=r({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 ea[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":""}}},Zo,[],!1,null,null,null);ta.options.__file="packages/alert/src/main.vue";var na=ta.exports;na.install=function(e){e.component(na.name,na)};var ia=na,ra=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()])])])};ra._withStripped=!0;var oa={success:"success",info:"info",warning:"warning",error:"error"},aa=r({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&&oa[this.type]?"el-icon-"+oa[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)}},ra,[],!1,null,null,null);aa.options.__file="packages/notification/src/main.vue";var sa=aa.exports,la=hn.a.extend(sa),ua=void 0,ca=[],ha=1,da=function e(t){if(!hn.a.prototype.$isServer){var n=(t=He()({},t)).onClose,i="notification_"+ha++,r=t.position||"top-right";t.onClose=function(){e.close(i,n)},ua=new la({data:t}),Object(jr.isVNode)(t.message)&&(ua.$slots.default=[t.message],t.message="REPLACED_BY_VNODE"),ua.id=i,ua.$mount(),document.body.appendChild(ua.$el),ua.visible=!0,ua.dom=ua.$el,ua.dom.style.zIndex=y.PopupManager.nextZIndex();var o=t.offset||0;return ca.filter(function(e){return e.position===r}).forEach(function(e){o+=e.$el.offsetHeight+16}),o+=16,ua.verticalOffset=o,ca.push(ua),ua}};["success","warning","info","error"].forEach(function(e){da[e]=function(t){return("string"==typeof t||Object(jr.isVNode)(t))&&(t={message:t}),t.type=e,da(t)}}),da.close=function(e,t){var n=-1,i=ca.length,r=ca.filter(function(t,i){return t.id===e&&(n=i,!0)})[0];if(r&&("function"==typeof t&&t(r),ca.splice(n,1),!(i<=1)))for(var o=r.position,a=r.dom.offsetHeight,s=n;s<i-1;s++)ca[s].position===o&&(ca[s].dom.style[r.verticalProperty]=parseInt(ca[s].dom.style[r.verticalProperty],10)-a-16+"px")},da.closeAll=function(){for(var e=ca.length-1;e>=0;e--)ca[e].close()};var fa=da,pa=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,i){return e.showStops?n("div",{key:i,staticClass:"el-slider__stop",style:e.getStopStyle(t)}):e._e()}),e.markList.length>0?[n("div",e._l(e.markList,function(t,i){return n("div",{key:i,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,i){return n("slider-marker",{key:i,style:e.getStopStyle(t.position),attrs:{mark:t.mark}})}),1)]:e._e()],2)],1)};pa._withStripped=!0;var Aa=n(41),ga=n.n(Aa),va=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):null},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):null},function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?(t.preventDefault(),e.onLeftKeyDown(t)):null},function(t){return"button"in t||!e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?(t.preventDefault(),e.onRightKeyDown(t)):null}]}},[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)};va._withStripped=!0;var ma=r({name:"ElSliderButton",components:{ElTooltip:Be.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),i=Math.round(e/n)*n*(this.max-this.min)*.01+this.min;i=parseFloat(i.toFixed(this.precision)),this.$emit("input",i),this.$nextTick(function(){t.displayTooltip(),t.$refs.tooltip&&t.$refs.tooltip.updatePopper()}),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},va,[],!1,null,null,null);ma.options.__file="packages/slider/src/button.vue";var ya=ma.exports,_a={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var e=arguments[0],t="string"==typeof this.mark?this.mark:this.mark.label;return e("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[t])}},ba=r({name:"ElSlider",mixins:[C.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:ga.a,SliderButton:ya,SliderMarker:_a},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 n=void 0;n=Math.abs(this.minValue-t)<Math.abs(this.maxValue-t)?this.firstValue<this.secondValue?"button1":"button2":this.firstValue>this.secondValue?"button1":"button2",this.$refs[n].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),i=[],r=1;r<t;r++)i.push(r*n);return this.range?i.filter(function(t){return t<100*(e.minValue-e.min)/(e.max-e.min)||t>100*(e.maxValue-e.min)/(e.max-e.min)}):i.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(e,t){return e-t}).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)}},pa,[],!1,null,null,null);ba.options.__file="packages/slider/src/main.vue";var wa=ba.exports;wa.install=function(e){e.component(wa.name,wa)};var xa=wa,Ca=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()])])])};Ca._withStripped=!0;var Sa=r({data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(e){this.text=e}}},Ca,[],!1,null,null,null);Sa.options.__file="packages/loading/src/loading.vue";var ka=Sa.exports,Ba=n(32),Ta=n.n(Ba),Ea=hn.a.extend(ka),Ia={install:function(e){if(!e.prototype.$isServer){var t=function(t,i){i.value?e.nextTick(function(){i.modifiers.fullscreen?(t.originalPosition=Object(pe.getStyle)(document.body,"position"),t.originalOverflow=Object(pe.getStyle)(document.body,"overflow"),t.maskStyle.zIndex=y.PopupManager.nextZIndex(),Object(pe.addClass)(t.mask,"is-fullscreen"),n(document.body,t,i)):(Object(pe.removeClass)(t.mask,"is-fullscreen"),i.modifiers.body?(t.originalPosition=Object(pe.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(pe.getStyle)(document.body,"margin-"+e),10)+"px"}),["height","width"].forEach(function(e){t.maskStyle[e]=t.getBoundingClientRect()[e]+"px"}),n(document.body,t,i)):(t.originalPosition=Object(pe.getStyle)(t,"position"),n(t,t,i)))}):(Ta()(t.instance,function(e){if(t.instance.hiding){t.domVisible=!1;var n=i.modifiers.fullscreen||i.modifiers.body?document.body:t;Object(pe.removeClass)(n,"el-loading-parent--relative"),Object(pe.removeClass)(n,"el-loading-parent--hidden"),t.instance.hiding=!1}},300,!0),t.instance.visible=!1,t.instance.hiding=!0)},n=function(t,n,i){n.domVisible||"none"===Object(pe.getStyle)(n,"display")||"hidden"===Object(pe.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(pe.addClass)(t,"el-loading-parent--relative"),i.modifiers.fullscreen&&i.modifiers.lock&&Object(pe.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,i){var r=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),a=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),l=i.context,u=new Ea({el:document.createElement("div"),data:{text:l&&l[r]||r,spinner:l&&l[o]||o,background:l&&l[a]||a,customClass:l&&l[s]||s,fullscreen:!!n.modifiers.fullscreen}});e.instance=u,e.mask=u.$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()}})}}},Ma=Ia,Da=hn.a.extend(ka),Pa={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Fa=void 0;Da.prototype.originalPosition="",Da.prototype.originalOverflow="",Da.prototype.close=function(){var e=this;this.fullscreen&&(Fa=void 0),Ta()(this,function(t){var n=e.fullscreen||e.body?document.body:e.target;Object(pe.removeClass)(n,"el-loading-parent--relative"),Object(pe.removeClass)(n,"el-loading-parent--hidden"),e.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),e.$destroy()},300),this.visible=!1};var Oa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!hn.a.prototype.$isServer){if("string"==typeof(e=He()({},Pa,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&&Fa)return Fa;var t=e.body?document.body:e.target,n=new Da({el:document.createElement("div"),data:e});return function(e,t,n){var i={};e.fullscreen?(n.originalPosition=Object(pe.getStyle)(document.body,"position"),n.originalOverflow=Object(pe.getStyle)(document.body,"overflow"),i.zIndex=y.PopupManager.nextZIndex()):e.body?(n.originalPosition=Object(pe.getStyle)(document.body,"position"),["top","left"].forEach(function(t){var n="top"===t?"scrollTop":"scrollLeft";i[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"}),["height","width"].forEach(function(t){i[t]=e.target.getBoundingClientRect()[t]+"px"})):n.originalPosition=Object(pe.getStyle)(t,"position"),Object.keys(i).forEach(function(e){n.$el.style[e]=i[e]})}(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(pe.addClass)(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(pe.addClass)(t,"el-loading-parent--hidden"),t.appendChild(n.$el),hn.a.nextTick(function(){n.visible=!0}),e.fullscreen&&(Fa=n),n}},La={install:function(e){e.use(Ma),e.prototype.$loading=Oa},directive:Ma,service:Oa},Na=function(){var e=this.$createElement;return(this._self._c||e)("i",{class:"el-icon-"+this.name})};Na._withStripped=!0;var Ra=r({name:"ElIcon",props:{name:String}},Na,[],!1,null,null,null);Ra.options.__file="packages/icon/src/icon.vue";var Ua=Ra.exports;Ua.install=function(e){e.component(Ua.name,Ua)};var Qa=Ua,Ha={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:String},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:"",this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(e){e.component(Ha.name,Ha)}},ja=Ha,Va="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},za={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=[],i={};return this.gutter&&(i.paddingLeft=this.gutter/2+"px",i.paddingRight=i.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"===Va(t[e])){var i=t[e];Object.keys(i).forEach(function(t){n.push("span"!==t?"el-col-"+e+"-"+t+"-"+i[t]:"el-col-"+e+"-"+i[t])})}}),e(this.tag,{class:["el-col",n],style:i},this.$slots.default)},install:function(e){e.component(za.name,za)}},$a=za,Ga=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)};Ga._withStripped=!0;var Wa=n(33),Ka=n.n(Wa),Ya=r({name:"ElUploadList",mixins:[p.a],data:function(){return{focusing:!1}},components:{ElProgress:Ka.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)}}},Ga,[],!1,null,null,null);Ya.options.__file="packages/upload/src/upload-list.vue";var qa=Ya.exports,Xa=n(24),Ja=n.n(Xa);var Za=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)};Za._withStripped=!0;var es=r({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,i=e.name,r=i.indexOf(".")>-1?"."+i.split(".").pop():"",o=n.replace(/\/.*$/,"");return t.split(",").map(function(e){return e.trim()}).filter(function(e){return e}).some(function(e){return/\..+$/.test(e)?r===e:/\/\*$/.test(e)?o===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&n===e})})):this.$emit("file",e.dataTransfer.files)}}}},Za,[],!1,null,null,null);es.options.__file="packages/upload/src/upload-dragger.vue";var ts=r({inject:["uploader"],components:{UploadDragger:es.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(e){if("undefined"!=typeof XMLHttpRequest){var t=new XMLHttpRequest,n=e.action;t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var i=new FormData;e.data&&Object.keys(e.data).forEach(function(t){i.append(t,e.data[t])}),i.append(e.filename,e.file,e.file.name),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300)return e.onError(function(e,t,n){var i=void 0;i=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+e+" "+n.status;var r=new Error(i);return r.status=n.status,r.method="post",r.url=e,r}(n,0,t));e.onSuccess(function(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}(t))},t.open("post",n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};for(var o in r)r.hasOwnProperty(o)&&null!==r[o]&&t.setRequestHeader(o,r[o]);return t.send(i),t}}},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 i=Object.prototype.toString.call(n);if("[object File]"===i||"[object Blob]"===i){for(var r in"[object Blob]"===i&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(r)&&(n[r]=e[r]);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,i={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(i){t.onSuccess(i,e),delete t.reqs[n]},onError:function(i){t.onError(i,e),delete t.reqs[n]}},r=this.httpRequest(i);this.reqs[n]=r,r&&r.then&&r.then(i.onSuccess,i.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,i=this.name,r=this.handleChange,o=this.multiple,a=this.accept,s=this.listType,l=this.uploadFiles,u=this.disabled,c={class:{"el-upload":!0},on:{click:t,keydown:this.handleKeydown}};return c.class["el-upload--"+s]=!0,e("div",Ja()([c,{attrs:{tabindex:"0"}}]),[n?e("upload-dragger",{attrs:{disabled:u},on:{file:l}},[this.$slots.default]):this.$slots.default,e("input",{class:"el-upload__input",attrs:{type:"file",name:i,multiple:o,accept:a},ref:"input",on:{change:r}})])}},void 0,void 0,!1,null,null,null);ts.options.__file="packages/upload/src/upload.vue";var ns=ts.exports;function is(){}var rs=r({name:"ElUpload",mixins:[w.a],components:{ElProgress:Ka.a,UploadList:qa,Upload:ns},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:is},onChange:{type:Function,default:is},onPreview:{type:Function},onSuccess:{type:Function,default:is},onProgress:{type:Function,default:is},onError:{type:Function,default:is},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:is}},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),i=this.uploadFiles;n.status="fail",i.splice(i.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 i=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 r=this.beforeRemove(e,this.uploadFiles);r&&r.then?r.then(function(){i()},is):!1!==r&&i()}}else i()},getFile:function(e){var t=void 0;return this.uploadFiles.every(function(n){return!(t=e.uid===n.uid?n:null)}),t},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(qa,{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 i=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?[i,this.$slots.default]:i,this.$slots.tip,"picture-card"!==this.listType?n:""])}},void 0,void 0,!1,null,null,null);rs.options.__file="packages/upload/src/index.vue";var os=rs.exports;os.install=function(e){e.component(os.name,os)};var as=os,ss=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":e.strokeLinecap,"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()])};ss._withStripped=!0;var ls=r({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},strokeLinecap:{type:String,default:"round"},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 e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},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(e,t){return e.percentage-t.percentage}),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map(function(e,n){return"string"==typeof e?{color:e,percentage:(n+1)*t}:e})}}},ss,[],!1,null,null,null);ls.options.__file="packages/progress/src/progress.vue";var us=ls.exports;us.install=function(e){e.component(us.name,us)};var cs=us,hs=function(){var e=this.$createElement,t=this._self._c||e;return t("span",{staticClass:"el-spinner"},[t("svg",{staticClass:"el-spinner-inner",style:{width:this.radius/2+"px",height:this.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:this.strokeColor,"stroke-width":this.strokeWidth}})])])};hs._withStripped=!0;var ds=r({name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},hs,[],!1,null,null,null);ds.options.__file="packages/spinner/src/spinner.vue";var fs=ds.exports;fs.install=function(e){e.component(fs.name,fs)};var ps=fs,As=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)])};As._withStripped=!0;var gs={success:"success",info:"info",warning:"warning",error:"error"},vs=r({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-"+gs[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)}},As,[],!1,null,null,null);vs.options.__file="packages/message/src/main.vue";var ms=vs.exports,ys=n(15),_s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bs=hn.a.extend(ms),ws=void 0,xs=[],Cs=1,Ss=function e(t){if(!hn.a.prototype.$isServer){"string"==typeof(t=t||{})&&(t={message:t});var n=t.onClose,i="message_"+Cs++;t.onClose=function(){e.close(i,n)},(ws=new bs({data:t})).id=i,Object(jr.isVNode)(ws.message)&&(ws.$slots.default=[ws.message],ws.message=null),ws.$mount(),document.body.appendChild(ws.$el);var r=t.offset||20;return xs.forEach(function(e){r+=e.$el.offsetHeight+16}),ws.verticalOffset=r,ws.visible=!0,ws.$el.style.zIndex=y.PopupManager.nextZIndex(),xs.push(ws),ws}};["success","warning","info","error"].forEach(function(e){Ss[e]=function(t){return Object(ys.isObject)(t)&&!Object(jr.isVNode)(t)?Ss(_s({},t,{type:e})):Ss({type:e,message:t})}}),Ss.close=function(e,t){for(var n=xs.length,i=-1,r=void 0,o=0;o<n;o++)if(e===xs[o].id){r=xs[o].$el.offsetHeight,i=o,"function"==typeof t&&t(xs[o]),xs.splice(o,1);break}if(!(n<=1||-1===i||i>xs.length-1))for(var a=i;a<n-1;a++){var s=xs[a].$el;s.style.top=parseInt(s.style.top,10)-r-16+"px"}},Ss.closeAll=function(){for(var e=xs.length-1;e>=0;e--)xs[e].close()};var ks=Ss,Bs=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)};Bs._withStripped=!0;var Ts=r({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}}}},Bs,[],!1,null,null,null);Ts.options.__file="packages/badge/src/main.vue";var Es=Ts.exports;Es.install=function(e){e.component(Es.name,Es)};var Is=Es,Ms=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)])};Ms._withStripped=!0;var Ds=r({name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},Ms,[],!1,null,null,null);Ds.options.__file="packages/card/src/main.vue";var Ps=Ds.exports;Ps.install=function(e){e.component(Ps.name,Ps)};var Fs=Ps,Os=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,i){return n("span",{key:i,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)};Os._withStripped=!0;var Ls=r({name:"ElRate",mixins:[w.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=[],t=0,n=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&n--;t<n;t++)e.push(this.activeClass);for(;t<this.max;t++)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,t){var n=Object.keys(t).filter(function(n){var i=t[n];return!!Object(ys.isObject)(i)&&i.excluded?e<n:e<=n}).sort(function(e,t){return e-t}),i=t[n[0]];return Object(ys.isObject)(i)?i.value:i||""},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(pe.hasClass)(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(pe.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)}},Os,[],!1,null,null,null);Ls.options.__file="packages/rate/src/main.vue";var Ns=Ls.exports;Ns.install=function(e){e.component(Ns.name,Ns)};var Rs=Ns,Us=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-steps",class:[!this.simple&&"el-steps--"+this.direction,this.simple&&"el-steps--simple"]},[this._t("default")],2)};Us._withStripped=!0;var Qs=r({name:"ElSteps",mixins:[w.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})}}},Us,[],!1,null,null,null);Qs.options.__file="packages/steps/src/steps.vue";var Hs=Qs.exports;Hs.install=function(e){e.component(Hs.name,Hs)};var js=Hs,Vs=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)])])};Vs._withStripped=!0;var zs=r({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 e={},t=this.$parent.steps.length,n="number"==typeof this.space?this.space+"px":this.space?this.space:100/(t-(this.isCenter?0:1))+"%";return e.flexBasis=n,this.isVertical?e:(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px",e)}},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,n={};n.transitionDelay=150*this.index+"ms",e===this.$parent.processStatus?(this.currentStatus,t=0):"wait"===e&&(t=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=t&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=t+"%":n.width=t+"%",this.lineStyle=n}},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()})}},Vs,[],!1,null,null,null);zs.options.__file="packages/steps/src/step.vue";var $s=zs.exports;$s.install=function(e){e.component($s.name,$s)};var Gs=$s,Ws=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,i){return n("li",{key:i,class:["el-carousel__indicator","el-carousel__indicator--"+e.direction,{"is-active":i===e.activeIndex}],on:{mouseenter:function(t){e.throttledIndicatorHover(i)},click:function(t){t.stopPropagation(),e.handleIndicatorClick(i)}}},[n("button",{staticClass:"el-carousel__button"},[e.hasLabel?n("span",[e._v(e._s(t.label))]):e._e()])])}),0):e._e()])};Ws._withStripped=!0;var Ks=n(25),Ys=n.n(Ks),qs=r({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),t>-1&&this.$emit("change",e,t)},autoplay:function(e){e?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)},interval:function(){this.pauseTimer(),this.startTimer()}},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,i){e===t.itemInStage(n,i)&&(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,i){n.translateItem(i,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))},resetTimer:function(){this.pauseTimer(),this.startTimer()},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,i=this.activeIndex;this.activeIndex=e<0?this.loop?n-1:0:e>=n?this.loop?0:n-1:e,i===this.activeIndex&&this.resetItemPosition(i),this.resetTimer()}},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=Ys()(300,!0,function(t){e.setActiveItem(t)}),this.throttledIndicatorHover=Ys()(300,function(t){e.handleIndicatorHover(t)})},mounted:function(){var e=this;this.updateItems(),this.$nextTick(function(){Object(Lt.addResizeListener)(e.$el,e.resetItemPosition),e.initialIndex<e.items.length&&e.initialIndex>=0&&(e.activeIndex=e.initialIndex),e.startTimer()})},beforeDestroy:function(){this.$el&&Object(Lt.removeResizeListener)(this.$el,this.resetItemPosition),this.pauseTimer()}},Ws,[],!1,null,null,null);qs.options.__file="packages/carousel/src/main.vue";var Xs=qs.exports;Xs.install=function(e){e.component(Xs.name,Xs)};var Js=Xs,Zs={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"}};var el={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return Zs[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,i=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:function(e){var t=e.move,n=e.size,i=e.bar,r={},o="translate"+i.axis+"("+t+"%)";return r[i.size]=n,r.transform=o,r.msTransform=o,r.webkitTransform=o,r}({size:t,move:n,bar:i})})])},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(pe.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(pe.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(pe.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(pe.off)(document,"mouseup",this.mouseUpDocumentHandler)}},tl={name:"ElScrollbar",components:{Bar:el},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=Fn()(),n=this.wrapStyle;if(t){var i="-"+t+"px",r="margin-bottom: "+i+"; margin-right: "+i+";";Array.isArray(this.wrapStyle)?(n=Object(A.toObject)(this.wrapStyle)).marginRight=n.marginBottom=i:"string"==typeof this.wrapStyle?n+=r:n=r}var o=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),a=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[o]]);return e("div",{class:"el-scrollbar"},this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[o]])]:[a,e(el,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(el,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})])},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(Lt.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(Lt.removeResizeListener)(this.$refs.resize,this.update)},install:function(e){e.component(tl.name,tl)}},nl=tl,il=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)};il._withStripped=!0;var rl=r({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 i=this.$parent.type,r=this.parentDirection,o=this.$parent.items.length;if("card"!==i&&void 0!==n&&(this.animating=e===t||e===n),e!==t&&o>2&&this.$parent.loop&&(e=this.processIndex(e,t,o)),"card"===i)"vertical"===r&&console.warn("[Element Warn][Carousel]vertical direction is 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:.83;else{this.active=e===t;var a="vertical"===r;this.translate=this.calcTranslate(e,t,a),this.scale=1}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 e={transform:("vertical"===this.parentDirection?"translateY":"translateX")+"("+this.translate+"px) scale("+this.scale+")"};return Object(A.autoprefixer)(e)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},il,[],!1,null,null,null);rl.options.__file="packages/carousel/src/item.vue";var ol=rl.exports;ol.install=function(e){e.component(ol.name,ol)};var al=ol,sl=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[this._t("default")],2)};sl._withStripped=!0;var ll=r({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)}},sl,[],!1,null,null,null);ll.options.__file="packages/collapse/src/collapse.vue";var ul=ll.exports;ul.install=function(e){e.component(ul.name,ul)};var cl=ul,hl=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")?(t.stopPropagation(),e.handleEnterClick(t)):null},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)};hl._withStripped=!0;var dl=r({name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[C.a],components:{ElCollapseTransition:ye.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(A.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)}}},hl,[],!1,null,null,null);dl.options.__file="packages/collapse/src/collapse-item.vue";var fl=dl.exports;fl.install=function(e){e.component(fl.name,fl)};var pl=fl,Al=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){return n("el-tag",{key:t.key,attrs:{type:"info",size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":""},on:{close:function(n){e.deleteTag(t)}}},[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"])?e.handleDelete(t):null},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,i){return n("li",{key:t.uid,class:["el-cascader__suggestion-item",t.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(t){e.handleSuggestionClick(i)}}},[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)};Al._withStripped=!0;var gl=n(42),vl=n.n(gl),ml=n(34),yl=n.n(ml),_l=yl.a.keys,bl={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},wl={props:{placement:{type:String,default:"bottom-start"},appendToBody:O.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:O.a.props.arrowOffset,offset:O.a.props.offset,boundariesPadding:O.a.props.boundariesPadding,popperOptions:O.a.props.popperOptions},methods:O.a.methods,data:O.a.data,beforeDestroy:O.a.beforeDestroy},xl={medium:36,small:32,mini:28},Cl=r({name:"ElCascader",directives:{Clickoutside:D.a},mixins:[wl,C.a,p.a,w.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:d.a,ElTag:Ot.a,ElScrollbar:N.a,ElCascaderPanel:vl.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(Fr.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,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(bl).forEach(function(n){var i=bl[n],r=i.newProp,o=i.type,a=t[n]||t[Object(A.kebabCase)(n)];Object(je.isDef)(n)&&!Object(je.isDef)(e[r])&&(o===Boolean&&""===a&&(a=!0),e[r]=a)}),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:{disabled:function(){this.computePresentContent()},value:function(e){Object(A.isEqual)(e,this.checkedValue)||(this.checkedValue=e,this.computePresentContent())},checkedValue:function(e){var t=this.value,n=this.dropDownVisible,i=this.config,r=i.checkStrictly,o=i.multiple;Object(A.isEqual)(e,t)&&!Object(ys.isUndefined)(t)||(this.computePresentContent(),o||r||!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,t=this.$refs.input;t&&t.$el&&(this.inputInitialHeight=t.$el.offsetHeight||xl[this.realSize]||40),this.isEmptyValue(this.value)||this.computePresentContent(),this.filterHandler=I()(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(Lt.addResizeListener)(this.$el,this.updateStyle)},beforeDestroy:function(){Object(Lt.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,i=this.$refs.input;(e=Object(je.isDef)(e)?e:!n)!==n&&(this.dropDownVisible=e,e&&this.$nextTick(function(){t.updatePopper(),t.panel.scrollIntoView()}),i.$refs.input.setAttribute("aria-expanded",e),this.$emit("visible-change",e))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText,this.doDestroy()},handleKeyDown:function(e){switch(e.keyCode){case _l.enter:this.toggleDropDownVisible();break;case _l.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case _l.esc:case _l.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,i=n.popper,r=n.suggestionPanel,o=null;t&&r?o=r.$el.querySelector(".el-cascader__suggestion-item"):o=i.querySelector(".el-cascader-menu").querySelector('.el-cascader-node[tabindex="-1"]');o&&(o.focus(),!t&&o.click())})},computePresentContent:function(){var e=this;this.$nextTick(function(){e.config.multiple?(e.computePresentTags(),e.presentText=e.presentTags.length?" ":null):e.computePresentText()})},isEmptyValue:function(e){var t=this.multiple,n=this.panel.config.emitPath;return!(!t&&!n)&&Object(A.isEmpty)(e)},computePresentText:function(){var e=this.checkedValue,t=this.config;if(!this.isEmptyValue(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,i=this.separator,r=this.collapseTags,o=this.getCheckedNodes(t),a=[],s=function(t){return{node:t,key:t.uid,text:t.getText(n,i),hitState:!1,closable:!e&&!t.isDisabled}};if(o.length){var l=o[0],u=o.slice(1),c=u.length;a.push(s(l)),c&&(r?a.push({key:-1,text:"+ "+c,closable:!1}):u.forEach(function(e){return a.push(s(e))}))}this.checkedNodes=o,this.presentTags=a},getSuggestions:function(){var e=this,t=this.filterMethod;Object(ys.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(A.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 _l.enter:n.click();break;case _l.up:var i=n.previousElementSibling;i&&i.focus();break;case _l.down:var r=n.nextElementSibling;r&&r.focus();break;case _l.esc:case _l.tab:this.toggleDropDownVisible(!1)}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags,i=n[n.length-1];this.pressDeleteCount=e?0:t+1,i&&this.pressDeleteCount&&(i.hitState?this.deleteTag(i):i.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple,n=this.suggestions[e];if(t){var i=n.checked;n.doCheck(!i),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(e){var t=this.checkedValue,n=e.node.getValueByOption(),i=t.find(function(e){return Object(A.isEqual)(e,n)});this.checkedValue=t.filter(function(e){return!Object(A.isEqual)(e,n)}),this.$emit("remove-tag",i)},updateStyle:function(){var e=this.$el,t=this.inputInitialHeight;if(!this.$isServer&&e){var n=this.$refs.suggestionPanel,i=e.querySelector(".el-input__inner");if(i){var r=e.querySelector(".el-cascader__tags"),o=null;if(n&&(o=n.$el))o.querySelector(".el-cascader__suggestion-list").style.minWidth=i.offsetWidth+"px";if(r){var a=Math.round(r.getBoundingClientRect().height),s=Math.max(a+6,t)+"px";i.style.height=s,this.dropDownVisible&&this.updatePopper()}}}},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},Al,[],!1,null,null,null);Cl.options.__file="packages/cascader/src/cascader.vue";var Sl=Cl.exports;Sl.install=function(e){e.component(Sl.name,Sl)};var kl=Sl,Bl=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)};Bl._withStripped=!0;var Tl="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 El=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Il=function(e,t){var n;"string"==typeof(n=e)&&-1!==n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var i=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)},Ml={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Dl={A:10,B:11,C:12,D:13,E:14,F:15},Pl=function(e){return 2===e.length?16*(Dl[e[0].toUpperCase()]||+e[0])+(Dl[e[1].toUpperCase()]||+e[1]):Dl[e[1].toUpperCase()]||+e[1]},Fl=function(e,t,n){e=Il(e,255),t=Il(t,255),n=Il(n,255);var i,r=Math.max(e,t,n),o=Math.min(e,t,n),a=void 0,s=r,l=r-o;if(i=0===r?0:l/r,r===o)a=0;else{switch(r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4}a/=6}return{h:360*a,s:100*i,v:100*s}},Ol=function(e,t,n){e=6*Il(e,360),t=Il(t,100),n=Il(n,100);var i=Math.floor(e),r=e-i,o=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),l=i%6,u=[n,a,o,o,s,n][l],c=[s,n,n,a,o,o][l],h=[o,o,s,n,n,a][l];return{r:Math.round(255*u),g:Math.round(255*c),b:Math.round(255*h)}},Ll=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._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",t=t||{})t.hasOwnProperty(n)&&(this[n]=t[n]);this.doOnChange()}return e.prototype.set=function(e,t){if(1!==arguments.length||"object"!==(void 0===e?"undefined":Tl(e)))this["_"+e]=t,this.doOnChange();else for(var n in e)e.hasOwnProperty(n)&&this.set(n,e[n])},e.prototype.get=function(e){return this["_"+e]},e.prototype.toRgb=function(){return Ol(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,n,i){t._hue=Math.max(0,Math.min(360,e)),t._saturation=Math.max(0,Math.min(100,n)),t._value=Math.max(0,Math.min(100,i)),t.doOnChange()};if(-1!==e.indexOf("hsl")){var i=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===i.length?this._alpha=Math.floor(100*parseFloat(i[3])):3===i.length&&(this._alpha=100),i.length>=3){var r=function(e,t,n){n/=100;var i=t/=100,r=Math.max(n,.01);return t*=(n*=2)<=1?n:2-n,i*=r<=1?r:2-r,{h:e,s:100*(0===n?2*i/(r+i):2*t/(n+t)),v:(n+t)/2*100}}(i[0],i[1],i[2]);n(r.h,r.s,r.v)}}else if(-1!==e.indexOf("hsv")){var o=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===o.length?this._alpha=Math.floor(100*parseFloat(o[3])):3===o.length&&(this._alpha=100),o.length>=3&&n(o[0],o[1],o[2])}else if(-1!==e.indexOf("rgb")){var a=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===a.length?this._alpha=Math.floor(100*parseFloat(a[3])):3===a.length&&(this._alpha=100),a.length>=3){var s=Fl(a[0],a[1],a[2]);n(s.h,s.s,s.v)}}else if(-1!==e.indexOf("#")){var l=e.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(l))return;var u=void 0,c=void 0,h=void 0;3===l.length?(u=Pl(l[0]+l[0]),c=Pl(l[1]+l[1]),h=Pl(l[2]+l[2])):6!==l.length&&8!==l.length||(u=Pl(l.substring(0,2)),c=Pl(l.substring(2,4)),h=Pl(l.substring(4,6))),8===l.length?this._alpha=Math.floor(Pl(l.substring(6))/255*100):3!==l.length&&6!==l.length||(this._alpha=100);var d=Fl(u,c,h);n(d.h,d.s,d.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,i=this._alpha,r=this.format;if(this.enableAlpha)switch(r){case"hsl":var o=El(e,t/100,n/100);this.value="hsla("+e+", "+Math.round(100*o[1])+"%, "+Math.round(100*o[2])+"%, "+i/100+")";break;case"hsv":this.value="hsva("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%, "+i/100+")";break;default:var a=Ol(e,t,n),s=a.r,l=a.g,u=a.b;this.value="rgba("+s+", "+l+", "+u+", "+i/100+")"}else switch(r){case"hsl":var c=El(e,t/100,n/100);this.value="hsl("+e+", "+Math.round(100*c[1])+"%, "+Math.round(100*c[2])+"%)";break;case"hsv":this.value="hsv("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%)";break;case"rgb":var h=Ol(e,t,n),d=h.r,f=h.g,p=h.b;this.value="rgb("+d+", "+f+", "+p+")";break;default:this.value=function(e){var t=e.r,n=e.g,i=e.b,r=function(e){e=Math.min(Math.round(e),255);var t=Math.floor(e/16),n=e%16;return""+(Ml[t]||t)+(Ml[n]||n)};return isNaN(t)||isNaN(n)||isNaN(i)?"":"#"+r(t)+r(n)+r(i)}(Ol(e,t,n))}},e}(),Nl=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")?e.handleConfirm(t):null}},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)])};Nl._withStripped=!0;var Rl=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"el-color-svpanel",style:{backgroundColor:this.background}},[t("div",{staticClass:"el-color-svpanel__white"}),t("div",{staticClass:"el-color-svpanel__black"}),t("div",{staticClass:"el-color-svpanel__cursor",style:{top:this.cursorTop+"px",left:this.cursorLeft+"px"}},[t("div")])])};Rl._withStripped=!0;var Ul=!1,Ql=function(e,t){if(!hn.a.prototype.$isServer){var n=function(e){t.drag&&t.drag(e)},i=function e(i){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",e),document.onselectstart=null,document.ondragstart=null,Ul=!1,t.end&&t.end(i)};e.addEventListener("mousedown",function(e){Ul||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",i),Ul=!0,t.start&&t.start(e))})}},Hl=r({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,i=n.clientWidth,r=n.clientHeight;this.cursorLeft=e*i/100,this.cursorTop=(100-t)*r/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=e.clientX-t.left,i=e.clientY-t.top;n=Math.max(0,n),n=Math.min(n,t.width),i=Math.max(0,i),i=Math.min(i,t.height),this.cursorLeft=n,this.cursorTop=i,this.color.set({saturation:n/t.width*100,value:100-i/t.height*100})}},mounted:function(){var e=this;Ql(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%)"}}},Rl,[],!1,null,null,null);Hl.options.__file="packages/color-picker/src/components/sv-panel.vue";var jl=Hl.exports,Vl=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":this.vertical}},[t("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:this.handleClick}}),t("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:this.thumbLeft+"px",top:this.thumbTop+"px"}})])};Vl._withStripped=!0;var zl=r({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 t=this.$el.getBoundingClientRect(),n=this.$refs.thumb,i=void 0;if(this.vertical){var r=e.clientY-t.top;r=Math.min(r,t.height-n.offsetHeight/2),r=Math.max(n.offsetHeight/2,r),i=Math.round((r-n.offsetHeight/2)/(t.height-n.offsetHeight)*360)}else{var o=e.clientX-t.left;o=Math.min(o,t.width-n.offsetWidth/2),o=Math.max(n.offsetWidth/2,o),i=Math.round((o-n.offsetWidth/2)/(t.width-n.offsetWidth)*360)}this.color.set("hue",i)},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,i=t.thumb,r={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};Ql(n,r),Ql(i,r),this.update()}},Vl,[],!1,null,null,null);zl.options.__file="packages/color-picker/src/components/hue-slider.vue";var $l=zl.exports,Gl=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":this.vertical}},[t("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:this.background},on:{click:this.handleClick}}),t("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:this.thumbLeft+"px",top:this.thumbTop+"px"}})])};Gl._withStripped=!0;var Wl=r({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 t=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var i=e.clientY-t.top;i=Math.max(n.offsetHeight/2,i),i=Math.min(i,t.height-n.offsetHeight/2),this.color.set("alpha",Math.round((i-n.offsetHeight/2)/(t.height-n.offsetHeight)*100))}else{var r=e.clientX-t.left;r=Math.max(n.offsetWidth/2,r),r=Math.min(r,t.width-n.offsetWidth/2),this.color.set("alpha",Math.round((r-n.offsetWidth/2)/(t.width-n.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,n=e.g,i=e.b;return"linear-gradient(to right, rgba("+t+", "+n+", "+i+", 0) 0%, rgba("+t+", "+n+", "+i+", 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,i=t.thumb,r={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};Ql(n,r),Ql(i,r),this.update()}},Gl,[],!1,null,null,null);Wl.options.__file="packages/color-picker/src/components/alpha-slider.vue";var Kl=Wl.exports,Yl=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,i){return n("div",{key:e.colors[i],staticClass:"el-color-predefine__color-selector",class:{selected:t.selected,"is-alpha":t._alpha<100},on:{click:function(t){e.handleSelect(i)}}},[n("div",{style:{"background-color":t.value}})])}),0)])};Yl._withStripped=!0;var ql=r({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 Ll;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 Ll;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)}}},Yl,[],!1,null,null,null);ql.options.__file="packages/color-picker/src/components/predefine.vue";var Xl=ql.exports,Jl=r({name:"el-color-picker-dropdown",mixins:[O.a,p.a],components:{SvPanel:jl,HueSlider:$l,AlphaSlider:Kl,ElInput:d.a,ElButton:G.a,Predefine:Xl},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,i=e.hue,r=e.alpha;n&&n.update(),i&&i.update(),r&&r.update()})},currentColor:{immediate:!0,handler:function(e){this.customInput=e}}}},Nl,[],!1,null,null,null);Jl.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var Zl=Jl.exports,eu=r({name:"ElColorPicker",mixins:[C.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:D.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 Ll({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 Ll))throw Error("color should be instance of Color Class");var n=e.toRgb(),i=n.r,r=n.g,o=n.b;return t?"rgba("+i+", "+r+", "+o+", "+e.get("alpha")/100+")":"rgb("+i+", "+r+", "+o+")"}},mounted:function(){var e=this.value;e&&this.color.fromString(e),this.popperElm=this.$refs.dropdown.$el},data:function(){return{color:new Ll({enableAlpha:this.showAlpha,format:this.colorFormat}),showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:Zl}},Bl,[],!1,null,null,null);eu.options.__file="packages/color-picker/src/main.vue";var tu=eu.exports;tu.install=function(e){e.component(tu.name,tu)};var nu=tu,iu=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)};iu._withStripped=!0;var ru=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()])};ru._withStripped=!0;var ou=r({mixins:[p.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:$n.a,ElCheckbox:rn.a,ElInput:d.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 i=[],r=this.checkableData.map(function(e){return e[n.keyProp]});e.forEach(function(e){r.indexOf(e)>-1&&i.push(e)}),this.checkChangeByUser=!1,this.checked=i}}}},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,i=n.noChecked,r=n.hasChecked;return i&&r?e>0?r.replace(/\${checked}/g,e).replace(/\${total}/g,t):i.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="")}}},ru,[],!1,null,null,null);ou.options.__file="packages/transfer/src/transfer-panel.vue";var au=ou.exports,su=r({name:"ElTransfer",mixins:[C.a,p.a,w.a],components:{TransferPanel:au,ElButton:G.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 i=e.dataObj[n];return i&&t.push(i),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=[],i=this.props.key;this.data.forEach(function(t){var r=t[i];e.leftChecked.indexOf(r)>-1&&-1===e.value.indexOf(r)&&n.push(r)}),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="")}}},iu,[],!1,null,null,null);su.options.__file="packages/transfer/src/main.vue";var lu=su.exports;lu.install=function(e){e.component(lu.name,lu)};var uu=lu,cu=function(){var e=this.$createElement;return(this._self._c||e)("section",{staticClass:"el-container",class:{"is-vertical":this.isVertical}},[this._t("default")],2)};cu._withStripped=!0;var hu=r({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}))}}},cu,[],!1,null,null,null);hu.options.__file="packages/container/src/main.vue";var du=hu.exports;du.install=function(e){e.component(du.name,du)};var fu=du,pu=function(){var e=this.$createElement;return(this._self._c||e)("header",{staticClass:"el-header",style:{height:this.height}},[this._t("default")],2)};pu._withStripped=!0;var Au=r({name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},pu,[],!1,null,null,null);Au.options.__file="packages/header/src/main.vue";var gu=Au.exports;gu.install=function(e){e.component(gu.name,gu)};var vu=gu,mu=function(){var e=this.$createElement;return(this._self._c||e)("aside",{staticClass:"el-aside",style:{width:this.width}},[this._t("default")],2)};mu._withStripped=!0;var yu=r({name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},mu,[],!1,null,null,null);yu.options.__file="packages/aside/src/main.vue";var _u=yu.exports;_u.install=function(e){e.component(_u.name,_u)};var bu=_u,wu=function(){var e=this.$createElement;return(this._self._c||e)("main",{staticClass:"el-main"},[this._t("default")],2)};wu._withStripped=!0;var xu=r({name:"ElMain",componentName:"ElMain"},wu,[],!1,null,null,null);xu.options.__file="packages/main/src/main.vue";var Cu=xu.exports;Cu.install=function(e){e.component(Cu.name,Cu)};var Su=Cu,ku=function(){var e=this.$createElement;return(this._self._c||e)("footer",{staticClass:"el-footer",style:{height:this.height}},[this._t("default")],2)};ku._withStripped=!0;var Bu=r({name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},ku,[],!1,null,null,null);Bu.options.__file="packages/footer/src/main.vue";var Tu=Bu.exports;Tu.install=function(e){e.component(Tu.name,Tu)};var Eu=Tu,Iu=r({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},i=this.$slots.default||[];return t&&(i=i.reverse()),e("ul",{class:n},[i])}},void 0,void 0,!1,null,null,null);Iu.options.__file="packages/timeline/src/main.vue";var Mu=Iu.exports;Mu.install=function(e){e.component(Mu.name,Mu)};var Du=Mu,Pu=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 ")])])])};Pu._withStripped=!0;var Fu=r({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}},Pu,[],!1,null,null,null);Fu.options.__file="packages/timeline/src/item.vue";var Ou=Fu.exports;Ou.install=function(e){e.component(Ou.name,Ou)};var Lu=Ou,Nu=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)};Nu._withStripped=!0;var Ru=r({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)}}},Nu,[],!1,null,null,null);Ru.options.__file="packages/link/src/main.vue";var Uu=Ru.exports;Uu.install=function(e){e.component(Uu.name,Uu)};var Qu=Uu,Hu=function(e,t){var n=t._c;return n("div",t._g(t._b({class:[t.data.staticClass,"el-divider","el-divider--"+t.props.direction]},"div",t.data.attrs,!1),t.listeners),[t.slots().default&&"vertical"!==t.props.direction?n("div",{class:["el-divider__text","is-"+t.props.contentPosition]},[t._t("default")],2):t._e()])};Hu._withStripped=!0;var ju=r({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)}}}},Hu,[],!0,null,null,null);ju.options.__file="packages/divider/src/main.vue";var Vu=ju.exports;Vu.install=function(e){e.component(Vu.name,Vu)};var zu=Vu,$u=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,"initial-index":e.imageIndex,"on-close":e.closeViewer,"url-list":e.previewSrcList}}):e._e()]:e._e()],2)};$u._withStripped=!0;var Gu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":e.viewerZIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleMaskClick(t)}}}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.hide}},[n("i",{staticClass:"el-icon-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)])};Gu._withStripped=!0;var Wu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ku={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},Yu=Object(A.isFirefox)()?"DOMMouseScroll":"mousewheel",qu=r({name:"elImageViewer",props:{urlList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0},appendToBody:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,mode:Ku.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,i=e.offsetX,r=e.offsetY,o={transform:"scale("+t+") rotate("+n+"deg)",transition:e.enableTransition?"transform .3s":"","margin-left":i+"px","margin-top":r+"px"};return this.mode===Ku.CONTAIN&&(o.maxWidth=o.maxHeight="100%"),o},viewerZIndex:function(){var e=y.PopupManager.nextZIndex();return this.zIndex>e?this.zIndex:e}},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=function(t){switch(t.stopPropagation(),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(A.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(pe.on)(document,"keydown",this._keyDownHandler),Object(pe.on)(document,Yu,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(pe.off)(document,"keydown",this._keyDownHandler),Object(pe.off)(document,Yu,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,i=n.offsetX,r=n.offsetY,o=e.pageX,a=e.pageY;this._dragHandler=Object(A.rafThrottle)(function(e){t.transform.offsetX=i+e.pageX-o,t.transform.offsetY=r+e.pageY-a}),Object(pe.on)(document,"mousemove",this._dragHandler),Object(pe.on)(document,"mouseup",function(e){Object(pe.off)(document,"mousemove",t._dragHandler)}),e.preventDefault()}},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var e=Object.keys(Ku),t=(Object.values(Ku).indexOf(this.mode)+1)%e.length;this.mode=Ku[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=Wu({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),i=n.zoomRate,r=n.rotateDeg,o=n.enableTransition,a=this.transform;switch(e){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-i).toFixed(3)));break;case"zoomIn":a.scale=parseFloat((a.scale+i).toFixed(3));break;case"clocelise":a.deg+=r;break;case"anticlocelise":a.deg-=r}a.enableTransition=o}}},mounted:function(){this.deviceSupportInstall(),this.appendToBody&&document.body.appendChild(this.$el),this.$refs["el-image-viewer__wrapper"].focus()},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},Gu,[],!1,null,null,null);qu.options.__file="packages/image/src/image-viewer.vue";var Xu=qu.exports,Ju=function(){return void 0!==document.documentElement.style.objectFit},Zu="none",ec="contain",tc="cover",nc="fill",ic="scale-down",rc="",oc=r({name:"ElImage",mixins:[p.a],inheritAttrs:!1,components:{ImageViewer:Xu},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?Ju()?{"object-fit":e}:this.getImageStyle(e):{}},alignCenter:function(){return!this.$isServer&&!Ju()&&this.fit!==nc},preview:function(){var e=this.previewSrcList;return Array.isArray(e)&&e.length>0},imageIndex:function(){var e=0,t=this.previewSrcList.indexOf(this.src);return t>=0&&(e=t),e}},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 t=new Image;t.onload=function(n){return e.handleLoad(n,t)},t.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach(function(n){var i=e.$attrs[n];t.setAttribute(n,i)}),t.src=this.src}},handleLoad:function(e,t){this.imageWidth=t.width,this.imageHeight=t.height,this.loading=!1,this.error=!1},handleError:function(e){this.loading=!1,this.error=!0,this.$emit("error",e)},handleLazyLoad:function(){Object(pe.isInContainer)(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var e=this.scrollContainer,t=null;(t=Object(ys.isHtmlElement)(e)?e:Object(ys.isString)(e)?document.querySelector(e):Object(pe.getScrollContainer)(this.$el))&&(this._scrollContainer=t,this._lazyLoadHandler=Ys()(200,this.handleLazyLoad),Object(pe.on)(t,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var e=this._scrollContainer,t=this._lazyLoadHandler;!this.$isServer&&e&&t&&(Object(pe.off)(e,"scroll",t),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(e){var t=this.imageWidth,n=this.imageHeight,i=this.$el,r=i.clientWidth,o=i.clientHeight;if(!(t&&n&&r&&o))return{};var a=t/n,s=r/o;e===ic&&(e=t<r&&n<o?Zu:ec);switch(e){case Zu:return{width:"auto",height:"auto"};case ec:return a<s?{width:"auto"}:{height:"auto"};case tc:return a<s?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(rc=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=rc,this.showViewer=!1}}},$u,[],!1,null,null,null);oc.options.__file="packages/image/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,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,i){return n("date-table",{key:i,attrs:{date:t[0],"selected-day":e.realSelectedDay,range:t,"hide-header":0!==i,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})}),1)])};lc._withStripped=!0;var uc=n(20),cc=n.n(uc),hc=r({props:{selectedDay:String,range:{type:Array,validator:function(e){if(!e||!e.length)return!0;var t=e[0],n=e[1];return Object(di.validateRangeInOneMonth)(t,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],methods:{toNestedArr:function(e){return Object(di.range)(e.length/7).map(function(t,n){var i=7*n;return e.slice(i,i+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 t=e.text,n=e.type,i=[n];if("current"===n){var r=this.getFormateDate(t,n);r===this.selectedDay&&i.push("is-selected"),r===this.formatedToday&&i.push("is-today")}return i},pickDay:function(e){var t=e.text,n=e.type,i=this.getFormateDate(t,n);this.$emit("pick",i)},cellRenderProxy:function(e){var t=e.text,n=e.type,i=this.$createElement,r=this.elCalendar.$scopedSlots.dateCell;if(!r)return i("span",[t]);var o=this.getFormateDate(t,n);return r({date:new Date(o),data:{isSelected:this.selectedDay===o,type:n+"-month",day:o}})}},computed:{WEEK_DAYS:function(){return Object(di.getI18nSettings)().dayNames},prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),cc.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return cc.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return cc.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],i=t[1],r=Object(di.range)(i.getDate()-n.getDate()+1).map(function(e,t){return{text:n.getDate()+t,type:"current"}}),o=r.length%7;o=0===o?0:7-o;var a=Object(di.range)(o).map(function(e,t){return{text:t+1,type:"next"}});e=r.concat(a)}else{var s=this.date,l=Object(di.getFirstDayOfMonth)(s),u=(7+(l=0===l?7:l)-("number"==typeof this.firstDayOfWeek?this.firstDayOfWeek:1))%7,c=Object(di.getPrevMonthLastDays)(s,u).map(function(e){return{text:e,type:"prev"}}),h=Object(di.getMonthDays)(s).map(function(e){return{text:e,type:"current"}});e=[].concat(c,h);var d=Object(di.range)(42-e.length).map(function(e,t){return{text:t+1,type:"next"}});e=e.concat(d)}return this.toNestedArr(e)},weekDays:function(){var e=this.firstDayOfWeek,t=this.WEEK_DAYS;return"number"!=typeof e||0===e?t.slice():t.slice(e).concat(t.slice(0,e))}},render:function(){var e=this,t=arguments[0],n=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"}},[n,t("tbody",[this.rows.map(function(n,i){return t("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===i&&e.hideHeader},key:i},[n.map(function(n,i){return t("td",{key:i,class:e.getCellClass(n),on:{click:e.pickDay.bind(e,n)}},[t("div",{class:"el-calendar-day"},[e.cellRenderProxy(n)])])})])})])])}},void 0,void 0,!1,null,null,null);hc.options.__file="packages/calendar/src/date-table.vue";var dc=hc.exports,fc=["prev-month","today","next-month"],pc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ac=r({name:"ElCalendar",mixins:[p.a],components:{DateTable:dc,ElButton:G.a,ElButtonGroup:K.a},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===fc.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,i=t?n:0===n?6:n-1,r=(t?"start":"end")+" of range should be "+pc[i]+".";return e.getDay()===i||(console.warn("[ElementCalendar]",r,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),cc.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return cc.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return cc.a.format(e,"yyyy-MM")},formatedDate:function(){return cc.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 cc.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(){if(this.value)return this.toDate(this.value);if(this.realSelectedDay){var e=this.selectedDay.split("-");return new Date(e[0],e[1]-1,e[2])}return 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,i){var r=e.toDate(n);return e.rangeValidator(r,0===i)&&(t=t.concat(r)),t},[])).length){var n=t,i=n[0],r=n[1];if(i>r)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(di.validateRangeInOneMonth)(i,r))return[[i,r]];var o=[],a=new Date(i.getFullYear(),i.getMonth()+1,1),s=this.toDate(a.getTime()-864e5);if(!Object(di.validateRangeInOneMonth)(a,r))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];o.push([i,s]);var l=this.realFirstDayOfWeek,u=a.getDay(),c=0;return u!==l&&(c=0===l?7-u:(c=l-u)>0?c:7+c),(a=this.toDate(a.getTime()+864e5*c)).getDate()<r.getDate()&&o.push([a,r]),o}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},lc,[],!1,null,null,null);Ac.options.__file="packages/calendar/src/main.vue";var gc=Ac.exports;gc.install=function(e){e.component(gc.name,gc)};var vc=gc,mc=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()])};mc._withStripped=!0;var yc=function(e){return Math.pow(e,3)},_c=r({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=Ys()(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=Date.now(),n=e.scrollTop,i=window.requestAnimationFrame||function(e){return setTimeout(e,16)};i(function r(){var o,a=(Date.now()-t)/500;a<1?(e.scrollTop=n*(1-((o=a)<.5?yc(2*o)/2:1-yc(2*(1-o))/2)),i(r)):e.scrollTop=0})}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},mc,[],!1,null,null,null);_c.options.__file="packages/backtop/src/main.vue";var bc=_c.exports;bc.install=function(e){e.component(bc.name,bc)};var wc=bc,xc=function(e,t){return e===window||e===document?document.documentElement[t]:e[t]},Cc=function(e){return xc(e,"offsetHeight")},Sc="ElInfiniteScroll",kc={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Bc=function(e,t){return Object(ys.isHtmlElement)(e)?(n=kc,Object.keys(n||{}).map(function(e){return[e,n[e]]})).reduce(function(n,i){var r=i[0],o=i[1],a=o.type,s=o.default,l=e.getAttribute("infinite-scroll-"+r);switch(l=Object(ys.isUndefined)(t[l])?l:t[l],a){case Number:l=Number(l),l=Number.isNaN(l)?s:l;break;case Boolean:l=Object(ys.isDefined)(l)?"false"!==l&&Boolean(l):s;break;default:l=a(l)}return n[r]=l,n},{}):{};var n},Tc=function(e){return e.getBoundingClientRect().top},Ec=function(e){var t=this[Sc],n=t.el,i=t.vm,r=t.container,o=t.observer,a=Bc(n,i),s=a.distance;if(!a.disabled){var l=r.getBoundingClientRect();if(l.width||l.height){var u=!1;if(r===n){var c=r.scrollTop+function(e){return xc(e,"clientHeight")}(r);u=r.scrollHeight-c<=s}else{u=Cc(n)+Tc(n)-Tc(r)-Cc(r)+Number.parseFloat(function(e,t){if(e===window&&(e=document.documentElement),1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n}(r,"borderBottomWidth"))<=s}u&&Object(ys.isFunction)(e)?e.call(i):o&&(o.disconnect(),this[Sc].observer=null)}}},Ic={name:"InfiniteScroll",inserted:function(e,t,n){var i=t.value,r=n.context,o=Object(pe.getScrollContainer)(e,!0),a=Bc(e,r),s=a.delay,l=a.immediate,u=I()(s,Ec.bind(e,i));(e[Sc]={el:e,vm:r,container:o,onScroll:u},o)&&(o.addEventListener("scroll",u),l&&((e[Sc].observer=new MutationObserver(u)).observe(o,{childList:!0,subtree:!0}),u()))},unbind:function(e){var t=e[Sc],n=t.container,i=t.onScroll;n&&n.removeEventListener("scroll",i)},install:function(e){e.directive(Ic.name,Ic)}},Mc=Ic,Dc=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)])};Dc._withStripped=!0;var Pc=r({name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(Fr.t)("el.pageHeader.title")}},content:String}},Dc,[],!1,null,null,null);Pc.options.__file="packages/page-header/src/main.vue";var Fc=Pc.exports;Fc.install=function(e){e.component(Fc.name,Fc)};var Oc=Fc,Lc=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:["el-cascader-panel",this.border&&"is-bordered"],on:{keydown:this.handleKeyDown}},this._l(this.menus,function(e,n){return t("cascader-menu",{key:n,ref:"menu",refInFor:!0,attrs:{index:n,nodes:e}})}),1)};Lc._withStripped=!0;var Nc=n(43),Rc=n.n(Nc),Uc=function(e){return e.stopPropagation()},Qc=r({inject:["panel"],components:{ElCheckbox:rn.a,ElRadio:Rc.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,i=this.isDisabled,r=this.config,o=r.multiple;!r.checkStrictly&&i||n.loading||(r.lazy&&!n.loaded?t.lazyLoad(n,function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var i=!!t&&n.checked;e.handleMultiCheckChange(i)}}):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,i=this.config,r=i.checkStrictly;return i.multiple?this.renderCheckbox(e):r?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,i=this.isDisabled,r={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(r.nativeOn.click=Uc),e("el-checkbox",Ja()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:i}},r]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,i=this.isDisabled;return Object(A.isEqual)(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:i},on:{change:this.handleCheckChange},nativeOn:{click:Uc}},[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,i=t.renderLabelFn;return e("span",{class:"el-cascader-node__label"},[(i?i({node:n,data:n.data}):null)||n.label])}},render:function(e){var t=this,n=this.inActivePath,i=this.inCheckedPath,r=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,l=this.nodeId,u=s.expandTrigger,c=s.checkStrictly,h=s.multiple,d=!c&&a,f={on:{}};return"click"===u?f.on.click=this.handleExpand:(f.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},f.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||a||c||h||(f.on.click=this.handleCheckChange),e("li",Ja()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:d?null:-1},class:{"el-cascader-node":!0,"is-selectable":c,"in-active-path":n,"in-checked-path":i,"is-active":r,"is-disabled":d}},f]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},void 0,void 0,!1,null,null,null);Qc.options.__file="packages/cascader-panel/src/cascader-node.vue";var Hc=Qc.exports,jc=r({name:"ElCascaderMenu",mixins:[p.a],inject:["panel"],components:{ElScrollbar:N.a,CascaderNode:Hc},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(A.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,i=this.$refs.hoverZone;if(t&&i)if(t.contains(e.target)){clearTimeout(n);var r=this.$el.getBoundingClientRect().left,o=e.clientX-r,a=this.$el,s=a.offsetWidth,l=a.offsetHeight,u=t.offsetTop,c=u+t.offsetHeight;i.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+u+" L"+s+" 0 V"+u+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+c+" L"+s+" "+l+" V"+c+' 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,i={on:{}};n&&(i.on.expand=this.handleExpand);var r=this.nodes.map(function(n,r){var o=n.hasChildren;return e("cascader-node",Ja()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":o,"aria-owns":o?t:null}},i]))});return[].concat(r,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",Ja()([{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"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},void 0,void 0,!1,null,null,null);jc.options.__file="packages/cascader-panel/src/cascader-menu.vue";var Vc=jc.exports,zc=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var $c=0,Gc=function(){function e(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.config=n,this.parent=i||null,this.level=this.parent?this.parent.level+1:1,this.uid=$c++,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,i=n.children,r=this.data[i];this.hasChildren=Array.isArray(r),this.children=(r||[]).map(function(i){return new e(i,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(A.isEqual)(e,t)}):Object(A.isEqual)(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r="onParent"+Object(A.capitalize)(e);this.children.forEach(function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[r]&&t[r].apply(t,n))})},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(A.capitalize)(e);if(t){for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];t[n]&&t[n].apply(t,r),t.emit.apply(t,[e].concat(r))}},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,t){return e+(t.checked?1:t.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")))},zc(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,r=n.checkStrictly;return e[i]||!r&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,o=r.lazy,a=r.leaf;if(o){var s=Object(je.isDef)(e[a])?e[a]:!!t&&!i.length;return this.hasChildren=!s,s}return!n}}]),e}();var Wc=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.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(A.coerceTruthyValueToArray)(e),this.nodes=e.map(function(e){return new Gc(e,t.config)}),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new Gc(e,this.config,t);(t?t.children:this.nodes).push(n)},e.prototype.appendNodes=function(e,t){var n=this;(e=Object(A.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:function e(t,n){return t.reduce(function(t,i){return i.isLeaf?t.push(i):(!n&&t.push(i),t=t.concat(e(i.children,n))),t},[])}(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter(function(t){return Object(A.valueEquals)(t.path,e)||t.value===e});return t&&t.length?t[0]:null},e}(),Kc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Yc=yl.a.keys,qc={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:A.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Xc=function(e){return!e.getAttribute("aria-owns")},Jc=function(e,t){var n=e.parentNode;if(n){var i=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return i[Array.prototype.indexOf.call(i,e)+t]||null}return null},Zc=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},eh=function(e){e&&(e.focus(),!Xc(e)&&e.click())},th=r({name:"ElCascaderPanel",components:{CascaderMenu:Vc},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 He()(Kc({},qc),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(A.isEqual)(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(A.isEmpty)(t)?this.lazyLoad():(this.store=new Wc(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(A.isEqual)(e,t)||(this.activePath=[],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)})},isEmptyValue:function(e){var t=this.multiple,n=this.config.emitPath;return!(!t&&!n)&&Object(A.isEmpty)(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,i=this.activePath,r=this.checkedValue;if(Object(A.isEmpty)(i))if(this.isEmptyValue(r))this.activePath=[],this.menus=[t.getNodes()];else{var o=n?r[0]:r,a=((this.getNodeByValue(o)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(a)}else{var s=i.map(function(t){return e.getNodeByValue(t.getValue())});this.expandNodes(s)}},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(A.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 Yc.up:var n=Jc(t,-1);eh(n);break;case Yc.down:var i=Jc(t,1);eh(i);break;case Yc.left:var r=this.$refs.menu[Zc(t)-1];if(r){var o=r.$el.querySelector('.el-cascader-node[aria-expanded="true"]');eh(o)}break;case Yc.right:var a=this.$refs.menu[Zc(t)+1];if(a){var s=a.$el.querySelector('.el-cascader-node[tabindex="-1"]');eh(s)}break;case Yc.enter:!function(e){if(e){var t=e.querySelector("input");t?t.click():Xc(e)&&e.click()}}(t);break;case Yc.esc:case Yc.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,i=e.level,r=n.slice(0,i-1),o=this.menus.slice(0,i);if(e.isLeaf||(r.push(e),o.push(e.children)),this.activePath=r,this.menus=o,!t){var a=r.map(function(e){return e.getValue()}),s=n.map(function(e){return e.getValue()});Object(A.valueEquals)(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,i=this.config;e||(e=e||{root:!0,level:0},this.store=new Wc([],i),this.menus=[this.store.getNodes()]),e.loading=!0;i.lazyLoad(e,function(i){var r=e.root?null:e;if(i&&i.length&&n.store.appendNodes(i,r),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(i)&&i.filter(function(e){return e[a]===o}).length>0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,function(){n.handleExpand(l)}),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(i)})},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map(function(e){return e.getValueByOption()})},scrollIntoView:function(){this.$isServer||(this.$refs.menu||[]).forEach(function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),i=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");Rt()(n,i)}})},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}):this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,i=e.emitPath;n?(this.getCheckedNodes(t).filter(function(e){return!e.isDisabled}).forEach(function(e){return e.doCheck(!1)}),this.calculateMultiCheckedValue()):this.checkedValue=i?[]:null}}},Lc,[],!1,null,null,null);th.options.__file="packages/cascader-panel/src/cascader-panel.vue";var nh=th.exports;nh.install=function(e){e.component(nh.name,nh)};var ih=nh,rh=r({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,i=["el-avatar"];return e&&"string"==typeof e&&i.push("el-avatar--"+e),t&&i.push("el-avatar--icon"),n&&i.push("el-avatar--"+n),i.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,i=this.alt,r=this.isImageExist,o=this.srcSet,a=this.fit;return r&&n?e("img",{attrs:{src:n,alt:i,srcSet:o},on:{error:this.handleError},style:{"object-fit":a}}):t?e("i",{class:t}):this.$slots.default}},render:function(){var e=arguments[0],t=this.avatarClass,n=this.size;return e("span",{class:t,style:"number"==typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{}},[this.renderAvatar()])}},void 0,void 0,!1,null,null,null);rh.options.__file="packages/avatar/src/main.vue";var oh=rh.exports;oh.install=function(e){e.component(oh.name,oh)};var ah=oh,sh=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-drawer__wrapper",attrs:{tabindex:"-1"}},[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.drawerSize:"height: "+e.drawerSize,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":e.title,role:"dialog",tabindex:"-1"}},[e.withHeader?n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[e._t("title",[n("span",{attrs:{role:"heading",title:e.title}},[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._e(),e.rendered?n("section",{staticClass:"el-drawer__body"},[e._t("default")],2):e._e()])])])])};sh._withStripped=!0;var lh=r({name:"ElDrawer",mixins:[_.a,C.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},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)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:[Number,String],default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction},drawerSize:function(){return"number"==typeof this.size?this.size+"px":this.size}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement):(this.closed||(this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1)),this.$nextTick(function(){t.prevActiveElement&&t.prevActiveElement.focus()}))}},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()},handleClose:function(){this.closeDrawer()}},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)}},sh,[],!1,null,null,null);lh.options.__file="packages/drawer/src/main.vue";var uh=lh.exports;uh.install=function(e){e.component(uh.name,uh)};var ch=uh,hh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",e._b({attrs:{trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},"el-popover",e.$attrs,!1),[n("div",{staticClass:"el-popconfirm"},[n("p",{staticClass:"el-popconfirm__main"},[e.hideIcon?e._e():n("i",{staticClass:"el-popconfirm__icon",class:e.icon,style:{color:e.iconColor}}),e._v("\n "+e._s(e.title)+"\n ")]),n("div",{staticClass:"el-popconfirm__action"},[n("el-button",{attrs:{size:"mini",type:e.cancelButtonType},on:{click:e.cancel}},[e._v("\n "+e._s(e.displayCancelButtonText)+"\n ")]),n("el-button",{attrs:{size:"mini",type:e.confirmButtonType},on:{click:e.confirm}},[e._v("\n "+e._s(e.displayConfirmButtonText)+"\n ")])],1)]),e._t("reference",null,{slot:"reference"})],2)};hh._withStripped=!0;var dh=n(44),fh=r({name:"ElPopconfirm",props:{title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},icon:{type:String,default:"el-icon-question"},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:n.n(dh).a,ElButton:G.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(Fr.t)("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(Fr.t)("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},hh,[],!1,null,null,null);fh.options.__file="packages/popconfirm/src/main.vue";var ph=fh.exports;ph.install=function(e){e.component(ph.name,ph)};var Ah=ph,gh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.uiLoading?[n("div",e._b({class:["el-skeleton",e.animated?"is-animated":""]},"div",e.$attrs,!1),[e._l(e.count,function(t){return[e.loading?e._t("template",e._l(e.rows,function(i){return n("el-skeleton-item",{key:t+"-"+i,class:{"el-skeleton__paragraph":1!==i,"is-first":1===i,"is-last":i===e.rows&&e.rows>1},attrs:{variant:"p"}})})):e._e()]})],2)]:[e._t("default",null,null,e.$attrs)]],2)};gh._withStripped=!0;var vh=r({name:"ElSkeleton",props:{animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:4},loading:{type:Boolean,default:!0},throttle:{type:Number,default:0}},watch:{loading:{handler:function(e){var t=this;this.throttle<=0?this.uiLoading=e:e?(clearTimeout(this.timeoutHandle),this.timeoutHandle=setTimeout(function(){t.uiLoading=t.loading},this.throttle)):this.uiLoading=e},immediate:!0}},data:function(){return{uiLoading:this.throttle<=0&&this.loading}}},gh,[],!1,null,null,null);vh.options.__file="packages/skeleton/src/index.vue";var mh=vh.exports;mh.install=function(e){e.component(mh.name,mh)};var yh=mh,_h=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:["el-skeleton__item","el-skeleton__"+this.variant]},["image"===this.variant?t("img-placeholder"):this._e()],1)};_h._withStripped=!0;var bh=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M64 896V128h896v768H64z m64-128l192-192 116.352 116.352L640 448l256 307.2V192H128v576z m224-480a96 96 0 1 1-0.064 192.064A96 96 0 0 1 352 288z"}})])};bh._withStripped=!0;var wh=r({name:"ImgPlaceholder"},bh,[],!1,null,null,null);wh.options.__file="packages/skeleton/src/img-placeholder.vue";var xh,Ch=wh.exports,Sh=r({name:"ElSkeletonItem",props:{variant:{type:String,default:"text"}},components:(xh={},xh[Ch.name]=Ch,xh)},_h,[],!1,null,null,null);Sh.options.__file="packages/skeleton/src/item.vue";var kh=Sh.exports;kh.install=function(e){e.component(kh.name,kh)};var Bh=kh,Th=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-empty"},[n("div",{staticClass:"el-empty__image",style:e.imageStyle},[e.image?n("img",{attrs:{src:e.image,ondragstart:"return false"}}):e._t("image",[n("img-empty")])],2),n("div",{staticClass:"el-empty__description"},[e.$slots.description?e._t("description"):n("p",[e._v(e._s(e.emptyDescription))])],2),e.$slots.default?n("div",{staticClass:"el-empty__bottom"},[e._t("default")],2):e._e()])};Th._withStripped=!0;var Eh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("defs",[n("linearGradient",{attrs:{id:"linearGradient-1-"+e.id,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#EEEFF3",offset:"100%"}})],1),n("linearGradient",{attrs:{id:"linearGradient-2-"+e.id,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#E9EBEF",offset:"100%"}})],1),n("rect",{attrs:{id:"path-3-"+e.id,x:"0",y:"0",width:"17",height:"36"}})],1),n("g",{attrs:{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"B-type",transform:"translate(-1268.000000, -535.000000)"}},[n("g",{attrs:{id:"Group-2",transform:"translate(1268.000000, 535.000000)"}},[n("path",{attrs:{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:"#F7F8FC"}}),n("polygon",{attrs:{id:"Rectangle-Copy-14",fill:"#E5E7E9",transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"}}),n("g",{attrs:{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"}},[n("polygon",{attrs:{id:"Rectangle-Copy-10",fill:"#E5E7E9",transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"}}),n("polygon",{attrs:{id:"Rectangle-Copy-11",fill:"#EDEEF2",points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"}}),n("rect",{attrs:{id:"Rectangle-Copy-12",fill:"url(#linearGradient-1-"+e.id+")",transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"}}),n("polygon",{attrs:{id:"Rectangle-Copy-13",fill:"#F8F9FB",transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"}})]),n("rect",{attrs:{id:"Rectangle-Copy-15",fill:"url(#linearGradient-2-"+e.id+")",x:"13",y:"45",width:"40",height:"36"}}),n("g",{attrs:{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"}},[n("mask",{attrs:{id:"mask-4-"+e.id,fill:"white"}},[n("use",{attrs:{"xlink:href":"#path-3-"+e.id}})]),n("use",{attrs:{id:"Mask",fill:"#E0E3E9",transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":"#path-3-"+e.id}}),n("polygon",{attrs:{id:"Rectangle-Copy",fill:"#D5D7DE",mask:"url(#mask-4-"+e.id+")",transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 -1.70530257e-13 16"}})]),n("polygon",{attrs:{id:"Rectangle-Copy-18",fill:"#F8F9FB",transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"}})])])])])};Eh._withStripped=!0;var Ih=0,Mh=r({name:"ImgEmpty",data:function(){return{id:++Ih}}},Eh,[],!1,null,null,null);Mh.options.__file="packages/empty/src/img-empty.vue";var Dh,Ph=Mh.exports,Fh=r({name:"ElEmpty",components:(Dh={},Dh[Ph.name]=Ph,Dh),props:{image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},computed:{emptyDescription:function(){return this.description||Object(Fr.t)("el.empty.description")},imageStyle:function(){return{width:this.imageSize?this.imageSize+"px":""}}}},Th,[],!1,null,null,null);Fh.options.__file="packages/empty/src/index.vue";var Oh=Fh.exports;Oh.install=function(e){e.component(Oh.name,Oh)};var Lh,Nh=Oh,Rh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Uh={name:"ElDescriptionsRow",props:{row:{type:Array}},inject:["elDescriptions"],render:function(e){var t=this.elDescriptions,n=(this.row||[]).map(function(e){return Rh({},e,{label:e.slots.label||e.props.label},["labelClassName","contentClassName","labelStyle","contentStyle"].reduce(function(n,i){return n[i]=e.props[i]||t[i],n},{}))});return"vertical"===t.direction?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map(function(n){var i;return e("th",{class:(i={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"has-colon":!t.border&&t.colon,"is-bordered-label":t.border},i[n.labelClassName]=!0,i),style:n.labelStyle,attrs:{colSpan:n.props.span}},[n.label])})]),e("tr",{class:"el-descriptions-row"},[n.map(function(t){return e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",t.contentClassName],style:t.contentStyle,attrs:{colSpan:t.props.span}},[t.slots.default])})])]):t.border?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map(function(n){var i;return[e("th",{class:(i={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"is-bordered-label":t.border},i[n.labelClassName]=!0,i),style:n.labelStyle,attrs:{colSpan:"1"}},[n.label]),e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",n.contentClassName],style:n.contentStyle,attrs:{colSpan:2*n.props.span-1}},[n.slots.default])]})])]):e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map(function(n){var i;return e("td",{class:"el-descriptions-item el-descriptions-item__cell",attrs:{colSpan:n.props.span}},[e("div",{class:"el-descriptions-item__container"},[e("span",{class:(i={"el-descriptions-item__label":!0,"has-colon":t.colon},i[n.labelClassName]=!0,i),style:n.labelStyle},[n.props.label]),e("span",{class:["el-descriptions-item__content",n.contentClassName],style:n.contentStyle},[n.slots.default])])])})])])}},Qh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Hh={name:"ElDescriptions",components:(Lh={},Lh[Uh.name]=Uh,Lh),props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal"},size:{type:String},title:{type:String,default:""},extra:{type:String,default:""},labelStyle:{type:Object},contentStyle:{type:Object},labelClassName:{type:String,default:""},contentClassName:{type:String,default:""},colon:{type:Boolean,default:!0}},computed:{descriptionsSize:function(){return this.size||(this.$ELEMENT||{}).size}},provide:function(){return{elDescriptions:this}},methods:{getOptionProps:function(e){if(e.componentOptions){var t=e.componentOptions,n=t.propsData,i=void 0===n?{}:n,r=t.Ctor,o=((void 0===r?{}:r).options||{}).props||{},a={};for(var s in o){var l=o[s].default;void 0!==l&&(a[s]=Object(ys.isFunction)(l)?l.call(e):l)}return Qh({},a,i)}return{}},getSlots:function(e){var t=this,n=e.componentOptions||{},i={};return(e.children||n.children||[]).forEach(function(e){if(!t.isEmptyElement(e)){var n=e.data&&e.data.slot||"default";i[n]=i[n]||[],"template"===e.tag?i[n].push(e.children):i[n].push(e)}}),Qh({},i)},isEmptyElement:function(e){return!(e.tag||e.text&&""!==e.text.trim())},filledNode:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.props||(e.props={}),t>n&&(e.props.span=n),i&&(e.props.span=n),e},getRows:function(){var e=this,t=(this.$slots.default||[]).filter(function(e){return e.tag&&e.componentOptions&&"ElDescriptionsItem"===e.componentOptions.Ctor.options.name}),n=t.map(function(t){return{props:e.getOptionProps(t),slots:e.getSlots(t),vnode:t}}),i=[],r=[],o=this.column;return n.forEach(function(n,a){var s=n.props.span||1;if(a===t.length-1)return r.push(e.filledNode(n,s,o,!0)),void i.push(r);s<o?(o-=s,r.push(n)):(r.push(e.filledNode(n,s,o)),i.push(r),o=e.column,r=[])}),i}},render:function(){var e=arguments[0],t=this.title,n=this.extra,i=this.border,r=this.descriptionsSize,o=this.$slots,a=this.getRows();return e("div",{class:"el-descriptions"},[t||n||o.title||o.extra?e("div",{class:"el-descriptions__header"},[e("div",{class:"el-descriptions__title"},[o.title?o.title:t]),e("div",{class:"el-descriptions__extra"},[o.extra?o.extra:n])]):null,e("div",{class:"el-descriptions__body"},[e("table",{class:["el-descriptions__table",{"is-bordered":i},r?"el-descriptions--"+r:""]},[a.map(function(t){return e(Uh,{attrs:{row:t}})})])])])},install:function(e){e.component(Hh.name,Hh)}},jh=Hh,Vh={name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},contentClassName:{type:String,default:""},contentStyle:{type:Object},labelClassName:{type:String,default:""},labelStyle:{type:Object}},render:function(){return null},install:function(e){e.component(Vh.name,Vh)}},zh=Vh,$h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-result"},[n("div",{staticClass:"el-result__icon"},[e._t("icon",[n(e.iconElement,{tag:"component",class:e.iconElement})])],2),e.title||e.$slots.title?n("div",{staticClass:"el-result__title"},[e._t("title",[n("p",[e._v(e._s(e.title))])])],2):e._e(),e.subTitle||e.$slots.subTitle?n("div",{staticClass:"el-result__subtitle"},[e._t("subTitle",[n("p",[e._v(e._s(e.subTitle))])])],2):e._e(),e.$slots.extra?n("div",{staticClass:"el-result__extra"},[e._t("extra")],2):e._e()])};$h._withStripped=!0;var Gh=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M34.5548098,16.4485711 C33.9612228,15.8504763 32.9988282,15.8504763 32.4052412,16.4485711 L32.4052412,16.4485711 L21.413757,27.5805811 L21.413757,27.5805811 L21.4034642,27.590855 C21.0097542,27.9781674 20.3766105,27.9729811 19.9892981,27.5792711 L19.9892981,27.5792711 L15.5947588,23.1121428 C15.0011718,22.514048 14.0387772,22.514048 13.4451902,23.1121428 C12.8516033,23.7102376 12.8516033,24.6799409 13.4451902,25.2780357 L13.4451902,25.2780357 L19.6260786,31.5514289 C20.2196656,32.1495237 21.1820602,32.1495237 21.7756472,31.5514289 L21.7756472,31.5514289 L34.5548098,18.614464 C35.1483967,18.0163692 35.1483967,17.0466659 34.5548098,16.4485711 Z"}})])};Gh._withStripped=!0;var Wh=r({name:"IconSuccess"},Gh,[],!1,null,null,null);Wh.options.__file="packages/result/src/icon-success.vue";var Kh=Wh.exports,Yh=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.57818,15.42182 C32.0157534,14.8593933 31.1038797,14.8593933 30.541453,15.42182 L30.541453,15.42182 L24.0006789,21.9625941 L17.458547,15.42182 C16.8961203,14.8593933 15.9842466,14.8593933 15.42182,15.42182 C14.8593933,15.9842466 14.8593933,16.8961203 15.42182,17.458547 L15.42182,17.458547 L21.9639519,23.9993211 L15.42182,30.541453 C14.8593933,31.1038797 14.8593933,32.0157534 15.42182,32.57818 C15.9842466,33.1406067 16.8961203,33.1406067 17.458547,32.57818 L17.458547,32.57818 L24.0006789,26.0360481 L30.541453,32.57818 C31.1038797,33.1406067 32.0157534,33.1406067 32.57818,32.57818 C33.1406067,32.0157534 33.1406067,31.1038797 32.57818,30.541453 L32.57818,30.541453 L26.0374059,23.9993211 L32.57818,17.458547 C33.1406067,16.8961203 33.1406067,15.9842466 32.57818,15.42182 Z"}})])};Yh._withStripped=!0;var qh=r({name:"IconError"},Yh,[],!1,null,null,null);qh.options.__file="packages/result/src/icon-error.vue";var Xh=qh.exports,Jh=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,31 C22.8954305,31 22,31.8954305 22,33 C22,34.1045695 22.8954305,35 24,35 C25.1045695,35 26,34.1045695 26,33 C26,31.8954305 25.1045695,31 24,31 Z M24,14 C23.1715729,14 22.5,14.6715729 22.5,15.5 L22.5,15.5 L22.5,27.5 C22.5,28.3284271 23.1715729,29 24,29 C24.8284271,29 25.5,28.3284271 25.5,27.5 L25.5,27.5 L25.5,15.5 C25.5,14.6715729 24.8284271,14 24,14 Z"}})])};Jh._withStripped=!0;var Zh=r({name:"IconWarning"},Jh,[],!1,null,null,null);Zh.options.__file="packages/result/src/icon-warning.vue";var ed=Zh.exports,td=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,19 L21,19 C20.1715729,19 19.5,19.6715729 19.5,20.5 C19.5,21.3284271 20.1715729,22 21,22 L21,22 L22.5,22 L22.5,31 L21,31 C20.1715729,31 19.5,31.6715729 19.5,32.5 C19.5,33.3284271 20.1715729,34 21,34 L21,34 L27,34 C27.8284271,34 28.5,33.3284271 28.5,32.5 C28.5,31.6715729 27.8284271,31 27,31 L27,31 L25.5,31 L25.5,20.5 C25.5,19.6715729 24.8284271,19 24,19 L24,19 Z M24,13 C22.8954305,13 22,13.8954305 22,15 C22,16.1045695 22.8954305,17 24,17 C25.1045695,17 26,16.1045695 26,15 C26,13.8954305 25.1045695,13 24,13 Z"}})])};td._withStripped=!0;var nd=r({name:"IconInfo"},td,[],!1,null,null,null);nd.options.__file="packages/result/src/icon-info.vue";var id,rd=nd.exports,od={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},ad=r({name:"ElResult",components:(id={},id[Kh.name]=Kh,id[Xh.name]=Xh,id[ed.name]=ed,id[rd.name]=rd,id),props:{title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,default:"info"}},computed:{iconElement:function(){var e=this.icon;return e&&od[e]?od[e]:"icon-info"}}},$h,[],!1,null,null,null);ad.options.__file="packages/result/src/index.vue";var sd=ad.exports;sd.install=function(e){e.component(sd.name,sd)};var ld=sd,ud=[v,B,z,X,te,oe,ve,Ce,Ie,Fe,$e,qe,et,ot,ut,ft,vt,bt,St,Ht,jt,Gt,qt,en,ii,ci,sr,Ar,Cr,Ir,Dr,no,ao,co,yo,Bo,Mo,Fo,Jo,ia,xa,Qa,ja,$a,as,cs,ps,Is,Fs,Rs,js,Gs,Js,nl,al,cl,pl,kl,nu,uu,fu,vu,bu,Su,Eu,Du,Lu,Qu,zu,sc,vc,wc,Oc,ih,ah,ch,Ah,yh,Bh,Nh,jh,zh,ld,ye.a],cd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Or.a.use(t.locale),Or.a.i18n(t.i18n),ud.forEach(function(t){e.component(t.name,t)}),e.use(Mc),e.use(La.directive),e.prototype.$ELEMENT={size:t.size||"",zIndex:t.zIndex||2e3},e.prototype.$loading=La.service,e.prototype.$msgbox=Jr,e.prototype.$alert=Jr.alert,e.prototype.$confirm=Jr.confirm,e.prototype.$prompt=Jr.prompt,e.prototype.$notify=fa,e.prototype.$message=ks};"undefined"!=typeof window&&window.Vue&&cd(window.Vue);t.default={version:"2.15.6",locale:Or.a.use,i18n:Or.a.i18n,install:cd,CollapseTransition:ye.a,Loading:La,Pagination:v,Dialog:B,Autocomplete:z,Dropdown:X,DropdownMenu:te,DropdownItem:oe,Menu:ve,Submenu:Ce,MenuItem:Ie,MenuItemGroup:Fe,Input:$e,InputNumber:qe,Radio:et,RadioGroup:ot,RadioButton:ut,Checkbox:ft,CheckboxButton:vt,CheckboxGroup:bt,Switch:St,Select:Ht,Option:jt,OptionGroup:Gt,Button:qt,ButtonGroup:en,Table:ii,TableColumn:ci,DatePicker:sr,TimeSelect:Ar,TimePicker:Cr,Popover:Ir,Tooltip:Dr,MessageBox:Jr,Breadcrumb:no,BreadcrumbItem:ao,Form:co,FormItem:yo,Tabs:Bo,TabPane:Mo,Tag:Fo,Tree:Jo,Alert:ia,Notification:fa,Slider:xa,Icon:Qa,Row:ja,Col:$a,Upload:as,Progress:cs,Spinner:ps,Message:ks,Badge:Is,Card:Fs,Rate:Rs,Steps:js,Step:Gs,Carousel:Js,Scrollbar:nl,CarouselItem:al,Collapse:cl,CollapseItem:pl,Cascader:kl,ColorPicker:nu,Transfer:uu,Container:fu,Header:vu,Aside:bu,Main:Su,Footer:Eu,Timeline:Du,TimelineItem:Lu,Link:Qu,Divider:zu,Image:sc,Calendar:vc,Backtop:wc,InfiniteScroll:Mc,PageHeader:Oc,CascaderPanel:ih,Avatar:ah,Drawer:ch,Popconfirm:Ah,Skeleton:yh,SkeletonItem:Bh,Empty:Nh,Descriptions:jh,DescriptionsItem:zh,Result:ld}}]).default},zQR9:function(e,t,n){"use strict";var i=n("h65t")(!0);n("vIB/")(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=i(t,n),this._i+=e.length,{value:e,done:!1})})},zTCi:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(o.default.prototype.$isServer)return;if(!t)return void(e.scrollTop=0);var n=[],i=t.offsetParent;for(;i&&e!==i&&e.contains(i);)n.push(i),i=i.offsetParent;var r=t.offsetTop+n.reduce(function(e,t){return e+t.offsetTop},0),a=r+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;r<s?e.scrollTop=r:a>l&&(e.scrollTop=a-e.clientHeight)};var i,r=n("7+uW"),o=(i=r)&&i.__esModule?i:{default:i}}});
  118. //# sourceMappingURL=vendor.012023abf7091247f996.js.map